Forum Discussion

Chen2025's avatar
Chen2025
New Contributor
2 months ago

TestExexute sometimes not recognizing object

When I execute my Desktop application using TestExecute, sometimes it would not recognize one of the objects. However, after rebooting the computer and restart the test again, the object could be recognized again. Test runs with TestComplete does not have this issue. How do I resolve this issue so that my tests can be reliably ran every time with TestExecute? 

2 Replies

  • When identifying desktop applications and objects, TestExecute (and TestComplete) uses the properties of the object and Windows processes to identify and recognize objects. If your test runs the application executable each time it runs a test, you may have issues if the application is already open on your system. If the application is already open, TestExecute will open a second instance, which will make it difficult to recognize and access objects. 

    The best practice is to make sure, when recording tests, that your application starts and ends in the same state for a given test. If TestExecute is having trouble recognizing objects, the first thing I'd check is making sure it's not opening multiple instances of the application.