New question #281172 on Sikuli:
https://answers.launchpad.net/sikuli/+question/281172

Hi,

I am trying to execute a code using HTMLTestRunner where HTMLTestRunner.py file 
is placed in the sikuli script folder.
But when i am trying to execute the below code,report file is getting generated 
but no data is available.
i.e. the html file contains a table which doesnt cotain any data.


from sikuli import *
import unittest
import HTMLTestRunner
Class ClassName(unittest.TestCase):
    Settings.UserLogs = True
    Debug.setUserLogFile("D:\log.xlsm")
    click("1453122484590.png")
    wait("search.png")
    type("calc"+Key.ENTER)
    wait("calc.png")
    Debug.user("start buton successful")
    for step in range(4):
        click(Pattern("calc.png").targetOffset(-80,30))
        click(Pattern("calc.png").targetOffset(37,62))
    
    click(Pattern("calc.png").targetOffset(77,46))
    wait(2)
    Debug.user("start buton successful")
suite = unittest.TestLoader().loadTestsFromTestCase(channel)
outfile = open("D:\\report.html", "wb") # path to report folder
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title=' Report Title', 
description='desc..' )
runner.run(suite)


Please Help..

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to