Is there a way to put mock response in a file ? #327
Replies: 3 comments 1 reply
-
Hi, normally it should work, are you sure Tzatziki is finding your json file ? Do you have an error on the first step ? Where is your result.json file located in your project ? The current path is located at the resources folder of your test folder if i'm right. |
Beta Was this translation helpful? Give feedback.
-
Hello, yes I'm sure the file is present and the variable in itself works : But I never succeeded in using variables in mocks results. When debugging the tzatziki steps, I didn't see a variable replacement either. |
Beta Was this translation helpful? Give feedback.
-
I did a test to mock the Scenario you post in your first message and it worked with a file. Can you share your code ? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I currently use Wiremock and have all my mocks handled with files (in the mapping folder).
It's very useful, especially because my mocked partners responses can be very long.
With Tzatziki, Is there a way to not having the answers directly in cucumber (which is really not very readable in my case), but in separated files ?
I didn't find a way, I tried reading files and putting the result in variables :
but variables don't seem to be available either in the mock answers.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions