- 博客(20)
- 资源 (5)
- 收藏
- 关注
原创 python自定义异常
28、UnicodeTranslateError Unicode转换时错误(UnicodeError的子类)26、UnicodeRndoceEroor Unicode编码时错误(UnicodeError的子类)27、UnicodeDecodeError Unicode解码时错误(UnicodeError的子类)25、UnicodeError Unicode相关错误(ValueError的子类)15、OSError 操作系统异常(例如打开一个不存在的文件)3、NameError 尝试访问一个不存在的变量。
2024-11-14 08:33:11
172
原创 appium定位方式
elment3=driver.find_element.(AppiumBy.ANDROID_UIAUTOMATOR,'new UiSelector().textStartsWith("手机密码")')elment4=driver.find_element.(AppiumBy.ANDROID_UIAUTOMATOR,'new UiSelector().textMatches("^手机密码.*")')resourceIdMatches正则定位。textStartsWith定位。textMatches定位。
2024-10-17 15:34:15
272
原创 appium执行报 io.appium.uiautomator2.common.exceptions.NoSuchDriverException: The session identified by
大早上,打开appium,跑case,报。
2024-10-12 08:36:48
205
原创 pytest-order 执行顺序
以下3个文件的3个测试case,如果不加@pytest.mark.order执行结果是1-2-3,如果加了,则执行结果是3-2-1。多个文件定义执行时,顺序要求。
2024-09-27 09:12:02
283
原创 pytest+allure执行命令
1.安装 \Softwares\Windows Archives\allure-2.29.0.zip 解压allure,并在环境变量path里配置加上,例如 C:\Users\mycomputer\work\project\automation\automation-test\venv\Scripts\allure-2.29.0\bin。2.pycham里安装 pip install allure-pytest。3.检查 cmd窗口中输入“allure --version”
2024-09-23 15:49:29
366
原创 appium 等待几秒
隐式等待:使用方式:driver.imolicitly_wait(3) 等待3秒。强制等待 : 使用方式:time.sleep(5)一般用显式等待、隐式等待。
2024-09-11 12:07:38
235
原创 调试手机,adb server version (19045) doesn‘t match this client (41); killing
更新了adb也不行,最后是发现360手机助手的adb版本,卸载了360手机助手,可以正常使用adb命令了。
2024-09-11 12:04:37
409
原创 Appium Inspector链接模拟器报错The instrumentation process cannot be initialized
Appium Inspector链接模拟器报错The instrumentation process cannot be initialized ,appium server GUI。
2024-09-03 17:05:59
352
原创 安装元素定位工具weditor
python的: weditor 比较好用, 会装一个app助手,xPathlate, 可以判断是否resourceid是否唯一。如果报错,杀掉adb进程先:adb shell ps |find "uiautomator"2.cmd命令 python -m uiautomator2 init。3.cmd命令 pip install weditor。1.先安装UIAutomator2。cmd输入weditor。
2024-09-03 16:46:22
680
原创 java_home环境变量配置
3.新建 CLASSPATH :.;1.JAVA_HOME 环境变量配置:E:\tools\jdk\jdk-22.0.2。2.path里加: %JAVA_HOME%\bin。
2024-09-03 11:24:38
2927
原创 安卓定位元素的几种方式
2.appium自带的:Appium Inspector ,在appium server UI 上有下载入口。步骤:1.cmd黑窗口里,先安装 pip install UIAutomator2。3.python的工具: weditor(安卓后 会在模拟器里装一个app助手)。2.命令 python -m uiautomator2 init。3.窗口命令 pip3 install weditor。1.安卓自带的: UIAutomatorviewer。启动命令 weditor。
2024-08-29 10:31:34
322
原创 python第一次启动成功了
2024-08-26 05:51:17][W3C (c4086715)] at Layer.handle [as handle_request] (E:\tools\移动端测开环境\appium server gui\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5)
2024-08-26 17:53:28
1616
1
原创 appium server 4723端口连接不上,怎么解决
安装了 appium Inspector 启动session ,报错,看了下 appium server 有日志产生。
2024-08-26 15:45:59
475
原创 adb识别不了夜神模拟器
将adb.exe 覆盖 夜神安装目录 D:\Program Files\Nox\bin里面的adb.exe 和nox_adb.exe。adb可以列出真机设备,但是不能识别夜神。
2024-08-26 10:39:43
365
VisualSVN-Server-3.2.2-x64和x86.rar
2014-12-21
perl的注册表添加(附件Perl.reg)
2014-12-16
protoc-2.5.0-win32.zip和protobuf-java-2.3.0.jar
2016-11-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人