Karate UI - Running scenarios in parallel throws an error 'HttpHostConnectException: connect to localhost:9222'

后端 未结 2 1965
难免孤独
难免孤独 2020-12-12 08:26

I am trying to execute a feature with 3 scenarios in it using:

Results results = Runner.parallel(tagQuery, featurePaths, null, new ArrayList<>(), 3, k         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 08:59

    Sorry, running browser tests in parallel is non-trivial which is why we have the Docker option.

    EDIT: and in case you landed here because you wanted karate.callSingle() to work for UI tests, sorry that is not possible as well. But you are encouraged to perform an API sign-in via karate.callSingle() and then speed up your UI tests: https://github.com/intuit/karate/tree/develop/karate-core#hybrid-tests

    Consider that this is not supported on a single node. It can be made to work if you know what you are doing, but you need to figure this out depending on whether you are using Chrome or WebDriver.

    Please refer the docs: https://twitter.com/ptrthomas/status/1159295560794308609 | https://github.com/intuit/karate/tree/master/karate-core#configure-drivertarget

    EDIT - also see this answer: https://stackoverflow.com/a/60387907/143475

提交回复
热议问题