I got an answer like the following:
<response>
<status code='200' server_time='xxx' />
<tests>
<test id='1' name='a!' status='Started' />
<test id='2' name='bb!' status='New' />
<test id='3' name='ccc!' status='New' />
<test id='4' name='dddd!' status='New' />
</tests>
</response>
I already added an Xpath extractor to the sampler:
Reference name: mytest
XPath Query: //test[@id='1']
But the return variable (mytest) is incorrect.
OUT.println(mytest) --> void
I am new to JMeter. What can I do to solve this problem?
source
share