android - Is it normal for a screenshot to take 10 seconds in OpenTest/Appium?
问题描述
Every time a test step fails, or we call the command to take a screenshot, it appears to take about 10 seconds to capture and save the image. This seems like a long time, but is this expected? Can anyone explain why, if this is normal?
解决方案
10 秒听起来“太多”,但一般来说,预计 3rd 方服务的运行速度比在本地机器上运行测试要慢,尤其是对于 takeScreenshot/getPageSource 操作。多种原因:
- adb 性能问题
- 慢模拟器
- 第三方服务问题
在本地运行并进行比较,然后联系服务人员询问为什么要多花 5 倍时间 :)
推荐阅读
- css - clip-path:circle() 半径似乎没有正确计算
- docker - Alpine 大小和 Docker 层
- ios - SwiftUI - @Binding:来自 DatePickerView 的字符串
- reactjs - 名为导入的样式组件在单元测试中抛出错误“元素类型无效:预期为字符串 ...”
- ruby-on-rails - 在 Ruby 中自动将嵌套类转换为紧凑样式
- android - Android Logcat prune 功能坏了?
- c - 和号在函数调用中是什么意思?
- c# - 可观察集合
初始化一个新实例或删除并添加 - javascript - 隐藏日期时间选择器的日期部分的 Javascript - 仅显示小时和分钟
- python - 使用给定参数作为 Python 中另一个参数的默认值