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

Recorded step fails when executed

2 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kiran
Top achievements
Rank 1
Kiran asked on 03 Jul 2012, 01:26 PM
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 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 06 Jul 2012, 07:24 AM
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
0
Kiran
Top achievements
Rank 1
answered on 10 Jul 2012, 04:08 AM
Hi,

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

Thank you,
Kiran
Tags
General Discussions
Asked by
Kiran
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Kiran
Top achievements
Rank 1
Share this question
or