Logcat terminated with code null, signal SIGTERM

922 views
Skip to first unread message

Ganesh Balakrishnan

unread,
Aug 11, 2014, 7:34:21 PM8/11/14
to appium-...@googlegroups.com
Hi,

I am new at using appium. I am using it to automate tests for running tests on an app in Android device. After my test cases successfully completes, I see this debug message in the Appium logs. Is this just a warning message? Where can I find the logcat messages stored for the last test case run? I tried digging through the old posts, but couldn't find. Can anyone let me know how do I retrieve the adb logcat messages of a test case run.

> debug: Pressing the HOME button
> debug: executing: "C:\Android\android-sdk\platform-tools\adb.exe" -s 26a6b6ed shell "input keyevent 3"
> debug: Stopping logcat capture
> debug: Logcat terminated with code null, signal SIGTERM


Appreciate any help.
Thanks,
Ganesh

Ganesh Balakrishnan

unread,
Aug 18, 2014, 6:08:15 PM8/18/14
to appium-...@googlegroups.com
anyone facing the same issue? how do I get the adb logs after my test case is done?

Thanks,
Ganesh

Isaac Murchie

unread,
Aug 18, 2014, 6:21:17 PM8/18/14
to Ganesh Balakrishnan, appium-...@googlegroups.com
This is not a problem. Just a warning that it is going on.

To get the logs from the device, you can call "driver.logs('logcat')" in your tear down code. Or else from the command line you can run "adb logcat"


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

Ganesh Balakrishnan

unread,
Aug 18, 2014, 7:11:53 PM8/18/14
to appium-...@googlegroups.com, balakrish...@gmail.com
Thanks Issac, I added this command in the teardown.
LogEntries logs = driver.manage().logs().get("logcat");

In which location will the logcat be stored? Do I have to call "logs" anywhere inside of my test case?

Thanks,
Ganesh

Isaac Murchie

unread,
Aug 18, 2014, 7:13:03 PM8/18/14
to Ganesh Balakrishnan, appium-...@googlegroups.com
They won't be stored. You'll have an array of log lines, with which you can do whatever you'd like.
Reply all
Reply to author
Forward
0 new messages