Teach you how to use DDMS tool to view logcat in Android Studio-mobile testing Android app (app performance monitoring and testing)

1. What is DDMS

The full name of DDMS is DalvikDebug Monitor Service, which is the Dalvik virtual machine debugging and monitoring service in the Android development environment. Provides screen shots of test equipment, viewing threads and heap information of specific processes running, Logcat, broadcast status information, simulated phone calls, simulated receiving and sending SMS, virtual geographic coordinates and other services.

If you want to learn more about logcat, I saw a good video, but the number of clicks is simply too high. This amount of clicks is not worthy of such a good video (put it in my favorites!)
I will share this first: https: //www.youtube.com/watch?v=EE1Swm7DwHQ

2. How to open DDMS in Android Studio

First find the SDK directory
File——"Settings
Insert picture description here
System Settings——"Android SDK

Insert picture description here
Enter the tools under this path, double-click monitor.bat and
Insert picture description here
then you can see it (open this when testing the app)

Insert picture description here

Three, generate test report

To test the performance of an app, we need to use the following tool Emmagee:
Insert picture description here
I am ready, just click below to download and install it.
Link: click here
Extract code: 75ki

I tested this by connecting to a real device. The following is what the teacher told me. I really hope that I have a bad phone at hand to use it for practice (the emulator occupies memory and is slow, but every time I use my only mobile phone to run it, I am afraid , I will advise you not to use the real phone
Insert picture description here
when something goes wrong with your phone...) Install Emmagee on the real phone, and then monitor an application. For example, I monitor TikTok , find the app I want to test in the emmagee software, and then DDMS will Keep running

Insert picture description here
Then go to the local folder of your mobile phone to find this file and send it to your computer QQ (there are other ways, this is what I can think of)

Insert picture description here

Open is garbled
Insert picture description here

The solution to the garbled code
First save it on the desktop, select Notepad as the opening method, open it with Notepad,
Insert picture description here
and then save it on the desktop and save it as a csv file. It should be noted here that the code is ANSI
Insert picture description here
so that the test report is automatically generated
Insert picture description here

https://blog.csdn.net/hanhanwanghaha Welcome to follow this super invincible and cute duck. If you have any questions, you can leave a private message and you will reply if you see it!
Creation is not easy, if reprinted, please indicate the source

I hope you and I can keep walking on the road of dreams, rushing! ! !
Insert picture description here

Guess you like

Origin blog.csdn.net/hanhanwanghaha/article/details/110563345