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

Get the callback function for RadTreeView for automating a Silverlight application (using UFT)

1 Answer 66 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Shrey
Top achievements
Rank 1
Shrey asked on 24 Mar 2015, 03:12 AM
We are automating a Silverlight application (using
UFT) which has some Telerik Custom Controls like, RadTreeView and RadGridView
in it. Since these controls are not getting recognized hence we are trying to
access the API of Telerik and expose the methods. However, we are not able to
get the callback function for both these controls (RadTreeView and
RadGridView). Can we please get the required methods and/or some documentation
around it.

In order to elaborate on this, please refer to the
below code which is written for Calender Control in .Net.

private void RaiseButtonClickEvent(Button button)

        {

            if (button != null)

           
{

                RoutedEvent e = Button.ClickEvent;

                RoutedEventArgs arg

= new RoutedEventArgs();

               
arg.RoutedEvent = e;

               
button.RaiseEvent(arg);

           
}

        }

 

Code in BOLD above is where the help is required. As
we require similar type of methods in Telerik. Also, mentioning a link which
will give further details to what we are trying to do.

http://www.azar-tech.com/xmls/documents/qtp/11/WpfSlvExtensibility.pdf

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 26 Mar 2015, 08:30 AM
Hi Shrey,

Thank you for your question.

Being aware that the goal of many automated testing tools and scenarios is the consistent interaction of the user interface, we provide a built-in support for Microsoft UI Automation and we recommend using the automation peer classes that derive from FrameworkElementAutomationPeer. You can find more information on the matter here.

Whether a testing framework is compatible with the UI Automation provided by Microsoft depends on that tool used for running the UI tests. This said, we cannot confirm that the Telerik's UI controls are supported by the UFT. They are compatible with Telerik's Test Studio.

Up until now we had similar inquiries that were usually solved by upgrading to the latest version of the Testing tool used. If this does not solve your issue, you could log a feature request by using our Feedback Portal which will be considered by our developers.


Regards,
Peshito
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
TreeView
Asked by
Shrey
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or