So, i have a question about the “TakeScreenshot” function in web testing.
Right now, if i use the TakeScreenshot keyword, the screenshot is store in:
So, what i want, is to name the screenshot “SCREEN-1” but, store it in the “Reportname” folder. The “Reportname” folder has a timestamp name because it gets created, when the testsuite starts. So its a variable.
But then i get:
i/o error (java.io.FileNotFoundException: /Users/username/git////Reports//Testsuite/Reportname/SCREEN-1.jpg (No such file or directory)
and the SCREEN-1.jpg is stored in the Katalon main direction.
I also tried something like:
but nothing is working the way i want it. So i basically have two questions right now:
Is there a way to just “rename” the screenshot in the standard report folder?
Is there a way to get the “Reportname” variable (TIMESTAMP) and use it to store the screenshot right there?
Thanks for your help