XCUITestsAdditions 1.1

XCUITestsAdditions 1.1

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
Released最后发布2016年9月

Dominique Stranz维护。



XCUITestsAdditions提供一些简单的方法,可能有助于您在日常使用XCode UI Tests时的工作。

使用

在使用前,在您的XCTestCase文件中导入XCTestCase+WaitingForElement.h

等待UI元素(15秒超时)

XCUIElement button = app.buttons["TestButton"];
[self waitForElement:button];

等待UI元素(自定义超时)

XCUIElement button = app.buttons["TestButton"];
[self waitForElement:button withTimeout:60];

等待可点击UI元素(15秒超时)

XCUIElement button = app.buttons["TestButton"];
[self waitForElementHittable:button];

等待可点击UI元素(自定义超时)

XCUIElement button = app.buttons["TestButton"];
[self waitForElementHittable:button withTimeout:60];

要求

Pod设计用于与UI Tests(可在XCode 7中找到)一起使用。

安装

XCUITestsAdditions可通过CocoaPods获得。要安装它,只需将以下行添加到您的Podfile中

target "UITestTarget" do
    pod "XCUITestsAdditions"
end

应仅将Pod添加到UITests目标中。将UITestTarget替换为您的目标名称。

许可证

XCUITestsAdditions遵循MIT许可证。有关更多信息,请参阅LICENSE文件。