![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自动化测试
weixin_38185649
我想:明白事情的意义,明白工作的意义,明白生活的意义,明白人生的意义!
展开
-
Windows应用程序自动化测试框架demo
环境要求 1 pycharm 2 winappdriver https://github.com/Microsoft/WinAppDriver 脚本说明 1 import 内容 import time import unittest from appium import webdriver import pyautogui 用于实现按坐标点击,双击,输入字符等内容 import random import datetime #import psutil 用于监控进程,实际尚未使用到 from s原创 2021-05-10 09:32:18 · 461 阅读 · 1 评论 -
自动化测试应用WaitTime
#!/usr/bin/python # -*- coding: utf-8 -*- import os import time import pandas as pd # os.system("adb reboot") # os.system("adb wait-for-device") f = open("./app_mCurrentFocus_20.txt","r") lines = f.readlines() list = [] for line in lines: line1 = l原创 2021-01-13 10:08:31 · 134 阅读 · 0 评论 -
UIautomator自动化平台搭建及使用
自动化管理平台操作手册: APP元素定位法(实时): 1.下载元素定位安装包:pip install -U uiautomator2 2.下载图形化界面安装包:pip install -U weditor 3.打开界面获取坐标:weditor 4.在手机上进行初始化安装APP:python -m uiautomator2 init ATXServer设备控制: 环境搭建及操作步骤: 0.uiautomator2使用教程:https://github.com/openatx/uiautomator2 1...原创 2020-10-15 11:21:41 · 859 阅读 · 0 评论 -
手机解锁壁纸切换压力测试
import uiautomator2 as u2 from uiautomator2 import Direction d = u2.connect() def test_one(): d.screen_on() # 亮屏 d.swipe_ext(Direction.FORWARD) # 上滑解锁 for i in range(6): d(description="6").click() # 输入解锁密码666666 print(d.info)原创 2020-08-10 19:36:33 · 155 阅读 · 0 评论 -
自动刷机脚本
import os def restart(): os.system("adb devices") os.system("adb reboot edl") def click(): # os.system("adb shell input keyevent 26") os.system("adb shell input tap 0 636") # 选择语言--简体中文 19125 os.system("adb shell input tap 876 2236原创 2020-08-10 19:34:47 · 1398 阅读 · 0 评论