How to Get Input From File For JMeter?

We use jmeter for load test or performance test but any case we may need to add the dynamic input from file or CSV files.This gives the flexibility of simulating actual load test to the application.Lets see how to add the config data. Right click on your test plan then Config element and click CSV Data Set Config.

jmeter

We may need to give following information properly , in file name attribute we need to specify absolute path of the file located. In variable names we need to mention what are the variables we are going to use it our script. Here we use delimiter as ','.

data

All the user information's available in login.txt and find the below format of login.txt. testuser,testpassword testuser1,pass1 Now configured value can be accessed in jmeter scripts like ${login},${password}
Post a Comment (0)
Previous Post Next Post

Recent Posts