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

Access problem to RadGridView of siverlight (during the test)

4 Answers 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Firnenz
Top achievements
Rank 1
Firnenz asked on 08 Aug 2011, 04:34 PM
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,

4 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 12 Aug 2011, 04:33 PM
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!
0
Mathieu Estratat
Top achievements
Rank 1
answered on 23 Aug 2011, 04:55 PM
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

0
Cody
Telerik team
answered on 25 Aug 2011, 05:17 PM
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!
0
Mathieu Estratat
Top achievements
Rank 1
answered on 12 Sep 2011, 12:40 PM
Hi Cody,
thanks for your answer.
This workaround fixes the problem.
Kind Regards
Mathieu
Tags
General Discussions
Asked by
Firnenz
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Mathieu Estratat
Top achievements
Rank 1
Cody
Telerik team
Share this question
or