Monkey test ==== monkey test is used to check app Memory leakage and cpu usage, and monkeyapp
Monkey testing has been being studied recently. There are a lot of online materials, but they are all copied one by one. Few Original
I will sort out the app Memory leakage check:
R
Stress test-monkey LearningMonkey Test features
What is Monkey test? As its name, like a monkey, although nothing to understand, but can be a bit messy, can be understood as stress testing. Do any random action within the specified time or number of times, and the action includes clicking, sliding ...
Monkey
Android App Stress Test (i) Monkey tool introductionObjective This article mainly introduces monkey tools. Monkey testing is an automated test of the Android platform, through the monkey program to simulate the user touch screen, swipe, button and other operations to stress
Reference: http://blog.csdn.net/io_field/article/details/52189972first, Monkey Test principle: Monkey is a command-line tool in Android that can be run in the emulator or in the actual device. It sends pseudo-random user event streams (such as key input, touch input, gesture input, etc.) to the system, enabling stress testing of the application under development. Monkey
. script file: Monkey_findyou.bat
@ECHO OFF
ECHO.::::::::::::-----:::------------:--::--::
ECHO.:: Monkey Test::
ECHO.:: findyou::
ECHO.:: Version V1.0.1::
ECHO.:: Time: 2014.08.25::
ECHO.::::::::::::-----:::------------:--::--::
IF not EXIST%~dp0\config.conf GOTO EXIT
ECHO. [INFO] Prepare monkey test
ECHO. [INFO] Read information in config.conf
REM get the package name from the con
This article is the learning note, video address of "Android app stress test" of Mu-class network
http://www.imooc.com/video/13007
Monkey is a tool for sending pseudo-random user events.Monkeyscript Implementation of the automated test script, is a set of monkey can be recognized by the collection of commands, you can complete the repeated fixed ope
Android App Stress Test (iii) Monkey log automatic analysis scriptObjectivelast said to share monkey log Analysis script, this time paste out share, nonsense not to say, please look at the text. Directory1. Monkey Log Analysis Script2. Script principle3. Operation Example1. Monkey
First, the pressure testMonkeyMonkeyscriptMonkeyrunneradb Shell Monkey 1000ADB Logcat | Gerp start gets the package name and activity nameADB shell Monkey-p Package name 10001. Throttle parametersadb Shell Monkey--throttle2.seed parametersTo specify the seed value of a randomly generated numberadb shell Monkey--throttl
This article transferred from: http://www.cnblogs.com/nbkhic/p/3806951.htmlSometimes in Appium desired capabilities you need to specify the appactivity of the app under test, the following method may help you.Method OneIf you have to test the project source code, then directly view the source code is good. If not, then please contact the source of the students, this is the recommended method.Method TwoIf you don't have the code, you can decompile the
Method one: Through the cmd command, if you first open the phone you want to get the package name of the app1.ADB Shell2.dumpsys Activity | grep mfocusedactivityMethod Two: To obtain the package name and the entry through the anti-compilation1. Install the software on the phone with the cmd command: AAPT dump badging F:\app-release.apk2. decompile to get the package name: AAPT dump badging F:\app-release.ap
Monkey Test 1 -- Use of Monkey, monkey test 1
1 Monkey tool 2 3 1. What is Monkey 4 5 Monkey is a command line tool in Android, which can be run in the simulator or on the actual device. It sends a pseudo-random user event stream
(5109520,5109520,0,205,31,0,0,0,0,0,0,0); Capturedispatchpointer (5109521,5109521,1,205,31,0,0,0,0,0,0,0); Userwait (+) The above is a sample script. The specific steps are:
Copy the above script to Script.txt
place script.txt in the SD card root
adb shel L monkey–v–v–v–f/sdcard/script.txt–throttle > Monkey.txt Script executes every 1.5s of instruction sequence sent by script.txt An instruction that execute
packages, monkey will allow the system to start the activity in all packages. To specify multiple packages, you need to use multiple-p options, and each-p option can be used for only one package.* Specify a package: adb shell monkey-p com.htc.Weather 100Description: Com.htc.Weather is the package name, 100 is the event count (i.e. let the monkey program simulate
5, 2016 stamps 1 sets of 2 pieces.
price per set: 2.4 Yuan. Philatelic Network Hall, mobile phone app mobile end, micro-letter mall synchronized online sales. Monkey Zodiac Stamp Sales Price: Each order (a total of 5 sets of stamps) 12 yuan (excluding mailing fee).
Note: Monkey Zodiac Stamp Purchase method: Customers can purchase through the P
system and written in Java. The storage path in the Android file system is/system/framework/monkey. jar;
2) The Monkey. jar program is started and executed by a Shell script named "monkey". The storage path of the shell script in the Android file system is/system/bin/monkey;
In this way, you can perform the
Intro
From the beginning of this small series will take you to learn the use of Android monkey, we still keep as concise and clear as possible to tell everyone. Also welcome everyone has a good article submission to us, there are red envelopes reward oh. Email: [Email protected], comment submissionWhat's monkey? monkey= Monkeys?
executing in the cmd window: adb shell Monkey {+ command arguments}.Monkeysimple Help for CommandsTo get the simple help that comes with the Monkey command, execute the command in CMD:ADB Shell Monkey–helpMonkey command parameter Description 1) parameter:-PThe parameter-P is used for constraint restrictions, and this parameter specifies one or more packages (the
Monkey is a command-line tool provided by the Android SDK that can be easily and conveniently run on any version of the Android emulator and physical device. Monkey will send a pseudo-random stream of user events for the app to do stress testing
Reading Table of Contents
Environment construction
What is Monkey
event type cannot exceed 100%;Constraint restrictions-pIf you specify one or several packages with this parameter, monkey will only allow the system to start the activity in those packages. If your application also needs to access activity in other packages (such as choosing to take a contact), those packages need to be specified at the same time. If you do not specify any packages, monkey will allow the s
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.