-
public final class JMeterConfigClass to configure the jMeter tool.
Provides settings for the used dependency of the main runner (group, name, version, main class).
Remark: Be careful when changing this properties.
-
-
Constructor Summary
Constructors Constructor Description JMeterConfig(Project project)
-
Method Summary
Modifier and Type Method Description final StringgetGroup()The group id of the main library. final UnitsetGroup(String group)The group id of the main library. final StringgetName()The module name (artifact-id) of the main library. final UnitsetName(String name)The module name (artifact-id) of the main library. final StringgetVersion()Overall version of jmeter. final UnitsetVersion(String version)Overall version of jmeter. final Function1<ExternalModuleDependency, Unit>getMainConfigureClosure()Closure that will be applied to the dependencydeclaration for the main library.final UnitsetMainConfigureClosure(Function1<ExternalModuleDependency, Unit> mainConfigureClosure)Closure that will be applied to the dependencydeclaration for the main library.final Property<String>getMainClass()The fully qualified name of the Main class to be executed. final UnitapplyTo(Configuration config)Convenience method to add the jmeter tool dependency with the current setting to the project. final UnitapplyApacheComponents(Configuration config)final DependencyapplyBomWorkaround(Dependency dependency)Workaround for invalid bom reference in jmeter-module-descriptor. final Map<String, String>createToolConfigDependencyNotion()final Map<String, String>jmeterDependency(String name, String version)Creates a dependency notation for a jmeter core extension where group is group. -
-
Method Detail
-
getGroup
final String getGroup()
The group id of the main library. Used to resolve the
jmeter libraryandconfiguration librarywithin a repository.Default:
org.apache.jmeter
-
setGroup
final Unit setGroup(String group)
The group id of the main library. Used to resolve the
jmeter libraryandconfiguration librarywithin a repository.Default:
org.apache.jmeter
-
getName
final String getName()
The module name (artifact-id) of the main library. Used to resolve the
jmeter libraryandconfiguration librarywithin a repository.Default:
ApacheJMeter
-
setName
final Unit setName(String name)
The module name (artifact-id) of the main library. Used to resolve the
jmeter libraryandconfiguration librarywithin a repository.Default:
ApacheJMeter
-
getVersion
final String getVersion()
Overall version of jmeter. Used to resolve the
jmeter libraryandconfiguration librarywithin a repository.Remark: If change make sure that additional provided resources like *.properties match! To compare against the default properties, execute the
setupJMeter-task and use the files in the build/jmeter folder.Defaults to '5.4.1'
-
setVersion
final Unit setVersion(String version)
Overall version of jmeter. Used to resolve the
jmeter libraryandconfiguration librarywithin a repository.Remark: If change make sure that additional provided resources like *.properties match! To compare against the default properties, execute the
setupJMeter-task and use the files in the build/jmeter folder.Defaults to '5.4.1'
-
getMainConfigureClosure
final Function1<ExternalModuleDependency, Unit> getMainConfigureClosure()
Closure that will be applied to the
dependencydeclaration for the main library. Default:null
-
setMainConfigureClosure
final Unit setMainConfigureClosure(Function1<ExternalModuleDependency, Unit> mainConfigureClosure)
Closure that will be applied to the
dependencydeclaration for the main library. Default:null
-
getMainClass
final Property<String> getMainClass()
The fully qualified name of the Main class to be executed.
Defaults to
org.apache.jmeter.NewDriver
-
applyTo
final Unit applyTo(Configuration config)
Convenience method to add the jmeter tool dependency with the current setting to the project.
-
applyApacheComponents
final Unit applyApacheComponents(Configuration config)
-
applyBomWorkaround
final Dependency applyBomWorkaround(Dependency dependency)
Workaround for invalid bom reference in jmeter-module-descriptor.
Details see https://bz.apache.org/bugzilla/show_bug.cgi?id=64465
-
createToolConfigDependencyNotion
final Map<String, String> createToolConfigDependencyNotion()
-
-
-
-