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}
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.
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.htmlOn 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.apkSiddheshOn 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.