Skip to content

Commit

Permalink
fix gappium test app path
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Feb 6, 2014
1 parent 374b13e commit 2baf369
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/devices/ios/ios-controller.js
Expand Up @@ -21,8 +21,8 @@ var iOSController = {};
var FLICK_MS = 3000;

var logTypesSupported = {
'syslog' : 'Logs for iOS applications on real devices and simulators',
'crashlog' : 'Crash logs for iOS applications on real devices and simulators'
'syslog': 'Logs for iOS applications on real devices and simulators',
'crashlog': 'Crash logs for iOS applications on real devices and simulators'
};

iOSController.findUIElementOrElements = function (strategy, selector, ctx, many, cb) {
Expand Down
9 changes: 5 additions & 4 deletions test/functional/gappium/gappium.js
Expand Up @@ -7,16 +7,17 @@ var env = require("../../helpers/env")

var desired;
if (env.DEVICE === 'selendroid' || env.DEVICE === 'android') {
var appPath = path.resolve(__dirname, '../../../sample-code/apps/io.appium.gappium.sampleapp/platforms/' +
"android/bin/HelloGappium-debug.apk"),
var appPath = path.resolve(__dirname, '../../../sample-code/apps/' +
'io.appium.gappium.sampleapp/platforms/android/bin/' +
'HelloGappium-debug.apk'),
desired = {
app: appPath,
'app-package': 'io.appium.gappium.sampleapp',
'app-activity': '.HelloGappium',
};
} else {
var appPath = path.resolve(__dirname, '../../../sample-code/apps/io.appium.gappium.sampleapp/platforms/' +
"ios/build" + (env.EMU ? '/emulator' : '') + "/HelloGappium.app"),
var appPath = path.resolve(__dirname, '../../../sample-code/apps/' +
'io.appium.gappium.sampleapp/platforms/ios/build/HelloGappium.app'),

This comment has been minimized.

Copy link
@sebv

sebv Feb 7, 2014

Member

Does this work in emulator?

This comment has been minimized.

Copy link
@jlipps

jlipps Feb 7, 2014

Author Member

yeah i had to do this to get it to work in the emulator for me. there was no "/emulator" directory in my gappium build.

desired = {
app: appPath
};
Expand Down

0 comments on commit 2baf369

Please sign in to comment.