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

4 posts, 0 answers
  1. Mathias
    Mathias avatar
    3 posts
    Member since:
    Feb 2013

    Posted 15 Feb 2013 Link to this post

    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 
    appHost) at 
    autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 

    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.


  2. Plamen
    Plamen avatar
    8 posts

    Posted 19 Feb 2013 Link to this post

    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.

    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Jessica
    Jessica avatar
    3 posts
    Member since:
    Jul 2012

    Posted 22 Apr 2014 in reply to Plamen Link to this post

    Did you all ever figure out a fix for this?
     I am having the same issue.
  4. Cody
    Cody avatar
    3360 posts

    Posted 25 Apr 2014 Link to this post

    Hello Jessica,

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

    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top