Recorded step and coded step differs

6 posts, 0 answers
  1. Kiran
    Kiran avatar
    7 posts
    Member since:
    Jul 2012

    Posted 14 Jun 2012 Link to this post

    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

  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 19 Jun 2012 Link to this post

    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
  3. Kiran
    Kiran avatar
    7 posts
    Member since:
    Jul 2012

    Posted 20 Jun 2012 Link to this post

    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


  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 22 Jun 2012 Link to this post

    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
  5. Kiran
    Kiran avatar
    7 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2012 Link to this post

    Hi,

    My problem is resolved after upgrading to the latest version.

    Thank you,
    Kiran
  6. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 02 Jul 2012 Link to this post

    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
Back to Top