标签:elf 测试自动化 tomato app测试 框架 one size span find
封装的公共部分:common
from time import sleep
def com(dr):
#点击backup
dr.find_element_by_android_uiautomator\
( ‘new UiSelector().text("Backup")‘).click()
#点击next
dr.find_element_by_id(‘com.wondershare.drfone:id/btnRecoverData‘).click()
sleep(2)
def close_app(dr):
sleep(5)
dr.close_app()
测试用例导包:
from public.common import *
class MyTestCase(unittest.TestCase):
def setUp(self):
com(dr)
def tearDown(self):
close_app(dr)
app测试自动化之测试套框架构造之公共部分以及测试用例导包二
标签:elf 测试自动化 tomato app测试 框架 one size span find
原文地址:https://www.cnblogs.com/saran/p/11728137.html