Access problem to RadGridView of siverlight (during the test)

5 posts, 0 answers
  1. Firnenz
    Firnenz avatar
    1 posts
    Member since:
    Aug 2011

    Posted 08 Aug 2011 Link to this post

    Hi Telerik support,

    When I used telerik testing webAii on version 2010-3-1421 and siverlight application on version 2011-1-419, my testing framework worked well. It was possible to control the RadGridView, GridViewCell on my testing framework.

    Since I changed the version of application siverlight on 2011-2-712 and version of WebAii on 2011-1-712, my access to components of testing framework (RadGridView, GridViewCell) hasn't worked.

    I precised that in my siverlight application, I added <param name="EnableHtmlAccess" value="true" />
    I inserted the reference Telerik.WebAii.Controls.Xaml on my testing framework as well.

    I don't know why it doesn't work at all.

    This is turning into a big problem for us, so I hope you can try to figure it out and provide a solution.
    Thanks guys, I appreciate it.

    Best regards,
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 12 Aug 2011 Link to this post

    Hello Firnenz,
        I was unable to reproduce this issue. I ran a test (Telerik Testing Framework only - no Test Studio) against the RadGridView on our Silverlight demo page here:
    http://demos.telerik.com/silverlight/#GridView/FirstLook

    Here's the code for the test:
    Manager.Settings.EnableSilverlight = true;
    Manager.LaunchNewBrowser();
    Manager.ActiveBrowser.NavigateTo("http://demos.telerik.com/silverlight/#GridView/FirstLook");
     
    SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
    RadGridView rgd = app.Find.ByType<RadGridView>();
    rgd.Wait.ForExists(20000);
     
    Log.WriteLine("RadGridView found:"+rgd.Name);

    This ran successfully on Telerik Testing Framework 2011.1.712. The controls on the demo page are also 712.

    If possible could you please create a test that exhibits the problematic behavior against the Telerik Silverlight demo page and send it to us. In that way we can reproduce the issue locally.

    Kind regards,
    Stoich
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. Mathieu Estratat
    Mathieu Estratat avatar
    7 posts
    Member since:
    Feb 2010

    Posted 23 Aug 2011 Link to this post

    Hi Stoich,
    I am trying to use these dlls (2011.1.712) and I am face to an other problem on the RadGridView.
    Using your sample, I can log the GridName but I can not rich the Rows property of the RadGridView, 
    to reproduce, just update the previous code with the following one:

    Manager.Settings.EnableSilverlight = true;
    Manager.LaunchNewBrowser();
    Manager.ActiveBrowser.NavigateTo("http://demos.telerik.com/silverlight/#GridView/FirstLook");
      
    SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
    RadGridView rgd = app.Find.ByType<RadGridView>();
    rgd.Wait.ForExists(20000);
      
    Log.WriteLine("RadGridView found:"+rgd.Name);
    IList<GridViewRow> rows =  rgd.Rows;

    Doing that, the test fail on error on last line with a NPE : 

    Object reference not set to an instance of an object.
       at Telerik.WebAii.Controls.Xaml.RadGridView.get_GroupRows()
       at Telerik.WebAii.Controls.Xaml.RadGridView.get_Rows()

    Do you have any idea about what I am doing wrong.

    Best Regards

    Mathieu

  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 25 Aug 2011 Link to this post

    Hi Mathieu Estratat,

    I am sorry you are running into this problem. This is a know issue with our RadGridView translator that has been fixed in our latest internal buid.

    Using the version you currently have installed you can use this workaround:

    IList<GridViewRow> rows = rgd.Find.AllByType<GridViewRow>();


    Kind regards,
    Cody
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  5. Mathieu Estratat
    Mathieu Estratat avatar
    7 posts
    Member since:
    Feb 2010

    Posted 12 Sep 2011 Link to this post

    Hi Cody,
    thanks for your answer.
    This workaround fixes the problem.
    Kind Regards
    Mathieu
Back to Top