Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 403

Http asynchronous request in K6 load testing

$
0
0

Since I have asynchronous API call in my front-end, I have used http.asyncRequest method for API calls.

const response = await http.asyncRequest(“GET”, url, null, params);

However, I want the response of the above call, in order to call another API. When I run the load test second API call runs before completing this async request. Due to that second API call fail. Is there any way to handle this?

Other thing is this async requests are in a k6 group but when the result is showing it is not belong to the group that I was assigned. It showing in the outside of the group.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 403

Trending Articles