sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56334
[Question #694740]: Having issue using Htmltestrunner and unittest in Sikuli IDE 1.1.3
New question #694740 on Sikuli:
https://answers.launchpad.net/sikuli/+question/694740
I am getting this error message when I try to run test. I am pretty with using Sikuli and python for testing. I would appreciate the help. Here is my code. I commentedout some of the lines to see if it would run if I made some adjustments.
Here is the error message I'm getting:
[error] Error caused by: Traceback (most recent call last): File "C:\SikuliX\TestHtmlRunner.sikuli\TestHtmlRunner.py", line 57, in <module> unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(output='C:\\Sikuli')) File "C:\Users\ali.ahmed\AppData\Roaming\Sikulix\Lib\unittest\main.py", line 95, in __init__ self.runTests() File "C:\Users\ali.ahmed\AppData\Roaming\Sikulix\Lib\unittest\main.py", line 234, in runTests sys.exit(not self.result.wasSuccessful()) SystemExit: False
Code Below:
import os
import sys
import time
import shutil
dir="C:\\SikuliX"
if not dir in sys.path: sys.path.append(dir)
#from XMLTestRunner1 import *
#import xmlrunner
#reload(xmlrunner)
#from xmlrunner import *
import unittest
reload(unittest)
import utils
reload(utils)
#fp=file(os.path.join(dir,"UI_TestReport.html"),"wb")
import HTMLTestRunner
reload(HTMLTestRunner)
Debug.on(0);
class Test(unittest.TestCase):
def setUp(self):
utils.openApplication()
Debug.info('Setup Called')
if __name__ == '__main__':
unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(output='C:\\Sikuli'))
#suite= unittest.TestLoader().loadTestFromTestCase(Test)
#runner= HTMLTestRunner.HTMLTestRunner(stream =fp,verbosity=3,dirTestScreenshots=dir)
#runner.run(suite)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.