Is it a good idea to automate API calls used in my mobile APP in XCtests and check if response is in expected format. I want to test all the API calls used inside my app at one place rather than testing each feature which internally calls that API. This way I want to sure that my API's are working
Is it a good idea to automate API calls used in my mobile APP in XCtests
You are the best person to answer that, because:
-
You have the best understanding of how your code is related to this web service.
-
There’s no one single answer; it’s largely a matter of opinion.
My opinion is that, If the web service is something you control, I don’t think it’s worthwhile using XCTest for this. Rather, integrate these tests into the test infrastructure for the web service itself.
OTOH, if you’re using a web service that you don’t control, I can see the benefit of having a single place to check to see if it’s behaving itself.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"