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

[BUG] Broken environment loading #230

Closed
vojtech-pejsa-redbit opened this issue Oct 2, 2023 · 2 comments
Closed

[BUG] Broken environment loading #230

vojtech-pejsa-redbit opened this issue Oct 2, 2023 · 2 comments

Comments

@vojtech-pejsa-redbit
Copy link

Version 6.7.0 broke environment loading when launching requests as tests, send action doesn't seem to be affected.

Steps to reproduce

  1. Open file test.rest.
  2. Click on action env: and select environment demo.
  3. Click green triangle to run test.
  4. Result is error: page is not defined

Action send works correctly with the same workflow.

Version 6.6.7 works without any problems.

Test files:

test.rest:

GET https://reqres.in/api/users?page={{page}}

httpyac.config.js:

module.exports = {
  environments: {
    demo: {
        page: 2
    }
  },
};
@vojtech-pejsa-redbit vojtech-pejsa-redbit changed the title Broken environment loading [BUG] Broken environment loading Oct 2, 2023
@AnWeber
Copy link
Owner

AnWeber commented Oct 2, 2023

Unfortunately, I overlooked that this is the setting of testRunAlwaysUseEnv always truthy. I will correct it today.

@vojtech-pejsa-redbit
Copy link
Author

Thank you for quick fix 🙂.

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