rickh_28
10 years agoOccasional Contributor
Objects Re-Named during test
One of the tests I have to run involves conducting a search on the database. The results display in an infragistics grid view. Said grid view displays in the Object Browser as:
WinFormsObject("iggrdGazetteer")
When I run the test, TC enters the search criteria and hits the search button. The app then becomes unresponsive for about 80 seconds, then becomes responsive again. I have that handled using a WaitAliasChild call. The problem is that for some reason, when the app becomes responsive again, (according to the Object Browser) the grid view has changed its name to:
WinFormsObject("WindowsForms10.Window.8.app.0.3ce0bb8")
I attempted to handle THAT by adding a Refresh() and a RefreshNameMapping() after the WaitAliasChild, but it doesn't seem to do any good - my test still can't see the grid view.
The only thing I've been able to find that can get the original name to display in TC is to close TC and re-open it. That is obviously not really a good option for the test.
Thoughts?
WinFormsObject("iggrdGazetteer")
When I run the test, TC enters the search criteria and hits the search button. The app then becomes unresponsive for about 80 seconds, then becomes responsive again. I have that handled using a WaitAliasChild call. The problem is that for some reason, when the app becomes responsive again, (according to the Object Browser) the grid view has changed its name to:
WinFormsObject("WindowsForms10.Window.8.app.0.3ce0bb8")
I attempted to handle THAT by adding a Refresh() and a RefreshNameMapping() after the WaitAliasChild, but it doesn't seem to do any good - my test still can't see the grid view.
The only thing I've been able to find that can get the original name to display in TC is to close TC and re-open it. That is obviously not really a good option for the test.
Thoughts?
Hi Rick,
TestComplete stops recognizing your app as Open during the test for some reason. Try increasing the value of the Method invoke timeout project property to avoid this. Refer to the "Project Properties - General Open Applications Options" article for details.