sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #52401
Re: [Question #680261]: Display expected image when test fails in HTML test report --- not a feature
Question #680261 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680261
RaiMan posted a new comment:
as mentioned:
add some support feature to your script code that stores the information in a way you can access it then in the HTMLReport modul.
the base is the FindFailed handler feature:
def ffhandler(event):
print "in handler"
print event.getImage().getFilename()
# store this info somewhere
event.setResponse(FindFailedResponse.ABORT) # finally abort
# this will register the handler with every newly defined region
setFindFailedHandler(ffhandler)
# if you need it for undotted find/wait/exist/click/... additionally use once
SCREEN.setFindFailedHandler(ffhandler)
If you have questions - come back
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.