This is a migrated thread and some comments may be shown as answers.

WaitForWindow fails even the window exists

20 Answers 174 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thao
Top achievements
Rank 1
Thao asked on 14 Apr 2015, 01:17 AM

Hi Telerik, here's the scenario:

1. Click a button on the main window to open a new window called xWindow. WaitForWindow("xWindow Caption", 10000) works just fine and returns xWindow. Close xWindow by clicking a button on it plus checking: xWindow.Window.WaitForVisibility(false, 10000) and xWindow.Window.exists is false.

2. Click that button again to open xWindow the second time. WaitForWindow("xWindow Caption", 10000) fails and throws a TimeoutException. The funny thing is that the exception lists the current existing windows including "xWindow Caption".

Please have a look at my situation.

Thank you,

20 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 16 Apr 2015, 12:52 PM
Hello Thao,

I am not able to reproduce this behavior.

Could you please give us a direct access to your application along with the tests so we can reproduce this issue.

Or you can create some sample test against a public site where this issue is reproducible.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Thao
Top achievements
Rank 1
answered on 28 Apr 2015, 05:37 AM

Hi Boyan,

Please find attached a sample of the scenario. It will work when we run the test. However, if we debug the test without any break points. It will throw the exception as I mentioned.

Moreover, it may happen that it sometimes fails at line 152 too (TelerikVSUnitTest1.cs).

This behaviour may relate to this.

 Thank you,

0
Boyan Boev
Telerik team
answered on 01 May 2015, 05:25 AM
Hi Thao,

Thank you for the project.

I will update this thread shortly.

Thank you for your cooperation.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Boyan Boev
Telerik team
answered on 01 May 2015, 08:00 AM
Hello Thao,

Unfortunately I am not able to reproduce this issue. 

The test passes without any issues.

How it is supposed to fail? Could you please record a short Jing video with the test execution.

Do you have installed Test Studio or only the framework?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Kateryna
Top achievements
Rank 1
answered on 02 Nov 2015, 05:57 AM
Hi Boyan,

I've been using Telerik 2012.2.1204 for several years. Then I decided to upgrade it and installed 2015.2.723 version. We have approximately 200 tests with many windows opening/closing in every test. In version 2012 it was running ok, but after the upgrade 30% of tests were failing with error "Unable to find a window". I'm experiencing the same issue as Thao -  ArtOfTest.WebAii..WpfWindow WaitForWindow doesn't see opened windows. This is quite a random issue and is not stable even for the same window. This makes 2015.2.723 version absolutely unworkable for us. I reverted all changes back to the old 2012 version, but it's not a solution. I guess many people won't be able to use your new version because of this critical bug.
Were you able to catch that problem? In what version of the product will it be fixed?

Thank you.
0
Boyan Boev
Telerik team
answered on 04 Nov 2015, 02:45 PM
Hi Kateryna,

I am sorry to hear you are experiencing such issue.

Could you please upgrade to our 2015.3.1015 version and give that a try.

If the issue persists please send us the application log. Clear it first and reproduce the issue.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Kateryna
Top achievements
Rank 1
answered on 05 Nov 2015, 11:21 PM

Hi Boyan,

thank you for advice. I will do this early next week and will post an update here.

Thanks,

Kate

 

0
Kateryna
Top achievements
Rank 1
answered on 10 Nov 2015, 03:52 AM

Hi Boyan,

I did an upgrade to 2015.3.1015 version as you advised. Then I just run a simple cycle of opening and closing the same window. On approximately 10th iteration (note, it can be 2nd or 31st ​one. This is a random, but a consistent problem), the window was not identified.

I'm attaching a log that was recorded.

Thanks,

Looking forward to hearing from you.

Kate

0
Ivaylo
Telerik team
answered on 11 Nov 2015, 08:58 AM
Hello Kateryna,

Unfortunately we will need to reproduce the problem in order to investigate what is causing it.

Do you think you can provide us with reliable repro for investigation?

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Kateryna
Top achievements
Rank 1
answered on 07 Dec 2015, 12:53 AM
Hi
I cannot provide you with our code, obviously. I'm pretty surprised you cannot figure out that issue by stake traces. Also, I'm very surprised no one is reporting it.
I was thinking to create a separate simple test solution with just opening and closing the window for our app, so that you could change it to any other WPF application with windows, Unfortunately, I haven't had time for this. Still I will try to find some time during next few weeks. This is allI  can do more to help you to catch that critical problem.
0
Ivaylo
Telerik team
answered on 09 Dec 2015, 01:21 PM
Hеllo Kateryna,

The exception in the stack trace is too generic that is why we cannot determine it by looking at the log provided.

As soon as you are able to provide is with reliable repro of the problem you are experiencing we will be happy to take a look and investigate further.

Thank you for your cooperation in advance.

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Kateryna
Top achievements
Rank 1
answered on 15 Apr 2016, 06:10 AM

Hi Ivaylo and Telerik team,

I've been quite busy. Now I created a small test WPF application with one window opening and Telerik test solution that uses the newest Testing_Framework_2016_1_0330_2 libraries.

The bug is very easy re-creatable there. Now it's failing pretty consistent on the 2nd try. I also run my test solution with old Telerik2012 and it works perfectly.

I included a small ReadMe file as well. Zip is 2.5Mb cause I included libraries, so shared it here https://www.dropbox.com/l/s/2qRUjyLVSPtOR507QAXFhr 

Looking forward to this bug being fixed.

Thanks,

 

0
Boyan Boev
Telerik team
answered on 19 Apr 2016, 01:47 PM
Hello Kateryna,

How should I run the test? When I run TelerikWindowOpening it crashes (see the attached screen shot).

Could you please guide how to run this test?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Kateryna
Top achievements
Rank 1
answered on 19 Apr 2016, 11:33 PM

Hi Boyan,

Did you read "ReadMe" file with all instructions that I mentioned?  Did you change paths to libraries? For this, you obviously need to install EXACTLY the same version of Telerik Testing framework on your machine (see the number in the previous comment). It won't run with any other version, of course.

I verified my test solution in another PC.(Downloaded my  file, installed Telerik testing framework, corrected paths and run from VS12 - All good).

Please make sure you did all required actions before running the app.

Thanks.

0
Ivaylo
Telerik team
answered on 22 Apr 2016, 02:36 PM
Hello Kate,

I have reproduced this problem with the latest official release, however with one of the branches I cannot reproduce this behavior, can we allow some time for us to merge branches, and see whether this will be reproducible.

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Kateryna
Top achievements
Rank 1
answered on 26 Apr 2016, 06:35 AM

Hi Ivaylo,

sure, take your time to investigate this bug. It's been there for quite some time. A few last releases that I tried for sure.

Thanks

0
Boyan Boev
Telerik team
answered on 28 Apr 2016, 02:40 PM
Hello Kate,

Thank you.

We will update this ticket accordingly.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Ivaylo
Telerik team
answered on 25 May 2016, 05:58 AM
Hello Kate,

Please excuse me for the delayed reply. Can you give it a  try with the latest internal build, I am no longer able to reproduce the behavior.

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Kateryna
Top achievements
Rank 1
answered on 25 May 2016, 06:16 AM

Hi Ivailo,

what do you mean by "latest internal build"?

Do you mean I should wait for the next release version?

Do you know when Telerik Testing Framework new version is going to be released?

Thanks

 

0
Ivaylo
Telerik team
answered on 27 May 2016, 12:57 PM
Hello,

We have a new internal build from the last week. Try to download and install it and verify the behavior.

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Thao
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Thao
Top achievements
Rank 1
Kateryna
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or