Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joydeep100/robotvortexranger
A Data Driven framework for RESTFUL API Testing using Robot Framework.
https://github.com/joydeep100/robotvortexranger
data-driven-testing rest-webservice robot-framework
Last synced: 8 days ago
JSON representation
A Data Driven framework for RESTFUL API Testing using Robot Framework.
- Host: GitHub
- URL: https://github.com/joydeep100/robotvortexranger
- Owner: joydeep100
- Created: 2020-04-21T10:35:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-27T05:32:41.000Z (almost 4 years ago)
- Last Synced: 2024-11-01T15:44:04.111Z (about 2 months ago)
- Topics: data-driven-testing, rest-webservice, robot-framework
- Language: RobotFramework
- Size: 302 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RobotApiTest
A Data Driven framework for RESTFUL API Testing using Robot Framework.p.s. - Also added a simple selenium test script (cargo.robot)
## How it works
Put all your Test Cases inside the `test_data.xlsx` file.![Sample test data file screenshot](sample_reports/Excel.jpg?raw=true)
## Pre-Conditions
- Python3## Installation steps
1. Go to the project root
2. run the command ```pip install -r requirement.txt``` as Admininstrator or root.## Executing Tests
- run the command ``` robot test_scripts/data_driven_tests.robot```## Debug a single/ selected tests
1. make the `${DEBUG MODE}` variable as `'Y'` in the test script file.
2. for all the tests where you need to run, ust mention `${debug_flag}` row value as `'Y'` in `test_data.xlsx` file## TestData file inputs
All the fiels are self explanatory
- for `${req_body}` give the expected json (if any)
- for validating the response body value, given new line separated nested key names. for example,
Assume this is the reponse json.
```"{
"name": "morpheus",
"job": {
"title": "leader"
}
}"
and you want to validate values of 'name' and 'job.title' keys,
Give the data as.
```
['name']=morpheus
['job']['title']=leader