Use database table as CSV dataset for JMeter -
i doing performance testing jmeter application in company. application requires login , have use multiple users. way done in jmeter seems via csv dataset, have access database , can read credentials there directly.
since test environment, users have same password, can hardcode it, need list of usernames. jmeter can jdbc requests, wondering if there way use results such request dataset.
the ideal way me query database usernames , use input login test.
does know if possible?
sure, possible.
- follow steps the real secret building database test plan jmeter establish jdbc connection , execute query.
- define variable in "variable name" input of jdbc request sampler
3. query results available in form of
actor_1=john actor_2=doe etc. 
if need deal several columns, approach same. see official documentation on jdbc request sampler example
Comments
Post a Comment