Skip to content

grunt android fails but individual tests pass #715

@sqwerl

Description

@sqwerl

Running android tests using grunt android produces the following error:

Running "android" task
info - socket.io started

alert dialog detection
◦ should detect low power...: error: uncaughtException date=Wed Jun 05 2013 13:28:50 GMT-0700 (PDT), pid=4766, uid=502, gid=20, cwd=/Users/lcao/Workspace/appium, execPath=/usr/local/Cellar/node/0.10.8/bin/node, version=v0.10.8, argv=[node, /usr/local/bin/grunt, android], rss=66076672, heapTotal=60287744, heapUsed=36591752, loadavg=[0.95068359375, 0.958984375, 0.84912109375], uptime=8216, trace=[column=32, file=/Users/lcao/Workspace/appium/android/adb.js, function=, line=594, method=null, native=false, column=9, file=/Users/lcao/Workspace/appium/android/adb.js, function=, line=1363, method=null, native=false, column=17, file=events.js, function=Socket.EventEmitter.emit, line=95, method=EventEmitter.emit, native=false, column=12, file=net.js, function=TCP.close, line=451, method=close, native=false], stack=[TypeError: Cannot call method 'replace' of undefined, at null. (/Users/lcao/Workspace/appium/android/adb.js:594:32), at Socket. (/Users/lcao/Workspace/appium/android/adb.js:1363:9), at Socket.EventEmitter.emit (events.js:95:17), at TCP.close (net.js:451:12)]

But running the test individually passes it:

mocha -t 60000 -R spec test/functional/apidemos/alerts.js

alert dialog detection
✓ should detect low power... (700ms)

1 test complete (3 seconds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidrelated to Android-native driver(s)Buga problem that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions