How to read data from csv and pass as payload which is in double quotes?
Suppose I have to fetch Username as “Test” from csv then pass in k6.Need help.
Hello @ankushakhotele2019,
Welcome to the forum
Here you can find an example of how to read a CSV file and use the data from there.
Then, if you need to manipulate that data to be present within a string variable, you can use standard JavaScript interpolation, like: your-variable-is-${variable}
.
I hope that helps!
Thanks!