enabling gappium tests

This commit is contained in:
sebv
2014-05-19 19:26:27 +08:00
parent 24eb549e2d
commit 11e36b541b
3 changed files with 26 additions and 9 deletions
+5 -6
View File
@@ -2,23 +2,22 @@
"use strict";
var env = require("../../helpers/env")
, setup = require("../common/setup-base")
, path = require('path');
, setup = require("../common/setup-base");
var desired;
if (env.DEVICE === 'selendroid' || env.DEVICE === 'android') {
var appPath = path.resolve(__dirname, '../../../sample-code/apps/' +
var appPath = 'sample-code/apps/' +
'io.appium.gappium.sampleapp/platforms/android/ant-build/' +
'HelloGappium-debug.apk'),
'HelloGappium-debug.apk',
desired = {
app: appPath,
appPackage: 'io.appium.gappium.sampleapp',
appActivity: '.HelloGappium',
};
} else {
var appPath = path.resolve(__dirname, '../../../sample-code/apps/' +
var appPath = 'sample-code/apps/' +
'io.appium.gappium.sampleapp/platforms/ios/build' +
(env.EMU ? '/emulator' : '') + '/HelloGappium.app'),
(env.EMU ? '/emulator' : '') + '/HelloGappium.app',
desired = {
app: appPath
};
+1
View File
@@ -84,6 +84,7 @@ module.exports.initSession = function (desired, opts) {
return browser
.init(caps)
.catch(function (err) {
if (env.VERBOSE) console.log("Init failed with error -->", err);
remainingAttempts --;
if (remainingAttempts === 0) {
throw err;