Qase TMS Robot Framework Listener
Project description
Qase TMS Robot Framework Listener
Installation
pip install qase-robotframework
Usage
You must add Qase case IDs to robot framework tests.
They should be added as a tags in form like Q-<case id without project code>
. Examples:
*** 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
After adding new tags and configuring listener - you could simply use it like this:
robot --listener qaseio.robotframework.Listener keyword_driven.robot data_driven.robot
Configuration
Listener supports loading configuration both from environment variables and from tox.ini
file.
ENV variables:
QASE_API_TOKEN
- API token to access Qase TMSQASE_PROJECT
- Project code from Qase TMSQASE_RUN_ID
- Run ID if you want to add results to existing runQASE_RUN_NAME
- Set custom run name when no run ID is providedQASE_DEBUG
- If passed something - will enable debug logging for listener
Usage:
QASE_API_TOKEN=<API TOKEN> QASE_PROJECT=PRJCODE robot --listener qaseio.robotframework.Listener keyword_driven.robot data_driven.robot
tox.ini
configuration:
[qase]
qase_api_token=<API TOKEN>
qase_project=PROJECTCODE
qase_run_id=14
qase_run_name=New Robot Framework Run
qase_debug=True
Working with steps
Listener supports reporting steps results: But in order to use it, you should follow some rules:
- Steps name in Qase TMS should match to the steps in Robot Framework
- If step in RF has some parameters (e.g. Push Button
12
) parameter would be ignored and the comparison to step in TMS will be made like: step in TMS should start with step name in RF. So if your step in RF isOpen page
it will be matched to stepOpen page https://qase.io
in TMS. - You should preserve the order of steps. You can skip steps in RF, but you shouldn't mix them or so on - Qase does not support creating steps on the fly yet.
Contribution
Install project locally:
python3 -m venv .venv
source .venv/bin/activate
pip install -e .[testing]
Install dev requirements:
pip install pre-commit
pre-commit install
Test project:
tox
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
qase-robotframework-1.0.2.tar.gz
(115.1 kB
view hashes)
Built Distribution
Close
Hashes for qase-robotframework-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 338937089ad501f27472a3faa4c10a58ecea2a4447ac2cdeb18b291119e859b7 |
|
MD5 | 0d2749b6a285ab698c98ff0b8a780a86 |
|
BLAKE2b-256 | 8f90bddae535d6c402d63ebe5762402efe6c827e1f46dd879f9fa35bda5bfc5b |
Close
Hashes for qase_robotframework-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d318805e7ccbb592423eba35064119419ca70234e476d636c3c4a63bfccd37ea |
|
MD5 | 4dc5cef6a38839ab43d702146841fb97 |
|
BLAKE2b-256 | 32e4f22df1cfdb942551d5db9c6ccd8851f8d99c97c2323c01ba0493351ebe89 |