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 post-processor elements?

0 Answers  


What are the uses of monitor test?

0 Answers  


What is a test plan in jmeter?

0 Answers  


What are the types of a processor in jmeter?

0 Answers  


What is jmeter?

0 Answers  


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

0 Answers  


What are the types of assertion in jmeter?

0 Answers  


What is the use of co-relation in jmeter?

0 Answers  


Does jmeter simulate actual browser behavior?

0 Answers  


Mention some of the jmeter listeners.

0 Answers  


What are configuration elements?

0 Answers  


Explain what is a timer in jmeter and what are the types of it?

0 Answers  


Categories