From the course: Advanced JMeter
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Data-driven testing with .csv files - Apache JMeter Tutorial
From the course: Advanced JMeter
Data-driven testing with .csv files
- [Instructor] At this time, I have a script that allows me to log into a website. This is great, and allows me to test using the same set of credentials during my test run. However, it's unlikely that my test would produce realistic results if only one single user kept logging in and out every single time. If I wanted a series of tests that would use a different set of credentials each time such as users that were allowed to log in or admins, or disabled accounts and everything in between, I'd need to use a different login for each of these permutations. Fortunately, JMeter allows me to do just that with its CSV data set config elements. My test script currently only has my thread group, my post requests and my view results tree to see the results. If I right click on my thread group and then go to add, and then go to config elements, I can then choose the CSV data sets config element, adding this to the test case…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.