Skip to main content

ExcelDataDriver is a Excel Data-Driven Testing library for Robot Framework.

Project description

https://github.com/qahive/robotframework-ExcelDataDriver/workflows/Python%20package/badge.svg

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 suite

docs/

Keyword documentation

CoreRPAHive/

Python source code

tests/

Python nose test scripts

Usage

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 Tag

    Test data Columns:

    User can add their own test data columns without limit

    Example:

    • Username

    • Password

  2. Create RF test suite

*** 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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-exceldatadriver-1.1.5.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file robotframework-exceldatadriver-1.1.5.tar.gz.

File metadata

  • Download URL: robotframework-exceldatadriver-1.1.5.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for robotframework-exceldatadriver-1.1.5.tar.gz
Algorithm Hash digest
SHA256 d70017304c6ec86aae554aaaf168f68963f3abd062b5d230d99da647e786264f
MD5 5051957a727a8f05ceda4bbef6c16d02
BLAKE2b-256 63d4ab3f1c6ccdeb36cb489d2db67379bafc7b26cecf520cde8b87163d059817

See more details on using hashes here.

File details

Details for the file robotframework_exceldatadriver-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: robotframework_exceldatadriver-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for robotframework_exceldatadriver-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a78abea4bc55c2161e98242d5735a0de81933dc2e1e8c040d6e1ee7c37e3b3b4
MD5 10f24806aa179a5fd85d5b368e15d248
BLAKE2b-256 546e96c1a96cd3428063b804a89b299d83a4a31d05236b66403ba664ad25991b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page