public class XPath
extends org.apache.jmeter.functions.AbstractFunction
Syntax is similar to the CVSRead function. The function allows the test to line-thru the nodes in the XML file - one node per each test, e.g. inserting the following in the test scripts:
${_XPath(c:/BOF/abcd.xml,/xpath/)} // match the (first) node
${_XPath(c:/BOF/abcd.xml,/xpath/)} // Go to next match of '/xpath/' expression
NOTE: A single instance of each different file/expression combination
is opened and used for all threads.Constructor and Description |
---|
XPath() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
execute(org.apache.jmeter.samplers.SampleResult previousResult,
org.apache.jmeter.samplers.Sampler currentSampler) |
java.util.List<java.lang.String> |
getArgumentDesc() |
java.lang.String |
getReferenceKey() |
void |
setParameters(java.util.Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) |
public java.lang.String execute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) throws org.apache.jmeter.functions.InvalidVariableException
execute
in interface org.apache.jmeter.functions.Function
execute
in class org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.InvalidVariableException
public java.util.List<java.lang.String> getArgumentDesc()
public java.lang.String getReferenceKey()
getReferenceKey
in interface org.apache.jmeter.functions.Function
getReferenceKey
in class org.apache.jmeter.functions.AbstractFunction
public void setParameters(java.util.Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) throws org.apache.jmeter.functions.InvalidVariableException
setParameters
in interface org.apache.jmeter.functions.Function
setParameters
in class org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.InvalidVariableException
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.