@Mojo(name="configure",
defaultPhase=COMPILE)
public class ConfigureJMeterMojo
extends AbstractJMeterMojo
| Modifier and Type | Field and Description |
|---|---|
protected static File |
customPropertiesDirectory |
protected boolean |
downloadExtensionDependencies
Download all dependencies of files you want to add to lib/ext and copy them to lib/ext too
<downloadExtensionDependencies>
<true>
<downloadExtensionDependencies>
|
protected boolean |
downloadJMeterDependencies
Download all transitive dependencies of the JMeter artifacts.
|
protected boolean |
downloadLibraryDependencies
Download all dependencies of files you want to add to lib/junit and copy them to lib/junit too
<downloadLibraryDependencies>
<true>
<downloadLibraryDependencies>
|
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).
|
protected boolean |
resultsOutputIsCSVFormat |
appendResultsTimestamp, customPropertiesFiles, jmeterDirectory, jMeterProcessJVMSettings, logConfigFilename, logsDirectory, mojoExecution, overrideRootLogLevel, postTestPauseInSeconds, propertiesMap, proxyConfig, remoteConfig, resultsDirectory, resultsFileNameDateFormat, runtimeJarName, settings, skipTests, suppressJMeterOutput, testArgs, testConfigFile, 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.
|
protected void |
generateTestConfig() |
void |
setDefaultPluginProperties(String userDirectory) |
protected void |
setJMeterResultFileFormat() |
execute, initialiseJMeterArgumentsArray, loadMavenProxy@Parameter(defaultValue="true") protected boolean downloadExtensionDependencies
@Parameter protected List<String> jmeterExtensions
@Parameter(defaultValue="false") protected boolean downloadJMeterDependencies
@Parameter(defaultValue="true") protected boolean downloadLibraryDependencies
@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
protected boolean resultsOutputIsCSVFormat
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 AbstractJMeterMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void generateJMeterDirectoryTree()
protected void configurePropertiesFiles()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void generateTestConfig()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void setDefaultPluginProperties(String userDirectory)
protected void setJMeterResultFileFormat()
protected void configureAdvancedLogging()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionCopyright © 2017. All rights reserved.