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 ReferenceError: response is not defined
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
Welcome to the community forum
From what I understand, you have created the script using the k6 browser extension, do you refer to browser recorder, is that correct?
In the error we see a
response is not defined from
CustomerSearch.js, and I do not see that variable in your screenshot. So I’m not sure where it comes from. Can you provide a (sanitized) version of the full script in text format? That helps us reproduce and see where the errors comes from.
Thanks in advance for the additional information.
As we discussed on the community slack, it would be great if you can shared the script
CustomerSearch.js. It looks like
response is not defined in the script when being used, at line 28.
Thanks for the follow-up, I worked in it the issue is resolved - its an issue with variable declaration.