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

How to install Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore

8 Answers 181 Views
Installer and Visual Studio Extensions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 23 May 2016, 08:27 AM
Hi, I need to perform coded UI tests on a WPF application with Telerik controls. I installed Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore.dll following the instructions posted here.

However, I am not able to use the GetProperty method for control specific properties, i.e. "ItemState" on a RadTileViewItem. I am able to find the item and for example draw a highlight around it, but trying to get it's TileState results in a NotSupportedException:

GetProperty of "TileState" is not supported on control type: Custom

What seems strange: If I start the coded ui test builder and pull the crosshair over the TileViewItem, I can see it's TileState property and the correct value. Only the test playback is not able to retrieve it.

Am I missing something important to make the uitest extension working?

8 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 23 May 2016, 02:57 PM

Adding to my last post, I am using Visual Studio 2015 and I have added the latest version of the dll to "%CommonProgramFiles(x86)%\Microsoft Shared\VSTT\14.0\UITestExtensionPackages". I also installed it to the GAC.

It seems that I can find Telerik controls using their type names from the extension (i.e. WpfRadTileView), but I can't read any non-standard properties from them. The control type is being identified as the standard-equivalent, like in this example WpfCustom. After installing the UITest extension, should it not be correctly identified?

0
Peshito
Telerik team
answered on 26 May 2016, 07:43 AM
Hi,

We are currently looking into this issue and will write you back with more information on the matter.

Regards,
Peshito
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Daniel
Top achievements
Rank 1
answered on 26 May 2016, 09:58 AM
Thanks, I am looking forward to it. I posted here are well since currently I think it is not an installation issue.
0
Accepted
Peshito
Telerik team
answered on 26 May 2016, 01:15 PM
Hi Daniel,

I used the other forum thread you have started to give you the required solution to this issue. This is the link to it. I am posting the same reply here for future references:

"I was able to reproduce the issue you have. However the reason why you get this error is because the element is not properly identified. In order to do so, please use the "HelpText" search property to help you with the identification. This is required for the CodedUI level 2 and 3 support.

For instance this is a sample test method using your own code as a start point:
Copy Code
[TestMethod]
public void CodedUITestMethod2()
{
    this.UIMap.Start();
    this.UIMap.Checks();
    this.UIMap.HeightAsserts();
    WpfWindow mainWindow = new WpfWindow();
    mainWindow.SearchProperties[WpfControl.PropertyNames.Name] = "MainWindow";
 
    WpfRadButton button1 = new WpfRadButton(mainWindow);
    button1.SearchProperties["AutomationId"] = "Button_Test";
    button1.SearchProperties["HelpText"] = "RadButton";
 
    WpfRadButton button2 = new WpfRadButton(new UIMainWindowWindow());
    button2.SearchProperties["AutomationId"] = "Button_Test2";
    button2.SearchProperties["HelpText"] = "RadButton";
 
    double height1 = button1.ActualHeight;
    double height2 = button2.ActualHeight;
    //this.UIMap.ChecksCustom();
    this.UIMap.Close();
 
}
I tried with a test application having two buttons with different AutomationIDs, so in case you have more buttons you will easily be able to distinguish them."


Regards,
Peshito
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Peter
Top achievements
Rank 1
answered on 30 Mar 2017, 11:17 AM

Hi, 

I have Visual Studio 2015. I don't have this file in this folder. Can you tell me please why ?

Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore

I use thins link to help ?

http://docs.telerik.com/devtools/wpf/coded-ui-support

 

0
Ivan Ivanov
Telerik team
answered on 03 Apr 2017, 01:26 PM
Hello,

The assembly with the Telerik CodedUI extensions is not automatically copied to the folder by the installer. You can find Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore in the folder that contains the Telerik binaries. Then it should be manually copied to the respective VS folder. You can find the folder paths for the different VS versions in the article that you mentioned.

Regards,
Ivan Ivanov
Telerik by Progress
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.
0
Sat
Top achievements
Rank 1
answered on 09 Jun 2017, 12:39 PM

Am using a WPF application which has Telerik Controls in it, when am trying to identify the objects, it doesn't, From this post, i can understand that we need Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore.dll. I have installed only the software which i need to test. Where can i find this dll in this case. I don't see this file in that installed directory of my software. A little detailed explanation would be much appreciated.

0
Ivan Ivanov
Telerik team
answered on 14 Jun 2017, 12:15 PM
Hello,

Have you checked the TestTools subfolder in Binaries. There you can find different versions of the dll according to the specific VS versions. Then you can follow the steps from the previously mentioned article.

Regards,
Ivan Ivanov
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.
Tags
Installer and Visual Studio Extensions
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Peshito
Telerik team
Daniel
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Ivan Ivanov
Telerik team
Sat
Top achievements
Rank 1
Share this question
or