Dear madam/sir,
I have one question about the K6 js script running procedure, first of all, please see below of my code:
response = http.post(*
apiUrl + "/v1/alarms/summary",
globalNetworkFilterString,
{
headers: {*
accept: "application/json",
//authorization: authString,
"content-type": "application/json",
requestcacheid: "",
tenant: tenant,
},
}
);
sleep(5);
response = http.post(
apiUrl + "/v1/alarms/summary",
globalNetworkFilterString,
{
headers: {
accept: "application/json",
//authorization: authString,
"content-type": "application/json",
requestcacheid: "",
tenant: tenant,
},
}
);
As you see, I have two post queries in my code, when I execute this script, the first post will be sent to server, then wait for the first post’s response, after the response is received(or timeout for 60s), sleep 5 seconds, and then send out the second post query, wait for the second response and ends.
Is this the correct procedure?
I think there is no way that after sending out the first post, doesn’t wait for its response and send out the second post immediately, right?
Could you please help to reply me?
Thanks,
Ken