Saving Mock Data
- 05 Dec 2022
-
DarkLight
-
PDF
Saving Mock Data
- Updated on 05 Dec 2022
-
DarkLight
-
PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
When you run integrated tests (stub = false) with the isSaveMockData flag turned on, the integration tests will save the response from the request into a mock data file and update the action.json file.
- If you decide to run standalone tests (stub = true), the response that is received will be used as a mock data response for a similar request.
- Each method makes gathering mock data easier for delivery teams.
- If you are not using return_raw set to true and if your data is being translated, it is important to understand that what is being saved has already been translated. Therefore, you may need to edit the mock data and reverse the translation.
Was this article helpful?