Recorded step fails when executed

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

    Posted 03 Jul 2012 Link to this post

    Hi,
    I have a page that has a Date field and a Chart.
    Depending on the date entered, the values in the Chart change.

    My requirement is to verify how many variables exist on x-axis of the chart.

    When the page loads, the default date is 12/31/2001 and the corresponding Chart for this date is generated.
    If I record my test with the default date values, the verification step is a success.
    Verification step is - "chartarea(ChAErrorTypesAreaGvchartarea): Chart series item label count 'Equal' '5'."  

    If I record my test entering a different date (say, 03/31/2002), the verification step fails.
    Below error is logged:
    I have also attached the Images captured for the failed step.

    Unable to find the specified element: Unable to find the element of type: textblock
    InnerException:
       ArtOfTest.Common.Exceptions.FindElementException: Unable to find the specified element: Unable to find the element of type: textblock
       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 ArtOfTest.WebAii.Silverlight.UI.TextBlock.get_Foreground()
       at Telerik.WebAii.Controls.Xaml.ChartSeriesItemLabel.AssignReference(AutomationReference reference)
       at ArtOfTest.WebAii.Silverlight.FrameworkElement.As[T]()
       at Telerik.WebAii.Controls.Xaml.ChartArea.get_SeriesItemLabels()
       at Telerik.WebAii.Design.Translators.Xaml.Charting.SeriesItemLabelCountVerification.GetValueByProperty(String name)
       at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlPropertyVerificationDescriptor.ExtractData(IApplication hostApp, DescriptorValueStore dataStore)
       at ArtOfTest.WebAii.Design.Extensibility.XamlVerificationDescriptor.ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

    My Test Studio version - 2012.1.528
    RadControls version - 2012.1.215.1050 

    Could you please help in resolving this problem? 

    Thank you,
    Kiran

  2. Ivaylo
    Admin
    Ivaylo avatar
    782 posts

    Posted 06 Jul 2012 Link to this post

    Hello Kiran,

    I am sorry to hear you are experiencing this problem. In order to overcome this problem you'll need to change the find expression for this particular element. Please check this article on how to proceed.
    If you are still experiencing any issues we will need to take a look at this from first hand if possible.

    Looking forward to hear from you.

    Greetings,
    Ivaylo
    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 09 Jul 2012 Link to this post

    Hi,

    I have added a 'wait for' step before the verification step.
    It works now.

    Thank you,
    Kiran
Back to Top