What is the use of regular expression in jmeter?



What is the use of regular expression in jmeter?..

Answer / 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

More Apache JMeter Interview Questions

Explain the difference between gaussian and poisson timers.

0 Answers  


Is it necessary to call embedded resources explicitly in jmeter?

0 Answers  


Explain how jmeter works?

0 Answers  


What is workbench?

0 Answers  


What are the benefits that jmeter offers for performance testing?

0 Answers  






What is distributed testing?

0 Answers  


In jmeter is it necessary to call embedded resources explicitly?

0 Answers  


What does “contains” and “matches” indicate in the regular expression?

0 Answers  


What does “contain” and “matches” indicates in the regular expression?

0 Answers  


What are the important plugins that are supported in jmeter?

0 Answers  


Explain the architecture of jmeter.

0 Answers  


How do you manage sessions and cookies in jmeter?

0 Answers  






Categories