What is the use of regular expression in jmeter?

Answer Posted / darshan36

With regular expression we can pass username or password "Dynamically".
Expression is (.+?)
Example- Consider a login credentials has username as Admin and password as Super. If in case the credentials are hard-coded with the above values and if credentials are changed than the entire script will fail. In order to avoid we use username =(.+?) and password=(.+?)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the tyoes of assertion in jmeter?

298


Can jmeter measure the performance of a complete application? For example, you have multiple screens in your mobile app. Can jmeter measure the time taken to flip the screens?

287


What are the different ways of data parametrization in jmeter?

345


What is distributed load testing?

332


What are the types of controller in jmeter?

316






What are the important plugins supported in jmeter?

301


What is distributed testing?

324


What is a test plan in jmeter?

331


What is assertion in jmeter?

310


Mention some of the jmeter listeners.

300


What is samplers and thread groups?

312


What is post-processor?

296


How to perform spike testing in jmeter?

390


What are the jmeter supported protocols?

322


What are the types of processors in jmeter?

308