Ask a Question

Does Log.Error stops execution on using if else loopstatement

msap
Frequent Contributor

Does Log.Error stops execution on using if else loopstatement

Does Log.Error stops execution on using if else loop statement

If(w.exists)

{log.error("")

}

else

{log.message("")

}

3 REPLIES 3
tristaanogre
Esteemed Contributor

Log. Error, by itself, does not halt execution.  There are ways of doing so, but by itself, it does not.  


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Ryu
Contributor

Log.Error only stops the test execution if you have your test set to stop on error.  If you turn off the stop on error option, Log.Error will just enter the specified error into the test log.

 

https://support.smartbear.com/testcomplete/docs/testing-with/running/control-test-flow/overview.html

msap
Frequent Contributor

Thanks ! I disabled the stop on Error , It works

cancel
Showing results for 
Search instead for 
Did you mean: