Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in referenced request shows as a success #842

Closed
alekdavis opened this issue Dec 7, 2024 · 1 comment
Closed

Exception in referenced request shows as a success #842

alekdavis opened this issue Dec 7, 2024 · 1 comment

Comments

@alekdavis
Copy link

alekdavis commented Dec 7, 2024

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.

@AnWeber
Copy link
Owner

AnWeber commented Jan 2, 2025

errored or skipped referenced region also skips current httpregion. fixed with next release

@AnWeber AnWeber closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants