What I want to do is:Ĭlear the cached log data at the initiation of the scriptĬontinuously stream the logcat data to the file as I am testing apps while connected via USB.Īppend a start and end timestamp to the filenameĮnd the output some way when done with whatever task I am testing (don't care if the method is just disconnecting from the USB cable)īe able to click on the script again and have it do the steps above to another file (which would resolve itself cause timestamps would be different)Ĭurrently it just creates the one file with the date, which I have to rename, then start over for each test I perform (Exploratory/Functional). As I understand it though (and correct me if I am wrong), but it just dumps the data already cached on my device at the time I run the command. This creates a file with the current date and outputs the logcat data to that file on my desktop. I found and created a script file for windows with the following command: "C:\Users\dare2\AppData\Local\Android\sdk\platform-tools\adb.exe" logcat -d > "%UserProfile%\Desktop\?te:~-4,4%?te:~-10,2%?te:~-7,2%_%." I am not familiar with the adb command line so any detailed help (or some links to syntax and scenario based examples) would be very much appreciate. I would have to quickly stop testing, then copy and save the data from DDMS to a file when I find a bug or when the would app crash on my Android Phone or Tablet. I used to use the the GUI version of logcat via DDMS for getting Adb logcat info from Android Studio (or monitor.exe from SDK tools), but found it too distracting while trying to test.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |