thucydides
  1. thucydides
  2. THUCYDIDES-235

Incorrect result appears in log in case if one "Step" using another "Step" (substep)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.250
    • Labels:
      None
    • Environment:

      Windows 7, 64 bit

      Description

      Preconditions:
      Set saving screenshots only in failures.

      Steps to reproduce:

      1. Define at least two steps (which marked by @Step annotations)
      2. Make sure that one of these steps invokes another in its body.
      3. Make the situation, where first step (main step) will be failed, and nested step is not failed.

      Code example:
      @Step
      public void mainStep()
      {
      // main step body
      nestedStep(); // invoke of nested step
      throw new Error("some error"); // raise an error
      // other code (optional)
      }

      @Step
      public void nestedStep()
      {
      // nested step body
      }

      Expected Result:
      We see correct error description, and screenshot with this error (from main step).

      Actual Result:
      We see incorrect error description (somewhere from nested Step, and screenshot from last error, in case if it was, of course, otherwise - we don't see any screenshots)

      P.S. I used framework version 0.9.244

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            johnsmart
            Reporter:
            IvanZolotov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: