Does Log.Error stops execution on using if else loopstatement
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2018
09:14 AM
06-19-2018
09:14 AM
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2018
09:26 AM
06-19-2018
09:26 AM
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2018
02:32 PM
06-19-2018
02:32 PM
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2018
07:38 AM
06-20-2018
07:38 AM
Thanks ! I disabled the stop on Error , It works
