当前位置 : 主页 > 网络安全 > 测试自动化 >

AppUi自动化框架test_thread_case.py代码

来源:互联网 收集:自由互联 发布时间:2021-06-19
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()
网友评论