Class JMeterArgumentsArray
- java.lang.Object
-
- com.lazerycode.jmeter.configuration.JMeterArgumentsArray
-
public class JMeterArgumentsArray extends Object
Creates an arguments array to pass to the JMeter object to run tests.- Author:
- Mark Collin
-
-
Constructor Summary
Constructors Constructor Description JMeterArgumentsArray(boolean disableGUI, String jMeterHomeDirectory)
Create an instance of JMeterArgumentsArray
-
Method Summary
-
-
-
Constructor Detail
-
JMeterArgumentsArray
public JMeterArgumentsArray(boolean disableGUI, String jMeterHomeDirectory) throws org.apache.maven.plugin.MojoExecutionException
Create an instance of JMeterArgumentsArray- Parameters:
disableGUI
- If GUI should be disabled or notjMeterHomeDirectory
- The JMETER_HOME directory, what JMeter bases its classpath on- Throws:
org.apache.maven.plugin.MojoExecutionException
- Exception
-
-
Method Detail
-
setRemoteStop
public JMeterArgumentsArray setRemoteStop()
-
setRemoteStart
public JMeterArgumentsArray setRemoteStart()
-
setRemoteStartServerList
public JMeterArgumentsArray setRemoteStartServerList(String serverList)
-
setProxyConfig
public JMeterArgumentsArray setProxyConfig(ProxyConfiguration configuration)
-
addACustomPropertiesFiles
public JMeterArgumentsArray addACustomPropertiesFiles(List<File> customPropertiesFiles)
-
setLogRootOverride
public JMeterArgumentsArray setLogRootOverride(String requestedLogLevel)
-
setResultsDirectory
public JMeterArgumentsArray setResultsDirectory(String resultsDirectory)
-
setLogsDirectory
public JMeterArgumentsArray setLogsDirectory(String logsDirectory)
-
setResultsTimestamp
public JMeterArgumentsArray setResultsTimestamp(boolean addTimestamp)
-
setResultsFileNameDateFormat
public JMeterArgumentsArray setResultsFileNameDateFormat(String dateFormat)
-
appendTimestamp
public JMeterArgumentsArray appendTimestamp(boolean append)
-
setResultFileOutputFormatIsCSV
public JMeterArgumentsArray setResultFileOutputFormatIsCSV(boolean isCSVFormat)
-
setTestFile
public JMeterArgumentsArray setTestFile(File value, File testFilesDirectory)
-
setReportsDirectory
public JMeterArgumentsArray setReportsDirectory(String reportDirectory)
-
setServerMode
public JMeterArgumentsArray setServerMode(String exportedHostname, int port)
-
getResultsLogFileName
public String getResultsLogFileName()
-
buildArgumentsArray
public List<String> buildArgumentsArray() throws org.apache.maven.plugin.MojoExecutionException
Generate an arguments array representing the command line options you want to send to JMeter. The order of the array is determined by the order the values in JMeterCommandLineArguments are defined.- Returns:
- An array representing the command line sent to JMeter
- Throws:
org.apache.maven.plugin.MojoExecutionException
- Exception
-
-