Exemplo n.º 1
0
 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']
Exemplo n.º 2
0
 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')
Exemplo n.º 3
0
 def setUpClass(cls):
     """Setup中定义了执行测试用例前的一些实例化工作"""
     cls.driver = get_driver()  # 启动APP
     cls.page = MyPage(cls.driver)  # 启动个人中心页面元素的类
Exemplo n.º 4
0
 def setUpClass(cls):  # 初始值   setUpClass是继承TestCase
     cls.driver = get_driver()
     cls.page = FeedPage(cls.driver)  # 声明
Exemplo n.º 5
0
 def setUpClass(cls):  # 初始值   setUpClass是继承TestCase
     cls.driver = get_driver()
     cls.page = TournamentPage(cls.driver)  # 声明
Exemplo n.º 6
0
 def setUpClass(cls):
     cls.driver = get_driver()
     cls.page = LoginPage(cls.driver)
Exemplo n.º 7
0
 def setUpClass(cls):
     cls.driver = get_driver()  # 启动APP
     cls.page = ProfilePage(cls.driver)  # 启动个人中心页面元素的类