Test Parameters

The Flood UI allows you to specify three specific parameters threads, rampup and duration.

To make sure your test plans receive these parameters, remove hard coded values and replace with the following. Note: we never over write actual values in your test plans with values entered in the UI.

JMeter

${__P(threads, 50)}
${__P(rampup, 60)}
${__P(duration, 120)}

Click here to see a video demonstration on how this works.

Gatling

val threads   = Integer.getInteger("threads",  50)
val rampup    = Integer.getInteger("rampup",   60).toLong
val duration  = Integer.getInteger("duration", 120).toLong

Note that rampup and duration should always be specified in seconds.

Advanced Parameters

It is possible to override parameters in your JMeter and Gatling test plans when using Flood.

System (Java) properties can generally be specified with the -D prefix. Examples might include:

To set the time to cache successful name resolutions for the InetAddress Cache,
edit the following to reflect the desired value:

-Dnetworkaddress.cache.ttl=10

To set the time to cache unsuccessful name resolutions for the InetAddress Cache,
edit the following to reflect the desired value:

-Dnetworkaddress.cache.negative.ttl=10

To set a custom keystore and password for client certificates as described here:

-Djavax.net.ssl.keyStore=/data/flood/files/yourkeystore.jks
-Djavax.net.ssl.keyStorePassword=yourpassword

You can also modify JMeter properties with the -J prefix. Examples might include:

Change from the default TLS protocol to SSLv3 for HTTPS:

-Jhttps.default.protocol=SSLv3

Modify CookieManager behaviour to store Cookies as variables:

-JCookieManager.save.cookies=true

Change the number of TCP retries for HttpClient 4

-Jhttpclient4.retrycount=2

Override parameters with caution. Flood makes an effort to provide sensible defaults, changing parameters may affect the performance of your tests.

Selenium

You are able to pass in command line parameters using the -D prefix too. An example of this is shown below:

-DmyUsername=admin

You can then retrieve these in your script by utilising the following statement in your script:

 System.getProperty("myUsername");

Did this answer your question?