Ask a Question

Unexpected window and Ovelapped window

m_essaid
Valued Contributor

Unexpected window and Ovelapped window

Hi,

The AUT is a Delphi exe.

When I have not checked the "Ignore overlapping window" in Project parameters, I have randomly my tests that fails due to "Overlapping window". The problem is that this window is part of the AUT and its presence is normal.

When I check that option, I have instead an "Unexpected window" error at the same places. This time too, the unexpected window is normal.

I just can't let 10% of my tests fail because of that issues.

Any help would be appreciated,

Thank you

6 REPLIES 6
Marsha_R
Champion Level 2

I think I would try creating an event handler that lets the extra window be ignored.

https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/creating-handl...

Wamboo
Community Hero

What exactly does the incident involve?

 

This window must be constantly displayed on the screen? Can't you close it like that?

 

Write the exact details. From what you are writing this TestComplete behaves correctly and returns an error.

sonya_m
SmartBear Alumni (Retired)

Thank you for your valuable suggestions Marsha, Wamboo!

 

@m_essaid Did you manage to solve this?

Please share the solution with us.

 

Or, if you didn't, please provide more info as Wamboo is requesting.


Sonya Mihaljova
Community and Education Specialist

m_essaid
Valued Contributor

thank you @Marsha_R  and @Wamboo ,

I'm investigating this issue with the help of the Smartbear customer support, so I will do a point when I'll have figured out the issue.

For the moment, I have an overlapping window that could be an AUT window, a Windows explorer window, or any other program's window that get in front of the window on which TE needs to work with.

I catch the OnOverlappingWindow and use a .Activate to bring to the front the overlapped window.

It has reduced a lot the tests failures, but I still have some issues.

I'll tell you further.

sonya_m
SmartBear Alumni (Retired)

@m_essaid I wasn't able to locate your support ticket, is there a reference number?

I was wondering if progress was made there🙂


Sonya Mihaljova
Community and Education Specialist

m_essaid
Valued Contributor

Hi @sonya_m ,

The reference number is #00419877

cancel
Showing results for 
Search instead for 
Did you mean: