title: Jmeter Multiple SampleResult for AbstractJavaSamplerClient
body: <p>I wrote a custom Java Request which extends the <code>AbstractJavaSamplerClient</code> to measure the performance of a JAVA API invocation. However, now i need to measure the performance for a multiple API which is part of the same use case.</p>
  
  <p>i.e.</p>
  
  <pre><code>Server severInst = new Server();
  severInst.api1(); 
  severInst.api2();
  severInst.api3();
  </code></pre>
  
  <p>Need to get the metrics in Jmeter for each API invocation (api1, api2, api3). However, I cannot split those API calls since the api2 call is dependent on api1. (same for api3 which depends on api2). If i could split then I can write a different "Java Sampler Client" for each API. Since all these apis are inter-dependent i have to invoke all of them at once.</p>
  
  <p>The method <code>runTest</code> returns only one <code>SampleResult</code>. However, I am in need of a situation where I need to return the multiple SampleResult. I tried the <code>SampleResult.setParent()</code> and <code>SampleResult.storeSubResult()</code> but no luck.</p>
  
  <p>Any pointer on this will be helpful?</p>
  
  <p>Thanks</p>