def setUp(self): self.logger = Logger() self.logger.info( '######### 发起进攻( ´-ω ・)▄︻┻┳══━一 ###############################') browse = BrowserEngine(self) self.driver = browse.open_browser(self) BasePage.login(self)
def setUpClass(cls): browser = BrowserEngine(cls) cls.driver = browser.open_browser(cls)