Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: FEST-Swing 1.2a2
-
Fix Version/s: None
-
Component/s: Swing
-
Labels:None
-
Number of attachments :
Description
"ScreenshotOnFailureListenerTest " class seems to be capable of taking screen shot only once in test failure for a method, when I combine this with data driven testing of TestNG, my test execution is aborted as FEST tries to save another image on same path, and I get exception like this -
*******************
Exception in thread "main" org.fest.util.FilesException: Unable to create the new file 'D:\Workspace\FunctionLibrary\reportng\SelTestAutomation Results\com.test.newtest.Login.login.png': a file was found with the same path
*******************
This happens cause "screenshotFileName" method would create same file name again and eventually fail in saving another image with same name in that location. May be we we could append UUID with it to make it unique for each instance of failure.
I could not find an url to browser source code locally and modify this method and build FEST for me, Could any one plase direct me to source core url?
Thanks in Advance,
Tarun K
I looked at the source code, and we are including the parameter values as part of the name of the screenshot file. At this point I'm confused if this is still a bug
You can find information about how to get the source code at http://code.google.com/p/fest/wiki/Source?tm=4 . If you'd like to browse the code, the URL is http://fisheye2.atlassian.com/changelog/fest
It would help me a lot if you could please attach a failing test.
Regards,
-Alex