Legacy | End test
-
Command: test
-
Subcommand: end
-
Supported Platforms: Native (legacy), UFT (legacy), Selenium
All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.
-
Supported OS: Android, iOS
Description
Notifies the reporting service that the test execution has finished and the status to report for the test.
See also the Start test command.
Parameters
Name | Value | Default | Description |
---|---|---|---|
success |
true (True) false (False) |
The defined test status. True - successful status will be displayed in the Single Test Report False - failure status will be displayed in the Single Test Report |
|
failureDescription |
The failure description to display in case of a failure. |
||
tags |
The test tags, separated by semicolons. Tags are freestyle text used for filtering in the Reporting app. For example, "AndroidNativeAppTests;ValidateLogin" |
||
customFields |
Provides sets of [name, value] pairs to associate with this test run. Format of the pair is: name=value. |
||
failureReason |
Provide the reason name (from the configured list of strings) that best classifies the test failure. |
* Mandatory parameter
Request & Response
Request
https://mycloud.perfectomobile.com/services/executions/johnt_controller_17-02-23_10_41_28_9?operation=command&securityToken=<your_token>&command=test&subcommand=end¶m.success="true"
JSON response
"reportPdfUrl": "http://localhost:8082/export/api/v1/test-executions/pdf?externalId[0]=johnt_controller_17-02-23_10_41_28_9",
"executionId": "johnt_controller_17-02-23_10_41_28_9",
"reason": "Success",
"testGridReportUrl": "http://localhost:3000?TENANTID=10000001&externalId[0]=johnt_controller_17-02-23_10_41_28_9",
"singleTestReportUrl": "http://localhost:8080/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/170223/controller_17-02-23_10_41_28_9.xml&ownerId=johnt@perfectomobile.com&sharingCode=c6f3b25c-2c46-4060-a32c-167b397b0506",
"description": "Success",
"reportKey": "PRIVATE:controller/170223/controller_17-02-23_10_41_28_9.xml",
"completed": "true",
"flowEndCode": "SUCCEEDED"