SoloPi icon indicating copy to clipboard operation
SoloPi copied to clipboard

[BUG]截图断言功能失效。客户端页面与截图断言不匹配,但是截图断言能校验通过

Open sixstones opened this issue 5 years ago • 4 comments

Describe the bug / 问题描述 A clear and concise description of what the bug is. / 相关问题的描述

To Reproduce / 复现流程 Steps to reproduce the behavior: / 问题重现流程

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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. / 其他与问题相关的内容

sixstones avatar Aug 01 '20 07:08 sixstones

请添加具体的示例,此外,图片断言功能不适用于判断整体页面是否完全匹配,只适用于判断特定区块是否出现

cathor01 avatar Sep 01 '20 07:09 cathor01

  • @cathor01 是用来判断特定区块的。

  • 录制中截取的图片:

image

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

image

最终校验通过了。

sixstones avatar Sep 07 '20 06:09 sixstones

screenshot_1602296665288 原图

screenshot_normal_1602296667502 需要匹配的区域

screenshot_target_1602296667513 找到的区域

麻烦看一下那个图片断言用到的so库的比对方法逻辑(将图片转换为bitmap作为入参便能验证),并提供一个优化后的hulu_imageCompare版本哈

MarcoChik avatar Oct 10 '20 02:10 MarcoChik

确实有些时候识别不是很准

ksxkq avatar Feb 06 '21 13:02 ksxkq