|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.lazerycode.jmeter.JMeterAbstractMojo
public abstract class JMeterAbstractMojo
JMeter Maven plugin. This is a base class for the JMeter mojos.
| Field Summary | |
|---|---|
protected File |
binDir
Other directories will be created by this plugin and used by JMeter |
protected File |
customPropertiesFile
Absolute path to JMeter custom (test dependent) properties file. |
protected boolean |
ignoreResultErrors
Sets whether ErrorScanner should ignore errors in JMeter result file. |
protected boolean |
ignoreResultFailures
Sets whether ErrorScanner should ignore failures in JMeter result file. |
protected String |
jmeterConfigArtifact
All property files are stored in this artifact, comes with JMeter library |
protected File |
libDir
|
protected File |
libExtDir
|
protected File |
logsDir
|
protected org.apache.maven.project.MavenProject |
mavenProject
|
protected List<org.apache.maven.artifact.Artifact> |
pluginArtifacts
Get a list of artifacts used by this plugin |
protected PropertyHandler |
pluginProperties
|
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 ProxyConfiguration |
proxyConfig
Value class that wraps all proxy configurations. |
protected RemoteConfiguration |
remoteConfig
Value class that wraps all remote configurations. |
protected File |
resultsDir
|
protected String |
resultsFileNameDateFormat
Set the SimpleDateFormat appended to the results filename. |
protected boolean |
suppressJMeterOutput
Suppress JMeter output |
protected JMeterArgumentsArray |
testArgs
|
protected File |
testFilesDirectory
Path under which JMX files are stored. |
protected List<String> |
testFilesExcluded
Sets the list of exclude patterns to use in directory scan for Test files. |
protected List<String> |
testFilesIncluded
Sets the list of include patterns to use in directory scan for JMX files. |
protected boolean |
testResultsTimestamp
Timestamp the test results. |
protected File |
workDir
JMeter outputs. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
JMeterAbstractMojo()
|
|
| Method Summary | |
|---|---|
protected void |
generateJMeterDirectoryTree()
Generate the directory tree utilised by JMeter. |
protected org.apache.maven.artifact.Artifact |
getArtifactNamed(String artifactName)
Search the list of plugin artifacts for an artifact with a specific name |
protected void |
initialiseJMeterArgumentsArray()
Generate the initial JMeter Arguments array that is used to create the command line that we pass to JMeter. |
protected SecurityManager |
overrideSecurityManager()
Capture System.exit commands so that we can check to see if JMeter is trying to kill us without warning. |
protected Thread.UncaughtExceptionHandler |
overrideUncaughtExceptionHandler()
Override System.exit(0) to ensure JMeter doesn't kill us without warning. |
protected void |
populateJMeterDirectoryTree()
Copy jars/files to correct place in the JMeter directory tree. |
protected void |
propertyConfiguration()
|
protected void |
waitForTestToFinish(List<String> threadNames)
Wait for one of the JMeterThreads in the list to stop. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute |
| Field Detail |
|---|
protected List<String> testFilesIncluded
protected List<String> testFilesExcluded
protected File testFilesDirectory
protected boolean testResultsTimestamp
protected String resultsFileNameDateFormat
protected Map<String,String> propertiesJMeter
protected Map<String,String> propertiesSaveService
protected Map<String,String> propertiesUpgrade
protected Map<String,String> propertiesUser
protected Map<String,String> propertiesGlobal
protected Map<String,String> propertiesSystem
protected boolean propertiesReplacedByCustomFiles
protected File customPropertiesFile
protected boolean ignoreResultFailures
protected boolean ignoreResultErrors
protected ProxyConfiguration proxyConfig
protected RemoteConfiguration remoteConfig
protected boolean suppressJMeterOutput
protected org.apache.maven.project.MavenProject mavenProject
protected List<org.apache.maven.artifact.Artifact> pluginArtifacts
protected transient File workDir
protected File binDir
protected File libDir
protected File libExtDir
protected File logsDir
protected File resultsDir
protected String jmeterConfigArtifact
protected JMeterArgumentsArray testArgs
protected PropertyHandler pluginProperties
| Constructor Detail |
|---|
public JMeterAbstractMojo()
| Method Detail |
|---|
protected void generateJMeterDirectoryTree()
protected void propertyConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void populateJMeterDirectoryTree()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.artifact.Artifact getArtifactNamed(String artifactName)
throws org.apache.maven.plugin.MojoExecutionException
artifactName -
org.apache.maven.plugin.MojoExecutionException
protected void initialiseJMeterArgumentsArray()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void waitForTestToFinish(List<String> threadNames)
throws InterruptedException
InterruptedExceptionprotected SecurityManager overrideSecurityManager()
protected Thread.UncaughtExceptionHandler overrideUncaughtExceptionHandler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||