Alipay+Alipay+

iMock

Use iMock to simulate different API results and return specified responses for integration testing. Follow these steps:

  1. Click Specify on the right side of each API.

image

  1. Specify the type of response for at least one API.

image

All types of responses are designed by Alipay+ for indicating different result codes. No response is specified by default. If you specify the response, this type of response for the corresponding API is always returned when iMock is turned on.

  1. Set the API Mock duration. The duration can be 30 mins, 60 mins, 90 mins, or 120 mins. API Mock is turned off automatically when the time is up.

image

  1. Turn on iMock.

image