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

Test as Step failure report does not indicate which sub-step failed

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris Johnson
Top achievements
Rank 1
Chris Johnson asked on 10 Jun 2010, 06:18 PM
When a Test as Step fails, you don't know the actual sub-step that failed. (Sub-step meaning a step within the Test as Step.) You get a message saying the Test As Step failed, and a stack trace, but it's often not possible to deduce where the error occured from that because it does not identify the sub-step. Below is an example.

Is there any way to determine the sub-step? I think this is an important question, because if you're trying to modularize your tests then you are making heavy use of Test As Step.

Thanks!

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'6/10/2010 12:58:50 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'6/10/2010 12:58:50 PM' - 'Fail' : 2. Execute test 'CleanReplyMailbox'
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click(Boolean isClosing)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ClickActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--------------------------------------------------
'6/10/2010 12:58:50 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 10 Jun 2010, 10:22 PM
Hi Chris,

Thank you for posting this question.

There is a recent improvement for scenarios like these where we log the inner test failing step info like the step order and description. We log that info in the complete/outer test log. Unfortunately that update didn't make it into the latest official release but feel free to give the latest build a try and let us know of your feedback.

Greetings,
Konstantin Petkov
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
Chris Johnson
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or