Forum Discussion
Hello javiercorrero ,
could you specify what test framework do you use? Or if you don't use it at all, then what you would like to achieve? So we can provide better support for you 🙂
Br,
Marek
- Balthazar4 years agoNew Contributor
Sorry to resurrect an old thread, but I have the same question.
How can I capture screenshots when running automated tests on bit bar and have the screenshots saved in my test results ? I use the code below to save screenshots in a folder called screenshots in my java project. This works when I run locally (phone plugged into laptop), but when I run in bit bar there are no screenshots in my test results.
File srcFiler = driver.getScreenshotAs(OutputType.FILE); FileUtils.copyFile(srcFiler, new File("screenshots/" + "getScreenshotAs" + ".png"));
- Balthazar4 years agoNew Contributor
I contacted support and they provided a solution. I am posting it here in case anyone else has the same issue. In the run-tests.sh file I needed to comment out the line below. If this line is not commented out, all images in the project's "screenshots" folder are deleted.
#rm -rf screenshots
Related Content
- 6 months ago
Recent Discussions
- 10 days ago
- 10 days ago