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

2 posts, 0 answers
  1. Shrey
    Shrey avatar
    2 posts
    Member since:
    Jan 2013

    Posted 23 Mar 2015 Link to this post

    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
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 26 Mar 2015 Link to this post

    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.

     
  3. DevCraft banner
Back to Top