protected JMeterArgumentsArray computeJMeterArgumentsArray ( boolean disableGUI , boolean isCSVFormat ) throws MojoExecutionException { JMeterArgumentsArray testArgs = new JMeterArgumentsArray ( disableGUI , jmeterDirectory . getAbsolutePath ( ) ) . setResultsDirectory ( resultsDirectory . getAbsolutePath ( ) ) . setResultFileOutputFormatIsCSV ( isCSVFormat ) . setProxyConfig ( proxyConfig ) . setLogRootOverride ( overrideRootLogLevel ) . setLogsDirectory ( logsDirectory . getAbsolutePath ( ) ) . addACustomPropertiesFiles ( customPropertiesFiles ) ; if ( generateReports && disableGUI ) { testArgs . setReportsDirectory ( reportDirectory . getAbsolutePath ( ) ) ; } if ( testResultsTimestamp ) { testArgs . setResultsTimestamp ( true ) . appendTimestamp ( appendResultsTimestamp ) . setResultsFileNameDateFormat ( resultsFileNameDateFormat ) ; } return testArgs ; }
Generate the initial JMeter Arguments array that is used to create the command line that we pass to JMeter .