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

Automated tests

3 Answers 246 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 01 Sep 2017, 08:29 AM

Hello.

I'm trying to create automated tests for RadGridView using TestStack.White, test should click on 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?

3 Answers, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 05 Sep 2017, 08:08 AM
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.
0
Lakshmi
Top achievements
Rank 1
answered on 21 Sep 2017, 08:39 AM

Hej,

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

 

Regards

Lakshmi

0
Ralitsa
Telerik team
answered on 21 Sep 2017, 10:09 AM
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.
Tags
GridView
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Lakshmi
Top achievements
Rank 1
Share this question
or