Skip to content

Latest commit

 

History

History
89 lines (55 loc) · 4.77 KB

coded-ui-support.md

File metadata and controls

89 lines (55 loc) · 4.77 KB
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
13
WPF

Coded UI support

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.

importantThe supported Visual Studio editions for coded UI tests are Microsoft Visual Studio Ultimate or Microsoft Visual Studio Premium. You can also check Supported Configurations and Platforms for Coded UI Tests and Action Recordings.

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 64-bit operating system):

    • For Microsoft Visual Studio 2010 - "%CommonProgramFiles(x86)%\Microsoft Shared\VSTT\10.0\UITestExtensionPackages".

    • For Microsoft Visual Studio 2012 - "%CommonProgramFiles(x86)%\Microsoft Shared\VSTT\11.0\UITestExtensionPackages".

    • For Microsoft Visual Studio 2013 - "%CommonProgramFiles(x86)%\Microsoft Shared\VSTT\12.0\UITestExtensionPackages".

    • For Microsoft Visual Studio 2015 - "%CommonProgramFiles(x86)%\Microsoft Shared\VSTT\14.0\UITestExtensionPackages" - added with version 2015 Q2 SP.

For 32-bit operating systems, the path should be "%CommonProgramFiles%\Microsoft Shared\VSTT\[Version]\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 following the next steps:

    1. Open Visual Studio Command Prompt.
    2. Navigate to path "%CommonProgramFiles(x86)%\Common Files\microsoft shared\VSTT\[Version]\UITestExtensionPackages".
    3. Execute "gacutil /i Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore.dll".

    You can also find more information on 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.

There is Level 2 and Level 3 Coded UI test support across our controls. For exceptions see bellow.

Q2 2015

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
RadChart No No* No*
RadGanttView Yes No No
RadPivotGrid Yes No No
RadScheduleView Yes No No

'* You can work with RadChartView instead. For more information, please go through the topic on [RadChart vs. RadChartView]({%slug radchartview-radchartview-vs.-radchart%}).

Q2 2014

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

Q3 2012

With Q3 2012 official release we have included Level 1 Coded UI test support across all controls, except RadChart control.

See Also

  • [UI Automation Support]({%slug common-ui-automation%})