You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scenario where I want to use the jmeter maven plugin to performance test authentications.
I have oauth2 client secrets that I need to pass in via user properties. These will vary per environment.
What happens
From the documentation, I can see that the plugin
merges properties to ensure that all properties are merged into the latest valid versions of the properties files supplied with JMeter
To pass these secrets via maven command line I currently have to:
A more developer friendly and possibly a better practice is to use maven resource filtering so that we simply add the variables in the properties file.
In order to utilise the maven resources plugin, you would have to merge the generated properties in the target/classes directory with the supplied JMeter plugin. I see that a similar issue was raised 7 years ago issue#65 However that issue does not explicitly discuss secrets.
Another option may be to specify the propertiesFilesDirectory in the pom xml as target/classes. I have not verified that this works. Will test it asap.
Problem:
I have a scenario where I want to use the jmeter maven plugin to performance test authentications.
I have oauth2 client secrets that I need to pass in via user properties. These will vary per environment.
What happens
From the documentation, I can see that the plugin
To pass these secrets via maven command line I currently have to:
What should happen ideally
A more developer friendly and possibly a better practice is to use maven resource filtering so that we simply add the variables in the properties file.
In order to utilise the maven resources plugin, you would have to merge the generated properties in the target/classes directory with the supplied JMeter plugin. I see that a similar issue was raised 7 years ago issue#65 However that issue does not explicitly discuss secrets.
Another option may be to specify the propertiesFilesDirectory in the pom xml as target/classes. I have not verified that this works. Will test it asap.
java -version:
openjdk version "1.8.0_222"
mvn --version
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T08:00:29+13:00)
jmeter maven plugin
Also, I am happy to help with this issue. :)
Regards,
The text was updated successfully, but these errors were encountered: