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
Name | Value | Description |
---|---|---|
status | String status with below valid values. * Failed * Skipped * Passed | Test status to set |
message | String error message | Error message. Cause of failure. |
stacktrace | A string representation of exception stacktrace | Exception stacktrace set |
Usage
info
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
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");