Excuse me,
I want only one image to be displayed in one command.
- Create iOS automate test script, I use Mobile.takeScreenshot(’/Users/…/Login1.png’)
- Create test suite and run with iOS
- On report has 2 images
14:22:10.393 PASSED Tapped on element ‘Object Repository/TestLogin/XCUIElementTypeStaticText - Log Out’
TEST STEP: takeScreenshot("/Users/…/Login1.png")
Start / End / Elapsed: 2021-07-19 14:22:10.394 / 2021-07-19 14:22:10.520 / 00:00:00.126
14:22:10.514 PASSED Screenshot is taken
(This show image)
14:22:10.515 PASSED Screenshot is taken
(This show image)
Hi @jutarat.n Do you have any answere? i have same same issue with your problem
Hi, same with me.
when run test suite and open pdf report, I look 2 same screenshot.
anyone have clue or solution for this?
Hello,
Same for me here.
Katalon Studio version 9.0.0.212 running on Linux.
Tests run on Chrome using ChromeDriver 118.0.5993.70
After exporting test report as PDF, I have sometimes two images for a single WebUI.takeScreenshot() call.
It seems that it happens only for screenshots taken on subtest cases (called from parent test case using WebUI.callTestCase()).
How is the HTML report? Do you find two images in the HTML report as well?
Looking at HTML report I was able to see detail of sub-test cases and found that in fact there’s no duplicate screenshot taken.
In fact, I used WebUI.verifyElementPresent(to, timeout, FailureHandling.OPTIONAL) on some if condition and while loop. That fails sometimes and then, a screenshot is taken due to enabled option “Take Screenshot when execution failed” in Project > Settings > Execution.
My mistake, in the end it’s not an issue
Thank you for your help @kazurayam .