Comment on page
Using advanced parameters in Flood
In the Advanced Parameters section in the Stream Editor, you can set values to properties and pass them on to your script. This allows you to change certain properties on the fly instead of needing to modify them in your script each time.
Some properties you can use for this purpose are domain names when switching between environments, user accounts, or keystores.
System (Java) properties can generally be specified with the
-Dprefix. Examples might include:
To set the time to cache successful name resolutions for the InetAddress Cache, edit the following to reflect the desired value:
To set the time to cache unsuccessful name resolutions for the InetAddress Cache, edit the following to reflect the desired value:
You can also modify JMeter properties with the
-Jprefix. Examples might include:
Change from the default TLS protocol to SSLv3 for HTTPS:
Modify CookieManager behaviour to store Cookies as variables:
Change the number of TCP retries for HttpClient 4
Override parameters with caution. Flood makes an effort to provide sensible defaults, changing parameters may affect the performance of your tests.
You are able to pass in command line parameters using the
-Dprefix too. An example of this is shown below:
You can then retrieve these in your script by utilising the following statement in your script:
Some more complex parameter values, especially those with special characters that need to be escaped (like
=or spaces), may not work in this field. We recommend you set these in user.properties instead if you're using JMeter or in a separate configuration file that you upload and refer to in your main scala script if you're using Gatling.