SetShowReport
Description
This command allows you to choose which steps appear in the report and which steps are excluded.
If there are steps whose presence in the report is not crucial, call the command before they occur and then call the command again to include subsequent steps. For example, if you issue a driver navigate command or if you issue a command that is not directly related to the test such getting device logs, these commands are not so valuable for your test.
In the Video Report, skipped steps are skipped from the video itself. That means step images are not collected when this is set to false.
Parameters
Name | Value | Description |
---|---|---|
showReport | boolean | true (default) - show steps |
Example
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
Usage od ShowReport Command
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
...
...
seetest.setShowReport(false); //exclude the step from the test
driver.get("https://seetest.io");
seetest.setShowReport(true); //include subsequent steps in the test