@Mojo(name="configure", defaultPhase=COMPILE) public class ConfigureJMeterMojo extends AbstractJMeterMojo
Modifier and Type | Field and Description |
---|---|
protected static File |
customPropertiesDirectory |
static String |
JMETER_CONFIG_ARTIFACT_NAME |
protected static org.eclipse.aether.artifact.Artifact |
jmeterConfigArtifact |
protected List<String> |
jmeterExtensions
A list of artifacts that should be copied into the lib/ext directory e.g.
|
protected List<String> |
junitLibraries
A list of artifacts that should be copied into the lib/junit directory e.g.
|
protected static File |
libDirectory |
protected static File |
libExtDirectory |
protected static File |
libJUnitDirectory |
protected File |
propertiesFilesDirectory
Path under which .properties files are stored.
|
protected Map<String,String> |
propertiesGlobal
JMeter Global Properties that override those given in jmeterProps.
|
protected Map<String,String> |
propertiesJMeter
Absolute path to JMeter custom (test dependent) properties file.
|
protected boolean |
propertiesReplacedByCustomFiles
Replace the default JMeter properties with any custom properties files supplied.
|
protected Map<String,String> |
propertiesSaveService
JMeter Properties that are merged with precedence into default JMeter file in saveservice.properties
|
protected Map<String,String> |
propertiesSystem
(Java) System properties set for the test run.
|
protected Map<String,String> |
propertiesUpgrade
JMeter Properties that are merged with precedence into default JMeter file in upgrade.properties
|
protected Map<String,String> |
propertiesUser
JMeter Properties that are merged with precedence into default JMeter file in user.properties
user.properties takes precedence over jmeter.properties
|
protected String |
resultsFileFormat
Set the format of the results generated by JMeter
Valid values are: xml, csv (XML set by default).
|
appendResultsTimestamp, customPropertiesFiles, jmeterDirectory, jMeterProcessJVMSettings, logConfigFilename, logsDirectory, mojoExecution, overrideRootLogLevel, postTestPauseInSeconds, propertiesMap, proxyConfig, remoteConfig, resultFilesLocations, resultsDirectory, resultsFileNameDateFormat, resultsOutputIsCSVFormat, runtimeJarName, settings, skipTests, suppressJMeterOutput, testArgs, testFilesBuildDirectory, testFilesDirectory, testFilesExcluded, testFilesIncluded, testResultsTimestamp, useMavenProxy, workingDirectory
Constructor and Description |
---|
ConfigureJMeterMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureAdvancedLogging() |
protected void |
configurePropertiesFiles() |
void |
doExecute()
Configure a local instance of JMeter
|
protected void |
generateJMeterDirectoryTree()
Generate the directory tree utilised by JMeter.
|
void |
setDefaultPluginProperties(String userDirectory) |
protected void |
setJMeterResultFileFormat() |
execute, initialiseJMeterArgumentsArray, loadMavenProxy
@Parameter protected List<String> jmeterExtensions
@Parameter protected List<String> junitLibraries
@Parameter protected Map<String,String> propertiesJMeter
@Parameter protected Map<String,String> propertiesSaveService
@Parameter protected Map<String,String> propertiesUpgrade
@Parameter protected Map<String,String> propertiesUser
@Parameter protected Map<String,String> propertiesGlobal
@Parameter protected Map<String,String> propertiesSystem
@Parameter(defaultValue="${basedir}/src/test/jmeter") protected File propertiesFilesDirectory
@Parameter(defaultValue="true") protected boolean propertiesReplacedByCustomFiles
@Parameter(defaultValue="xml") protected String resultsFileFormat
public static final String JMETER_CONFIG_ARTIFACT_NAME
protected static org.eclipse.aether.artifact.Artifact jmeterConfigArtifact
protected static File customPropertiesDirectory
protected static File libDirectory
protected static File libExtDirectory
protected static File libJUnitDirectory
public void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
doExecute
in class AbstractJMeterMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void generateJMeterDirectoryTree()
protected void configurePropertiesFiles() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void setDefaultPluginProperties(String userDirectory)
protected void setJMeterResultFileFormat()
protected void configureAdvancedLogging() throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
Copyright © 2016. All rights reserved.