import unittest from page.thread_page import Page import time class threadDemo(unittest.TestCase): def __repr__(self): return ‘appdemo‘ @classmethod def setUpClass(cls): cls.page = Page() # def test_a_thread(self): # self.page.url() # t
import unittest
from page.thread_page import Page
import time
class threadDemo(unittest.TestCase):
def __repr__(self):
return ‘appdemo‘
@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.padf()
self.page.username()
self.page.passwd()
self.page.login()
@classmethod
def tearDownClass(cls):
cls.page.quit()