Package 

Class JMeterConfig


  • 
    public final class JMeterConfig
    
                        

    Class 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 Detail

      • JMeterConfig

        JMeterConfig(Project project)
    • Method Detail

      • getGroup

         final String getGroup()

        The group id of the main library. Used to resolve the jmeter library and configuration library within a repository.

        Default: org.apache.jmeter

      • setGroup

         final Unit setGroup(String group)

        The group id of the main library. Used to resolve the jmeter library and configuration library within a repository.

        Default: org.apache.jmeter

      • getName

         final String getName()

        The module name (artifact-id) of the main library. Used to resolve the jmeter library and configuration library within a repository.

        Default: ApacheJMeter

      • setName

         final Unit setName(String name)

        The module name (artifact-id) of the main library. Used to resolve the jmeter library and configuration library within a repository.

        Default: ApacheJMeter

      • getVersion

         final String getVersion()

        Overall version of jmeter. Used to resolve the jmeter library and configuration library within 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 library and configuration library within 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 dependency declaration for the main library. Default: null

      • setMainConfigureClosure

         final Unit setMainConfigureClosure(Function1<ExternalModuleDependency, Unit> mainConfigureClosure)

        Closure that will be applied to the dependency declaration 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.

      • 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