1、工具安装:https://zhuanlan.zhihu.com/p/49193525
2、工具使用:https://www.jb51.net/article/183357.htm
3、遇到的问题:
⑴appium工具打不开QQ,报错“An unknown server-side error occurred while processing the command. Original error: Cannot start the ‘com.tencent.mobileqq’ application. ”
原因:
通过命令adb shell dumpsys activity | findstr “mResume”获取到的是:
C:\Users\user>adb shell dumpsys activity | findstr “mResume”
mResumedActivity: ActivityRecord{8c151b u0 com.tencent.mobileqq/.activity.LoginActivity t93}
这里的activity不完整
需要登录QQ后,执行:adb shell dumpsys window w |findstr / |findstr name=
C:\Users\user>adb shell dumpsys window w |findstr / |findstr name=
adb server version (41) doesn’t match this client (40); killing…
-
daemon started successfully
mSurface=Surface(name=PointerLocation)/@0xc4c7ef3 mAnimationIsEntrance=tr