我正在将Geb Spock与Appium一起使用。我能够成功执行脚本,并且也生成了报告。但是,屏幕截图已附在index.html摘要报告中。当我在目标文件夹中搜索屏幕快照时,观察到那里存在屏幕快照,但是日志中出现了以下错误,这可能是屏幕截图附在index.html下的原因。
错误:
Jul 12, 2018 12:29:40 PM org.openqa.selenium.remote.ErrorCodes toStatus
INFO: HTTP Status: '404' -> incorrect JSON status mapping for 'unknown method' (405 expected)
Unexpected error while creating report for label '001-001-Step 1:Go to the login page of the WU-Step 1 is completed: org.openqa.selenium.UnsupportedCommandException: Method has not yet been implemented
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
当我为我的Web应用程序执行测试脚本时,我没有遇到任何问题,但是我不确定为什么这不适用于Appium。 如果需要提供更多信息,请告诉我。 你能帮我这个忙吗?谢谢!