Forum Discussion
Ryan_Moran
11 years agoValued Contributor
Are you restarting the application during the test run?
It's possible you are starting your application as Administrator but not Test Complete.
So it could be a simple fix by running Test Complete as administrator.
Not confident this will be the case since you said it works until the middle of your test.
Since you say it works for most of the test and then stops working at some point in the middle of the test I think it's logical to assume you are running into a similar bug to the one I encountered where the extension used to expose extended properties of WinFormsObject suddenly stops working.
(You'll notice the Name property of your object does not include WinFormsObject)
WinFormsObject("PublishWorkbookDialog") vs. Dialog("Publish to Toad Intelligence Central")
As a test you can try increasing your autowaittimeout setting to a much higher value like say...300000 and see if you run into the same issue. If resolves the problem then you can use Options.Run.Timeout to adjust this programmatically. I have to set this to 3500ms or lower when I call the .Find method (otherwise the same issue occurs where I lose extended properties) and increase to a very high amount for everything else that I do. This of course can lead to longer test runs and is not the "optimal solution" but I have been unable to find any other work around in my testing.
If this doesn't help then I am out of ideas, perhaps someone else can offer up ideas or you can contact support and provide them your project files.
It's possible you are starting your application as Administrator but not Test Complete.
So it could be a simple fix by running Test Complete as administrator.
Not confident this will be the case since you said it works until the middle of your test.
Since you say it works for most of the test and then stops working at some point in the middle of the test I think it's logical to assume you are running into a similar bug to the one I encountered where the extension used to expose extended properties of WinFormsObject suddenly stops working.
(You'll notice the Name property of your object does not include WinFormsObject)
WinFormsObject("PublishWorkbookDialog") vs. Dialog("Publish to Toad Intelligence Central")
As a test you can try increasing your autowaittimeout setting to a much higher value like say...300000 and see if you run into the same issue. If resolves the problem then you can use Options.Run.Timeout to adjust this programmatically. I have to set this to 3500ms or lower when I call the .Find method (otherwise the same issue occurs where I lose extended properties) and increase to a very high amount for everything else that I do. This of course can lead to longer test runs and is not the "optimal solution" but I have been unable to find any other work around in my testing.
If this doesn't help then I am out of ideas, perhaps someone else can offer up ideas or you can contact support and provide them your project files.