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

RadGridView - UI Automation

19 Answers 191 Views
GridView
This is a migrated thread and some comments may be shown as answers.
gawain
Top achievements
Rank 1
gawain asked on 09 Dec 2010, 12:02 PM
I've trying to test automatically a RadGridView using UI Automation / Coded UI from Microsoft. Everything is fine using the RadGridView built for .Net 3.5 SP2. Each cell is detected and I can click into it to modify the cell's value.
However, we have switched to .Net 4.0 and the corresponding Telerik version. Unfortunately, I'm facing the problem that I am just able to click into the cells of the last rows.

Any suggestions how to fix this problem?

19 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 15 Dec 2010, 02:08 PM
Hi gawain,

Please, excuse us for the late reply.

We are investigating the issue and we will notify you as soon as we have more information.
 
Kind regards,
Yordanka
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Tommaso
Top achievements
Rank 1
answered on 17 Dec 2010, 04:17 PM
Hi,

I have a soultion on .NET4.0 framework and I have the same problems of gawain with UI Automation

I cannot automatize test on RadGridView too.
0
Yordanka
Telerik team
answered on 23 Dec 2010, 08:15 AM
Hi,

We are familiar with the problem but we are still not sure what is causing it. We will do our best to provide a fix as soon as possible but we cannot commit with specific time frame. Please, excuse us for the inconvenience caused.
 
Greetings,
Yordanka
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
anthony
Top achievements
Rank 1
answered on 16 Feb 2011, 11:59 PM
I don't suppose this issue has been solved yet?  We are trying to use UITest here at work and I can't seem to get it to recognize the click on the text in the grid cell.  I have tried to walk up the tree in UITest and add all UI elements, and have then added those as containers (attempting to get past the virtualized elements) to no avail.  It always fails to find the control when the recorded test is played back.  Just checking to see.

Thanks for any help.
0
Yordanka
Telerik team
answered on 22 Feb 2011, 10:33 AM
Hello,

Unfortunately, the problems with CodedUI Test are still not addressed. We are working on improving some minor issues but for the time being we cannot commit to any specific date or release the availability of full support for UI Automation.
 
Regards,
Yordanka
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Ramin
Top achievements
Rank 1
answered on 17 Jan 2012, 01:50 AM
I have written a test app using .net 3.5 and Coded UI Test. I can click on every cell in my RadGridView and it works fine but once I change the target framework from 3.5 to 4 the Coded UI Test fails.
Is there any solution for this?
0
Ramin
Top achievements
Rank 1
answered on 17 Jan 2012, 01:50 AM
I have written a test app using .net 3.5 and Coded UI Test. I can click on every cell in my RadGridView and it works fine but once I change the target framework from 3.5 to 4 the Coded UI Test fails.
Is there any solution for this?
0
Vlad
Telerik team
answered on 17 Jan 2012, 08:36 AM
Hello,

 Are you using our 3.5 assemblies or our 4.0 assemblies?

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ramin
Top achievements
Rank 1
answered on 17 Jan 2012, 05:58 PM
RadGridView:
Version: 2011.2.920.35
Runtime Version: v2.0.50727
How do I know if it's 3.5 assemblies or 4.0 assemblies?
0
Vlad
Telerik team
answered on 18 Jan 2012, 08:27 AM
Hello,

 The two numbers at the end are the framework version - in your case .NET 3.5. Please try our WPF 4.0 assemblies. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ramin
Top achievements
Rank 1
answered on 20 Jan 2012, 02:07 AM
Thanks Vlad,
OK, I got the new assemblies (2011.2.920.40) with 4.0 assemblies the test won't do the job correctly. In my test I select a specific row in the Grid and by using arrow keys I want to move up or down and eventually select a desired row but the focus gets stuck in the second row and won't move up or down. As a result the main test fails. I have tested this in several Grid in my application and all came out with the same result. The only Grid that won't break the test has only one row.
0
Ramin
Top achievements
Rank 1
answered on 23 Jan 2012, 11:24 PM
OK, I got it to work now. I had to override ToString() method in the underlying data object.
I have another issue now. I can select the rows in the Grid with keyboard navigation but when using mouse finding a row fails all the time. Every time I playback the test the last row is selected. As I said, this is fine when I use arrow keys to select a row.
Any suggestion?
0
Ivan Ivanov
Telerik team
answered on 24 Jan 2012, 05:39 PM
Hello Ramin,

Unfortunately, there are some known cases of inconsistent behavior between our automation support for .NET 3.5 and that for .NET 4.0. Would you please send us a simple runnable project that illustrates the issue you have found, so that we could debug it on our side and provide an appropriate solution? Please, excuse us for the inconvenience.

Greetings,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ramin
Top achievements
Rank 1
answered on 24 Jan 2012, 06:31 PM
My issues is not around inconsistency between version 3.5 and 4.0. I downloaded 4.0 assemblies and my Coded Test started working with Telerik RadGrid. The problem is inconsistency between Telerik RadGrid and Microsoft DataGrid. With Microsoft DataGrid I can easily use mouse to select rows, cells and update their data but with Telerik Grid this is not possible. Testing this is very simple you just need to have both Grids in a form and record your activity then play it back and see the results. I was not able to fail the test in Microsoft DataGrid but with Telerik Grid the test fails as soon as I use mouse or I start updating a cell.
Thanks for looking into this.
0
Ivan Ivanov
Telerik team
answered on 29 Jan 2012, 09:27 PM
Hi Ramin,

We have managed to reproduce this issue on our side. Thank you for reporting it to us. I have updated your Telerik points status accordingly. We will do our best to resolve it as soon as possible. I will keep in touch with you, in order to notify you of any future updates.

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ramin
Top achievements
Rank 1
answered on 21 Feb 2012, 01:18 AM
Hi Ivan,

It's been three weeks now from your last response to this thread. I am wondering if there has been any progress in this issue? Testing with CodedUI is very critical for us and we are impatiently waiting for a solution.

Thanks,
Ramin
0
Ivan Ivanov
Telerik team
answered on 23 Feb 2012, 05:44 PM
Hello Ramin,

Please, excuse us for the delayed response to your inquiry. We have assigned this task for the incoming service pack of Q1, alongside with other CodedUI tests improvements. As our future releases are planned to enhance RadControls' accessibility, do not hesitate to contact us for any related issues that you have experienced, while using our controls.

All the best,
Ivan Ivanov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ivan Ivanov
Telerik team
answered on 26 Mar 2012, 04:42 PM
Hello Ramin,

The mentioned Service pack is now available for download. We have made some improvements that address element detection with automation tools. Would you please confirm whether the issue is fixed on your side?

All the best,
Ivan Ivanov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
bhadram
Top achievements
Rank 1
answered on 17 Mar 2015, 11:43 AM
Hi Vlad,

           Is there any code samples of Datagrid in WPF Automation UI. If there how can i download that samples.
Tags
GridView
Asked by
gawain
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Tommaso
Top achievements
Rank 1
anthony
Top achievements
Rank 1
Ramin
Top achievements
Rank 1
Vlad
Telerik team
Ivan Ivanov
Telerik team
bhadram
Top achievements
Rank 1
Share this question
or