Hi Guys,
I am new to K6 and JavaScript, I have developed a script from k6 browser extension, when I try to execute the first request itself is failing with “ERRO[0000] ReferenceError: response is not defined”. I have not modified anything and there seems to be no issue with the request details, can someone please help resolving this.
Terminal Output:
scenarios: (100.00%) 1 scenario, 1 max VUs, 10m30s max duration (incl. graceful stop):
* default: 1 iterations for each of 1 VUs (maxDuration: 10m0s, gracefulStop: 30s)
ERRO[0000] ReferenceError: response is not defined
at file:///C:/PT/K6%20-%20Scripts/Demo_API%20Script/CustomerSearch.js:28:37(23)
at go.k6.io/k6/js/modules/k6.(*K6).Group-fm (native)
at main (file:///C:/PT/K6%20-%20Scripts/Demo_API%20Script/CustomerSearch.js:13:8(8)) executor=per-vu-iterations scenario=default source=stacktrace