Open sps7 opened 11 years ago
Hey. This seems to be related to a breaking change in the python-requests API we're using underneath (see http://blog.lumino.so/2013/01/04/how-to-make-an-orderly-transition-to-python-requests-1-0-instead-of-running-around-in-a-panic/)
For the meantime, you could try downgrading "requests" to an earlier version, but will provide a fix to this library soon.
Note to self: Also answer this question after the fix is on PyPI: http://stackoverflow.com/questions/13955485/robot-framework-androidlibrary-screen-should-contain-text-return-error
Also: Is this hummus app available yet somewhere ? I like hummus!
I m working on BackupRestoreActivity.apk
and what is command to downgrade 'requests'
how to do downgrading "requests" to an earlier version?
I installed requests 0.14.2 and got below error:
Test Execution Errors 20130122 16:22:40.656 WARN << u'http://localhost:34777/' 20130122 16:22:40.656 WARN << u'{"bonusInformation":[],"message":"","success":true}' 20130122 16:22:50.375 WARN << u'http://localhost:34777/' 20130122 16:22:50.375 WARN << u'{"bonusInformation":["Exception stack trace:\njava.lang.NullPointerException\n\tat sh.calaba.instrumentationbackend.Command.execute(Command.java:46)\n\tat sh.calaba.instrumentationbackend.actions.HttpServer.runCommand(HttpServer.java:158)\n\tat sh.calaba.instrumentationbackend.actions.HttpServer.serve(HttpServer.java:114)\n\tat sh.calaba.instrumentationbackend.actions.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:412)\n\tat java.lang.Thread.run(Thread.java:856)\n"],"message":null,"success":false}' 20130122 16:23:05.203 WARN << u'http://localhost:34777/' 20130122 16:23:05.218 WARN << u'{"bonusInformation":[],"message":"","success":true}' 20130122 16:23:05.375 WARN Could not stop Android Emulator: It was not started.
KEYWORD: AndroidLibrary.Screen Should Contain Hummus Expand All Documentation: Asserts that the current screen contains a given text
Start / End / Elapsed: 20130122 16:22:35.343 / 20130122 16:22:40.656 / 00:00:05.313 16:22:35.343 TRACE Arguments: [ u'Hummus' ] 16:22:35.343 DEBUG Test timeout 10 minutes active. 588.719 seconds left. 16:22:35.343 DEBUG >> '{"command": "assert_text", "arguments": ["Hummus", true]}' 16:22:35.343 DEBUG >> () {'headers': {'Content-Type': 'application/json'}, 'data': '{"command": "assert_text", "arguments": ["Hummus", true]}'} 16:22:35.343 INFO Starting new HTTP connection (1): localhost 16:22:40.500 DEBUG "POST / HTTP/1.1" 200 None 16:22:40.656 WARN << u'http://localhost:34777/' 16:22:40.656 WARN << u'{"bonusInformation":[],"message":"","success":true}' 16:22:40.656 FAIL TypeError: 'instancemethod' object has no attribute 'getitem' 16:22:40.656 DEBUG Traceback (most recent call last): File "C:\Python27\lib\site-packages\AndroidLibraryinit.py", line 465, in screen_should_contain assert result["success"] is True, "Screen does not contain text '%s': %s" % (
Someone please reply
Will reply when there is time for it.
Issue got resolved after installing requests==0.14.2 using pip.
http://blog.lumino.so/2013/01/04/how-to-make-an-orderly-transition-to-python-requests-1-0-instead-of-running-around-in-a-panic/#comment-652
I am executing on WindowsXp SP3, with calabash-android version 0.3.8, And getting below error:
KEYWORD: AndroidLibrary.Screen Should Contain Hummus Expand All Documentation: Asserts that the current screen contains a given text