import unittest
from page.thread_page import Page
import time
class ThreadDemo(unittest.TestCase):
def __repr__(self): # _repr_函数,对应repr(object)这个函数,返回一个可以用来表示对象的可打印字符串
return 'app_demo'
@classmethod
def setUpClass(cls):
cls.page = Page()
# def test_a_thread(self):
# self.page.url()
# time.sleep(2)
# self.page.enter()
# time.sleep(5)
# self.page.content_web_view()
# time.sleep(2)
# self.page.i1()
def test_qq_login(self):
"""登录"""
self.page.reset_app()
self.page.click_login()
self.page.username()
self.page.password()
self.page.login()
@classmethod
def tearDownClass(cls):
cls.page.quit()