← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #203495]: Reporting

 

Question #203495 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203495

    Status: Needs information => Open

Ankit Jain gave more information on the question:
I need HTML report for the below script.

import unittest
import HTMLTestRunner
class TestA(unittest.TestCase):
    def setUp(self):
        openApp("C:\\Program Files\\Microsoft Office\\Office14\\WINWORD.EXE")
        while not exists("Pr00fGuru-1.png"):
            sleep(5)
click("Pr00fGuru.png")
click("Starthacking.png")
while not exists("SignInEmailI.png"):
    sleep(5)
click("EmailID.png")
type("ankit@xxxxxxxxxxxxx\t")
type("testing")
click("1342006158928.png")
while not exists("DocumenttcCh.png"):
    sleep(5)
click("1342006353152.png")
wait(2)
click("1342006421355.png")
wait(4)
type("JDBC Parameterization\n")
click("Tra.png")
click("li_Ul.png")
click("1342007231083.png")
while not exists("Selectasugge.png"):
    sleep(5)
for x in findAll("1342007467656.png"):
    click(x)
wait(1)
click("E.png")
exists("__SIKULI-CAPTURE-BUTTON__")
while not exists("Selectssugge.png"):
    sleep(5)
click("1342070753716.png")
wait("Doyouwacance.png",7)
click("Yes.png")
wait("CheckingDocu.png",7)
click("OK.png")
def testrun(self):
        print("ABC")
suite=unittest.TestLoader().LoadTestsFromTestCase(TestA)
outfile=open("c:\testreport.html","wb")
runner=HTMLTestRunner.HTMLTestRunner(stream=outfile,title='test report',description='demo')
runner.run(suite)
outfile.close()

i m always getting same error
ft1.1: Traceback (most recent call last):
  File "C:\Users\ankit\AppData\Local\Temp\sikuli-tmp3018902706987125602.py", line 13, in setUp
    click("EmailID.png")
FindFailed: FindFailed: can not find EmailID.png on the screen.
  Line 7, in file C:\Users\ankit\AppData\Local\Temp\sikuli-tmp3018902706987125602.py

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