CBleunven
12 years agoContributor
VCLObject method blocks with an unexpected windows
Hi to all,
After a click in a window of my application, a rectangle is added to the draw surface and this rectangle is accessible using the VCLObject method inTestComplete. I normally get its reference from the parent object, that is successfull when there is no problem.
Addition of an element launches behind the scene a lot of initialisations before the rectangle is draw.
In a problematic build, when adding one of this element, some processus launched behind fail and I get an unexpected modal window with an error message so this blocks the creation of the VCLObject expected.
I know that the unexpected window handling mechanism occurs only when there are some click or other interaction with the GUI, and so it is normal that it is not activated.
But the problem is that the VCLObject method waits indefinitely and never fails. The progress bar in the TestComplete indicator never start to fill. The Auto-wait timeout is on 10 000 ms in the Project properties.
During this time, I can't stop or pause the test, all requirements are effective only after I close manually the unexpected windows.
The WaitVCLObject method has a similar problem, as there is no object returned until
I manually close the unexpected windows.
Is there a way to handle such a situation in an automatic manner ?
Thanks for your help,
Christophe
After a click in a window of my application, a rectangle is added to the draw surface and this rectangle is accessible using the VCLObject method inTestComplete. I normally get its reference from the parent object, that is successfull when there is no problem.
Addition of an element launches behind the scene a lot of initialisations before the rectangle is draw.
In a problematic build, when adding one of this element, some processus launched behind fail and I get an unexpected modal window with an error message so this blocks the creation of the VCLObject expected.
I know that the unexpected window handling mechanism occurs only when there are some click or other interaction with the GUI, and so it is normal that it is not activated.
But the problem is that the VCLObject method waits indefinitely and never fails. The progress bar in the TestComplete indicator never start to fill. The Auto-wait timeout is on 10 000 ms in the Project properties.
During this time, I can't stop or pause the test, all requirements are effective only after I close manually the unexpected windows.
The WaitVCLObject method has a similar problem, as there is no object returned until
I manually close the unexpected windows.
Is there a way to handle such a situation in an automatic manner ?
Thanks for your help,
Christophe