Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Vapor london March 2018

622 views

Published on

Vapor London Meetup 2018 hosted at BCC Broadcasting House

Published in: Engineering
  • Be the first to comment

  • Be the first to like this

Vapor london March 2018

  1. 1. Vapor London Meetup: March 2018 Stubbing XCUITest with Vapor Shashikant Jagtap Twitter: @Shashikant86 https://www.meetup.com/Server-Side-Swift/
  2. 2. Agenda ❖ XCUITest ❖ Network Stubbing options XCTest ❖ Vapor Server to stub responses.
  3. 3. XCUITest ❖ UI Testing Framework in Xcode by Apple
  4. 4. XCUITest ❖ UI Testing Framework in Xcode by Apple ❖ Black Box
  5. 5. XCUITest ❖ UI Testing Framework in Xcode by Apple ❖ Black Box ❖ Launch Arguments and Launch Environments
  6. 6. XCUITest ❖ UI Testing Framework in Xcode by Apple ❖ Black Box ❖ Launch Arguments and Launch Environments ❖ Change app to listen to server
  7. 7. Stubbing XCTest ❖ OHHTTPStubs: https://github.com/AliSoftware/OHHTTPStubs ❖ Hippolyte : https://github.com/JanGorman/Hippolyte ❖ Mockingjay : https://github.com/kylef/Mockingjay
  8. 8. Stubbing XCUITests ❖ Swifter: https://github.com/httpswift/swifter ❖ Embassy:https://github.com/envoy/Embassy ❖ SBTUITestTunnel: https://github.com/Subito-it/SBTUITestTunnel
  9. 9. Enter Vapor ❖ Vapor is written in Swift ❖ Stub Backend services with Swift code ❖ Easy to use and learn
  10. 10. Setup iOS App ❖ Allow Local Networking ❖ Info.plist <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsLocalNetworking</key> <true/> <!--To continue to work for iOS 9 --> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
  11. 11. Get Vapor Framework ❖ Vapor ToolBox ❖ Swift Package Manager
  12. 12. Stub Endpoints ❖ Stub endpoints with Vapor
  13. 13. Start Vapor Locally ❖ Start Vapor Server that iOS app listen to
  14. 14. Live Demo ❖ https://github.com/Shashikant86/Vapor-XCTest
  15. 15. Questions?

×