Mobile JSON Wire Javascript binding, best for Appium native app test automation.
Cyancat let you write Appium mobile automation test in a synchronized way in Javascript:
it('sample test for sign in', function(done) {
driver.run(function() {
driver.init({
"platformName": "iOS",
"platformVersion": "9.3",
"deviceName": "iPhone 6",
"app": "./app/example.app"
});
// add memo
driver.clickEl('Add');
driver.typeEl('memo test summary 1', 'itemTitle');
driver.clickEl('Done');
// delete memo
driver.clickEl('//UIATableCell[@name = "memo test summary 1"]', 'xpath');
driver.clickEl('Delete');
done();
});
- Built-in element visibility check before any operation, no
driver.sleep(1000)
anymore - Easily config selenium protocol timeout
- You just don't like method chaining style and would like to insert more complex stuff between actions
- Convenience and well documented methods that are more human friendly than WD.js
- The
cyancat
command line interface comes with a nice configuration utility that helps you to create your test framework in less than a minute.
$ npm install cyancat
stay tuned, more to come...
A full test framework example including the app is available in the examples
folder
Because Cyancat uses Bluecat underlayer, and I expect tests written in Cyancat stay green...
Licensed under the MIT