Skip to main content

Report

Description

Use this command to specify a custom step with data of your choice. It also allows you to specify whether the steps passed or failed.

Parameters

NameValueDescription
MessagestringMessage that you want the step to show. Can be any string that you specify.
statusboolean* True - step has passed

* False - step has failed

Usage

Because the report is the sum of all steps (closely linked with the commands that you issued during the test), 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

Be cautious when setting a step as failed. Doing so will mark the whole test as failed, even if the Appium test itself made it all the way to the end without any errors or exceptions.

Example

info

Replace <server> with the appropriate URL.

Code snippet for Reports

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");

...
...
seetest.report("THIS STEP HAS SUCCEEDED", true);
...
seetest.report("THIS STEP HAS FAILED", false);