SetShowPassImageInReport
Description
For each step in the test, a screenshot of the device is taken and added to that step in the report. If the test is long and complicated it has many steps and many images that need to be included in the report. The more images in the report the longer it takes the test to execute. If you want to download this report it occupies a lot of space and you might have difficulties sending it to other team members. This command lets remove the images off of steps that have passed leaving only those images of failed steps.
The main use case of this command is to reduce the time it takes a test to execute, reduce overall size of the report, and make it more readable.
Parameters
Name | Value | Description |
---|---|---|
showPassImageInReport | boolean | true - show images only for failed 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 of SetShowPassImageInReport
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
...
...
seetest.setShowPassImageInReport(false);
driver.findElement(By.xpath("//*[@text='Username']")).sendKeys("company");
driver.findElement(By.xpath("//*[@text='Password']")).sendKeys("company");
driver.findElement(By.xpath("//*[@text='loginButton']")).click();
// the next step will fail - the report will show an image only for this step
driver.findElement(By.xpath("//*[@text='logouButton']")).click();