def setUpClass(cls): """Setup中定义了执行测试用例前的一些实例化工作""" cls.driver = get_driver() cls.page = LoginPage(cls.driver) cls.page.popup_close.click() cls.page.login_btn.click() cls.user_info = get_file(filename='users_info.json')['qq-user1']
def setUpClass(cls): cls.driver = get_driver() cls.page = LoginPage(cls.driver) cls.page.popup_close.click() cls.page.login_btn.click() cls.user_info = get_file(filename='users_info.json')
def setUpClass(cls): """Setup中定义了执行测试用例前的一些实例化工作""" cls.driver = get_driver() # 启动APP cls.page = MyPage(cls.driver) # 启动个人中心页面元素的类
def setUpClass(cls): # 初始值 setUpClass是继承TestCase cls.driver = get_driver() cls.page = FeedPage(cls.driver) # 声明
def setUpClass(cls): # 初始值 setUpClass是继承TestCase cls.driver = get_driver() cls.page = TournamentPage(cls.driver) # 声明
def setUpClass(cls): cls.driver = get_driver() cls.page = LoginPage(cls.driver)
def setUpClass(cls): cls.driver = get_driver() # 启动APP cls.page = ProfilePage(cls.driver) # 启动个人中心页面元素的类