Install application fails with ADB version 1.0.36

228 views
Skip to first unread message

siddhesh sahane

unread,
Jul 21, 2016, 8:48:24 AM7/21/16
to robotframework-users
It might be known I guess.

I was trying to install application in the device using following keyword in RobotFramework, it was always failing with adb version 1.0.36. When I changed the adb version to 1.0.32 it started working.
Is there anything changed in adb version 1.0.36? If yes from RobotFramework perspective do we have any alternate option to install application in the platform?

Install Application
[Documentation] Uses adb in an external process to install the application defined in the ${DEV.APK_PATH} parameter
log 'installing application...' console=yes
Run Process adb install ${DEV.APK_PATH}

Tatu Aalto

unread,
Jul 21, 2016, 12:42:43 PM7/21/16
to siddhes...@gmail.com, robotframework-users

Ugh

Does that adb command fail in similar way when you run it from command line. If yes, then the problem is in Android SDK or in your application.

-Tatu


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Tatu Aalto

unread,
Jul 23, 2016, 9:24:56 AM7/23/16
to siddhesh sahane, robotframework-users
Ugh

Added RF user back to look

-Tatu

On Sat, Jul 23, 2016 at 3:49 PM, siddhesh sahane <siddhes...@gmail.com> wrote:
Thank you Tatu For a grt help,

I'll surely try this and let you know the outcome.

On Sat, Jul 23, 2016 at 12:01 AM, Tatu Aalto <aalto...@gmail.com> wrote:

Ugh

I am uncertain did you actually do what I did actually request. So did you do this:

| Run Process | adb | install | /path/to.apk | shell=True | stdout=/path/to/stdout.log | stderr=/path/to/stderr.log |

If you did the above and it didn't help, perhaps it would be good to experiment with Python subprocess[1] library. The Robot Framework Process library is wrapper on top of the Python subprocess library and it might set some of the process configuration options in a way which are not suitable for the adb.

If you get the installation working with subprocess, then you can create that code as a keyword and run the installation with that keyword. Also if you get the installation working, it might be good to raise an issue to the Robot Framework issue tracker, so that the problem could be solved also in Robot Framework Process library.

-Tatu
[1] https://docs.python.org/2/library/subprocess.html


On 22 Jul 2016 10:56, "siddhesh sahane" <siddhes...@gmail.com> wrote:
Yes, I did that. I passed the apk path through cmd line as well as tried to hard-code path in the keyword itself and i found that for every run it stuck while installing the application.

I am sure something has been changed in latest adb builds. Jut want to know how to overcome this, Because many of out test cases will fail if we move to higher version. For adb 1.0.32 its working smoothly.

I also tried following it does not work as per the expectation. It stuck while execution.
Install Application
[Documentation] Uses adb in an external process to install the application defined in the ${DEV.APK_PATH} parameter
log 'installing application...' console=yes
    Run Process    adb    install    D:\Android\builds\sample.apk
Siddhesh


On Fri, Jul 22, 2016 at 1:01 AM, Tatu Aalto <aalto...@gmail.com> wrote:
Could it be that adb needs more process configurations[1]. Have you tried to run the keyword by defining the shell and cwd arguments. Also diverting the stdout and stderr to a file might be a good idea. 


On Thu, Jul 21, 2016 at 7:54 PM, siddhesh sahane <siddhes...@gmail.com> wrote:

No it works well with command line. It just fails with the keyword.

Reply all
Reply to author
Forward
0 new messages