def setUp(self): self.driver = webdriver.Chrome() self.base_url = 'http://www.taobao.com' self.testCaseInfo = TestCaseInfo(id='1', name=self.__str__(), owner='Oliver') self.testReport = TestReport() LogUtil.create_logger_file(__name__) self.testCaseInfo.starttime = common.get_current_time() LogUtil.log('Open base url: %s' % self.base_url)
def setUp(self): self.driver = webdriver.Chrome() # self.driver = webdriver.PhantomJS(service_args=SERVICE_ARGS) self.base_url = "http://selenium-python.readthedocs.io/" self.testCaseInfo = TestCaseInfo(id='3', name=self.__str__(), owner='Oliver') self.testReport = TestReport() LogUtil.create_logger_file(__name__) self.testCaseInfo.starttime = common.get_current_time() LogUtil.log('Open base url: %s' % self.base_url)