jmeterhttp-response-codes

Unable to extract Response Code from the sampler despite using correct regular expression in regular expression extractor. Why?


I'm new to Jmeter, trying to extract response code from the http request, for testing purpose I've tried to load google.com. I've used regular expression extractor but unable to understand why response code is not getting extracted despite there being response code=200 which I've validated through response assertion for response code? enter image description here enter image description here enter image description here


Solution

  • Remove quotation marks around your regular expression, HTTP Response Status Code is a number, nothing else.

    Demo:

    enter image description here

    More information: Using RegEx (Regular Expression Extractor) with JMeter