mirror of
https://github.com/appium/appium.git
synced 2026-05-05 09:59:58 -05:00
enabling gappium tests
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user