@Mojo(name="configure", defaultPhase=COMPILE) public class ConfigureJMeterMojo extends AbstractJMeterMojo
LifecyclePhase.COMPILE
.Modifier and Type | Field and Description |
---|---|
protected List<RepositoryConfiguration> |
additionalRepositories |
protected Path |
binDirectory |
protected Path |
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 Path |
jmeterDirectoryPath |
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 Path |
libDirectory |
protected Path |
libExtDirectory |
protected Path |
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, DEFAULT_CONFIG_EXECUTION_ID, doNotFailBuildIfJVMIsKilled, generateReports, JMETER_ARTIFACT_NAME, JMETER_ARTIFACT_PREFIX, JMETER_CONFIG_ARTIFACT_NAME, jMeterProcessJVMSettings, JORPHAN_ARTIFACT_NAME, LINE_SEPARATOR, logsDirectory, mojoExecution, overrideRootLogLevel, postTestPauseInSeconds, projectBuildDirectory, proxyConfig, remoteConfig, reportDirectory, resultsDirectory, resultsFileNameDateFormat, selectedConfiguration, session, settings, skipTests, suppressJMeterOutput, testConfig, 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
|
void |
setDefaultPluginProperties(String userDirectory) |
protected void |
setJMeterResultFileFormat() |
computeJMeterArgumentsArray, execute, loadMavenProxy
@Parameter protected List<RepositoryConfiguration> additionalRepositories
@Parameter(defaultValue="true") protected boolean downloadExtensionDependencies
@Parameter protected List<String> jmeterExtensions
@Parameter(defaultValue="true") 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 Path customPropertiesDirectory
protected Path jmeterDirectoryPath
protected Path binDirectory
protected Path libDirectory
protected Path libExtDirectory
protected Path libJUnitDirectory
public void doExecute() throws org.apache.maven.plugin.MojoExecutionException
doExecute
in class AbstractJMeterMojo
org.apache.maven.plugin.MojoExecutionException
- Exceptionprotected void setJMeterResultFileFormat()
public void setDefaultPluginProperties(String userDirectory)
Copyright © 2020. All rights reserved.