Bug 53973 - Enhance XPATH Extractor to support multiple field extraction
Summary: Enhance XPATH Extractor to support multiple field extraction
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-05 15:50 UTC by chirag
Modified: 2017-12-27 18:19 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chirag 2012-10-05 15:50:02 UTC
Please Enhance XPATH extraction to support extraction of multiple variables using one XPATH Post- processor. This will be a faster approach and will require less number of steps in the script.
Comment 1 Sebb 2012-11-01 16:02:25 UTC
The XPATH extractor already sets multiple variables if there are multiple matches.

It's not clear what you are requesting.
Comment 2 chirag 2012-11-01 21:35:24 UTC
what I mean is if we can have ability to provide multiple Xpath and assign them to different variables using one single XPATH extractor.

e.g. 

Variable OrderNo = /Order/Header/OrderNo
Variable OrderType = /Order/Header/OrderType
Comment 3 Germán Bisogno 2012-11-19 23:07:07 UTC
My apologies, I've changed the status of this issue incorrectly.  Going back to the originally status NEEDINFO
Comment 4 mayankg1 2013-04-04 11:57:29 UTC
I have similar requirement so rather than adding multiple XPath Extractor component to get multiple variable values, within a single Xpath Extractor, there should be way to add multiple reference variable and their corresponding XPath.
Comment 5 Soumya Nayak 2017-12-27 18:16:30 UTC
If you want to use a single Xpath Extractor and multiple query strings then its possible just give a reference variable name for eg- myVar and in the query string put all the queries in order separated by '|' (pipe) symbol so as per sequence you can get the values as myVar_1, myVar_2 and so on. Hope it resolves if any doubt please let me know.
Comment 6 The ASF infrastructure team 2022-09-24 20:37:51 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2944