IOSTest

http://blog.csdn.net/wirelessqa/article/details/29188325

http://www.blogjava.net/qileilove/archive/2014/05/08/413429.html


var chaiAsPromised = require("chai-as-promised");

chai.use(chaiAsPromised);
chai.should();
chaiAsPromised.transferPromiseness = wd.transferPromiseness;

var desired = {
"appium-version": "1.0",
platformName: "iOS",
platformVersion: "8.1",
deviceName: "iPhone 6",
app: "/Users/wangchaomac/build/Release-iphonesimulator/WebViewApp.app",
};

var browser = wd.promiseChainRemote("127.0.0.1", 4723);

browser.init(desired).then(function() {
return browser
.fin(function() {
return browser.quit();
});
}).done();

你可能感兴趣的:(test)