Selenium

Integrating Selenium with TestQuality via the TestQuality Command Line Interface (CLI)

The TestQuality Command Line Interface allows you to upload your automated test results from Selenium to TestQuality. Automated test results must be output in JUnit XML format, which most test automation tools will provide. Test result attachments and related defects are also supported through test name tags or console outputs.

For DEFECTS we expect the following tag format for both test name tags and console ouptuts.

  • GitHub Defects [[DEFECT|22]]
  • Jira Defects [[DEFECT|TQ-123]]

For ATTACHMENTS the following format is expected:

  • Attachments from test name tag [[ATTACHMENT|ScreenshotFileName.png]]
  • Attachments from console output [[ATTACHMENT|path/to/file]]

Note that for attachment test name tag usage you will neet to use 'run_result_output_dir' option to specify the test result output directory.

Download TestQuality Command Line Interface

Download CLI tools from http://cli.testquality.com/

CLI tools are available for Windows, MacOS, Linux, and Alpine.

Requirements

In order to upload xml you will need to:

  1. Create a target Test Plan
  2. Authenticate with TestQuality
  3. Run command to upload files

Compiled Commands

There are compiled commands for

  • Windows
  • MacOS
  • Linux
  • Alpine
Commands can be downloaded from cli.testquality.com

Note: For alpine you must install libstdc++
apk add –no-cache libstdc++

Usage

For list of commands

yarn start –help
or
testquality-macos –help

For command help

yarn start login –help
or
testquality-macos login –help

Save

Include –save to save tokens to use with other commands.

Example

Example workflow.

testquality-macos login larry@bitmodern.com *password* –save
testquality-macos upload_test_run 'sampleXml/*.xml' –project_name=Test –plan_name=Test

You can also create a manual test plan run.

testquality-macos create_manual_run –project_name=My_Project –plan_name=My_Test_Plan –run_name=Test_Run_Name

CSV Files

testquality-macos upload_csv ./test_run_results.csv –cf ./test_run_results.config





Cookies
This website stores cookies on your computer to improve your website experience and provide more personalized services to you. To find out more about, see our Privacy Policy
Cookies
Cookie Settings
Cookies necessary for the correct operation of the site are always enabled.
Other cookies are configurable.
Essential cookies
Always On. These cookies are essential so that you can use the website and use its functions. They cannot be turned off. They're set in response to requests made by you, such as setting your privacy preferences, logging in or filling in forms.
Analytics cookies
Disabled
These cookies collect information to help us understand how our Websites are being used or how effective our marketing campaigns are, or to help us customise our Websites for you. See a list of the analytics cookies we use here.
Advertising cookies
Disabled
These cookies provide advertising companies with information about your online activity to help them deliver more relevant online advertising to you or to limit how many times you see an ad. This information may be shared with other advertising companies. See a list of the advertising cookies we use here.