Skip to content

customPropertiesFile properties are not being sent to slave machines #383

Description

@venkatesan255

Version details
Jmeter version 5.3
Jmeter-Maven -Plugin version - 3.1.0
Java version 8

What should have happen
The plugin should copy all the properties to slave machine as well
What happened
The property file is applied only on master. it did not forwarded to slave

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.test</groupId>
    <artifactId>cora-nft-test-scripts</artifactId>
    <version>1.0</version>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>com.lazerycode.jmeter</groupId>
                <artifactId>jmeter-maven-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <!-- Generate JMeter configuration -->
                    <execution>
                        <id>configuration</id>
                        <goals>
                            <goal>configure</goal>
                        </goals>
                    </execution>
                    <!-- Run JMeter tests -->
                    <execution>
                        <id>jmeter-tests</id>
                        <goals>
                            <goal>jmeter</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <testFilesIncluded>
                        <jMeterTestFile>**/${jmeterScript}.jmx</jMeterTestFile>
                    </testFilesIncluded>
                    <propertiesGlobal> <!-- to send the properties to slave machines as well -->
                        <runID>${runID}</runID>
                    </propertiesGlobal>
                    <propertiesUser> <!-- to send the properties to master machines alone -->
                        <runID>${runID}</runID>
                    </propertiesUser>

                    <generateReports>true</generateReports>
                    <jmeterExtensions>
                        <artifact>kg.apc:jmeter-plugins-standard:1.4.0</artifact>
                        <artifact>kg.apc:jmeter-plugins-prmctl:jar:0.4</artifact>
                        <artifact>io.github.delirius325:jmeter.backendlistener.elasticsearch:jar:2.6.8</artifact>
                    </jmeterExtensions>
                    <testPlanLibraries>
                        <artifact>com.nimbusds:nimbus-jose-jwt:jar:8.19</artifact>
                    </testPlanLibraries>

                <customPropertiesFiles>  
                    <file>${propertyFile}.properties</file>
                </customPropertiesFiles>

                </configuration>
            </plugin>
        </plugins>
    </build>
</project>



Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions