Apple Interview Question
Software Engineer in TestsThe server will post the fields in half server bit. The interceptor will respond to the data viz a two way third party library . The response to server is validated and than the fields are checked in the client side. The validations are than enforced to be changed for additional logic and fuzzy logic is developed.
Write an interceptor which will check the availability of third party server, when it is available pass the request to third party server else post the mock response to own server.
- Sharad December 16, 2010To make it more robust we can assign more work to interceptor, of recording the responses when third party server is alive and save/serialize them. These can be used as mock responses.
Moving step further the additional logic of what to pick from the saved responses can be added based on use cases we are testing.