Saving Mock Data
  • 05 Dec 2022
  • Dark
    Light
  • PDF

Saving Mock Data

  • Dark
    Light
  • PDF

Article summary

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?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.