AirtestProject / AirtestProject/Airtest

VIVO手机截屏错误,屏幕翻转错误

Open
#1,193 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

(请尽量按照下面提示内容填写,有助于我们快速定位和解决问题,感谢配合。否则直接关闭。)

**(重要!问题分类)**
* 测试开发环境AirtestIDE使用问题 -> https://github.com/AirtestProject/AirtestIDE/issues
* 控件识别、树状结构、poco库报错 -> https://github.com/AirtestProject/Poco/issues
* 图像识别、设备控制相关问题 -> 按下面的步骤

**描述问题bug**
在VIVO X90,VIVO IQOO Neo6使用minicap的截屏方式,执行touch,exists等需要截屏的命令时,未识别到屏幕翻转。
发现在airtest.core.android.android的screen_proxy方法中,没有将rotation_watcher=self.rotation_watcher传入,导致无法响应翻转的回调方法update_rotation。
![image](https://github.com/AirtestProject/Airtest/assets/27004576/901e3410-358e-42b1-91d6-b3bf4b33f5be)
增加翻转回调之后,继续发现airtest.core.android.adb的getDisplayOrientation方法需要更新。
我手上VIVO X90和VIVO IQOO Neo6这两台设备无法获取翻转后的截图,需要修改进行匹配的正则表达式和匹配结果。
![image](https://github.com/AirtestProject/Airtest/assets/27004576/13632ea3-b497-4c2d-bfc5-6bff18806cb8)

```
(在这里粘贴traceback或其他报错信息)
```

**相关截图**
(贴出遇到问题时的截图内容,如果有的话)
(在AirtestIDE里产生的图像和设备相关的问题,请贴一些AirtestIDE控制台黑窗口相关报错信息)
![image](https://github.com/AirtestProject/Airtest/assets/27004576/d86c44f5-b807-4d44-81c0-8558d9625082)

**复现步骤**
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**预期效果**
正常翻转

**python 版本:** `python3.10`

**airtest 版本:** `1.0.69`
> airtest版本通过`pip freeze`可以命令可以查到

**设备:**
- 型号: [vivo iqoo neo6,vivox90]
- 系统: [e.g. Android 13]
- (别的信息)

**其他相关环境信息**
(其他运行环境,例如在linux ubuntu16.04上运行异常,在windows上正常。)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.