首页 > 解决方案 > 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?

screenshot of opentest log

标签: androidappiumappium-androidopentest

解决方案


10 秒听起来“太多”,但一般来说,预计 3rd 方服务的运行速度比在本地机器上运行测试要慢,尤其是对于 takeScreenshot/getPageSource 操作。多种原因:

  • adb 性能问题
  • 慢模拟器
  • 第三方服务问题

在本地运行并进行比较,然后联系服务人员询问为什么要多花 5 倍时间 :)


推荐阅读