我正在查看WWDC 2015第104节“Xcode的新特性”,发现在Xcode 7中我可以录制接口单元测试以自动化点击按钮,输入文本等。
我新建了一个包含UITests的项目,但是,我该如何开始记录UITests的接口交互呢?
这是测试中包含的代码片段:
我新建了一个包含UITests的项目,但是,我该如何开始记录UITests的接口交互呢?
这是测试中包含的代码片段:
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.
self.continueAfterFailure = NO;
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
[[[XCUIApplication alloc] init] launch];
}