TP_DEV_TOKEN
.TP_AGENT_URL
environment variable to the correct Agent address.cloud:URL
should be set, for example:my_tests.py
module in the e2e_tests/chrome
package will be reported with a project name e2e_tests.chrome
and job name my_tests
.my_tests.py
module in the e2e_tests/chrome
package will be reported with a project name chrome
and job name my_tests
.@report
decorator:When the Agent is offline, and only a _cloud_ report is requested, execution will fail with appropriate message.
quit()
command is called on the driver. This behavior can be overridden or disabled (see the Disabling Reports section below).@report
decorator:driver.report().test()
:driver.report().step()
:driver.report().test()
:driver.report().step()
:***
) in the report. Elements are considered sensitive if they:type
with value password
(all browsers and platforms)XCUIElementTypeSecureTextField
(iOS / XCUITest only)quit()
quit()
method of your TestProject driver object at the end of every test that uses the TestProject SDK.quit()
, the SDK will send all remaining report items to the Agent, ensuring that your report on the TestProject platform is complete.quit()
is called at the end of the test, even when an error occurred during test execution:logging
framework built into Python. The default logging level is INFO
and the default logging format is %(asctime)s %(levelname)s %(message)s
, which results in log entries formatted like this:13:37:45 INFO Using http://localhost:8585 as the Agent URL
TP_LOG_LEVEL
and / or TP_LOG_FORMAT
environment variables, respectively, to the desired values