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)
def __threadStart(self, browser, host): desiredCapabilities = self.__setDesiredCapabilities(browser) driver = Browser(Agent.REMOTE, command_executor=host, desired_capabilities=desiredCapabilities).driver() self.__runTestPlan(driver)
def __offLine(self): # 线下模式 for br, host in self.hubDict.items(): br = self.__switchBrowser(br) driver = Browser(br).driver() self.__runTestPlan(driver)
def __offLine(self): # 线下模式 for browser, host in self.__hubDict.items(): browser = self.__switchBrowser(browser) driver = Browser(browser, RunType.BROWSER).driver() Scene(driver, self.__testCaseList)
def browser_start(self): # 线下模式 for br, host in self.testPlan.hubDict.items(): driver = Browser(self.switchBrowser(br)).driver() self.runTestPlan(driver)