Question #669554 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/669554
yop gave more information on the question: OKy i find the first problem. In my script my Syspath is in another folder ...that was the problem ..thanks Rainman. But now the script start the first step and after ..nothing... The "utils_XOM_DisplayResolutions.Res1280x800()" is executed but the next Step "def test_TC_02_02_Res1600x900_UI_Elements_ToolsBar_Flag(self):" not. ---> Problem of "Unittest import, "HtmltestRunner" ? My Script is : from sikuli import * import org.sikuli.script.ImagePath import os import sys import time import shutil import subprocess dir = "/opt/TEST_XOM/01_TestReports/" if not dir in sys.path: sys.path.append(dir) import xmlrunner reload(xmlrunner) from xmlrunner import * import utils_XOM_Base reload(utils_XOM_Base) import utils_XOM_DisplayResolutions reload(utils_XOM_DisplayResolutions) # --> Préciser Nom de la suite : fp = file(os.path.join(dir, "TS_050_XOM_Control_SandBox_Control_UI_Elements.html"), "wb") import unittest import HTMLTestRunner reload(HTMLTestRunner) Debug.on(0); import csv reload(csv) # --> Préciser Nom de la suite class TestSuite_XOM_SandBox_Control_UI_Elements(unittest.TestCase): def setUp(self): utils_XOM_Base.start() Debug.info('TestSuite 50 --> START') def tearDown(self): utils_XOM_Base.stop() Debug.info('TestSuite 50 --> STOP') #------------------------------------------------------------------------------------------------------------------------------------------------------------------- #Display 1280x800 utils_XOM_DisplayResolutions.Res1280x800() wait(4) #------------------------------------------------------------------------------------------------------------------------------------------------------------------- #ToolsBar-Flag --------------------------------------------- def test_TC_02_02_Res1600x900_UI_Elements_ToolsBar_Flag(self): wait(2) Settings.MoveMouseDelay=0 Sandbox=App('/opt/XeebraOffside/Sandbox /opt/TEST_XOM/05_ConfigsTest/UIControl/UI_Elements/UI_Elements_1/') Sandbox.open() wait(1) click("RunAnalysis.png") wait(2) Reg=Region(0,800,1600,900) if Reg.exists("UI_ToolsBarFlag_Base1600x900.png",5): assert True Sandbox.close() utils_XOM_DisplayResolutions.Res1920x1080() wait(0.5) else: Sandbox.close() utils_XOM_DisplayResolutions.Res1920x1080() wait(0.5) assert False # --> Préciser Nom de la suite : suite = unittest.TestLoader().loadTestsFromTestCase(TestSuite_XOM_SandBox_Control_UI_Elements) # --> Préciser Nom de la suite : runner = HTMLTestRunner.HTMLTestRunner(stream = fp, title= 'TestReport_TS_050_XOM_SandBox_Control_UI_Elements', description='TestSuite description : Control présence UI éléments ', verbosity=3, dirTestScreenshots = dir) runner.run(suite) -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp