This is a bug in JMeter 2.1 and 2.1.1 - it uses the filename as the
key to the extracted nodelist, so only the first expression is used.
One way round this is to give the file a different name for each path, e.g.
myFile.xml
and
./myFile.xml
or
MyFile.xml
if you are running on a case-blind system
Otherwise, you could try using a recent nightly build...
S.
On 03/03/06, Parham, Clinton <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was hoping I could use the XPath function to extract multiple
> attribute values from the same element and set them as HTTP parameters
> using this syntax:
> Param1=${__XPath(myFile.xml, //record/@firstName)}
> Param2=${__XPath(myFile.xml, //record/@lastName)}
>
> Here's a snippet of the XML:
> <records>
> <record firstName="abc" lastName="def" />
> <record firstName="ghi" lastName="jkl"/>
> </records>
>
> Unfortunately, I get "abc" for Param1 and Param2 when the thread group
> runs. Is this a limitation of the function or am I misunderstanding
> something? How can I extract "abc" and "def" for Param1 and Param2
> respectively from the same thread group?
>
> I'm running JMeter 2.1
>
> Thanks,
> Clinton
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]