How can I save a result set after running the Jmeter Test using a program (JAVA CODE)?

前端 未结 2 1769
暗喜
暗喜 2021-01-21 13:15

I have run the Jmeter Script using Jmeter dependency in eclipse using Java code, fortunately, my script is running fine but now I\'m unable to store the result for the same. Can

2条回答
  •  春和景丽
    2021-01-21 13:34

    I have solved it by myself..

    if (summariserName.length() > 0) {  
        summer = new Summariser(summariserName);  
      }  
    
      String logFile = "D:/apache-jmeter-5.1.1/extras/resultss.xml";
      ResultCollector logger = new ResultCollector(summer);  
      logger.setFilename(logFile);
      testPlanTree.add(testPlanTree.getArray()[0], logger); 
    

提交回复
热议问题