Skip to content

K6 script execution shows errors like -> Error: No request with name 'requestName' and index 4 #125

Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@prabodhkelkar
Comment options

Answer selected by prabodhkelkar
@thim81
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants