JMeterUtils.loadJMeterProperties("target/jmeter/home/bin/saveservice.properties");
JMeterUtils.setLocale(Locale.ENGLISH);
JMeterUtils.setJMeterHome("target/jmeter/home");
// Result collector
ResultCollector resultCollector = new ResultCollector();
resultCollector.setFilename("target/jmeter/report.jtl");
SampleSaveConfiguration saveConfiguration = new SampleSaveConfiguration();
saveConfiguration.setAsXml(true);
saveConfiguration.setCode(true);
saveConfiguration.setLatency(true);
saveConfiguration.setTime(true);
saveConfiguration.setTimestamp(true);
resultCollector.setSaveConfig(saveConfiguration);
// Thread Group
ThreadGroup threadGroup = new ThreadGroup();
threadGroup.setName("xwiki");
threadGroup.setNumThreads(1);