如何在XCODE 8、Swift 3中使用UIAutomation
导入测试 类UnitTestClass:XCTestCase{如何在XCODE 8、Swift 3中使用UIAutomation,swift,unit-testing,xcode8,ui-automation,Swift,Unit Testing,Xcode8,Ui Automation,导入测试 类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 meth
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() {
}
我的应用程序中有多个UIViewController类。现在,我想用UIAutomation在Xcode 8、swift 3中测试每个类。在搜索了很多之后,我在Xcode或swift的最新版本中没有得到任何有用的教程或工具。我的应用程序的第一个屏幕是登录屏幕。有人能帮我找到有用的解决方案吗?我相信UIAutomation已经取消了在Xcode 8中预先设置。但您只需执行以下操作即可在Xcode 8中设置UI测试: