A listener to automatically retry tests or tasks based on flags.
Project description
robotframework-retryfailed
A listener to automatically retry tests or tasks based on tags.
Installation
Install with pip:
pip install robotframework-retryfailed
Usage
Add the listener to your robot execution, via command line arguments.
When your tests do fail and you have tagged them with test:retry(2)
, it will retry the test 2 times.
Retry can be also set globally as a parameter to the listener.
Attaching Listener
Example:
robot --listener RetryFailed <your robot suite>
robot --listener RetryFailed:1 <robot suite>
Second one will by default retry once every failing test.
Tagging Tests
Example:
*** Test Cases ***
Test Case
[Tags] test:retry(2)
Log This test will be retried 2 times if it fails
Tagging tasks by task:retry(3)
should also work.
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-retryfailed-0.2.0.tar.gz
.
File metadata
- Download URL: robotframework-retryfailed-0.2.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c134a924f480e2666916bcb019a7e255d7229bc51a3747e849bd1e7931ed6eb3 |
|
MD5 | 410ab1f124bdc2d2505851a4c171be09 |
|
BLAKE2b-256 | 4b994ffc2253cbff664c93f4fe63663a0d0a68862c7bbe40aea6f324fd371ef3 |
File details
Details for the file robotframework_retryfailed-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: robotframework_retryfailed-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b389dadb446a4d7356d7e953aabfdf2b0497d51df11d3da80abe9d4a8a0992c3 |
|
MD5 | cc9053dc3f9c236ff960384548ea98be |
|
BLAKE2b-256 | 2480144bca38aa894ec876f7943d3fd62fa57d9be937cc0be9e5d7e3df9837e3 |