Forum Discussion

bgran05's avatar
Occasional Contributor
7 years ago

While loop does not terminate when condition is met, continues



I am running  a keyword test with a while loop. I made a minimal instance of a while loop that should terminate when project variable testResult = Fail. Initially, the variable testResult = Pass.


The test runs once, which is good, but I would expect it to not show the messages, "Don't run this if test has failed.", "Or this.", since those occur after the condition was met. I would think it would stop after testResult was set to "Fail".


Why are those Log Messages appearing in the log from the test run? 



No RepliesBe the first to reply