- (void)testAddANewItem{
[tester tapViewWithAccessibilityLabel:@"Add"];
[tester enterText:@"Create a test to do item" intoViewWithAccessibilityLabel:@"Input what you want todo"];
[tester tapViewWithAccessibilityLabel:@"Save"];
[tester waitForTimeInterval:0.2];
[tester waitForViewWithAccessibilityLabel:@"Create a test to do item"];
}
自动化测试中,命令行工具可以facebook的开源项目:
这是一个基于 原文转自:http://blog.csdn.net/hello_hwc/article/details/60957515xcodebuild
命令的扩展,在iOS自动化测试和持续集成领域很有用,而且它支持-parallelize