- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 unittest单元测试Demo
import unittestimport HTMLTestRunner #python3import timeimport sysimport osclass Test(unittest.TestCase): def setUp(self): print("----------SetUp -----\n") def tearDown(self)...
2019-09-29 10:37:55 338
原创 几十份接口测试用例一起自动化测试的接口测试框架
python+unittest+requests+Excle+HTMLTestRunner+ddt数据驱动实现接口自动化测试:1.执行文件夹下所有的Excel表格,现在测试数有10份,共计180条2.对表格中的接口测试用例测试,添加到测试Html报告中显示3.测试结果填写到Excel测试用例10份108条测试log测试报告能看到这儿的都是老铁,给你地址自己去拿:https://github.com/SilenceGold-MJ/API.git...
2019-09-27 22:47:40 3450 16
原创 python3+uiautomator2多设备使用执行(多线程,不能并行设备执行)
多设备使用多线程执行,不能并行,只能一个设备执行完成后面,执行另一个设备import sysimport uiautomator2 as u2from time import sleepimport osimport subprocessimport threadingimport timedef MultiDevice( d): # 功能执行 d.screen_...
2019-09-10 09:21:10 3891 1
原创 python3+uiautomator2多设备执行测试用例(多进程,同时执行)
多设备执行测试用例(多进程,同时执行)import multiprocessing as npimport uiautomator2 as u2import subprocessimport timedef getphonelist(): # 获取手机设备 cmd = r'adb devices' # % apk_file pr = subprocess.Pope...
2019-09-09 17:09:18 4799 5
原创 python获取apk使用内存和CPU使用率脚本
获取apk使用内存和CPU使用率脚本import subprocessimport reimport loggingimport timeimport oslogger = logging.getLogger("main")logger.setLevel(logging.DEBUG)# logger的setLevel是最根本的fh = logging.FileHandler(ti...
2019-09-04 14:06:57 1482 3
原创 获取apk运行占手机RAM大小
获取apk运行占手机RAM大小import subprocessimport redef getmem(package): cmd = r'adb shell dumpsys meminfo '+package+' | findstr "TOTAL"' # % apk_file pr = subprocess.Popen(cmd, stdout=subprocess.PI...
2019-09-02 15:53:20 480
原创 python3+uiautomator2多设备执行测试用例(遍历设备,非同时执行)
获取手机列表,每个手机执行一遍测试用例 def getphonelist(): cmd = r'adb devices' # % apk_file pr = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) pr.wait() # 不会马上返回输出的命令,需要等待 out = pr.stdout...
2019-09-02 11:59:55 1471
Jenkins部署配置自动化测试项目
2022-12-14
appium最新版本Appium-windows-1.17.1-1-appium-desktop-Setup-1.2.6
2022-03-16
allure-commandline-2.15.0.zip
2021-09-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人