@Mojo(name="configure", defaultPhase=COMPILE) public class ConfigureJMeterMojo extends AbstractJMeterMojo
LifecyclePhase.COMPILE
.Modifier and Type | Field and Description |
---|---|
protected 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>
|
protected boolean |
downloadOptionalDependencies
Download all optional transitive dependencies of artifacts.
|
protected 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 File |
libDirectory |
protected File |
libExtDirectory |
protected 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> |
propertiesReportGenerator
JMeter Properties that are merged with precedence into default JMeter file in reportgenerator.properties
|
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 (CSV set by default).
|
protected boolean |
resultsOutputIsCSVFormat |
protected List<String> |
testPlanLibraries
A list of artifacts that are used by the test like JMS activemq.
|
appendResultsTimestamp, confFilesDirectory, customPropertiesFiles, generateReports, JMETER_ARTIFACT_NAME, JMETER_ARTIFACT_PREFIX, JMETER_CONFIG_ARTIFACT_NAME, JMETER_GROUP_ID, jmeterDirectory, jMeterProcessJVMSettings, JORPHAN_ARTIFACT_NAME, LINE_SEPARATOR, logsDirectory, mojoExecution, overrideRootLogLevel, postTestPauseInSeconds, projectBuildDirectory, proxyConfig, remoteConfig, reportDirectory, resultsDirectory, resultsFileNameDateFormat, RUN_HEADLESS_OPT, settings, skipTests, suppressJMeterOutput, testConfigFile, testFilesBuildDirectory, testFilesDirectory, testFilesExcluded, testFilesIncluded, testResultsTimestamp, useMavenProxy
Constructor and Description |
---|
ConfigureJMeterMojo() |
Modifier and Type | Method and Description |
---|---|
void |
doExecute()
Configure a local instance of JMeter
|
protected void |
generateTestConfig() |
void |
setDefaultPluginProperties(String userDirectory) |
protected void |
setJMeterResultFileFormat() |
computeJMeterArgumentsArray, containsHeadless, execute, loadMavenProxy
@Parameter(defaultValue="true") protected boolean downloadExtensionDependencies
@Parameter protected List<String> jmeterExtensions
@Parameter(defaultValue="false") protected boolean downloadJMeterDependencies
@Parameter(defaultValue="false") protected boolean downloadOptionalDependencies
@Parameter(defaultValue="true") protected boolean downloadLibraryDependencies
@Parameter protected List<String> junitLibraries
@Parameter protected List<String> testPlanLibraries
@Parameter protected Map<String,String> propertiesJMeter
@Parameter protected Map<String,String> propertiesSaveService
@Parameter protected Map<String,String> propertiesReportGenerator
@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="csv") protected String resultsFileFormat
protected boolean resultsOutputIsCSVFormat
protected org.eclipse.aether.artifact.Artifact jmeterConfigArtifact
protected File customPropertiesDirectory
protected File libDirectory
protected File libExtDirectory
protected 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 generateTestConfig() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void setJMeterResultFileFormat()
public void setDefaultPluginProperties(String userDirectory)
Copyright © 2019. All rights reserved.