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

Global variables seems to only work with data and not file attribute #58

Open
stefangoor opened this issue Aug 30, 2018 · 1 comment
Open

Comments

@stefangoor
Copy link

Hi There,

Is is possible to use global variables in mock data when it comes from a file rather the data attribute?

In my scenario if I put the %%variable%% reference in a JSON object within the data: attribute it gets substituted correctly but if I have the same JSON object in a file that is loaded via the file: attribute it does not get substituted.

Is there a way to achieve this?

Many Thanks

@stefangoor stefangoor changed the title Global variables seems to only work with data attribute not file for mocks Global variables seems to only work with data and not file attribute Aug 30, 2018
@jeremymwells
Copy link

No, they don't seem to work that way. @mdasberg - any plans for this? PR's welcome?

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