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 does “contains” and “matches” indicate in the regular expression?

0 Answers  


What are pre-processor elements? List some of the elements.

0 Answers  


Explain what are pre-processor elements? List some of the pre-processor elements?

0 Answers  


Which factors decide the maximum threads that one should generate per system?

0 Answers  


What are the important plugins supported in jmeter?

0 Answers  






What is samplers and thread groups?

0 Answers  


What is a timer in jmeter?

0 Answers  


How you can reduce the resource requirement in jmeter?

0 Answers  


What is the configuration elements?

0 Answers  


How you can perform spike testing in jmeter?

0 Answers  


What is a workbench and why is it required?

0 Answers  


What are the protocols supported by jmeter?

0 Answers  


Categories