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

What are the types of controllers in jmeter?

0 Answers  


Explain how jmeter works?

0 Answers  


Explain the syntax of jmeter variables and functions.

0 Answers  


How you can perform spike testing in jmeter?

0 Answers  


What are the uses of monitor test?

0 Answers  






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

0 Answers  


How do you manage sessions and cookies in jmeter?

0 Answers  


What is assertion in jmeter? List the types of assertion.

0 Answers  


What are the protocols supported by jmeter?

0 Answers  


What is the configuration elements?

0 Answers  


Is it possible to run selenium scripts in jmeter? If yes, how?

0 Answers  


Why is it recommended to run jmeter in gui mode?

0 Answers  


Categories