让我给你讲讲 iOS 自动化测试的那些干货(22)

发表于:2017-03-10来源:csdn作者:LeoMobileDeveloper点击数: 标签:iOS
- (void)testAddANewItem{ [tester tapViewWithAccessibilityLabel:@Add]; [tester enterText:@ Create a test to do item intoViewWithAccessibilityLabel:@ Input what you want todo ]; [tester tapViewWithAcces
- (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"]; }
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

命令行

自动化测试中,命令行工具可以facebook的开源项目:

这是一个基于xcodebuild命令的扩展,在iOS自动化测试和持续集成领域很有用,而且它支持-parallelize

原文转自:http://blog.csdn.net/hello_hwc/article/details/60957515