Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Xcode UI Tests and API Calls - Xcake Dublin, December 2016

Xcode UI Tests and API Calls - Xcake Dublin, December 2016

Your iOS app communicates with an API in the cloud -
so far so good.

But what happens if you add XCUI tests? How do you keep your app code clean, while still being able to setup the test scenarios from your test target?

Roland Gropmair

December 14, 2016
Tweet

More Decks by Roland Gropmair

Other Decks in Programming

Transcript

  1. UI TESTS AND API CALLS HOW TO KEEP YOUR APP

    CODE CLEAN XCAKE DECEMBER 2016 - DUBLIN @roland9
  2. WHAT IS THE PROBLEM? HOW TO CONTROL THE API RESPONSES?

    APP API XC UI TEST app.launch() HTTP
  3. WHAT IS THE PROBLEM? HOW TO CONTROL THE API RESPONSES?

    APP API XC UI TEST app.launch() HTTP
  4. APPENDIX HOW TO READ FROM A FILE - NEED TO

    GET IT FROM THE XC UI TEST BUNDLE…