Test Stress Test moving end -monkey

Test Stress Test moving end -monkey

  1. Android phone with the computer installation pea pods

  2. Start the adb service (shut down the service adb kill-server)

    adb devices

  3. Install apk

    adb install HelloWorld.apk

  4. Review the application package name

    1. After connecting your phone only, enter the command: adb shell am monitor

    2. Click on the phone program, you can display the name of the package

  5. Monkey Test principle:

    1. Monkey is a command-line tool in Android, you can run on the simulator or an actual device. It sends a pseudorandom stream to the system user events (e.g., key input, touch screen input, gesture input etc.), the application being developed to achieve stress testing

     Monkey test is a stability test software, the robustness of the method for rapid and effective.

    2. Perform random events 1000, 300 millisecond interval
      adb shell monkey -p package name -v --throttle 300 1000

  The display particular app cpu occupancy

    adb shell
    dumpsys cpuinfo|grep app包名

  7. Memory Usage

    dumpsys meminfo | grep app package name

  8. view an app log / save the log

    adb shell logcat |findstr gov.pianzong.androidnga > C:\nag20190604.log

  9. View Log

    windows    tomcat/log/catalina.out

    linux / var / log / secure

 

Guess you like

Origin www.cnblogs.com/wp950416/p/11932171.html