I want to pass the payload to query parameter values in endpoint URL from csv file in runner. I donโt want to use variable on query parameter as {{payload}} in URL
Need help on pre-request script to identify the query parameters and pass the payload one by one on each payload location (query parameter). For example the URL has 4 query parameters i want to pass on each query parameter one by one on every request.
Looking for Pre-request test script for payload injection on query parameters in endpoint URL using CSV file in collection runner. Inject the payload one by one in each payload location (query parameter), For first request update the payload on first query parameter then update payload on another query parameter on next request, same for other query parameters.
CSV file data:
payload (column name)
admin
user
test
test123
You could probably get this in a pre-request script, but its a lot of code, when all you really need to do is structure your CSV file correctly instead.
Feel free to try it and post what youโve attempted. Iโm not sure anyone here will write that code for you.