New question #242649 on Sikuli:
https://answers.launchpad.net/sikuli/+question/242649

Hi RaiMan,
I am using Sikuli r930 version on Windows 7 machine.
I am using sikuli for automation.Its helping a lot in our work.
I want to achieve:
I execute the python scripts from sikuli on a device ( windows mobile) and 
using HTMLTestRunner also.
HTMLTestRunner takes screenshot for failure case and redirects all print 
statements to HTML report.
I redirected to stdout also for my purpose.
I want to get the screenshots for each step, whether it is pass/fail/error to 
stdout as well as in report also.
For Example:
try:
   click("start.png")
   print "start found"
   assert True
except:
   print "Start NOT found"
   assert False
try:
   click("menu.png")
   print "menu found"
   assert True
except:
   print "menu NOT found"
   assert False
In this example , I want screenshot for each step ( pass/fail/error)  in stdout 
and in report also,
like ,
pt1.1 : start found
           screenshot
           menu found
           screenshot, etc..
 because I want to track the device status after each step.
I am running sikuli from eclipse.So, In eclipse stdout part also I want the 
screenshots after each step.

I tried modifying HTMLTestRunner.py , but no success.

One doubt is  that what happens exactly when execution went to 'assert False'  
statement?
which function  will it  call in HTMLTestRunner?
Once one 'assert False' statement occured means , will the script exits or will 
it proceed to next  statemet?
How many failure images can be taken?


Please suggest how to proceed for this , its helps a lot.
Thanks in advance.






-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to