SoloPi
SoloPi copied to clipboard
[BUG]截图断言功能失效。客户端页面与截图断言不匹配,但是截图断言能校验通过
Describe the bug / 问题描述 A clear and concise description of what the bug is. / 相关问题的描述
To Reproduce / 复现流程 Steps to reproduce the behavior: / 问题重现流程
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
If possible, please use video to reproduce the behavior / 可以的话,录一个问题重现的视频
Error Stack/错误堆栈
Error stacks related to this bug. You can find this in /sdcard/solopi/error and /sdcard/Android/data/com.alipay.hulu/cache/logs/ / 与问题相关的错误堆栈。你可以在 /sdcard/solopi/error 和 /sdcard/Android/data/com.alipay.hulu/cache/logs/ 找到。
Screenshots / 截图 If applicable, add screenshots to help explain your problem. / 最好能够附上相关问题的截图信息。
Device Info / 设备信息
- Manufacturer/生产厂家: [e.g. Huawei]
- Device/设备: [e.g. Huawei P30]
- OS/系统版本: [e.g. Android 9.0]
- CPU Structure/CPU架构: [e.g. arm64 v8a]
- SoloPi Version/SoloPi版本 [e.g. 0.9.2]
Additional context/其他内容 Add any other context about the problem here. / 其他与问题相关的内容
请添加具体的示例,此外,图片断言功能不适用于判断整体页面是否完全匹配,只适用于判断特定区块是否出现
-
@cathor01 是用来判断特定区块的。
-
录制中截取的图片:

- 用例回放时,对应位置图片:

最终校验通过了。
原图
需要匹配的区域
找到的区域
麻烦看一下那个图片断言用到的so库的比对方法逻辑(将图片转换为bitmap作为入参便能验证),并提供一个优化后的hulu_imageCompare版本哈
确实有些时候识别不是很准