在使用jmeter时出现问题
Jmeter error: jmeter.samplers.SampleResult: sampleEnd called twice java.lang.Throwable: Invalid call sequence
解决:
将 SampleResult 定义成局部变量即可解决。
public SampleResult runTest(JavaSamplerContext arg0) {
// TODO Auto-generated method stub
//获取sessionId事务
//results.sampleStart();
//results.sampleEnd();
SampleResult results=new SampleResult();
try {
doXXX