Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qahive/robotframework-exceldatadriver
ExcelDataDriver is a Excel Data-Driven Testing library for Robot Framework.
https://github.com/qahive/robotframework-exceldatadriver
datadriven robotframework rpa
Last synced: 3 months ago
JSON representation
ExcelDataDriver is a Excel Data-Driven Testing library for Robot Framework.
- Host: GitHub
- URL: https://github.com/qahive/robotframework-exceldatadriver
- Owner: qahive
- Created: 2020-01-01T22:58:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T15:36:44.000Z (about 2 years ago)
- Last Synced: 2024-09-26T20:53:21.283Z (3 months ago)
- Topics: datadriven, robotframework, rpa
- Language: Python
- Homepage: https://www.qahive.com/
- Size: 149 KB
- Stars: 9
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
ExcelDataDriver
===============
.. figure:: https://github.com/qahive/robotframework-ExcelDataDriver/workflows/Python%20package/badge.svg
.. contents::Introduction
------------ExcelDataDriver_ is a Excel Data-Driven Testing library for `RobotFramework `_.
The project is hosted on `GitHub `_ and downloads can be found from `PyPI `_.Inspired by: https://github.com/Snooz82/robotframework-datadriver
Keyword documentation
---------------------See `keyword documentation `_ for available keywords and more information about the library in general.
Installation
------------The recommended installation method is using pip::
pip install --upgrade robotframework-exceldatadriver
Manual download source code to your local computer and running following command to install using python::
python setup.py install --force -v
Directory Layout
----------------Examples/
A simple demonstration, with a web application and RF test suitedocs/
Keyword documentationCoreRPAHive/
Python source codetests/
Python nose test scriptsUsage
-----To write tests with Robot Framework and ExcelDataDriver,
ExcelDataDriver must be imported into your RF test suite.1. Create Excel file by copy from template (`download `_).
Mandatory Columns:
- [Status] For report test result Pass/Fail
- [Log Message] Error message or any message after test done
- [Screenshot] Screenshot (Support only 1 screenshot)
- [Tags] Robot TagTest data Columns:
User can add their own test data columns without limit
Example:- Username
- Password2. Create RF test suite
.. code:: robotframework
*** Setting ***
Library ExcelDataDriver ./test_data/BasicDemoData.xlsx capture_screenshot=Skip
Test Template Validate user data template*** Test Cases ***
Verify valid user '${username}' ${None} ${None} ${None}*** Keywords ***
Validate user data template
[Arguments] ${username} ${password} ${email}
Log ${username}
Log ${password}
Log ${email}
Should Be True '${password}' != '${None}'
Should Match Regexp ${email} [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}Enhancement and release
------------------------ Create update keyword documents
.. code:: python
python -m robot.libdoc -f html ExcelDataDriver docs/ExcelDataDriver.html
- Extended (In-progress)
Limitation
----------``Eclipse plug-in RED``
There are known issues if the Eclipse plug-in RED is used. Because the debugging Listener of this tool pre-calculates the number of test cases before the creation of test cases by the Data Driver. This leads to the situation that the RED listener throws exceptions because it is called for each test step but the RED GUI already stopped debugging so that the listener cannot send Information to the GUI.
This does not influence the execution in any way but produces a lot of unwanted exceptions in the Log.