Report Command
Description
Use this command to specify a custom step with data of your choice. It also allows you to specify whether the steps has passed or failed.
The report is the sum of all steps (closely linked with the commands that you issued during the test). Therefore you may want to inject custom steps and messages into the report in order to enrich the report and provide additional information that is not found in the report, or is printed to the console instead. The command also lets you decide whether the step has failed or passed.
If you mark a step as failed, the entire test is considered to have failed, even if the Appium test itself made it all the way to the end without any errors or exceptions.
Parameters
Name | Value | Description |
---|---|---|
Message | string | Message to show at the step. |
status | boolean | * True - step passed * False - step failed |
Example
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
Code snippet for Reports
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
....
....
seetest.report("THIS STEP HAS SUCCEEDED", true);
...
seetest.report("THIS STEP HAS FAILED", false);