SonicCloudOrg / sonic-agent

🎉Agent of Sonic cloud real machine platform. Sonic云真机平台Agent端。
https://soniccloudorg.github.io/
GNU Affero General Public License v3.0
2.1k stars 484 forks source link

feat: `Android`自动化测试步骤中新增拖拽操作以及拖拽动作拆分的三个独立事件操作 #449

Closed YeungHoiChiu closed 2 months ago

YeungHoiChiu commented 4 months ago

Whether this PR is eventually merged or not, Sonic will thank you very much for your contribution.

无论此PR最终是否合并,Sonic组织都非常感谢您的贡献。

Checklist

Description

为什么要增加touchAction?

功能测试

  1. 3个模式下,drag操作均符合预期
  2. motionEvent(即touchAction)中down、up操作基本符合预期
  3. adb模式下,move motionEvent符合预期,uia和sonic模式会出现卡顿,即划线过程中会出现一次停顿 image
  4. motionEvent,在手机桌面上操作图片拖拽,有可能需要执行两次move操作,图标才会移动,可能是机型差异,而在微信小程序菜单中则不会出现这个问题
对应前端:https://github.com/SonicCloudOrg/sonic-client-web/pull/284
YeungHoiChiu commented 3 months ago

等我第二天再自测一下再修改回PR Ready