Need help with StresStimulus? Start here.
Scriptable variable to control execution
Unregistered User Posts: 475
4/28/2020
|
I would like to create a scriptable variable that can be used in conditional statements. How to use iteration number in a scriptable variable. I need to execute a transaction on all iterations except the 10th iteration.
|
|
0
link
|
George @StresStimulus Administrator Posts: 510
4/28/2020
|
Scriptable variables are described http://support.stresstimulus.com/display/doc52/Scriptable+Variables First you need to create a scriptable variable, call it “ExternalCondition”. Implement the GetValue method that returns “false” on the 10th iteration and “true” on other iterations. string IExternalVariable.GetValue(SessionContext context) { Return (context.IterationNumber == 10) ? "false" : "true"; } Then create an If…Then condition around your transaction and set the following properties:
|
|
0
link
|
Copyright © 2023 Stimulus Technology