Testing iOS10 Apps with Appium and its new XCUITest backend
-
Upload
testplus-gmbh -
Category
Software
-
view
162 -
download
0
Transcript of Testing iOS10 Apps with Appium and its new XCUITest backend
Mobile App Testing
Test more. Worry less.TestingiOS10AppswithAppium anditsnewXCUITest backend
AndreasLüdeke
Zu den FarbenAppleUITesting akaXCUITEST
XCUITest:
- AnnouncedatWWDC15
- RequiresXcode 7/8
- SupportsiOS9/10
- BasedonXCTest
- Objetive C/Swift
Zu den FarbenAppleUIAutomation
Zu den FarbenYour thoughts?
Zu den FarbenMy thoughts?
Zu den FarbenXCUITest TestCase
class UITests: XCTestCase { let app = XCUIApplication()
override func setUp() { super.setUp()
continueAfterFailure = falseapp.launch()
} }
Zu den FarbenXCUITest Asserts
let nextGame = self.app.staticTexts["Game4- Tomorrow"]
let exists = NSPredicate(format:"exists==true")expectationForPredicate(exists,evaluatedWithObject:nextGame,handler:nil)app.buttons["LoadMoreGames"].tap()
waitForExpectationsWithTimeout(5,handler:nil)XCTAssert(nextGameLabel.exists)
Zu den FarbenXCUITest SystemAlerts
addUIInterruptionMonitorWithDescription("LocationDialog"){
(alert)-> Bool in alert.buttons["Allow"].tap()return true
}
app.buttons["FindGamesNearby?"].tap()app.tap()//needtointeractwiththeappforthehandlertofireXCTAssert(app.staticTexts["Authorized"].exists)
Zu den FarbenXCUITest Summary
Pros:
- Easytolearn
- ObjectiveC/Swift
- Recorderavailable
- Fullsystemaccess
- Relativelyfast
- Flexible
Cons:
- Terrible
Documentation
- OnlyiOS9and10
- SigningHell
Zu den FarbenAppium and the rocky road to iOS10
- 1.5completerewrite
withpluginsupport
- WebdriverAgent
- FBSimulatorControl
- 1.6.beta-3
- FocusonSimulators
Appium Demo
Zu den FarbenReferences
- https://developer.apple.com/videos/play/wwdc2015/406/
- https://github.com/facebook/WebDriverAgent
- https://github.com/facebook/FBSimulatorControl
- https://github.com/appium/appium/releases/tag/v1.6.0-
beta3
www.testobject.com
AndreasLü[email protected]