移动测试基础 怎么用 uiautomator2 模拟三指操作?

flyfire · 2019年06月26日 · 最后由 YueChen 回复于 2019年06月27日 · 2456 次阅读

怎么用 uiautomator2 模拟三指缩放操作?请大侠指引!

共收到 3 条回复 时间 点赞

用 minitouch 吧,可以模拟:
echo "d 0 P0x P0y 50\nc\nd 1 P1x P1y 50\nc\nd 2 P2x P2y 50\nc\nm 0 P0x2 P0y2 50\nc\nm 1 P1x2 P1y2 50\nc\nm 2 P2x2 P2y2 50\nc\nu 0\nc\nu 1\nc\nu 2\nc\n"|/data/local/tmp/minitouch -i
P0x P0y 移动到 P0x2 P0y2
P1x P1y 移动到 P1x2 P1y2
P2x P2y 移动到 P2x2 P2y2

实际坐标需要调一下

也可以用 sendevent

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册