Xpath Extractor Post-Processor in JMeter

Overview

Hi Testers!!

In this tutorial, you will learn to use post-processor in JMeter.

You will learn to use:

  • XPath Post-Processor

<< PREV   |     NEXT >>


Post-Processors are actions which are performed after your sampler has been executed. You can use them to perform some actions on your response or extract some values out from the response and save them in a variable which can be used later. You can achieve co-relation functionality by making use of post-processors.

XPath Post-Processor uses Regular Expression string to fetch some values from the response of your request. The value(s) which is extracted can be stored in any variable and can be a reference in any further request in the test plan.  Values can be extracted from the main sample, sub samples and all other fields provided when you add this processor to your test plan.

XPath Syntax is “ //tag-name[@attribute=’value’] where tag-name is your HTML Tag name. Make sure you check the Tidy Parser option checked when the response to be parsed is (XML and HTML). In case it is pure XML response, you can uncheck this option.