我正在尝试使用以下方法执行包含 3 个场景的功能:
Results results = Runner.parallel(tagQuery, featurePaths, null, new ArrayList<>(), 3, karateOutputPath);
使用 @parallel=false 工作正常,但是当我删除时,它失败并出现以下错误:
com.intuit.karate.exception.KarateException: test_input.feature:50 - 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: connect, options: {type=chrome, target=null}
这发生在* driver <url> phase
。这是一种间歇性故障,大多数情况下 2/3 的情况会通过,而其中一个会因此错误而失败。
版本:0.9.6.RC3
我建议使用像远程浏览器网格这样的 Zalenium 来实现并行性,并确保您的场景是独立的或至少保持功能独立。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)