Sound like you want to specify some user properties so you should really add
the properties in the <propertiesUser> block (although it should work if
they are added in the <propertiesJMeter> block as well, but it's better to
keep your variable definition separate to your JMeter configuration):
<configuration>
<propertiesUser>
<threads>10</threads>
<testIterations>5</testIterations>
</propertiesUser>
</configuration>
Or in your case specifically:
<configuration>
<propertiesUser>
<PORT>8001</PORT>
</propertiesUser>
</configuration>
This will then be accessible in your test by using the JMeter property
function:
${__P(PORT)}
You can also specify a default value (just in case the property isn't set)
${__P(PORT, 7001)}
Hope that helps.
Hello,
--
You received this message because you are subscribed to the Google Groups
"Maven JMeter Plugin Users" group.
To post to this group, send an email to
maven-jmeter...@googlegroups.com.
To unsubscribe from this group, send email to
maven-jmeter-plugi...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/maven-jmeter-plugin-users?hl=en-GB.
> Sound like you want to specify some user properties so you should really add
> the properties in the <propertiesUser> block (although it should work if
> they are added in the <propertiesJMeter> block as well, but it's better to
> keep your variable definition separate to your JMeter configuration):
>
> Or in your case specifically:
>
> <configuration>
> <propertiesUser>
> <PORT>8001</PORT>
> </propertiesUser>
> </configuration>
>
> This will then be accessible in your test by using the JMeter property
> function:
>
> ${__P(PORT)}
This is nice but I'd like to specify variables inline (to the maven command)...
Not working example:
mvn clean package integration-test -DargLine="-Djmeter.target.host=MyInlineHost.org"
Is it possible?