UI Automation tests

4 posts, 0 answers
  1. Rafal
    Rafal avatar
    2 posts
    Member since:
    Jul 2014

    Posted 03 Sep 2014 Link to this post

    Hi,
    I try to perform UI automation tests.
    I use Microsoft UI Automation Test Library.
    The way I try to do that is to place some shapes on the map and check if they are visible.
    Now the only information I can get is RadMap Control.

    Is it possible to go deeper in RadMap Control and find shapes placed on it using UI Automation Library?

    Regards,
    Rafał
  2. Peshito
    Admin
    Peshito avatar
    585 posts

    Posted 04 Sep 2014 Link to this post

    Hi Rafal,

    Have you tried using the Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore assembly along with your test project? It is located under "C:\Program Files (x86)\Telerik\UI for WPF Q2 2014\Binaries\WPF40\TestTools\VS2012". Also copy the DLL to "C:\Program Files (x86)\Common Files\Microsoft Shared\VSTT\11.0" in case you are using VS 2012.

    More information about the UI Automation support can be found here.

    Hope this helps.

    Regards,
    Peshito
    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. Peter
    Peter avatar
    66 posts
    Member since:
    Oct 2016

    Posted 30 Apr in reply to Peshito Link to this post

    Hi Peshito,

    I'm not sure if I'm trying to do the same as Rafal, but we are using MapPolylineData and MapPolylineView in (different) visualization layers. Is it possible for us to detect these in automation tests? The link in your post above is broken but I did find this https://docs.telerik.com/devtools/wpf/common-information/common-ui-automation

    Unfortunately that page doesn't provide any clear example of how to use the automation mode. Will it be possible for our automation tests to detect the present of MapPolylineData items? Can you provide any examples?

    Thanks
    Pete

     

  4. Milena
    Admin
    Milena avatar
    228 posts

    Posted 05 May Link to this post

    Hello Peter,

    You can find 2 articles in our online documentation about automation:

    UI Automation Support 

    Coded UI support

    I supposed that Peshito was referring to the second one. In order to use CodedUI and to become the controls and properties, we exposed for our UI for WPF suite, you need to set AutomationMode to Advanced and to add Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore.dll. This way you can find easily the Telerik controls, their properties and small controls inside them, for the RadMap this includes ZoomLevel, Center property, MiniMap info, ZoomBar, etc. However, I'm afraid that this won't help you in finding MapPolylineData because it is not a UI element and the RadMap will make a ContentPresenter with Path, Rectangle or Line inside the VisualizationLayer, which is a common WPF element you need to find in your application using e.g. SearchProperties (AutomationId, Type, HelpText, etc.) in the UIMap.

    I hope this information helps. 

     

    Regards,
    Milena
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top