Page tree
Skip to end of metadata
Go to start of metadata

Description

This command allows you to choose which steps will appear in the report and which steps will be excluded.

In the Video Report, skipped steps will also be skipped from the video itself i.e. step images will not be collected during setShowReport(false) mode.


Parameters

NameValueDescription
showReportbooleantrue (default) - show steps, false - steps will not be shown

Usage

If there are steps whose presence in the report is not crucial, you can 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. You can exclude them with the use of setShowReport.


Example


Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.

  • For SeeTest cloud, EXPERITEST_URL needs to be https://cloud.seetest.io:443/wd/hub
  • For Dedicated Experitest Lab, EXPERITEST_URL needs to be your own domain. e.g - https://company.experitest.com/
Usage od ShowReport Command
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), 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


  • No labels