title | page_title | description | slug | tags | published | position | site_name |
---|---|---|---|---|---|---|---|
Coded UI support |
Coded UI support |
Coded UI support |
coded-ui-support |
coded,ui,support |
true |
3 |
WPF |
The purpose of this section is to show you how to create a simple CodedUI test.
tipFor more information about Creating, Editing and Maintaining a Coded UI Test check out the official page in MSDN here.
In order to create a CodedUI test, you need to perform the following steps:
-
Add the Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore assembly into the following directory:
-
For Microsoft Visual Studio 2010 - "%CommonProgramFiles%\Microsoft Shared\VSTT\10.0\UITestExtensionPackages".
-
For Microsoft Visual Studio 2012 - "%CommonProgramFiles%\Microsoft Shared\VSTT\11.0\UITestExtensionPackages".
-
For Microsoft Visual Studio 2013 - "%CommonProgramFiles%\Microsoft Shared\VSTT\12.0\UITestExtensionPackages".
-
-
You will find the following folders in your UI for WPF installation folder - (usually C:\Program Files\Telerik\UI for WPF [version]\Binaries\WPF40\TestTools\VS[version]).
-
The Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore assembly must be installed into the global assembly cache (GAC). You can achieve this using the Global Assembly Cache Tool (Gacutil.exe).
-
Create WPF Project with the control you want to test.
-
Add a new TestProject.
-
Add new item to TestProject - Coded UI Test. The Generate Code for Coded UI Test dialog box appears.
-
Select the Record actions, edit UI map or add assertions option and choose OK. For more information about the options in the dialog box, you could check this article.
-
Record a sequence of actions.
-
Verify the values in UI properties.
-
Run the test.
Below you can find information about the supported level of CodedUI tests throughout our controls.
With Q2 2014 release of UI for WPF we have included Level 4 Coded UI test support for two of our controls. The following table gives more details on the controls as well as the supported actions:
Control | Action | Occurs | Action Property |
---|---|---|---|
RadComboBox | SetValueAction | On selection | SelectedItem |
RadDateTimePicker | SetValueAction | On SelectedValue changed | DateTimeText |
With our Q3 2013 official release we have included Level 2 and Level 3 Coded UI test support across our controls.
The controls that currently do not support Level 2 and Level 3 Coded UI tests are listed bellow:
Control | Level 1 | Level 2 | Level 3 |
---|---|---|---|
RadCalculator | Yes | No | No |
RadChart | No | No | No |
RadExpressionEditor | Yes | No | No |
RadGanttView | Yes | No | No |
RadMaskedTextBox | Yes | No | No |
RadPivotGrid | Yes | No | No |
RadScheduleView | Yes | No | No |
RadTreeListView | Yes | No | No |
With our Q2 2013 official release we have included Level 2 and Level 3 Coded UI test support across the following controls:
-
RadGridView
-
RadTreeListView
-
RadPropertyGrid
-
RadDataForm
-
RadDataPager
-
RadCarousel
-
RadDataFilter
-
RadCollectionNavigator
With our Q3 2012 official release we have included Level 1 Coded UI test support across our controls, except the RadChart control.