sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56059
Re: [Question #693855]: NameError name 'ClassName' is not defined
Question #693855 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693855
Status: Open => Answered
RaiMan proposed the following answer:
not correct Python:
suite = unittest.TestLoader().loadTestsFromTestCase(ClassName)
outfile = open(fileName, "w")
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title=' My report Title', description='Some desc..' )
runner.run(suite)
these lines must be outside the class context (no indent).
HTMLTestRunner need not be in your script folder since it is bundled
with SikuliX.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.