← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #203274]: Some script is not getting executed when using HTMLTestRunner.

 

Question #203274 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203274

Description changed to:
import unittest
import HTMLTestRunner

class BDTests(unittest.TestCase): 
    def setUp(self):
        App.open("C:\\Program Files\\Internet Explorer\\iexplore.exe www.proofguru.com")
        wait("EmailID.png") # wait until the app appears

    def testA(self):
        click("lIIIGIIIl.png")
        type("emailid")
        type("password")
        click("1342006035181.png")
        wait("Home-1.png")  
        print("pass")
            
suite = unittest.TestLoader().loadTestsFromTestCase(BDTests)
outfile = open("C:\\Sikuli\\Reports\\loginpass.html", "w")
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title='Login_Pass Report', description='Login' )
runner.run(suite)

My problem is that whatever i am writing below
click("1342006035181.png") statement in testA function is not getting
executed and its working fine when replacing last 3 lines with
"unittest.TextTestRunner(verbosity=2).run(suite)" statement.

what may be the issue??
Please help.

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