← Back to team overview

sikuli-driver team mailing list archive

[Question #226887]: [ImportError: No module named HTMLTestRunner

 

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

I am using the Sikuli X version from http://www.sikuli.org/download.html
Running the script below in Windows 7 64-bit, gave an error --> ImportError: No module named HTMLTestRunner

import unittest
import HTMLTestRunner #even if i changed it into from HTMLTestRunner import *

class MyTest(unittest.TestCase):
    def setUp(self):
        print 'This is set up method.'
    def testA(self):
        openApp("notepad.exe")
        wait("1357207372704-2.png") # wait until the app appears
        assert exists("1357207372704-2.png")
        print 'notepad existed - Passed'
    def testB(self):
        click("1357208112379-1.png")
        print 'notepad closed - Passed'
    def tearDown(self):
        print 'This is tear down method.'
        
suite = unittest.TestLoader().loadTestsFromTestCase(MyTest)
outputfile = open("C:\Report.html", "w")
runner = HTMLTestRunner.HTMLTestRunner(stream=outputfile, title='Test Report', description='This is demo' )


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