Skip to main content

SetReportStatus

Description

Overrides final report status. Used in order to match a local test result with the report result.

The status will appear as a step in the generated report.

Parameters

NameValueDescription
statusString status with below valid values.



* Failed

* Skipped

* Passed
Test status to set
messageString error messageError message. Cause of failure.
stacktraceA string representation of exception stacktraceException stacktrace set

Usage

info

Replace <server> with the appropriate URL.

SetReportStatus

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

...
...

//show the list of recent apps
seetest.setReportStatus("skipped", "Failed to assert result");