Skip to main content

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.

warning

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

NameValueDescription
MessagestringMessage to show at the step.
statusboolean* True - step passed

* False - step failed

Example

info

Replace <server> with the appropriate URL.

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);