Closed GoogleCodeExporter closed 9 years ago
There is a known issue with some versions of emulator output monitoring with
that older release of RobotiumRC.
If you can, please try the latest release of RobotiumRC at
http://sourceforge.net/projects/safsdev/files
If the problem persists, we would enjoy a logcat output of the emulator startup
so we can enhance the detection support.
Carl Nagle
SAS Institute, Inc.
Planning, Operations and Strategy
General Applications and Tools
Carl.Nagle@sas.com
Original comment by carl.na...@sas.com
on 2 Aug 2013 at 3:29
I tried the latest release - RobotiumRC 2013.07.12 on two different android
versions, 4.1.2 and 2.3.3, both use Intel Atom(x86) CPU.
This problem still exists.
Please see attachment to get the logcat output.
Thanks.
Original comment by enduranc...@gmail.com
on 2 Aug 2013 at 6:33
Attachments:
Thank you for these logs.
Please find attached a replacement safsautoandroid.jar that, hopefully, might
resolve the issue for many more scenarios--maybe all.
I've also added a default timeout of 5 minutes (instead of infinite) for boot
completion detection. Testers can optionally change this timeout with a new
static value in the StartEmulator class:
See
http://safsdev.sourceforge.net/doc/org/safs/android/auto/lib/StartEmulator.html#
setBootCompletionTimeout%28long%29
Carl Nagle
SAS Institute, Inc.
SAS Research & Development
Planning, Operations and Strategy
General Applications and Tools
carl.nagle@sas.com
Original comment by carl.na...@sas.com
on 2 Aug 2013 at 5:13
Attachments:
I tried your new safsautoandroid.jar, this issue still exists....
I invoke preparation() method which belongs to SoloTest to do this open
emulator job.
Please see attachment to get new Logcat output.
Original comment by enduranc...@gmail.com
on 5 Aug 2013 at 6:36
Attachments:
I have been able to duplicate the failure in my own Atom x86 emulator. This is
the same or similar issue that Dietrich Schulten put forth in previous
discussions/issues. That is, the emulator stops sending output into it's
stdOut so attempts to read stdout block.
I am currently working to resolve the issue and hope to have a new JAR for
others to try shortly.
Carl Nagle
SAS Institute, Inc.
Research & Development
Planning, Operations and Strategy
General Applications and Tools
Carl.Nagle@sas.com
Original comment by carl.na...@sas.com
on 5 Aug 2013 at 6:36
I think I have the best candidate fix in this attachment.
Since monitoring the emulator stdOut was too problematic, I've refactored to
monitor the Android window service initializing the Launcher Activity window.
Please take it and give it a try. If you will, I'd like to see your console
output and logs--even if this is all successful.
Carl Nagle
SAS Institute, Inc.
Research & Development
Planning, Operations and Strategy
General Applications and Tools
Carl.Nagle@sas.com
Original comment by carl.na...@sas.com
on 6 Aug 2013 at 9:18
Attachments:
It do works now, but it can't terminate emulator automaticlly..
console output:
performRemoteShutdown ignoring TimeoutException: waitForRemoteShutdown Timeout
before Shutdown
SoloTest INFO: checking for launched emulators...
DUtilities attempting ProcessMonitor shutdownProcess...
SoloTest WARN: We fail to stop the emulator launched by us.
Emulator(s) shutdown? false
SoloTest DEBUG: terminate successfully.
do you have any idea about this?
BTW, do you provide any method to uninstall application ?
See attachment to get latest log and console output..
thanks
Original comment by enduranc...@gmail.com
on 7 Aug 2013 at 3:11
Attachments:
Unfortunately, the site tells me that "Issue attachment storage quota
exceeded". So I cannot provide you an updated safsautoandroid.jar which fixes
the shutdown problem.
I noticed the shutdown problem while debugging the boot completion problem.
But fixed it AFTER delivering the boot completion fix. I will attempt to
provide a RobotiumRC Overlay on the SourceForge SAFSDEV site (Home of
RobotiumRC) within the next few days. You can also email me directly and I
will try to get you the jar.
For uninstalling an APK and other nifty tools, look at just some of the APIs
that come with SAFS AutoAndroid delivered with RobotiumRC:
http://safsdev.sourceforge.net/doc/org/safs/android/auto/lib/package-frame.html
http://safsdev.sourceforge.net/doc/org/safs/android/auto/lib/DUtilities.html#uni
nstallAPKPackage%28java.lang.String,%20boolean%29
Carl Nagle
SAS Institute, Inc.
Research & Development
Planning, Operations and Strategy
General Applications and Tools
Carl.Nagle@sas.com
Original comment by carl.na...@sas.com
on 7 Aug 2013 at 1:59
It can be terminate successful. awesome.
Thanks a lot.
Original comment by enduranc...@gmail.com
on 9 Aug 2013 at 2:04
Thanks Carl for the fix. Even I was facing the same issue 'Watching emulator
stdOut for boot completion..'. Used the attached jar(posted in this
discussion)and I'm able to launch and terminate the emulator successfully. Hope
this fix would be a part of upcoming releases of RC.
-Kiran
Original comment by contactk...@gmail.com
on 18 Aug 2013 at 9:07
Original issue reported on code.google.com by
enduranc...@gmail.com
on 1 Aug 2013 at 9:23