Completed
Last Updated: 23 Jul 2015 08:17 by ADMIN
ADMIN
Ivaylo
Created on: 12 Mar 2015 11:41
Type: Feature Request
0
WPF Window not found once closed and opened again during Debud
I am providing the customer's explanation since it is way too descriptive:

I've created very basic WPF application called SampleAppPlus. Its purpose it to demonstrate Telerik Testing Framework. From MainWindow new WPF window gets opened and user can type text in it. First time window is opened and framework is attached to it. The window is closed by tests. Second time window is opened framework cannot attach to it although it is there . Error is that window doesn't exists. The strange thing is this happens ONLY when test is being debugged with VS. When you just run it it works.

Steps to reproduce:
1. Download: https://github.com/llatinov/SampleAppPlus
2. Make SampleAppPlus.Tests start up project.
3. Go to AddEditTextTests and put breakpoint on line 35.
4. Go to BaseTest.cs and change "applicationPath" location.
5. Debug the application. On line 22 in AddEditTextTests Add Text window is found. On line 35 window is not found.

2 comments
ADMIN
Daniel Djambov
Posted on: 23 Jul 2015 08:17
Telerik: Thao - your case is a little different, because there is only 1 window. For the original problem, In order to debug the app you have to increase the WaitForWindow timeout. Once this is done, it works as expected - here's a video demonstration: http://screencast.com/t/ik6VeVPh 
Thao
Posted on: 13 Apr 2015 23:17
My scenario is a little bit different. However, I think it's the same problem.

I have a main window. There are two buttons when clicked opening two different windows. I used WaitForWindow to get the new opened window twice in the test. When run the test, things work just fine. However, when I debug it, the first WaitForWindow works (it returns the window), the second throws an exception because currently there is only one window (the main one).

Thao