Hi,
Please help in resolving the below issue.
1. I have recorded a test step that verifies the count of labels in a chart.
When it is executed, it fails with the error in log as below:
Failure Information:
~~~~~~~~~~~~~~~
Unable to cast object of type 'System.Int32' to type 'System.String'.
InnerException:
System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlStringPropertyVerificationDescriptor.Verify(DescriptorValueStore dataStore)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
2. I convert the same step to a coded step and do NOT change any code.
Now, when the test is executed, this step fails with a different error as below:
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[StringErr_CodedStep] : chartarea: Chart series item label count 'Same' '6'., RequiresSilverlight=True'.
InnerException:
ArtOfTest.WebAii.Silverlight.ExecuteSilverlightCommandException: [Silverlight Extension Error] Details: ArtOfTest.WebAii.Silverlight.NoSuchPropertyException: Property 'SeriesItemLabels.Count' does not exist on the element
at Telerik.TestingFramework.XamlExtension.ClientServices.GetRealProperty(AutomationReference reference, AutomationProperty property)
at Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)
at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetProperty(AutomationProperty property, IAutomationPeer peer)
at ArtOfTest.WebAii.Silverlight.AutomationObject`1.GetProperty(AutomationProperty property)
at StringErr.StringErr_CodedStep() in C:\Caliper UI Automation\In Progress\TestProject1\StringErr.tstest.vb:line 73
Please help in resolving the below issue.
1. I have recorded a test step that verifies the count of labels in a chart.
When it is executed, it fails with the error in log as below:
Failure Information:
~~~~~~~~~~~~~~~
Unable to cast object of type 'System.Int32' to type 'System.String'.
InnerException:
System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlStringPropertyVerificationDescriptor.Verify(DescriptorValueStore dataStore)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
2. I convert the same step to a coded step and do NOT change any code.
Now, when the test is executed, this step fails with a different error as below:
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[StringErr_CodedStep] : chartarea: Chart series item label count 'Same' '6'., RequiresSilverlight=True'.
InnerException:
ArtOfTest.WebAii.Silverlight.ExecuteSilverlightCommandException: [Silverlight Extension Error] Details: ArtOfTest.WebAii.Silverlight.NoSuchPropertyException: Property 'SeriesItemLabels.Count' does not exist on the element
at Telerik.TestingFramework.XamlExtension.ClientServices.GetRealProperty(AutomationReference reference, AutomationProperty property)
at Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)
at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetProperty(AutomationProperty property, IAutomationPeer peer)
at ArtOfTest.WebAii.Silverlight.AutomationObject`1.GetProperty(AutomationProperty property)
at StringErr.StringErr_CodedStep() in C:\Caliper UI Automation\In Progress\TestProject1\StringErr.tstest.vb:line 73