A Tool for QA Testers and Developers.
Testers could create test cases from an admin page while Developers could fetch and execute it inside the XCode's UITesting target via API automatically using CI.
In the screenshot above, the code was executed like this, so imagine, this is Codable
, we can just fetch this from any server and/or any file!
func testLogin() {
let loginCommands:[Command] = [
.action(.tap, for: .text("emailField")),
.action(.typeText("me@iamkel.net"), for: .text("emailField")),
.assert(.isEnabled(true), for: .text("emailField")),
.assert(.isExists(true), for: .text("emailField")),
.assert(.textValue("me@iamkel.net"), 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)
}
Since Android has its own UITesting, this can be also implemented in Android SOON! So one test case for multiple platform!
- TODO
AutoBot is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AutoBot'
michaelhenry, me@iamkel.net
AutoBot is available under the MIT license. See the LICENSE file for more info.
- TODO