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

Debug why tests sometimes fail

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 25 May 2011, 03:23 PM
I've run into a problem where my tests can run x number of times in a row, with 0 changes in my code / silverlight application.  Sometimes the tests will pass, sometimes they will fail, and it's never a consistent failure, it's always something different each time.  I'm trying to debug why the tests sometime fails, and I can't really pinpoint a good way to debug it.  Can someone share some pointers on the best way to debug all these tests and why they are so flaky?

Thanks

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 28 May 2011, 09:12 AM
Hi Peter,
        it's hard to say anything definitive without looking at your test. One thing you should definitely look at is whether your test is written is such a way as to wait for elements to appear before attempting to perform actions on them. Please go ahead and paste a test that you have trouble getting to work. It would be able if we're able to run it (i.e. the app it tests should be publicly available) - that way we'll be able to easily troubleshoot the issue.

All the best,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or