3. Overview
● Introduce Page Object
● Apply Page Object to XCUITest
● Optimize Page Classes
● Use Launch Argument to Set Up
● Introduce Builder Pattern
● Apply Builder Pattern to Set Up
● Speed Up Test using build-for-testing & test-without-building
74. How does it work?
Build
Acceptance
Build
Regression
xcodebuild test xcodebuild test
Build
xctestrun
build-without-testing test-without-building test-without-building
Regression
Total time: Build *2 + Acceptance + Regression
Acceptance
Total time: Build + Acceptance + Regression
75. xcodebuild test
● xcodebuild test -project MyApp.xcodeproj -scheme TestScheme
-only-testing:UITests/iPlaygroundTest/testPlayOfflineSong -destination
"platform=iOS Simulator,OS=11.4,name=iPhone 8"
● xcodebuild test -workspace MyApp.xcworkspace -scheme TestScheme
-only-testing:UITests/iPlaygroundTest/testPlayOfflineSong -destination
"platform=iOS Simulator,OS=11.4,name=iPhone 8"