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

5 posts, 1 answers
  1. Daniel
    Daniel avatar
    2 posts
    Member since:
    May 2016

    Posted 23 May Link to this post

    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?

  2. Daniel
    Daniel avatar
    2 posts
    Member since:
    May 2016

    Posted 23 May Link to this post

    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?

  3. UI for WPF is Visual Studio 2017 Ready
  4. Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 26 May Link to this post

    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.
  5. Daniel
    Daniel avatar
    3 posts
    Member since:
    May 2016

    Posted 26 May Link to this post

    Thanks, I am looking forward to it. I posted here are well since currently I think it is not an installation issue.
  6. Answer
    Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 26 May Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready