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: 增加adb和uia的`拖拽控件(DragAndDrop)`操作 #447

Closed YeungHoiChiu closed 4 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

  1. 原来平台的Android测试步骤提供的 带有「拖拽」字眼的操作例如「拖拽滑动」、「拖拽控件元素」,除了sonic-apk触摸模式下都是普通滑动(没有元素拖拽效果),因此对 AndroidStepHandler的(原)拖拽名词描述改为了滑动,handler的swipe方法里面sonic-apk的操作也修改为普通滑动,将拖拽放到drag方法中;
  2. 新增drag方法,对接 https://github.com/SonicCloudOrg/sonic-driver-core/pull/127 新增uia的drag操作,并对接adb draganddrop操作
ZhouYixun commented 4 months ago

这改动有点大,我后面检查一下,因为driver那边也要发一下maven仓库

YeungHoiChiu commented 4 months ago

和motionEvent操作合并重提pr