https://github.com/assertthat/assertthat-bdd-robot-demo
Robot Framework integration with AssertThat BDD & Cucumber Demo
https://github.com/assertthat/assertthat-bdd-robot-demo
Last synced: 4 months ago
JSON representation
Robot Framework integration with AssertThat BDD & Cucumber Demo
- Host: GitHub
- URL: https://github.com/assertthat/assertthat-bdd-robot-demo
- Owner: assertthat
- Created: 2021-02-22T22:42:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T11:08:21.000Z (almost 4 years ago)
- Last Synced: 2025-01-07T15:26:13.485Z (6 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Robot Framework integration with AssertThat BDD & Cucumber Demo
https://github.com/robotframework/WebDemo was used as a base app for the demo
## Installation
```
pip install -r requirements.txt
```## Starting demo application
```
python demoapp/server.py
```
After the demo application is started, it is be available in URL http://localhost:7272.## Downloading gherkin feature files from Jira
Update access_key, secret_key (and jira_server_url if using server version) in `download_features.py` then run
```
python download_features.py
```## Converting gherkin features to robot files
```
gherkin2robotframework login_tests/1-login.feature
```## Running tests
The test cases are located in the login_tests directory. They can be executed using the robot command:
```
robot login_tests
```## Generating Cucucmber json report
To generate `cucumber.json` report based on Robot Framework `output.xml` run
```
python generate_report.py
```## Uploading cucumber report to Jira
To uploadgenerated `cucumber.json` update access_key, secret_key (and jira_server_url if using server version) in `upload_report.py` then run
```
python upload_report.py
```The following feature was uploaded to Jira in order to establish results linking
```
# language: en
@robot
Feature: LoginA test suite with a single Gherkin style test.
@AUTOMATED
Scenario: Valid Login
Given browser is opened to login page
When user "demo" logs in with password "mode"
Then welcome page should be open```