lovelysystems / robotframework-androidlibrary

Robot Framework Automation Library for Android
29 stars 22 forks source link

ExpatError when trying to 'Start Testserver With Apk' #52

Closed BrewerJack closed 11 years ago

BrewerJack commented 11 years ago

I am receiving this error when I try to start the test server with the 'Start Testserver With Apk'. I know this is a XML error and last time I received it was when parsing my manifest XML while building the app.

Here is the error in the Robot Framework debug log.

+-- START KW: AndroidLibrary.Start Testserver With Apk [ ExpenseCloud.apk ]
$> /home/jack/testing/adt-bundle-linux-x86_64-20130219/sdk/platform-tools/adb wait-for-device forward tcp:34777 tcp:7102 # with timeout 120s
$> /usr/local/bin/calabash-android extract-manifest ExpenseCloud.apk # with timeout 120s
ExpatError: syntax error: line 1, column 0
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/AndroidLibrary/__init__.py", line 321, in start_testserver_with_apk
    package_name, main_activity = self._main_activity_from_apk(apk)
  File "/usr/local/lib/python2.7/dist-packages/AndroidLibrary/__init__.py", line 349, in _main_activity_from_apk
    xmldoc = minidom.parseString(output)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1930, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
+-- END KW: AndroidLibrary.Start Testserver With Apk (516)

EDIT: To explain a little better. I am not running an emulator, I am trying to install this and run it on an actual device. Our app has a few issues on a particular device and we need to make sure to test it on that device specifically before release.

Also, the app is being built by the Appcelerator Titanium CLI.

BrewerJack commented 11 years ago

This was a pathing error on my part