title: jmeter - generate jmx file using jmeter api 2.11
body: <p>I am trying to build a java app that would read some access files and dynamicaly create some load and/or functional test scenarios. I am using the jmeter API 2.11.</p>
  
  <p>The application would run within a CI (jenkins). Now, I have heard of some Jenkins Plugin for jmeter that executes some predefined test and eventually produces a user friendly graphical report, I didn't get that far though. First of all I was able to programm a pretty simple  test with httpSampler and just one thread/loop. I could run it within the application using StandardJMeterEngine functionality configure() &amp; run().</p>
  
  <p>Instead, I would like to generate an output jmx file for each test plan so I could use it as an input for the CI test execution/reporting part.</p>
  
  <p>I have found a class <strong>org.apache.jmeter.protocol.http.util.accesslog.StandardGenerator</strong> that would eventually take over the task. Does anyone had a simmilar task/problem and knows the best approach here? I would really appreciate any answer.
  Best Redards
  m.</p>