Xpath Extractor Post-Processor in JMeter

By Vijay

By Vijay

I'm Vijay, and I've been working on this blog for the past 20+ years! I’ve been in the IT industry for more than 20 years now. I completed my graduation in B.E. Computer Science from a reputed Pune university and then started my career in…

Learn about our editorial policies.
Updated September 6, 2024

Overview

Hi, Testers!!

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

You will learn to use:

  • XPath Post-Processor

=> Click here for The Complete Free Training On JMeter (20+ Videos)

Xpath Extractor Post-Processor in JMeter

Watch The VIDEO Tutorial

<< PREV   |     NEXT >>

Post-Processors are actions that 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 that can be used later. You can achieve co-relation functionality by making use of post-processors.

XPath Post-Processor uses a Regular Expression string to fetch some values from the response to your request. The value(s) that 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, subsamples, 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 a pure XML response, you can uncheck this option.

=> Click here for The Complete Free Training On JMeter (20+ Videos)

Was this helpful?

Thanks for your feedback!

Leave a Comment