RobotFramework Testrail
Short Description
Robot Framework library, listener and pre-run modifier for working with TestRail.
Installation
pip install robotframework-testrail
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.robotTest 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.robotOnly 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
Metadata
Release files for robotframework-testrail 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robotframework-testrail-2.0.1.tar.gz | 10.7 kB | Without provenance | Details for robotframework-testrail-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robotframework_testrail-2.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for robotframework_testrail-2.0.1-py2.py3-none-any.whl |
Total release size: 27.5 kB
Release files / robotframework-testrail-2.0.1.tar.gz
| Download URL | robotframework-testrail-2.0.1.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ac49742eceb0c1d787ebf7984090ccd72bbe28c8f08a615fb4640f3d43d2c95
|
|
BLAKE2b-256 checksum How to use checksums |
01e8a317619d45a00ff9e586e9af8acb824b787f138b707c745b50e92c413910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
|
Release files / robotframework_testrail-2.0.1-py2.py3-none-any.whl
| Download URL | robotframework_testrail-2.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
283debcc6c6ee7ae3cbbb880ad88fff3f98adde9ac6d3c29becef1f94aac9119
|
|
BLAKE2b-256 checksum How to use checksums |
e29692877d4440b3768bd150ea80e1fbc646e4aa04c5b439a8610d06b6693f3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
|
Security for robotframework-testrail 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.