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

UI Automation tests

3 Answers 96 Views
Map
This is a migrated thread and some comments may be shown as answers.
Rafal
Top achievements
Rank 1
Rafal asked on 03 Sep 2014, 01:03 PM
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Ƃ

3 Answers, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 04 Sep 2014, 09:06 AM
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.
 
0
Peter
Top achievements
Rank 1
Veteran
answered on 30 Apr 2020, 01:53 PM

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

 

0
Milena
Telerik team
answered on 05 May 2020, 08:10 AM

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.
Tags
Map
Asked by
Rafal
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Peter
Top achievements
Rank 1
Veteran
Milena
Telerik team
Share this question
or