Completed
Last Updated: 19 Aug 2013 12:17 by ADMIN
ADMIN
Mario
Created on: 17 Jul 2013 15:19
Type: Bug Report
0
Invoking "ExpandAllHierarchyItems" method on Silverlight grid throws error.
Error below is thrown:


ArtOfTest.Common.Design.Exceptions.ExecutionException: Exception thrown executing coded step: '[WebTest_CodedStep] : New Coded Step'. ---> ArtOfTest.WebAii.Silverlight.ExecuteSilverlightCommandException: [Silverlight Extension Error] Details: System.Reflection.AmbiguousMatchException: [Arg_AmbiguousMatchException]
Arguments: 
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.20513.00&File=mscorlib.dll&Key=Arg_AmbiguousMatchException
   at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
   at System.Type.GetMethod(String name)
   at Telerik.TestingFramework.XamlExtension.ClientServices.InvokeMethod(AutomationReference reference, AutomationMethod method)
   at Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)
   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.InvokeMethod(AutomationMethod method, IAutomationPeer peer)
   at ArtOfTest.WebAii.Silverlight.AutomationObject`1.InvokeMethod(AutomationMethod method, Object[] parameters)
   at ArtOfTest.WebAii.Silverlight.AutomationObject`1.InvokeMethod(String methodName, Object[] parameters)
   at TestProject195.WebTest.WebTest_CodedStep() in c:\Users\mrip\Documents\Test Studio Projects\TestProject195\WebTest.tstest.cs:line 86
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance, Boolean& stopExecution)
2 comments
ADMIN
Daniel Djambov
Posted on: 19 Aug 2013 12:17
The issue is fixed and solution will be available in internal release/service pack post 2013 R1
ADMIN
Konstantin Petkov
Posted on: 18 Jul 2013 11:02
Hello,

As a work-around one can use the current RadControls wrappers API to write a helper method iterating through each gridview row and expanding it.

From the API:
RadGridView.Rows – give the list of all rows in the grid
GridViewRow.Expand() – expand the row, basically finding and clicking on a toggle button
Or
GridViewRow.IsExpanded – just changes the IsExpanded value of the actual GridViewRow in the application.

The RadGridView control wrappers reside in the Telerik.WebAii.Controls.Xaml namespace for Silverlight and the Telerik.WebAii.Controls.Xaml.Wpf namespace for WPF.

I hope this helps!