Hi all. I am new to k6. I just created a script for a single scenario then I ran it locally via Visual Studio Code in my computer and I integrated the results in k6 cloud using –out cloud command in terminal upon execution.
My script was configured to run 170 users under 5 minutes. I also added some thresholds. Please see below script option:
export const options = {
ext: {
loadimpact: {
projectID: #####,
// Test runs with the same name groups test runs together
name: "#######",
distribution: {
"amazon:sg:singapore": {
loadZone: "amazon:sg:singapore",
percent: 100,
},
},
}
},
stages: [
{ duration: "1m", target: 170 },
{ duration: "3m", target: 170 },
{ duration: "1m", target: 0 },
],
thresholds: {
http_req_failed: ['rate<0.01'],
http_req_duration: ['p(99)<=3000', 'p(95)<=3000', 'avg <= 3000'],
},
};
After generating the test results in the cloud, I am not sure what actual/main Response Time or other data results I should consider.
As per requirement, the Expected KPI (During Peak Load) of that scenario is less than or equal to 3 seconds. If it is <= 3 seconds…then it is PASSED. If it is greater than 3 seconds…then is FAILED.
What specific part of the different displayed test data results in K6 cloud should I refer/consider to know if it is passed or failed as per requirement?
Any help or discussion means a lot to me. Appreciate the help! Thank you so much!