sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13934
Re: [Question #212372]: How to get the test reports after running the sikuli scripts
Question #212372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/212372
Status: Answered => Open
naveen is still having a problem:
I written below like this ,but my script was not running
from sikuli import *
import unittest
import HTMLTestRunner
class channel(unittest.Testcase):
def setUp(self):
doubleClick("wu.png")
sleep(2)
find("1349761887724.png")
type("1349762096056.png", "guest")
type("1349761905053.png", "guest")
click("1349761920585.png")
sleep(9)
def testA(self):
click("DeviceManage.png")
sleep(1)
click("1349860580669.png")
hover("NetworkIscRe.png")
m=find("1349860624068.png")
for i in range(2):
m.highlight(2)
wait(1)
popup("RPM available")
assert exists("1351242204129.png")
def tearDown(self):
#assert exists("1351242204129.png")
popup("test case excuted")
click("1349774954074.png")
suite = unittest.TestLoader().loadTestsFromTestCase(channel)
outfile = open("C:\\Sikuli\\Reports\\report.html", "wb") # path to report folder
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title=' Report Title', description='desc..' )
runner.run(suite)
outfile.close()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.