RadGridView - UI Automation

20 posts, 0 answers
  1. gawain
    gawain avatar
    2 posts
    Member since:
    Oct 2010

    Posted 09 Dec 2010 Link to this post

    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?
  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 15 Dec 2010 Link to this post

    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
  3. Tommaso
    Tommaso avatar
    13 posts
    Member since:
    Mar 2010

    Posted 17 Dec 2010 Link to this post

    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.
  4. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 23 Dec 2010 Link to this post

    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
  5. anthony
    anthony avatar
    1 posts
    Member since:
    Sep 2010

    Posted 16 Feb 2011 Link to this post

    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.
  6. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 22 Feb 2011 Link to this post

    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>>
  7. Ramin
    Ramin avatar
    30 posts
    Member since:
    Sep 2010

    Posted 16 Jan 2012 Link to this post

    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?
  8. Ramin
    Ramin avatar
    30 posts
    Member since:
    Sep 2010

    Posted 16 Jan 2012 Link to this post

    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?
  9. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 17 Jan 2012 Link to this post

    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 >>

  10. Ramin
    Ramin avatar
    30 posts
    Member since:
    Sep 2010

    Posted 17 Jan 2012 Link to this post

    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?
  11. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 18 Jan 2012 Link to this post

    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 >>

  12. Ramin
    Ramin avatar
    30 posts
    Member since:
    Sep 2010

    Posted 19 Jan 2012 Link to this post

    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.
  13. Ramin
    Ramin avatar
    30 posts
    Member since:
    Sep 2010

    Posted 23 Jan 2012 Link to this post

    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?
  14. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1217 posts

    Posted 24 Jan 2012 Link to this post

    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 >>
  15. Ramin
    Ramin avatar
    30 posts
    Member since:
    Sep 2010

    Posted 24 Jan 2012 Link to this post

    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.
  16. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1217 posts

    Posted 29 Jan 2012 Link to this post

    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 >>
  17. Ramin
    Ramin avatar
    30 posts
    Member since:
    Sep 2010

    Posted 20 Feb 2012 Link to this post

    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
  18. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1217 posts

    Posted 23 Feb 2012 Link to this post

    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 >>
  19. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1217 posts

    Posted 26 Mar 2012 Link to this post

    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 >>
  20. bhadram
    bhadram avatar
    1 posts
    Member since:
    Mar 2015

    Posted 17 Mar 2015 in reply to Vlad Link to this post

    Hi Vlad,

               Is there any code samples of Datagrid in WPF Automation UI. If there how can i download that samples.
Back to Top