Package 

Class JMeterExtension


  • 
    public class JMeterExtension
    
                        

    Central configuration class. Herein configured properties will be used as default for any JMeter*Task.

    • Constructor Detail

      • JMeterExtension

        JMeterExtension(Project project)
    • Method Detail

      • getSystemPropertyFiles

         final ConfigurableFileCollection getSystemPropertyFiles()

        Additional system property file(s).

      • getMainPropertyFile

         final RegularFileProperty getMainPropertyFile()

        The jmeter property file to use.

      • getGlobalPropertiesFile

         final RegularFileProperty getGlobalPropertiesFile()

        Path to a JMeter property file which will be sent to all 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.

      • 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.