Robot Framework plugin for sync and report test to testomat.io
Project description
Testomat.io plugin for Robot Framework
A powerful plugin that integrates your tests with Testomat.io platform for test management, reporting and analytics
Features
- ✅ Sync tests with testomat.io
- 📊 Real-time test execution reporting
Uses testomat.io API:
- https://testomatio.github.io/check-tests/ - for sync
- https://testomatio.github.io/reporter/ - for reporting
Table of Contents
Installation
Prerequisites:
- Python 3.10+
- Robot Framework 4.0+
- Active testomat.io account
Install via pip:
pip install robot-framework-reporter
Quick Start
Get your API token
- Login to Testomat.io
- Create project or go to existing project
- Click on "Import Tests from Source Code"
- Copy your project token(starts with "tstmt_")
Sync tests
Synchronize tests to Testomat.io using ImportListener:
TESTOMATIO=your_token robot --listener reporter.listener.ImportListener path/to/tests
Report tests
Execute tests and send results to Testomat.io using ReportListener:
TESTOMATIO=your_token robot --listener reporter.listener.ReportListener path/to/tests
Example of test
After importing tests to Testomat.io, each test is automatically assigned a unique Test ID.
Testomat.io Test ID is a string value that starts with @T and contains 8 characters after.
Test ID is appended to the test name:
*** Test Cases ***
Test Addition @T96c700e6
[Documentation] Check addition of two numbers
[Tags] math positive
${result}= Evaluate 10 + 5
Should Be Equal As Numbers ${result} 15
Before import (original test):
*** Test Cases ***
Test Addition
[Documentation] Check addition of two numbers
[Tags] math positive
${result}= Evaluate 10 + 5
Should Be Equal As Numbers ${result} 15
After import (with Test ID):
*** Test Cases ***
Test Addition @T96c700e6
[Documentation] Check addition of two numbers
[Tags] math positive
${result}= Evaluate 10 + 5
Should Be Equal As Numbers ${result} 15
💡 Note: Test ID is added automatically to the test name when using
ImportListener. You don't need to add them manually.
Advanced Usage
Testomat.io integration with Robot Framework is implemented through the Listener Interface. Currently, two Listeners are available:
- ImportListener. Used for synchronizing tests with Testomat.io
- ReportListener. Used for reporting test results to Testomat.io
Basic Configuration
Listeners can be configured through parameters or environment variables. Each Listener has its own configuration options, which are described in the corresponding sections.
💡 Note: Parameters and environment variables configure different aspects of the Listener's behavior. Each configuration option is available through only one method - either as a parameter or as an environment variable, not both.
Common Environment Variables
Both Listeners use the following environment variables:
| Variable | Description | Required | Default |
|---|---|---|---|
TESTOMATIO |
API key for accessing Testomat.io | ✅ Yes | - |
TESTOMATIO_URL |
Testomat.io server URL | ❌ No | https://app.testomat.io |
TESTOMATIO_REQUEST_INTERVAL |
Interval between requests to Testomat.io in seconds | ❌ No | 5 |
TESTOMATIO_MAX_REQUEST_FAILURES |
Max attempts to send request to Testomat.io | ❌ No | 5 |
Import Listener
Used for importing tests to Testomat.io.
Import Listener Configuration
Environment variables
| Variable | Description | Required | Default |
|---|---|---|---|
TESTOMATIO_IMPORT_DIRECTORY |
Specifies directory where tests will be imported | ❌ No | None |
Listener Parameters
| Parameter | Description | Required | Type | Default |
|---|---|---|---|---|
| remove_ids | Remove all test ids from source code | ❌ No | bool |
False |
| no_detach | Disables detaching tests on Testomat.io | ❌ No | bool |
False |
| no_empty | Removes empty suites on Testomat.io | ❌ No | bool |
False |
| create | Use to import Test ids set in source code into another project | ❌ No | bool |
False |
| structure | Force to keep original file structure | ❌ No | bool |
False |
Clean Test IDs
If you want to import the synced project as new project, you have to clean the test ids. To clean up test ids use remove_ids parameter:
TESTOMATIO=your_key robot --listener reporter.listener.ImportListener:remove_ids=1 path/to/tests
This method may be unsafe, as it cleans all @T* tags from tests names. So if you have a tag like @Test1234 in test name this may also be removed. If you use this option make sure if all the test titles a proper before committing the tests in GIT.
Detaching tests
If a test from a previous import was not found on next import it is marked as "detached". This is done to ensure that deleted tests are not staying in Testomatio while deleted in codebase.
To disable this behavior and don't mark anything on detached on import use no_detach parameter:
TESTOMATIO=your_key robot --listener reporter.listener.ImportListener:no_detach=1 path/to/tests
Removing empty suites
If tests were marked with IDs and imported to already created suites in Testomat.io newly imported suites may become empty. Use no_empty parameter to clean them up after import.
TESTOMATIO=your_key robot --listener reporter.listener.ImportListener:no_empty=1 path/to/tests
This prevents usage structure parameter.
Keep Test IDs between projects
To import tests with Test IDs set in source code into another project use create parameter. In this case, a new project will be populated with the same Test IDs.
TESTOMATIO=your_key robot --listener reporter.listener.ImportListener:create=1 path/to/tests
Keep structure
When tests in source code have IDs assigned and those tests are imported, Testomat.io uses current structure in a project to put the tests in. If folders in source code doesn't match folders in Testomat.io project, existing structure in source code will be ignored. To force using the structure from the source code, use structure parameter on import:
TESTOMATIO=your_key robot --listener reporter.listener.ImportListener:structure=1 path/to/tests
Report Listener
Used for reporting test results to Testomat.io. By default, sends test results in batches after each test suite completes.
Report Listener Configuration
Environment variables
| Variable | Description | Required | Default |
|---|---|---|---|
TESTOMATIO_DISABLE_BATCH_UPLOAD |
Disables batch uploading and uploads each test result one by one | ❌ No | False |
TESTOMATIO_BATCH_SIZE |
Changes size of batch for batch uploading. Maximum is 100. | ❌ No | 50 |
TESTOMATIO_RUN |
Id of existing test run to use for sending test results to | ❌ No | None |
Listener Parameters
Currently, has no parameters
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robot_framework_reporter-0.1.0.tar.gz.
File metadata
- Download URL: robot_framework_reporter-0.1.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16e68b1ed82b01c9c7de958c9b435c3949fe73afb1d5b4d7a150ba1718d6acbe
|
|
| MD5 |
25477a5a1556d4244144988c250f0568
|
|
| BLAKE2b-256 |
1594bc82124c301b9a20a7befdd7d55faa1c8001356a2bed9d512ceb0dc2cfa4
|
Provenance
The following attestation bundles were made for robot_framework_reporter-0.1.0.tar.gz:
Publisher:
main.yml on testomatio/robot-framework-reporter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
robot_framework_reporter-0.1.0.tar.gz -
Subject digest:
16e68b1ed82b01c9c7de958c9b435c3949fe73afb1d5b4d7a150ba1718d6acbe - Sigstore transparency entry: 736854369
- Sigstore integration time:
-
Permalink:
testomatio/robot-framework-reporter@1e36b41858afe904b428803016ece6164299f012 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/testomatio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@1e36b41858afe904b428803016ece6164299f012 -
Trigger Event:
release
-
Statement type:
File details
Details for the file robot_framework_reporter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: robot_framework_reporter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
493d4a239e944ca338fe8d3fad14d0a82fd242955714579a99322c710ec29487
|
|
| MD5 |
0e80557e49e6c068e0393446897b3bc0
|
|
| BLAKE2b-256 |
3968f622a3a0d615db4ad67e10d9176ef63d80d8d9adcf3256838ca64b8b0599
|
Provenance
The following attestation bundles were made for robot_framework_reporter-0.1.0-py3-none-any.whl:
Publisher:
main.yml on testomatio/robot-framework-reporter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
robot_framework_reporter-0.1.0-py3-none-any.whl -
Subject digest:
493d4a239e944ca338fe8d3fad14d0a82fd242955714579a99322c710ec29487 - Sigstore transparency entry: 736854376
- Sigstore integration time:
-
Permalink:
testomatio/robot-framework-reporter@1e36b41858afe904b428803016ece6164299f012 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/testomatio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@1e36b41858afe904b428803016ece6164299f012 -
Trigger Event:
release
-
Statement type: