简体   繁体   English

[空手道]:空手道 UI 自动化:无法启动浏览器

[英][karate]: Karate UI Automation: Unable to launch the browser

The compiler is looking target folder for the chrome.exe file.编译器正在寻找 chrome.exe 文件的目标文件夹。 In which it is looking for some chrome_1639142447236 file.它正在其中寻找一些 chrome_1639142447236 文件。 Actually it is available at C:\Program Files (x86)\Google\Chrome\Application this location.实际上它可以在 C:\Program Files (x86)\Google\Chrome\Application 这个位置找到。 Below error message I'm getting我收到以下错误消息

18:51:39.096 [ForkJoinPool-1-worker-3] ERROR com.intuit.karate - org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information, http call failed after 4022 milliseconds for URL: http://localhost:9222 18:51:39.098 [ForkJoinPool-1-worker-3] ERROR com.intuit.karate - http request failed: 18:51:39.096 [ForkJoinPool-1-worker-3] ERROR com.intuit.karate - org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1, localhost/0:0:0 :0:0:0:0:1] failed: Connection refused: no further information, http call failed after 4022 milliseconds for URL: http://localhost:9222 18:51:39.098 [ForkJoinPool-1-worker-3]错误 com.intuit.karate - http 请求失败:

Below is the feature level error message以下是功能级别错误消息

failed features: src.test.java.examples.users.Sample: Sample.feature:9 - driver config / start failed: org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information, options: {type=chrome, target=null} failed features: src.test.java.examples.users.Sample: Sample.feature:9 - driver config / start failed: org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1, localhost /0:0:0:0:0:0:0:1] 失败:连接被拒绝:没有更多信息,选项:{type=chrome, target=null}

If you know where the chrome executable is, please follow the instructions to customize it in your Karate tests: https://github.com/karatelabs/karate/tree/master/karate-core#configure-driver如果您知道chrome可执行文件在哪里,请按照说明在您的空手道测试中自定义它: https://github.com/karatelabs/karate/tree/master/karate-core#configure-driver

* configure driver = { type: 'chrome', executable: 'chrome' }

Also read this answer for even more details: https://stackoverflow.com/a/66762430/143475另请阅读此答案以获取更多详细信息: https://stackoverflow.com/a/66762430/143475

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM