Buen día hoy iniciando mis clases en platzi envío mi prueba según lo indicado
atento a comentarios
import { sleep } from "k6";import http from "k6/http";
export const options ={ stages:[ {
duration:"60s", target:10, },{ duration:"180s", target:10, },
{duration:"60s", target:0,
},], } export default function(){ let response = http.get("https://qa-mios.groupcos.com/api/auth/login")
sleep(1);
/\ Grafana /‾‾/
/\ / \ |\ __ / /
/ \/ \ | |/ / / ‾‾\
/ \ | ( | (‾) |
/ __________ \ |_|\_\ \_____/
execution: local
script: .\stages_prueba1.js
output: -
scenarios: (100.00%) 1 scenario, 10 max VUs, 5m30s max duration (incl. graceful stop):
* default: Up to 10 looping VUs for 5m0s over 3 stages (gracefulRampDown: 30s, gracefulStop: 30s)
█ TOTAL RESULTS
HTTP
http_req_duration.......................................................: avg=64.94ms min=60.71ms med=64.67ms max=83.62ms p(90)=67.11ms p(95)=67.84ms
{ expected_response:true }............................................: avg=64.94ms min=60.71ms med=64.67ms max=83.62ms p(90)=67.11ms p(95)=67.84ms
http_req_failed.........................................................: 0.00% 0 out of 2284
http_reqs...............................................................: 2284 7.598845/s
EXECUTION
iteration_duration......................................................: avg=1.06s min=1.06s med=1.06s max=1.26s p(90)=1.06s p(95)=1.06s
iterations..............................................................: 2284 7.598845/s
vus.....................................................................: 1 min=1 max=10
vus_max.................................................................: 10 min=10 max=10
NETWORK
data_received...........................................................: 1.3 MB 4.3 kB/s
data_sent...............................................................: 244 kB 810 B/s
running (5m00.6s), 00/10 VUs, 2284 complete and 0 interrupted iterations
default ✓ [======================================] 00/10 VUs 5m0s
}