-
public class JMeterExtensionCentral configuration class. Herein configured properties will be used as default for any JMeter*Task.
-
-
Field Summary
Fields Modifier and Type Field Description private final JMeterConfigtoolprivate final ConfigurableFileCollectionsystemPropertyFilesprivate final MapProperty<String, String>systemPropertiesprivate final RegularFilePropertymainPropertyFileprivate final ConfigurableFileCollectionadditionalPropertyFilesprivate final MapProperty<String, String>jmeterPropertiesprivate final DirectoryPropertycustomReportTemplateDirectoryprivate final RegularFilePropertyglobalPropertiesFileprivate final MapProperty<String, String>globalPropertiesprivate final RegularFilePropertylogConfigprivate final RegularFilePropertylogOutputFileprivate final DirectoryPropertyjmxRootDirprivate final DirectoryPropertyresultDirprivate final DirectoryPropertyreportDirprivate final Property<String>maxHeapprivate final ListProperty<String>jvmArgs
-
Constructor Summary
Constructors Constructor Description JMeterExtension(Project project)
-
Method Summary
Modifier and Type Method Description final JMeterConfiggetTool()Stores the settings of jMeter tool. final ConfigurableFileCollectiongetSystemPropertyFiles()Additional system property file(s). final MapProperty<String, String>getSystemProperties()Define additional system properties. final RegularFilePropertygetMainPropertyFile()The jmeter property file to use. final ConfigurableFileCollectiongetAdditionalPropertyFiles()Additional JMeter property file(s). final MapProperty<String, String>getJmeterProperties()Define additional JMeter properties. final DirectoryPropertygetCustomReportTemplateDirectory()Path to a custom report-template folder used by report generator. final RegularFilePropertygetGlobalPropertiesFile()Path to a JMeter property file which will be sent to all servers. final MapProperty<String, String>getGlobalProperties()Properties which will be sent to remote servers. final RegularFilePropertygetLogConfig()Path to the logger-configuration file (attow log4j2.xml) required by jmeter.final RegularFilePropertygetLogOutputFile()File where jmeter log will be written to. final DirectoryPropertygetJmxRootDir()Root directory used by tasks to resolve its jmxFile. final DirectoryPropertygetResultDir()Directory where to write the results of a jmeter run. final DirectoryPropertygetReportDir()Directory where to put the reports. final Property<String>getMaxHeap()Declares the maximum heap size of the JVM process. final ListProperty<String>getJvmArgs()JVM-arguments that will be passed to the java process which executes jMeter. final Unittool(Action<JMeterConfig> action)Configure the jmeter tool. final UnitwithGuiTask(String name, Function1<JMeterGuiTask, Unit> configurationAction)Creates task which starts the jMeter GUI. -
-
Method Detail
-
getTool
final JMeterConfig getTool()
Stores the settings of jMeter tool. Use tool for configuration.
-
getSystemPropertyFiles
final ConfigurableFileCollection getSystemPropertyFiles()
Additional system property file(s).
-
getSystemProperties
final MapProperty<String, String> getSystemProperties()
Define additional system properties.
-
getMainPropertyFile
final RegularFileProperty getMainPropertyFile()
The jmeter property file to use.
-
getAdditionalPropertyFiles
final ConfigurableFileCollection getAdditionalPropertyFiles()
Additional JMeter property file(s).
-
getJmeterProperties
final MapProperty<String, String> getJmeterProperties()
Define additional JMeter properties.
-
getCustomReportTemplateDirectory
final DirectoryProperty getCustomReportTemplateDirectory()
Path to a custom report-template folder used by report generator.
-
getGlobalPropertiesFile
final RegularFileProperty getGlobalPropertiesFile()
Path to a JMeter property file which will be sent to all servers.
-
getGlobalProperties
final MapProperty<String, String> getGlobalProperties()
Properties which will be sent to remote servers.
-
getLogConfig
final RegularFileProperty getLogConfig()
Path to the logger-configuration file (attow
log4j2.xml) required by jmeter.Defaults to the file bundled with the plugin.
-
getLogOutputFile
final RegularFileProperty getLogOutputFile()
File where jmeter log will be written to.
Defaults to
<buildDir>/logs/jmeter.log
-
getJmxRootDir
final DirectoryProperty getJmxRootDir()
Root directory used by tasks to resolve its jmxFile.
Defaults to
src/test/jmeter
-
getResultDir
final DirectoryProperty getResultDir()
Directory where to write the results of a jmeter run.
Defaults to <buildDir>/test-results/jmeter
-
getReportDir
final DirectoryProperty getReportDir()
Directory where to put the reports.
Defaults to
<buildDir>/reports/jmeter
-
getMaxHeap
final Property<String> getMaxHeap()
Declares the maximum heap size of the JVM process.
-
getJvmArgs
final ListProperty<String> getJvmArgs()
JVM-arguments that will be passed to the java process which executes jMeter.
-
tool
final Unit tool(Action<JMeterConfig> action)
Configure the jmeter tool.
See JMeterConfig for details.
-
withGuiTask
final Unit withGuiTask(String name, Function1<JMeterGuiTask, Unit> configurationAction)
Creates task which starts the jMeter GUI.
- Parameters:
name- Name under which the task will be registered.configurationAction- Optional additional configuration that will be applied to the task.
-
-
-
-