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

Is it necessary to call embedded resources explicitly in jmeter?

424


What is distributed load testing & how to achieve it?

429


Explain how jmeter works?

441


What is tidy parsing?

433


What are the types of assertion in jmeter?

425


What are the types of controllers in jmeter?

419


What are the types of a processor in jmeter?

431


What is the execution order of test elements?

445


In jmeter is it necessary to call embedded resources explicitly?

483


What is a workbench and why is it required?

451


What are the major differences between jmeter and load runner.

469


What are the types of processors in jmeter?

419


What are the different ways of data parameterization in jmeter?

443


What is samplers and thread groups?

432


Explain how you can perform spike testing in jmeter?

453