Skip to main content

SetShowPassImageInReport Command

Description

For each step in the test, an screenshot of the device is taken and added to that step in the report. If the test is long and complicated it will have many steps and many images that will need to be included in the report. The more images in the report the longer it will take the test to execute. If you wanted to download this report it would occupy 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.

Parameters

NameValueDescription
showPassImageInReportbooleantrue - show images only for failed steps, false - show images for all steps

Usage

The main usage 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.

Example

info

Replace <server> with the appropriate URL.

Usage of SetShowPassImageInReport

driver = new IOSDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);

....
....

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();

Example Report