var wd = require('macaca-wd');
var remoteConfig = {
host: 'localhost',
port: 3456
};
var driver;
const config_info = require('./config.json');
describe('testcases', function() {
this.timeout(30 * 60 * 1000);
driver = wd.promiseChainRemote(remoteConfig);
driver.configureHttp({
timeout: 600 * 1000
});
before(function() {
return driver
.init({
platformName: config_info.TestAppInfo.platform,
udid:config_info.TestAppInfo.device_udid,
app:config_info.TestAppInfo.app_path
})
});
after(function() {
return driver
.sleep(1000)
.quit();
});
it('#0 verify login', function() {
...
});
});