【发布时间】:2017-03-20 09:55:27
【问题描述】:
导入 XCTest
类 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() {
}
我的应用中有多个 UIViewController 类。现在,我想在 Xcode 8、swift 3 中通过 UIAutomation 测试每个类。经过大量搜索,我在 Xcode 或 swift 的最新版本中没有得到任何有用的教程或工具。我的应用程序的第一个屏幕是登录屏幕。谁能帮我找出有用的解决方案
【问题讨论】:
标签: swift unit-testing xcode8 ui-automation