机器环境:mac
appium 版本:1.0.0
这是我的 desired:
var desired = {
platformName: 'Android',
platformVersion: '4.1',
deviceName: '3230df5662738061',
automationName: 'Selendroid',
'app': path.resolve(__dirname, '/Users/mingyu/work/apkFile/downloadfile.apk'),
'app-package': 'com.mxy.test', // built-in contact app
'app-activity': 'com.mxy.test.MainActivity'
};
报错详情:
info: Inserting selendroid manifest
error: uncaughtException: Arguments to path.resolve must be strings date=Mon May 26 2014 16:26:57 GMT+0800 (CST), pid=4578, uid=501, gid=20, cwd=/usr/local/lib/node_modules/appium, execPath=/usr/local/Cellar/node/0.10.28/bin/node, version=v0.10.28, argv=[node, /usr/local/bin/appium], rss=50728960, heapTotal=55140096, heapUsed=24170192, loadavg=[1.232421875, 1.23828125, 1.2900390625], uptime=25986, trace=[column=15, file=path.js, function=Object.exports.resolve, line=313, method=exports.resolve, native=false, column=21, file=/usr/local/lib/node_modules/appium/lib/devices/android/selendroid.js, function=Selendroid.insertSelendroidManifest, line=332, method=insertSelendroidManifest, native=false, column=12, file=/usr/local/lib/node_modules/appium/lib/devices/android/selendroid.js, function=, line=103, method=null, native=false, column=21, file=/usr/local/lib/node_modules/appium/node_modules/async/lib/async.js, function=null, line=595, method=null, native=false, column=13, file=/usr/local/lib/node_modules/appium/node_modules/async/lib/async.js, function=null, line=235, method=null, native=false, column=13, file=/usr/local/lib/node_modules/appium/node_modules/async/lib/async.js, function=iterate, line=142, method=null, native=false, column=25, file=/usr/local/lib/node_modules/appium/node_modules/async/lib/async.js, function=null, line=153, method=null, native=false, column=17, file=/usr/local/lib/node_modules/appium/node_modules/async/lib/async.js, function=null, line=237, method=null, native=false, column=34, file=/usr/local/lib/node_modules/appium/node_modules/async/lib/async.js, function=null, line=600, method=null, native=false, column=9, file=/usr/local/lib/node_modules/appium/lib/devices/android/adb.js, function=null, line=1301, method=null, native=false], stack=[TypeError: Arguments to path.resolve must be strings, at Object.exports.resolve (path.js:313:15), at Selendroid.insertSelendroidManifest (/usr/local/lib/node_modules/appium/lib/devices/android/selendroid.js:332:21), at null. (/usr/local/lib/node_modules/appium/lib/devices/android/selendroid.js:103:12), at /usr/local/lib/node_modules/appium/node_modules/async/lib/async.js:595:21, at /usr/local/lib/node_modules/appium/node_modules/async/lib/async.js:235:13, at iterate (/usr/local/lib/node_modules/appium/node_modules/async/lib/async.js:142:13), at /usr/local/lib/node_modules/appium/node_modules/async/lib/async.js:153:25, at /usr/local/lib/node_modules/appium/node_modules/async/lib/async.js:237:17, at /usr/local/lib/node_modules/appium/node_modules/async/lib/async.js:600:34, at /usr/local/lib/node_modules/appium/lib/devices/android/adb.js:1301:9]
[1] + 4578 exit 1 appium