Mr.J
Mr.J

Reputation: 1

How can I create a simulated integration test, without requesting the API?

I need to fix the code of an old employee who no longer works for my company. I've already made changes and unit tests that worked well. My problem lies with the integration tests.

I need to create an integration test for my code, but it has to be a simulated test, because I am not able to make real requests to the API.

For the integrated tests I cannot use mock to simulate the values of the API, and it would be necessary to create a simulated server to perform the integrated tests while I cannot access the API. I am only allowed to access the API and test with it after all the mock tests are working.

So, how can I create a simulated integration test, without requesting the API?

Upvotes: 0

Views: 31

Answers (1)

Sunil Raj
Sunil Raj

Reputation: 53

If you know the api documentation like swagger or postman collection. I guess, that should help. That would help you know what is needed and what is to be expected vice versa. If you still expect it is an integration issue, let the backend operations know and raise an issue . Not sure about your absolute scenario, but i gave a basic problem solving approach.

Upvotes: 0

Related Questions