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

2 posts, 1 answers
  1. Chris Johnson
    Chris Johnson avatar
    20 posts
    Member since:
    Jan 2010

    Posted 10 Jun 2010 Link to this post

    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.
  2. Answer
    Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 10 Jun 2010 Link to this post

    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.
Back to Top