Alcatel-Lucent__10
16 years agoOccasional Contributor
loadTest strategy script
I'm running a loadtest, for which the strategy is set as script and threads has initial value 5.
The script looks as follows :
I'm reading the desired nbr of threads (currently 1) from a config file and setting it as property during loadtest setup script.
When starting the loadtest, I'm using initially 5 threads, after which the scripts seems to update the nbr of threads to 1.
How come that the number of threads is set correctly afterwards ? I would expect that from the first execution, the number of threads should equal 1 iso 5.
Additionally, is there a possibility to configure the value and type for limit and the initial number of threads, during the setup script. In some cases, I would like to run the testcase e.g. 100 times, in other cases it should run for e.g. 9000 seconds. I would like to make these configurable via the config file, which is read during loadtest setup script.
The script looks as follows :
return context.getProperty("threads")I'm reading the desired nbr of threads (currently 1) from a config file and setting it as property during loadtest setup script.
When starting the loadtest, I'm using initially 5 threads, after which the scripts seems to update the nbr of threads to 1.
How come that the number of threads is set correctly afterwards ? I would expect that from the first execution, the number of threads should equal 1 iso 5.
Additionally, is there a possibility to configure the value and type for limit and the initial number of threads, during the setup script. In some cases, I would like to run the testcase e.g. 100 times, in other cases it should run for e.g. 9000 seconds. I would like to make these configurable via the config file, which is read during loadtest setup script.