Automated tests

4 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    1 posts
    Member since:
    Aug 2017

    Posted 01 Sep Link to this post

    Hello.

    I'm trying to create automated tests for RadGridView using TestStack.White, test should click on datagrid row. Code:

    var searchResults = window.Get<Table>(SearchCriteria.ByAutomationId("searchResults"));
    var row = searchResults.Row[0];

    searchResults is found, but rows are always empty, even if there are rows on grid.

    Also, when I review the form using Visual UI Automation verify (https://msdn.microsoft.com/ru-ru/library/jj160544.aspx), it shows strange information, no automation ids for elements and so on. So, it seems like it is not possible to write automated tests for RadGridView.Is this true, or if not, is there some guidance how to do this?

  2. Ralitsa
    Admin
    Ralitsa avatar
    185 posts

    Posted 05 Sep Link to this post

    Hi Dmitry,

    Thank you for contacting us. 

    Before getting to your question, let me bring to your attention something related with using of Microsoft UI Automation. Telerik UI for WinForms suite supports Microsoft Active Accessibility (MSAA) standard, not Microsoft UI Automation (UIA). We implement MSAA support in our controls in order to provide support for Visual Studio CodedUI tests and to provide support for Windows Narrators. We do not target full support for another tool like Verify UI Automation, Rаnorex оr Inspect tool. 

    The Visual UI Automation Verify tool is working with the Microsoft UI Automation framework. UI Automation providers offer some support for Microsoft Active Accessibility client applications. As a result, it is possible to spy some of UI elements. However, because Microsoft Active Accessibility does not expose as much information as UI Automation, the two models are not fully compatible. More information about the difference between Microsoft Active Accessibility (MSAA) and Microsoft UI Automation (UIA) can be found here: 
     - Coded UI Test Extension for 3rd party Windows Forms controls–How to?
     - Microsoft Active Accessibility and UI Automation Compared
     - UI Automation Support for Standard Controls

    So we can recommend you to use MSAA because Windows Forms supports MSAA, not UIA (since UIA is WPF related technology). You can use CodedUI Extension for Telerik UI for Winforms controls to record and execute tests. How to use CodedUI and the list of supported controls and actions can be found here: 
     - Accessibility, MSAA, Coded UI Test Automation  
     - CodedUI Extension for Telerik UI for WinForms 
     - Supported Controls and Actions 

    Should you have further questions, I would be glad to help.

    Regards,
    Ralitsa
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Lakshmi
    Lakshmi avatar
    4 posts
    Member since:
    May 2011

    Posted 21 Sep Link to this post

    Hej,

    I would like to Know weather is it possible to write automated tests for RadMultiColumn combobox  control.

     

    Regards

    Lakshmi

  4. Ralitsa
    Admin
    Ralitsa avatar
    185 posts

    Posted 21 Sep Link to this post

    Hello Lakshmi,

    Thank you for contacting us. 

    All controls in the suite support Level1 and Level2 for Coded UI Test Framework. However, the additional properties or actions of RadMultiColumnComboBox are not implemented. Please refer to the Supported Controls and Action article for more information. 

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Ralitsa
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top