K6 script execution shows errors like -> Error: No request with name 'requestName' and index 4 #125
-
Hello, e.g. postman[Request]("getAllNotifications", 4); All the requests reside in "requests" folder under and are referred in K6 scripts. But, now when I am running the K6 script, I get error as below. I am not sure what I need to change to get rid of this error message. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The easiest way is to just rerun the postman-to-k6 with the --separate option. |
Beta Was this translation helpful? Give feedback.
Thanks for the reply. But, I cannot rerun the postman-to-k6 as I did loads of changes to requests to make them work. Being complex graphQL queries with cookie based authentication, this required loads of changes - from switching to http.cookieJar to separate out queries for each request and JSON.stringify them as well as replace as date assignments that were based on moment().
But, I found the issue and fixed it.
When I deleted the requests, I removed the import statements. Now, after adding back the requests (same request in 4 different folders, so request gets called from 4 different groups), I added back import statements. But missed to add import statement for request from second grou…