HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Conditional Test Messages in this topic - RSS

Andrew Day
Andrew Day
Posts: 3


1/6/2014
Andrew Day
Andrew Day
Posts: 3
Can StresStimulus to conditional tests for example:
if (condition A is true): run this test logic
else if (condition B is true): run this test logic
else if (condition C is true): run this test logic
else:  run this test logic
0 link
Vadim @StresStimulus
Vadim @StresStimulus
Administrator
Posts: 583


1/6/2014
Vadim @StresStimulus
Vadim @StresStimulus
Administrator
Posts: 583
Hello Andrew,

Currently StresStimulus does not support conditional execution. However, here's the implementation for "conditional execution" that can be added:
StresStimulus has conditional loops which check condition and the end of the loop. We can add an option to check condition at the beginning of the loop. If the condition fails, the loop will not run. The following schema can be implemented:
if (condition A is true): run the loop 1 once;
if (condition B is true): run the loop 2 once;
if (condition C is true): run the loop 3 once;
run remaining of the test.
 
 
Each condition in this case will be an evaluation of the extractor. Would this solution satisfy your testing requirements?  If yes, we can include this implementation in v 3.5

Cheers,
-Vadim
0 link
Andrew Day
Andrew Day
Posts: 3


1/7/2014
Andrew Day
Andrew Day
Posts: 3
I think that would be great, I would still like to see a true if else condition but I think this would work for now.
0 link
Vadim @StresStimulus
Vadim @StresStimulus
Administrator
Posts: 583


1/7/2014
Vadim @StresStimulus
Vadim @StresStimulus
Administrator
Posts: 583
Andrew, thanks for confirming that this implementation will work. We will  include it into the next 3.5 revision,  which will be out next week.  I will post back when it's available. 

Cheers,
-Vadim
0 link
Vadim @StresStimulus
Vadim @StresStimulus
Administrator
Posts: 583


1/9/2014
Vadim @StresStimulus
Vadim @StresStimulus
Administrator
Posts: 583
Andrew,
The conditional test execution is released today. It is implemented as a conditional transaction and is described here. To try it, please install the latest v 3.5.  Your feedback will be greatly appreciated.

Cheers,
-Vadim
0 link
Andrew Day
Andrew Day
Posts: 3


1/9/2014
Andrew Day
Andrew Day
Posts: 3
thanks, I will check it out
0 link






Copyright © 2017 Stimulus Technology