AutoBot 1.0.6

AutoBot 1.0.6

Michael Henry Pantaleonx 维护。



AutoBot 1.0.6

  • 作者
  • michaelhenry

Screenshot

Tests Deployment status Version License Platform codebeat badge

AUTOBOT

一个用于 QA 测试人员和开发人员的工具。

测试人员 可以在管理页面创建测试用例,而 开发人员 可以通过 API 自动地从 CI 中抓取和执行它,在 XCode 的 UITesting 目标 中。

示例 IOS 测试用例

在上面的屏幕截图,代码是这样执行的,想象一下,这是 Codable,我们可以从这个服务器的任何服务器和/或任何文件中获取这个代码!

func testLogin() {
  let loginCommands:[Command] = [
    .action(.tap, for: .text("emailField")),
    .action(.typeText("[email protected]"), for: .text("emailField")),
    .assert(.isEnabled(true), for: .text("emailField")),
    .assert(.isExists(true), for: .text("emailField")),
    .assert(.textValue("[email protected]"), for: .text("emailField")),
    .action(.tap, for: .securedText("passwordField")),
    .action(.typeText("supersecret"), for: .securedText("passwordField")),
    .assert(.textValue("•••••••••••"), for: .securedText("passwordField")),
    .action(.tap, for: .button("loginButton")),
  ]
  autobot.execute(commands: loginCommands)
}

由于 Android 有它自己的 UITesting,这也可以很快实现在 Android 上!所以一个测试用例适用于多个平台!

文档

  • 待办事项

安装

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

pod 'AutoBot'

作者

michaelhenry, [email protected]

许可协议

AutoBot可在MIT许可协议下使用。请参阅LICENSE文件获取更多信息。

其他可能对您有帮助的工具。

  • Localizr,自动处理iOS和Android的本地化文件
  • Hijackr,模拟URLRequest

限制性

  • 待办事项