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

Recorded step and coded step differs

5 Answers 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kiran
Top achievements
Rank 1
Kiran asked on 14 Jun 2012, 02:00 PM
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

5 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 19 Jun 2012, 09:18 PM
Hello Kiran,

I have tried to reproduce your symptoms but with no luck so far. I am using the latest version of the RadControls for Silverlight. What version of our RadControls are you using? I have attached the sample project and test I used to study this problem.

Can I access your application directly to reproduce this problem, or can you send me a sample Silverlight application that reproduces this problem?

All the best,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Kiran
Top achievements
Rank 1
answered on 20 Jun 2012, 12:40 PM
Hi Cody,

Thank you for the response!!

We are using "2012.1.215.1050" version of RadControls.
Our installed TestStudio version is "2011.2.928.0".

I am not able to open your sample project.
It says I need at least 2012.1.425.0 TestStudio version to open it.

Will try to send you a sample application.

Thank you,
Kiran


0
Cody
Telerik team
answered on 22 Jun 2012, 08:15 PM
Hi,

I have replicated both symptoms you describe using build 2011.2.928.0. I can confirm these have been fixed in our latest version. Please upgrade to version 2012.1.528 overcome this issue.

Looking at your account it appears you have already downloaded this version. Did you test using that version? Does it resolve this problem for you?

Greetings,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Kiran
Top achievements
Rank 1
answered on 02 Jul 2012, 06:50 AM
Hi,

My problem is resolved after upgrading to the latest version.

Thank you,
Kiran
0
Cody
Telerik team
answered on 02 Jul 2012, 02:25 PM
Hello,

Glad to hear it! Thank you for the update.

All the best,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Kiran
Top achievements
Rank 1
Answers by
Cody
Telerik team
Kiran
Top achievements
Rank 1
Share this question
or