Skip to content

Test Case marked as PASSED even when a Script Assertion in a Mock TestStep fails #882

Description

@stawmar

Hi,
I've noticed that when I use a Mock TestStep inside a TestCase, and a Script Assertion inside that Mock TestStep fails, the whole TestCase is still marked as PASSED.

Expected behavior:
If a Script Assertion fails inside MockTestStep, the TestCase should be marked as FAILED.

Actual behavior:
The Script Assertion error in the Mock TestStep appears in the log, but the TestCase status remains PASSED.

Additional note:
When Script Assertion is used inside a regular Request TestStep, the behavior is correct — the TestCase is marked as FAILED.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions