简体   繁体   English

空手道响应正在覆盖并行场景

[英]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.

相关问题 解析空手道中的动态响应 - Parsing Dynamic response in Karate 如何使用动态字段名称断言空手道响应 - How to assert Karate response with dynamic field name 在空手道中为数组响应断言和使用条件 - Asserting and using conditions for an array response in Karate 空手道框架保存来自 1 个请求的响应,然后在另一个请求中使用 - karate framework save response from 1 request and then use in another request 如何使用空手道验证非JSON响应主体 - How to validate Non-JSON response body using Karate 空手道 - 如何使用从响应数组接收的值循环 Soap 请求 - Karate - How to loop Soap request with values received from a response array 如何在空手道 api 测试中处理相同请求的不同响应? - How to handle different response for the same request on Karate api testing? nodejs在请求并行单响应中表达搜索 - nodejs express search in request parallel single response 如何在没有占位符的情况下更改空手道 DSL 中文本响应的所有外观? - How can you change all appearances of a text response in Karate DSL without having a placeholder? 空手道:无法将从一个 api 响应中提取的 header 值传递到另一个 Z8A5DA52ED126447D 的请求 header 中 - Karate: Not able to pass header value extracted from one api response into the request header of another api
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM