Reputation: 251
import XCTest
class UnitTestClass: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
}
I have multiple UIViewController classes in my app. Now, i want to test each class by UIAutomation in Xcode 8 ,swift 3. After Searching a lot, i didn't get any useful tutorial or tool in Xcode or swift's latest version. My App's First screen is Login screen. Can anyone help me to find-out the useful solution
Upvotes: 0
Views: 1137
Reputation: 3556
I believe UIAutomation was deprecated in Xcode 8. But you can set up UI tests in Xcode 8 by simply doing the following:
Watch this WWDC Video to learn more about UI testing in Xcode.
Upvotes: 1