UFT/QTP access on Telerik controls

5 posts, 0 answers
  1. Shalini
    Shalini avatar
    1 posts
    Member since:
    May 2014

    Posted 23 May 2014 Link to this post

    We are in the initial stages of testing Telerik controls using UFT/QTP. We used Telerik UI for WPF Sample Application (ScreenShot attached)
    Using the sample application, we tried identifying certain controls. But we found that some of the properties that we used to identify VB 6.0 controls are not working properly when it comes to the identification of WPF controls. Following are some examples to explain the situation better (We used both UFT 12.0 and 11.53 ) 

    1. Treeview control
        We use 'Select' method followed by the item to be selected from the treeview to select an item in a VB 6.0 control.
        But for WPF control, we need to pass the node number instead of the item name that has to be selected.
         WpfWindow("WPF Controls Examples").WpfTreeView("explorerTree").Select 0   'To select the first item in the treeview
         On passing the item name, UFT is throwing error. 

    2. ListView control 
         Several of the properties that we use to manipulate a List box VB 6.0 control are not working with WPF controls.
         For example, properties lke GetItem, GetSelection, Select, SelectRange etc are throwing an error from UFT/QTP 
         Since 'Select' doesn't select the item in the list box, we need to go with a crude way to do the job. 
         WpfWindow("WPF Controls Examples").WpfList("WpfList").Object.SelectedIndex = 1





















  2. Yana
    Admin
    Yana avatar
    4831 posts

    Posted 27 May 2014 Link to this post

    Hello,

    I am afraid that the controls from UI for WPF suite do not provide QTP support. We are not experts regarding this tool, but I guess that if you manually add wrappers for the needed controls, they could be detected. However, please note that we haven't tested this and we cannot guarantee that it will work without any problems.

    Telerik WPF controls could be successfully tested using CodedUI, most of them currently provide Level 2 and Level 3 support and with the upcoming Q2 2014 release some of them will provide Level 4 as well. For more detailed information please check the CodedUI support topic in our documentation.

    Additionally, I would suggest that you take a look at our Test Studio - if you need to test an application built with Telerik WPF controls, Test Studio will instantly detect them and suggest specific verifications even for complex data and navigation components.


    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. sumeet singh
    sumeet singh avatar
    1 posts
    Member since:
    Apr 2015

    Posted 22 Apr 2015 in reply to Shalini Link to this post

     

    Telrik controls are supported by UFT. I am working on automating the Telrik Silverlight controls and the automation scripts are working fine. You will have to write a lot of custom wrappers for developing automation scripts. You can also work on extensibility accelerators to create your own custom UFT objects. 

     Thanks,

    Sumeet Singh Kushwah

     

  4. Randy
    Randy avatar
    1 posts
    Member since:
    Jun 2018

    Posted 28 Jun 2018 in reply to Shalini Link to this post

    So what product would we use, if we are using UFT/QTP to get Telerik Control get identified?  I noticed this post is pretty old.  Is there an update on this?  Please advise and thanks.  
  5. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 03 Jul 2018 Link to this post

    Hi Randy,

    I can confirm that the recommended approach for testing the UI for WPF components is either through Coded UI or through or Test Studio. For the time being UFT/QTP is not officially supported. You can find more information here and here. You can also try contacting the tool vendor to get more information how it can be used with third-party libraries.

    I hope this helps.

    Regards,
    Stefan
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top