Mock network responses


Testim adds the ability to mock the network responses of the application under test (AUT). During the test run, instead of performing real calls the system will intercept the call and return a mocked response. Testim can automatically generate a network HAR file and use it to mock responses, or a file can be manually created.

Network mocking is a great way to test earlier in the development lifecycle to isolate front-end bugs without the variability of network or environmental issues. In addition, developers can use network mocking to test the front-end application even when the back-end isn't fully ready, or when making API calls would generate service fees.

Mock network responses is available for professional plans only. For more information see the docs.