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

Tests randomly fail with "Object reference not set to an instance of an object."

3 Answers 237 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mathias
Top achievements
Rank 1
Mathias asked on 15 Feb 2013, 12:57 PM
I have a suite of tests which have run successfully for quite some time now for a Silverlight application.

The application is being migrated to Silverlight 5 and I find a few tests failing with some "Element not found" issues.

While resolving these issues, I randomly seem to be running into the following exception for tests that just worked successfully a second before:

Object reference not set to an instance of an 
object.InnerException:System.NullReferenceException: Object reference not set to 
an instance of an object. at 
Telerik.WebAii.Controls.Xaml.RadComboBox.ToggleDropDown() at 
Telerik.WebAii.Design.Translators.Xaml.ComboBox.ComboToggleDropDownAction.Execute(IApplication 
appHost) at 
ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost 
autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 
order)

When I quit and reopen TestStudio the issue goes away for a while.

My test suite is comprised of recorded sets with a few variable extractions and one coded step to set the value of an extracted variable.

Any advice appreciated.

Thanks

Mathias

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Feb 2013, 10:36 AM
Hello Mathias,

This is a duplicate of support ticket 660547 which is already assigned and answered by one of our support engineers. Please do not post duplicate support tickets and forum posts. We answer both and it only duplicates our efforts answering both. Once we get to the bottom of this you can share the final solution here for public benefit.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Jessica
Top achievements
Rank 2
answered on 22 Apr 2014, 08:47 PM
Did you all ever figure out a fix for this?
 I am having the same issue.
0
Cody
Telerik team
answered on 25 Apr 2014, 11:27 PM
Hello Jessica,

The other ticket was resolved by using a "WaitForElement is Visible" on the RadCombobox. I hope that helps.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Mathias
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Jessica
Top achievements
Rank 2
Cody
Telerik team
Share this question
or