Ask a Question

Give a warning message for when endless recursive call is created

Give a warning message for when endless recursive call is created

Sometimes, testers try to break things. And sometimes this is possible 🙂

So, to make TestComplete a more robust product,  I think it would be an improvement if TestComplete gives you the warning when you create a test which calls itself (recursive). Currently this warning is given at test execution time, however this does not work well for data driven tests.

It would be better if warning is implemented at test design fase:


As soon as the test engineer creates an  endless recursive call, the warning should be displayed.


See attached video for clarification.



Regular Contributor

Hmm, one solution could be to integrate a call level counter into Your recursive function. Then You can check the nesting level as a precondition.

Occasional Contributor

It is good programming practice to not create an endless recursive calls. There is no need to check this. You will have a limited stack spaces by the way.

Welcome to the TestComplete Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video: