1 year ago
#75410
José González
How to test correctness of concurrent requests with Karate?
I'm using Karate, and I need to prove than an API is (im)properly working when receiving certain concurrent requests, so I'd need to perform the following sequential steps:
- SETUP: Perform some request to create some shared resource in the backend (a
Scenario
? requests in theBackground
section?) - TEST:
- Perform several requests in parallel somehow modifying that shared resource (a group of
Scenario
s in a feature, or maybe a data drivenScenario Outline
withExample
s run in parallel?) - Check that the shared resource has the expected data after all the concurrent requests have finished (another
Scenario
?)
- Perform several requests in parallel somehow modifying that shared resource (a group of
- (possibly)TEAR DOWN: Remove the shared resource and any other resources created by the concurrent requests
Can you do this with Karate? How? If not, what other tool would you recommend to do this?
rest
karate
web-api-testing
0 Answers
Your Answer