Ejemplo n.º 1
0
 def __threadStart(self, browser, host):
     desiredCapabilities = self.__setDesiredCapabilities(browser)
     driver = Browser(Agent.REMOTE,
                      RunType.REMOTE,
                      command_executor=host,
                      desired_capabilities=desiredCapabilities).driver()
     # driver.appType = 'onLine'
     Scene(driver, self.__testCaseList)
Ejemplo n.º 2
0
 def __threadStart(self, browser, host):
     desiredCapabilities = self.__setDesiredCapabilities(browser)
     driver = Browser(Agent.REMOTE,
                      command_executor=host,
                      desired_capabilities=desiredCapabilities).driver()
     self.__runTestPlan(driver)
Ejemplo n.º 3
0
 def __offLine(self):
     # 线下模式
     for br, host in self.hubDict.items():
         br = self.__switchBrowser(br)
         driver = Browser(br).driver()
         self.__runTestPlan(driver)
Ejemplo n.º 4
0
 def __offLine(self):
     # 线下模式
     for browser, host in self.__hubDict.items():
         browser = self.__switchBrowser(browser)
         driver = Browser(browser, RunType.BROWSER).driver()
         Scene(driver, self.__testCaseList)
Ejemplo n.º 5
0
 def browser_start(self):
     # 线下模式
     for br, host in self.testPlan.hubDict.items():
         driver = Browser(self.switchBrowser(br)).driver()
         self.runTestPlan(driver)