Qase Robot Framework Plugin
Project description
Qase TestOps Robot Framework Reporter
Installation
pip install qase-robotframework
Upgrade from 2.x to 3.x
The new version 3.x of the Robot Framework reporter has breaking changes. To migrate from versions 2.x, follow the upgrade guide.
Configuration
Qase Robot Framework Reporter is configured in multiple ways:
- using a config file
qase.config.json
- using environment variables
Environment variables override the values given in the config file.
Configuration options are described in the configuration reference.
Example: qase.config.json
{
"mode": "testops",
"fallback": "report",
"debug": true,
"testops": {
"project": "YOUR_PROJECT_CODE",
"api": {
"token": "YOUR_API_TOKEN",
"host": "qase.io"
},
"run": {
"title": "Test run title"
},
"batch": {
"size": 100
}
},
"report": {
"driver": "local",
"connection": {
"local": {
"path": "./build/qase-report",
"format": "json"
}
}
},
"environment": "local"
}
Usage
Link tests with test cases in Qase TestOps
To link the automated tests with the test cases in Qase TestOps, use the tags in form like Q-<case id without project code>
.
Example:
*** Test Cases ***
Push button
[Tags] q-2
Push button 1
Result should be 1
Push multiple buttons
[Tags] Q-3
Push button 1
Push button 2
Result should be 12
*** Test Cases *** Expression Expected
Addition 12 + 2 + 2 16
2 + -3 -1
[Tags] Q-7
Subtraction 12 - 2 - 2 8
2 - -3 5
[Tags] Q-8
Working with steps
Listener supports reporting steps results:
Example:
Quick Get A JSON Body Test ## Test case: "Quick Get A JSON Body Test"
[Tags] Q-3
${response}= GET https://jsonplaceholder.typicode.com/posts/1 ## 1-st step - "GET"
Should Be Equal As Strings 1 ${response.json()}[id] ## 2-nd step - "Should Be Equal As Strings"
Initializing the test case ## Test case: "Initializing the test case"
[Tags] q-4
Set To Dictionary ${info} field1=A sample string ## 1-st step - "Set To Dictionary"
Execution:
robot --listener qase.robotframework.Listener someTest.robot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qase_robotframework-3.2.1.tar.gz
.
File metadata
- Download URL: qase_robotframework-3.2.1.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7a11ae853e095ea72627d21d689a0c2dc6a7b7f5ae929362552e901780d252 |
|
MD5 | 7f95fcd2a517d957f7db0b155ea5e1aa |
|
BLAKE2b-256 | b4b984a337ce4bfe73179d66675d01e482d1f326b1aaec3c29e3523fb7b9a2bf |
File details
Details for the file qase_robotframework-3.2.1-py3-none-any.whl
.
File metadata
- Download URL: qase_robotframework-3.2.1-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a903ccb741c197dbb75a1758e2ce2056d848ee0f302248ecab2de1e4bcaf14c6 |
|
MD5 | 5d2364fcf25a06a56c91c02d8531f359 |
|
BLAKE2b-256 | 8970ce63be557537b9a45f8882b854f22c42d53b2042e71e6ac7d29b8a4a4862 |