Я просматриваю сеанс 104 WWDC 2015 «Что нового в Xcode» и вижу, что в Xcode 7 я могу записывать модульные тесты интерфейса для автоматизации нажатия кнопок, ввода текста и т. д.
У меня есть новый проект, созданный с включенными тестами UITests, но как мне начать записывать взаимодействие с интерфейсом для тестов UITest?
Вот фрагмент, включенный в тест:
- (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];
}