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.
The XPATH extractor already sets multiple variables if there are multiple matches. It's not clear what you are requesting.
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
My apologies, I've changed the status of this issue incorrectly. Going back to the originally status NEEDINFO
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.
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.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2944