Monkey Test Strategy Tutorial-android,monkey test "Go"

Source: Internet
Author: User

Monkey test strategy, Monkey Test 2

I. Classification

The monkey test uses different test scenarios for different objects and for different purposes, first of all, the object, purpose, and type of the test are as follows:

The types of tests are divided into: application stability testing and stress testing

Test objects are divided into: single apk and APK collection

The objectives of the test are: problem-solving tests (ignoring exception tests) and acceptance tests (tests that do not ignore exceptions)

Two. Application Stability testing:

1. For a single apk

(1) Do not ignore exceptions

When performing an acceptance test of a single apk, a single apk is used and the command execution does not ignore the exception.

For example:
Monkey-p com.android.mms–throttle 1000-s 100-v-v-v 15000 >/mnt/sdcard/monkey_test.txt &

(2) Ignore exceptions

When a single apk problem-solving test is performed, a single apk is used and the command to ignore the exception is executed, so that you can discover multiple issues in the application during one execution.

For example:
Monkey-p Com.android.mms–throttle 1000-s 100–ignore-crashes–ignore-timeouts–ignore-security-exceptions– Ignore-native-carshes–monitor-native-crashes-v-v-v 15000 >/mnt/sdcard/monkey_test.txt &

2. For multiple apk

(1) Do not ignore exceptions

For example:

Monkey–pkg-whitelist-file/data/whitelist.txt–throttle 1000-s 100-v-v-v 15000 >/mnt/sdcard/monkey_test.txt &

(2) Ignore exceptions

For example:

Monkey–pkg-whitelist-file/data/whitelist.txt–throttle 1000-s 100–ignore-crashes–ignore-timeouts– Ignore-security-exceptions–ignore-native-carshes–monitor-native-crashes-v-v-v 15000 >/mnt/sdcard/monkey_ Test.txt &

Three. Application Stress/Robustness Testing

The application's stress/robustness test, which is primarily to shorten the delay between events and events in the Monkey test, verifies that the program works correctly during a fast incident response. This stress/robustness test is performed primarily against a single apk, and we can set the value of –throttle to 500 or smaller, typically using a 500 millisecond delay event.

In the APK collection test, for the high-frequency apk, the long-used apk will be included in the execution of the middle of the application.

APK category specific:

APK for high frequency use: Phone, Contacts, Message, Settings, File Manager, Gallery, Input Method

Long-time apk such as: Phone, Browser, Music player, Camera, Video player, Email, Chat

Other apk such as: Calendar, Notepad, Calculator, FM Radio, Google Search

Monkey Test Strategy Tutorial-android,monkey test "Go"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.