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
A group of monkeys in a circle, press 1,2,..., n sequentially numbered.And then starting from the 1th, counting to the first m, kicking it out of the loop,Start from behind it again, count to M only, kick It out ...,Keep on going until the last monkey is left, the monkey is called the King.Requires programming to simulate this process, input m, n, output the last king's number.*/
function Getkingmokey ($n,
I. Introduction
Monkey is a command line tool that can run in a simulator or a real device. It sends a pseudo-random user event stream to the system to perform stress testing on developing applications. Monkey includes many options, which are roughly divided into four categories:
· Basic configuration options, such as setting the number of attempted events.
· Run constraint options, such as setting to test
Objective:Monkey introduction of the basic copy of the official introduction, mainly for the convenience of their own inspection. This article focuses on how I automatically collect relevant information when I do monkey, mainly collect monkey test log, cell phone log, mobile phone screen, test mobile phone information, automatically press time to save information. Just a little bit, make up your mind what y
It may be strange to see why the monkey process that started the target device is placed after the section "Run test Scripts".Looking at the start-up process for the entire monkeyrunner, we see no mention of where the monkey process started. Then it is strange, when Monkey was Monkeyrunner start up?Our test scripts need to execute a call almost without exception
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 Log Analysis Script
1), script fil
Monkey is a tool for testing our app through the command line, which can be run in a simulator or on a real machine. It sends a pseudo-random user event stream to the system, enabling stress testing of the positive application. Official introduction: https://developer.android.com/studio/test/monkey.html. Test? Isn't this the job of a test sister? Certainly not, we can not feel the code, we can throw a bug item to the test sister, then we may have to s
Heaven Zhuhai Branch Rudder note : Originally this series is to prepare a book, details please see the earlier blog "to seek partners to write the deep understanding of Monkeyrunner" books. But for many reasons, there is no wish. So the draft is shared here, so mistakes are unavoidable. If necessary, please refer to the following, the forwarding of the word also keep the end of each article source and other information.
After setting the monkey c
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 operation. Screenshots are not supported.Monkeyr
For automated tests on Android phones, monkey is much easier to use than CTS and Android unittest. It actually inherits a shell instruction from the ADB shell.
Monkey testing principles
The monkey test uses Socket Communication to simulate users' key input, touch screen input, and gesture input. When a monkey program i
Recently began to study the Android test Monkey tools, because the contact time is very short, there are many shortcomings, I hope to communicate with you more.What is MonkeyMonkey is a command-line tool in Android that can be run in the emulator or in the actual device. It sends a pseudo-random message to the systemUser event flow (such as key input, touch screen input, gesture input, etc.) to enable stress testing of the application under developmen
Preface:
Recently, I started to study Android automated testing methods,SortedSome tools, methods, and frameworks, including the android testing framework, CTS, monkey, monkeyrunner, benchmark, and other test tools.
1. What is monkey?
Monkey is a command line tool in Android and can be run in a simulator or on a real device. It sends pseudo-random user event
devicesThe effect is as follows:2. Specify device to execute ADB shellCommand:adb-s devicename ShellIn multiple device cases, executing the ADB command typically requires the device to be specified with the parameter-S.For example, uninstalling the package Com.soft.camera on emulator-5554, the command is as followsAdb-s emulator-5554 Uninstall Com.soft.cameraFor example, by monkey testingAdb-s emulator-5554 Shell
Automated testing on Android phones, monkey is much more useful than cts,android unittest, and he is actually inheriting a shell command from the ADB shell.The related principles of a monkey testThe principle of monkey testing is to use the socket communication method to simulate the user's key input, touch screen input, gesture input, etc., to see how long the d
Sometimes we need to perform stress tests on a software to check its performance. Manual testing is much less efficient and boring. At this time, a command line tool monkey in android can reduce a lot of repetitive and tedious work for us. The following describes the introduction, features, basic usage, test sample illustration, test stop conditions, and command parameters of the monkey tool.
1. What is the
In the analysis of Monkey source, some background knowledge is not clear, such as See Monkey is the use of WindowManager Injectkeyevent method injection events, the heart of a lump, this way is not only in the current application to inject events? Google has found a foreign Daniel has left clues to describe the problem, deliberately excerpt down and do the corresponding part of the translation, other parts
Use the Monkey Help command to view the command parameters as follows:C:\users\chenfenping>adb shell Monkey-helpUsage:monkey [-P allowed_package [-P allowed_package] ...][-C Main_category [-C main_category] ...][--ignore-crashes] [--ignore-timeouts][--ignore-security-exceptions][--monitor-native-crashes] [--ignore-native-crashes][--kill-process-after-error] [--hprof][--pct-touch PERCENT] [--pct-motion PERCE
What is Monkey?Monkey is a program that can 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 IntroductionMonkey is a command-line tool that can be run in the emulator or in the actual device. It sends a pseudo-random user event stream
Remember the second unit of the Android development in the monkey for a few hours before the launch, indeed can also find some problems, the crash rate is low, not measured can really press a pressure to search the next information, Monkey is really simple, found the problem of their own search is what the problem, do not find anything on the run to ask the developmentThe following is an introduction to the
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.