Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

JMeter – Assert on a variable

I have a regular expression that returns the below value:

enter image description here

The texts "HRDEV-Scotty-Testing" and "rtc-test-eus-sbc.rtc.hrdev.io" need to be searched in this value.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

If found, mark the sample as "Pass" else "Fail".

How do I implement this? Please help.

Thanks for your support.

Regards,
Ajith

>Solution :

Response Assertion has possibility to check the variable:

enter image description here

See How to Use JMeter Assertions in Three Easy Steps for more information on how to apply custom pass/fail criteria to your performance tests using various JMeter Assertions

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading