Qase Pytest Reporter is configured in multiple ways:
- using a config file
qase.config.json
- using environment variables
- using command line options
Environment variables override the values given in the config file, and command line options override both other values.
Description | Config file | Environment variable | CLI option | Default value | Required | Possible values |
---|---|---|---|---|---|---|
Common | ||||||
Main reporting mode | mode |
QASE_MODE |
--qase-mode |
testops |
No | testops , report , off |
Fallback reporting mode | fallback |
QASE_FALLBACK |
--qase-fallback |
report |
No | testops , report , off |
Execution plan path | executionPlan.path |
QASE_EXECUTION_PLAN_PATH |
--qase-execution-plan-path |
./build/qase-execution-plan.json |
No | Any string |
Qase environment | environment |
QASE_ENVIRONMENT |
--qase-environment |
local |
No | Any string |
Root suite | rootSuite |
QASE_ROOT_SUITE |
--qase-root-suite |
No | Any string | |
Debug logs | debug |
QASE_DEBUG |
--qase-debug |
false | No | true , false |
Qase TestOps mode configuration | ||||||
Qase project code | testops.project |
QASE_TESTOPS_PROJECT |
--qase-testops-project |
Yes | Any string | |
Qase API token | testops.api.token |
QASE_TESTOPS_API_TOKEN |
--qase-testops-api-token |
Yes | Any string | |
Qase API host | testops.api.host |
QASE_TESTOPS_API_HOST |
--qase-testops-api-host |
qase.io |
No | Any string |
Title of the Qase test run | testops.run.title |
QASE_TESTOPS_RUN_TITLE |
--qase-testops-run-title |
Automated Run {current date and time} |
No | Any string |
Description of the Qase test run | testops.run.description |
QASE_TESTOPS_RUN_DESCRIPTION |
--qase-testops-run-description |
None, leave empty | No | Any string |
Create test run using a test plan | testops.plan.id |
QASE_TESTOPS_PLAN_ID |
--qase-testops-plan-id |
None, don't use plans for the test run | No | Any integer |
Complete test run after running tests | testops.run.complete |
QASE_TESTOPS_RUN_COMPLETE |
--qase-testops-run-complete |
True |
No | true , false |
ID of the Qase test run to report results | testops.run.id |
QASE_TESTOPS_RUN_ID |
--qase-testops-run-id |
None, create a new test run | No | Any integer |
Batch size for uploading test results | testops.batch.size |
QASE_TESTOPS_BATCH_SIZE |
--qase-testops-batch-size |
200 | No | 1 to 2000 |
Create defects in Qase | testops.defect |
QASE_TESTOPS_DEFECT |
--qase-testops-defect |
False , don't create defects |
No | True , False |
Qase Report mode configuration | ||||||
Local path to store report | report.connection.path |
QASE_REPORT_CONNECTION_PATH |
--qase-report-connection-path |
./build/qase-report |
No | Any string |
Report format | report.connection.format |
QASE_REPORT_CONNECTION_FORMAT |
--qase-report-connection-format |
json |
No | json , jsonp |
Driver used for report mode | report.driver |
QASE_REPORT_DRIVER |
--qase-report-driver |
local |
No | local |
Framework specific options | ||||||
Pytest | ||||||
Capture logs | framework.pytest.captureLogs |
QASE_PYTEST_CAPTURE_LOGS |
--qase-pytest-capture-logs |
False |
No | true , false |
XFail status for failed tests | framework.pytest.xfailStatus.xfail |
QASE_PYTEST_XFAIL_STATUS_XFAIL |
--qase-pytest-xfail-status-xfail |
Skipped |
No | Any string |
XFail status for passed tests | framework.pytest.xfailStatus.xpass |
QASE_PYTEST_XFAIL_STATUS_XPASS |
--qase-pytest-xfail-status-xpass |
Passed |
No | Any string |
Earlier versions | ||||||
qase-pytest v5.x | ||||||
TestOps bulk (always on since v6) | testops.bulk |
QASE_TESTOPS_BULK |
--qase-testops-bulk |
True |
No | true , false |
Execution chunk size (changed to batch.size ) |
testops.chunk |
QASE_TESTOPS_CHUNK |
--qase-testops-chunk |
200 | No | 1 to 2000 |