You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: