Robot Framework library, listener and pre-run modifier for working with TestRail
Project description
RobotFramework Testrail Correct Link
Short Description
Robot Framework library, listener and pre-run modifier for working with TestRail.
Installation
pip install robotframework-testrail-correct-link
Documentation
See documentation on GitHub.
Usage
TestRail API Client
Library for working with TestRail.
Example
*** Settings ***
Library TestRailAPIClient host user password run_id
*** Test Cases ***
Case
${project}= Get Project project_id
${section}= Add Section project_id=${project['id'] name=New Section
${case}= Add Case ${section['id']} Title Steps Description Refs type_id priority_id
Update Case ${case['id']} request_fields
TestRail Listener
Fixing of testing results and updating test cases.
Example
-
Create custom field "case_description" with type "text", which corresponds to the Robot Framework's test case documentation.
-
Create Robot test:
*** Test Cases *** Autotest name [Documentation] Autotest documentation [Tags] testrailid=10 defects=BUG-1, BUG-2 references=REF-3, REF-4 Fail Test fail message
-
Run Robot Framework with listener:
pybot --listener TestRailListener.py:testrail_server_name:tester_user_name:tester_user_password:run_id:https:update robot_suite.robot
Test with case_id=10 will be marked as failed in TestRail with message "Test fail message" and defects "BUG-1, BUG-2".
Also title, description and references of this test will be updated in TestRail. Parameter "update" is optional.
TestRail Pre-run Modifier
Pre-run modifier for starting test cases from a certain test run.
Example
-
Create Robot test:
*** Test Cases *** Autotest name 1 [Documentation] Autotest 1 documentation [Tags] testrailid=10 Fail Test fail message Autotest name 2 [Documentation] Autotest 2 documentation [Tags] testrailid=11 Fail Test fail message
-
Run Robot Framework with pre-run modifier:
pybot --prerunmodifier TestRailPreRunModifier:testrail_server_name:tester_user_name:tester_user_password:run_id:http:results_depth robot_suite.robot
Only test cases that are included in the test run run_id will be executed.
-
To execute tests from TestRail test run only with a certain status, for example "failed" and "blocked":
pybot --prerunmodifier TestRailPreRunModifier:testrail_server_name:tester_user_name:tester_user_password:run_ind:http:results_depth:failed:blocked robot_suite.robot
License
Apache License 2.0
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 robotframework-testrail-correct-link-1.1.tar.gz
.
File metadata
- Download URL: robotframework-testrail-correct-link-1.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11643390d47878a151997226f23724ac9e00fda0ca7f592ad06ea6138e937e11 |
|
MD5 | c30e2a4de0f2f6d59f0c581579b6ce73 |
|
BLAKE2b-256 | 68c2c0e597e3f61652c68de0bb3a7a9e40c80d62bd13e9eba4be4748a12acdd3 |
File details
Details for the file robotframework_testrail_correct_link-1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: robotframework_testrail_correct_link-1.1-py2.py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54fd5bf27e9e7fd117fc856230ced19168889ac2b7c7e434b6817911859f1991 |
|
MD5 | dd4899d19b37a435014936427187ad9c |
|
BLAKE2b-256 | 905a705872e2a79dfbd02c99ca04191dd0d2f1c3cb4c4e7ca773a948dce55317 |