sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30448
[Question #261703]: HTMLTestRunner Import error
New question #261703 on Sikuli:
https://answers.launchpad.net/sikuli/+question/261703
I have read multiple questions regarding the subject. In the past I had this working on another pc, but now I cannot find solution so I am begging for help :)
I downloaded the HTMLTestRunner as suggested and put the HTMLTestRunner.py inside the .sikuli folder. My sikuli script looks like:
import unittest
import HTMLTestRunner
class BDTests(self):
def testAOpenBrowser(self):
import launchchrome
print("Open chrome done!")
suite = unittest.TestLoader().loadTestsFromTestCase(BDTests)
outfile = open("C:\\Users\\eraclis\\Documents\\Reports\\results.html","w")
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile,title='Test Report demo',description='Test description')
runner.run(suite)
Now when I try to run it I am getting:
[error] script [ testRunner ] stopped with error in line 2
[error] ImportError ( No module named HTMLTestRunner )
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.