[英]Karate response is overwriting for parallel scenarios
I am trying below to execute my test case but not working properly.我正在尝试在下面执行我的测试用例,但无法正常工作。
While running 2-3 graphql post request scenarios in a single feature file with parallel run enable and printing the response individually after every post hit.在单个功能文件中运行 2-3 graphql 发布请求场景时,启用并行运行并在每次发布命中后单独打印响应。
Then in every print statement of response I am getting same response (may be the last executed scenario).然后在响应的每个打印语句中,我都会得到相同的响应(可能是最后执行的场景)。 Hence it is overwriting the response variable and getting same response in all the scenarios of feature file.
因此,它会覆盖响应变量并在特征文件的所有场景中获得相同的响应。
Please suggest some way by which I can get response data of individual scenario before overwriting it by another scenario in parallel run.请提出一些方法,让我可以在并行运行的另一个场景覆盖之前获取单个场景的响应数据。
Thanks谢谢
Karate has been used by a lot of teams now.现在很多团队都在使用空手道。 So I urge you double-check, who knows - Karate may have surfaced an actual issue in your server where it cannot handle concurrent requests !
所以我敦促你仔细检查,谁知道 - 空手道可能在你的服务器中出现了一个实际问题,它无法处理并发请求!
This can also happen when you depend on a 3rd party Java utility or custom code that is not thread-safe.当您依赖第三方 Java 实用程序或非线程安全的自定义代码时,也会发生这种情况。
So the best thing you can do is follow this process: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue所以你能做的最好的事情就是遵循这个过程: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.