In my JMeter test plan, I have a HttpRequest, I want to extract the link from its response only if the response code is 200
.
I can add an XPathExtractor
post processor under HttpRequest and it works.
But I want to have an IfCondition
first so that the extractor won't try to work on invalid content. But the IfController can't be added as a postprocessor.
Maybe I can have a BeanShell sampler
to do it but I don't know how to use XPathExtractor in BeanShell.