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

UI Automation on Rad Controls

5 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Omri
Top achievements
Rank 1
Omri asked on 02 Apr 2012, 04:48 PM
Hi,

I am testing an application containing all kinds of telerik rad controls (ComboBox, DataGridView, TreeView, ect')
unfortunately, NON of them are recongnized by Visual Studio Coded UI Builder!

All I know is that my AUT uses Telerik Rad Controls for ASP.Net - 2010.3.

Please Help!!

Thank you,
Omri

5 Answers, 1 is accepted

Sort by
0
James Campbell
Top achievements
Rank 1
answered on 03 Apr 2012, 09:10 AM
Omri,

At this time I am unaware of any extensions for Rad Controls in Visual Studio Coded UI builder. You could do something like this to get the native HTML element:

http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/c38306bd-b45f-4ae2-bbf2-b81ff427f8ba

Elsewise, you may want to look into Telerik test studio, which is much more robust than Visual Studio :

http://www.telerik.com/automated-testing-tools/products/test-studio-vs-visual-studio-2010-comparison.aspx

Thank you,
James Campbell

If this helped answer your question, please mark as answered, thank you.
0
Omri
Top achievements
Rank 1
answered on 03 Apr 2012, 11:59 PM
Hi James,

Thank you for your reply.

I was able to get the Native Element of the Rad Control through  IHTMLElement2 (as described here: http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/c38306bd-b45f-4ae2-bbf2-b81ff427f8ba )
But I wasn't able to figure out how to access it's methods or properties.

I was able to activate javascript functions to manipulate the control, and execute it from Coded UI Test, for example:

RunScript(
 "var obj = window.$find('" + id + "');obj.showDropDown(); 
  obj.findItemByText('" + item + "').select();
                  obj.hideDropDown(); ");
 
How can I get all the javascript functions that can be executed on a RadControl? (RadComboBox in this example)


0
James Campbell
Top achievements
Rank 1
answered on 04 Apr 2012, 02:01 AM
Omri,

Take a look at this:

http://social.msdn.microsoft.com/Forums/en/vsautotest/thread/9c221437-a934-49da-a98e-76707407d0db

    Hope it helps.

    Thank you,
    James Campbell

    If this helped answer your question, please mark this post as answered, thank you.

    0
    Omri
    Top achievements
    Rank 1
    answered on 05 Apr 2012, 05:28 AM
    Hi James,

    Eventually I was able to get Telerik Test Framework and run all of the javascript client-side methods from there.
    at this point, it's a good enough solution for me.

    Thank you!
    Omri
    0
    Sahil
    Top achievements
    Rank 1
    answered on 18 Dec 2012, 05:11 AM
    Hi, Can you guys please tell me how automate the silverlight application using webaii..

    Thanks
    Tags
    General Discussions
    Asked by
    Omri
    Top achievements
    Rank 1
    Answers by
    James Campbell
    Top achievements
    Rank 1
    Omri
    Top achievements
    Rank 1
    Sahil
    Top achievements
    Rank 1
    Share this question
    or