Hi Jin S., I noticed your profile and would like to offer you my project. We can discuss any details over chat.
I am automating an Android application and I need to be able to capture logs while I am running the automation tests. I have tried using a terminal emulator but this only seems to give me the console logs. Next I tried using
log = subprocess.check_output (["adb", "logcat"])
But when I do this my automation script stops indefinitely (presumably because it is waiting for the logcat capture is complete), which does not work for me because I need the logcat to run in the background, while my script is running. So maybe 'Popen' is the way to go, and then pipe the output?
I want to run the adb command using the output of logcat.