No buried point data collection and adb monkey test to block notification bar

Simple record of Baidu mobile statistics Android no buried point sdk use and monkey test to block the notification bar problem

 

1. No buried point sdk use

It's very simple. After downloading the sdk, import it into the project and refer to the sdk document. Personally, it is simpler than Umeng. A few lines of code can realize visual circle selection without buried points.

Here is the document address Visual circle selection SDK access

It is worth noting that starting from compiling the project and starting the operation , you can see the corresponding startup data on the Baidu Mobile Statistics website in about 5 minutes !

2. adb monkey test shields the notification bar

After the Windows system is configured with the adb environment, open the cmd window and enter  adb shell monkey -p application package name -v number of clicks > ./DeskTop/log.txt

When the monkey runs, you will find that the notification bar is pulled down, the network is turned off, or other operations that make it impossible to test the app normally, which is disgusting.

Go to stackoverflow to find an effective solution, and now share it with everyone

  Simply translate:

The first step, go to settings - security and privacy - screen pinning, turn on screen pinning. The specific method may vary depending on the model, the Honor V9 is like this

    

The second step, select the page of your app and fix the screen.

The third step, run the monkey test command in the cmd window. The log of the end of the test will be written in log.txt on the desktop 


Finally, post a picture to see the harvest

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325353329&siteId=291194637