Skip to main content

Translate Gherkin feature files into RobotFramework tests

Project description

gherkin2robotframework

Description

This tool can be used to facilitate the usage of Cucumber feature files in a RobotFramework Test Automation solution. Although RobotFramework supports BDD style test cases, this support is limited to Given/When/Then keywords. Features like datatables and docstrings are not supported in RobotFramework. This tool will 'compile' Gherkin feature files into RobotFramework test cases and scaffolding for step definitions aka User Keywords.

Usage

First time generation

TBD

Regeneration

TBD

Limitations and considerations

Background support

The Background keyword is generated to implement the background part of the feature file. Each test case will include this keyword. Using [Test setup] will not work for Scenario Outline with Examples. In Cucumber the Background is applied to each example and in RobotFramework the [Test setup] is only applied to the Test case and NOT to each line in the test case with [Test Template].

Language support

#language:xx is supported, but because the gherkin3 dependency is not recently updated on PyPI. Therefore some keywords (and aliases) are not included.

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

gherkin2robotframework-0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

gherkin2robotframework-0.1-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

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