51Testing软件测试论坛

标题: Day3-2测试积点任务 [打印本页]

作者: 测试积点老人    时间: 2018-3-13 16:21
标题: Day3-2测试积点任务
问题用selendroid模式测试webview是不是也需要翻墙呢?为什么我执行有时候是通过的,有时候print
driver.contexts就会报错。并且无法识别webview一直是native?


报错信息如下:


  1. <font face="微软雅黑" size="3">info: --> GET /wd/hub/session/4dbdb598-2d69-2057-354b-e076f9137849/contexts {}
  2. info: [debug] Getting a list of available webviews
  3. info: [debug] executing: "D:\software\android-sdk-windows\platform-tools\adb.exe
  4. " -s 0b2fd4c5 shell "cat /proc/net/unix"
  5. info: [debug] Available contexts: undefined
  6. info: [debug] []
  7. info: [debug] Getting a list of available webviews
  8. info: [debug] executing: "D:\software\android-sdk-windows\platform-tools\adb.exe
  9. " -s 0b2fd4c5 shell "cat /proc/net/unix"
  10. info: [debug] Available contexts: NATIVE_APP
  11. info: [debug] []
  12. info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hu
  13. b/session/4actu505-2d57-2057-1f8b-e054f9138459/title","method":"GET"}
  14. info: [debug] Responding to client with error: {"status":13,"value":{"message":"
  15. An unknown server-side error occurred while processing the command.","origValue"
  16. :"Did not successfully proxy server command"},"sessionId":"4acd6701-2d77-6057-ff
  17. 9b-e076f9137849"}
  18. info: <-- GET /wd/hub/session/4actu505-2d57-2057-1f8b-e054f9138459/title 500 98.
  19. 892 ms - 210</font>
复制代码





作者: 梦想家    时间: 2018-3-14 10:25
get context 没有传到给 selendroid
作者: qqq911    时间: 2018-3-14 16:11
可以加点打印语句,看下数据的传递是否正常




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2