iOS 自动化测试框架 GTXiLib

码农软件 · 软件分类 · 测试工具 · 2019-11-20 23:43:11

软件介绍

GTXiLib 是 Google 开源的 iOS 专用自动化测试框架,用于帮助开发者打造无障碍 App 。

GTXiLib 采用 Objective-C 编写,能与现存的 XCTest 测试框架整合,并在 XCTest 结束调用 tearDown 前,执行所有注册的可用性检查。当 GTXiLib 检测失败时,XCTest 的测试也会失败,两者相辅相成,能够更好地修补和发现问题。

GTXiLib 可用于:

  • 重用测试: GTXiLib 集成整合到现有的功能测试流程中,能大幅提升现有测试价值。

  • 增量可访问性测试: GTXiLib 可安装在单一测试用例、测试类或测试的特定子集上,以允许灵活地增加可访问性测试。

  • 编写属于自己的检查: GTXiLib 有一个简单的 API 来根据你的应用的特定需求创建自定义检查。比如,可以检测应用中的每一个按钮是否都具备 accessibilityHint 属性。

Getting Started

// Include the GTXiLib umbrella header.
#import <GTXiLib/GTXiLib.h>

// Note that that is +setUp not -setUp
+ (void)setUp {
  [super setUp];

  // ... your other setup code (if any) comes here.

  // Install GTX on all tests in *this* test class.
  [GTXiLib installOnTestSuite:[GTXTestSuite suiteWithAllTestsInClass:self]
                       checks:[GTXChecksCollection allGTXChecks]
            elementBlacklists:@[]];
}

本文地址:https://codercto.com/soft/d/19443.html

Programming Rust

Programming Rust

Jim Blandy / O'Reilly Media / 2016-8-25 / GBP 47.99

This practical book introduces systems programmers to Rust, the new and cutting-edge language that’s still in the experimental/lab stage. You’ll learn how Rust offers the rare and valuable combination......一起来看看 《Programming Rust》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具