コード例 #1
0
ファイル: test_engine.py プロジェクト: zferenczik/taurus
 def setUp(self):
     super(TestEngine, self).setUp()
     self.obj = EngineEmul()
     self.paths = local_paths_config()
     self.tmp_selenium = bzt.modules._selenium.Selenium
     bzt.modules._selenium.Selenium = MockPythonTool
     self.tmp_apiritif_selenium = bzt.modules._apiritif.executor.Selenium
     bzt.modules._apiritif.executor.Selenium = MockPythonTool
コード例 #2
0
 def setUp(self):
     super(TestEngine, self).setUp()
     self.obj = EngineEmul()
     self.paths = local_paths_config()
     self.tmp_chromedriver = bzt.modules._selenium.ChromeDriver
     bzt.modules._selenium.ChromeDriver = MockDriver
     self.tmp_geckodriver = bzt.modules._selenium.GeckoDriver
     bzt.modules._selenium.GeckoDriver = MockDriver
     self.tmp_selenium = bzt.modules._selenium.Selenium
     bzt.modules._selenium.Selenium = MockPythonTool
     self.tmp_apiritif_selenium = bzt.modules._apiritif.executor.Selenium
     bzt.modules._apiritif.executor.Selenium = MockPythonTool
コード例 #3
0
ファイル: __init__.py プロジェクト: cgodinez1271/taurus-1
    def setUp(self):
        super(SeleniumTestCase, self).setUp()

        paths = [local_paths_config()]
        self.engine.configure(
            paths
        )  # FIXME: avoid using whole engine in particular module test!

        self.virtual_display = VirtualDisplay()
        self.virtual_display.engine = self.engine
        self.virtual_display.startup()

        self.obj.settings = self.engine.config.get("modules").get("selenium")
コード例 #4
0
    def setUp(self):
        super(SeleniumTestCase, self).setUp()
        self.tmp_selenium = bzt.modules._selenium.Selenium
        self.tmp_selenium_apiritif = bzt.modules._apiritif.executor.Selenium
        bzt.modules._selenium.Selenium = MockPythonTool
        bzt.modules._apiritif.executor.Selenium = MockPythonTool

        paths = [local_paths_config()]
        self.engine.configure(paths)  # FIXME: avoid using whole engine in particular module test!

        self.virtual_display = VirtualDisplay()
        self.virtual_display.engine = self.engine
        self.virtual_display.startup()
        self.obj.settings = self.engine.config.get("modules").get("selenium")
コード例 #5
0
    def setUp(self):
        super(TestJUnitTester, self).setUp()
        engine_obj = EngineEmul()
        paths = [local_paths_config()]
        engine_obj.configure(paths)

        # just download geckodriver & chromedriver with selenium
        selenium = SeleniumExecutor()
        selenium.engine = engine_obj
        selenium.install_required_tools()
        for driver in selenium.webdrivers:
            selenium.env.add_path({"PATH": driver.get_driver_dir()})

        self.obj = JUnitTester()
        self.obj.env = selenium.env
        self.obj.settings = engine_obj.config.get("modules").get("junit")
        self.obj.engine = engine_obj
コード例 #6
0
 def setUp(self):
     super(TestTestNGTester, self).setUp()
     self.obj.engine.configure([local_paths_config()])
     self.obj.settings = self.obj.engine.config.get("modules").get("testng")
コード例 #7
0
ファイル: test_engine.py プロジェクト: cgodinez1271/taurus-1
 def setUp(self):
     super(TestEngine, self).setUp()
     self.obj = EngineEmul()
     self.paths = local_paths_config()