Configurations will be read from environment variables, and properties file in this order.
-
TESTOPS_SERVER_URLKatalon TestOps endpoint (default:
https://testops.katalon.io). -
TESTOPS_API_KEYYour Katalon TestOps API Key.
-
TESTOPS_PROJECT_IDThe Katalon TestOps project that will receive the test results.
-
TESTOPS_REPORT_FOLDERThe local directory where test results will be written to (default:
testops-report). -
TESTOPS_PROXY_SERVER_TYPE -
TESTOPS_PROXY_HOST -
TESTOPS_PROXY_PORT -
TESTOPS_PROXY_USERNAME -
TESTOPS_PROXY_PASSWORD
Create a testops-config.json file in the top-level directory.
{
// Default value: https://testops.katalon.io
"basePath": "",
"apiKey": "",
"projectId": "",
// Default value: testops-report
"reportFolder": "",
"proxy": {
"protocol": "", // Value: http, https
"host": "",
"port": "",
"auth": {
"username": "",
"password": ""
}
}
}
python3 -m pip install testops-report
- Add testops-pytest listener to conftest.py file
pytest_plugins = ["testops_pytest.listener", ]
- OR follow pytest docs for adding testops-pytest listener in the way of your choice.
https://github.com/katalon-studio-samples/testops-pytest-sample