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

Can not test RadWindow with recorder

3 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tomer
Top achievements
Rank 1
Tomer asked on 22 Aug 2013, 04:08 PM
hi
I have a problom when recording a red window , the record see the window as an "Empty Title window"
and looking for the window :

this.OwnerApplication.WaitForWindow("").Find()

and all this is autogenerited by Test Studio.

The problem I have is when more then one RadWindow is open I dont know who I turn to press a button.
another problem is that iIf in the future I'll change the name of the window its a problem because of the need to change the code again accordingly.

can you help me?

Tanks! 

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 27 Aug 2013, 04:26 PM
Hi Tomer,

Did you give your RadWindow a title? Test Studio does require this. If this doesn't help, can you send me a sample application that reproduces this problem (it appears you're working with a WPF application as opposed to a web or Silverlight application)? If I can reproduce the problem then I can investigate what is causing it and find the right solution for you.

The problem I have is when more then one RadWindow is open I dont know who I turn to press a button.

I am sorry but I don't understand the question/problem. Can you rephrase it please?

...another problem is that iIf in the future I'll change the name of the window its a problem because of the need to change the code again accordingly

If you're referring to the window title, yes you will have to change the code. The window title is how Test Studio locates the correct window to interact with. I am sorry but there's no avoiding this type of test maintenance when key properties of your application changes.

If it were me, I'd use a tool (such as Visual Studio) that can do a global find and replace across all source code files. Test maintenance of this type is much easier using such a tool.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Tomer
Top achievements
Rank 1
answered on 29 Aug 2013, 07:14 PM
hi

Im sending you attachment of sample to show you the problem
when am recording with plugging for visual studio 2012.
you can see that in pages.g.cs he is recording all the windows as "empty titel window"

tanks !
0
Cody
Telerik team
answered on 29 Aug 2013, 07:33 PM
Hello,

Did you try to attach it as a file to this thread? Nothing came through. Keep in mind we only accept file types zip, rar, ace, jpg, gif, css, png.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Tomer
Top achievements
Rank 1
Answers by
Cody
Telerik team
Tomer
Top achievements
Rank 1
Share this question
or