I have set up a Test Plan using Jmeter with XMPP plugin and openfire (as my server) . When I run my test (using the Jmeter GUI) for each: XMPP Collect Packages Sample I am getting a response data as number of packets received along with packets itself, I need to get the subSample result .
IN BeanShell Sampler I have
import org.apache.jmeter.samplers.SampleResult;
System.out.println( "myData-->"+SampleResult subResult :
SampleResult.getSubResults());
I keep getting this error:
Typed variable declaration : Cannot reach instance method: getSubResults() from static context: org.apache.jmeter.samplers.SampleResult
From GUI when I click on the message from collectPackage sampler itself I see:
<message id='Q93Ww-102' to='user0@n-dev-xyz' from='user0@n-dev-xyz/jmeter'><body>Hello, it's user1</body></message>