Search code examples
androidautomationadbeggplant

How to get ADB logs using eggPlant automation tool


Can anyone tell me how can we get adb logs using eggPlant automation tool.Actually i want to have adb logs for my device when running eggPlant scripts.

Please help me out in this situation.


Solution

  • Actually, the previous answer is incorrect as adb command support does exist in eggPlant. There are ways to get adb logs in eggPlant. Here's how:

    • adb logcat is the command that enables getting adb logs. (Warning: This will print a ton of info!)
    • You need a way to execute adb logcat within eggPlant. This is accomplished using the shell command
    • On some systems (I am using eggPlant for Windows) you need to dump the output of the shell command to a file and then read the file back into a variable.