Testery CLI
The Testery CLI is available as a pip package here: https://pypi.org/project/testery/.
To install, run
pip install --upgrade testeryYou can see the command line help by running,
> testery --help
Usage: testery [OPTIONS] COMMAND [ARGS]...
Testery CLI
Kick off test runs from your CI/CD platform and run them on Testery's
next-generation, cloud-based testing grid.
Options:
--help Show this message and exit.
Commands:
add-file Adds a file to a test run.
cancel-test-run Cancels a test run.
create-deploy Creates a deploy for a project and...
create-environment Creates an environment where tests can be...
create-test-run Submits a Git-based test run to the Testery...
delete-environment Deletes an environment.
list-environments Returns a list of environments.
load-users
monitor-test-run
monitor-test-runs
report-test-run Outputs individual test results for the...
update-environment Updates an environment where tests can be...
upload-build-artifacts Uploads a file or directory of build...
verify-token Verifies your username and authentication...Create a Deployment
Creating a deployment is useful for telling Testery when you've pushed new code into your test environment. What tests you want to run can be configured with Schedules.
Create an Environment
Create a Test Run
Upload Build Artifacts
If your project is using a compiled language (like .Net, Java) or if you aren't attaching a code repository to your project, then you'll have to upload your build artifacts to Testery before you can run a test. To do that you can use the upload-build-artifacts command of the Testery CLI.
Report Test Run Results
The report-test-run command waits for a test run to finish and writes its individual test results to a file your CI system can publish as a test report. Use --output junit for JUnit XML (Azure DevOps PublishTestResults@2, Jenkins, GitLab) or the default sonarcube for the SonarQube generic test execution format.
With --fail-on-failure, the results file is written before the command exits with code 1, so a CI step that publishes it afterwards (with a condition such as always()) still has the file.
Example:
The JUnit file has one <testsuite> per test file, a <testcase> per test with its duration in seconds, and <failure>, <skipped> or <error> elements for tests that did not pass. See Azure DevOps Pipelines for a pipeline that publishes it.
Load Users
Use the load-users command to bulk-invite users into your Testery account. Each user is added with the USER role. This is useful when onboarding a team or organization.
The --user-file should point to a plain text file containing one email address per line:
For example:
Last updated
Was this helpful?