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

Network Testing

Network Testing

Introduction to Szimpla, a network testing library based on Snapshots that have been recorded before.

Pedro Piñera Buendía

July 08, 2016
Tweet

More Decks by Pedro Piñera Buendía

Other Decks in Programming

Transcript

  1. let app = XCUIApplication() app.launch() app.buttons["Stream"].tap() //-----> REQUEST SENT waitForContent(timeout:

    5) let enriqueCell = app.tables.staticTexts["Enrique Iglesias"] enriqueCell.tap() // -----> REQUEST :+1:
  2. let app = XCUIApplication() app.launch() app.buttons["Stream"].tap() //-----> SCREEN EVENT SENT

    let enriqueCell = app.tables.staticTexts["Enrique Iglesias"] enriqueCell.tap() // -----> WAS IT REALLY SENT?
  3. class AppUITests: XCTestCase { func testDefault() { try! Szimpla.Client.instance.start() let

    app = XCUIApplication() app.buttons["Navigate"].tap() try! Szimpla.Client.instance.record(path: "CMDUConf.json") } }
  4. class AppUITests: XCTestCase { func testDefault() { try! Szimpla.Client.instance.start() let

    app = XCUIApplication() app.buttons["Navigate"].tap() try! Szimpla.Client.instance.validate(path: "CMDUConf.json") } }