Skip to content

Exception in referenced request shows as a success #842

Closed
@alekdavis

Description

ENVIRONMENT

  • HttpYac CLI v6.16.4
  • NodeJS v23.3.0
  • NPM v10.9.0

SCENARIO

There are two tests/requests: A (in the screenshot below it is Token Apigee) calls an OAuth token endpoint to generate a bearer token, B (Ping Apigee Bearer in the screenshot) references A and uses the returned access_token for another call to a different endpoint. When invoking test B from command line, if A causes an exception (in my case, it's due to a proxy not being specified, but I suspect it would be for any other reason), the test results still show as one test as successful:

image

With the first test failing and the second not being run at all (that's what I think), there should be 2 failures:

image

And it looks like the VSCode extension has the same issue: if an exception occurs during pre-request or request, the test is marked as successful.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions