Monkey ToolsObjective:Recently began to study the Android automated test method, some of the tools, methods and frameworks to do some simple collation, including Android test framework, CTS, Monkey, Monkeyrunner, benchmark, other test tool and so on. Because the contact time is very short, many places have the insufficiency, hoped can communicate with everybody.First, what is MonkeyMonkey is a command-line
did not catch other monkeys. And then the M line, in chronological order (0~M-1) gives some information about the monkey letting go, the 1+n+i line represents the i-1 moment of the monkey's release information, which is given in two numbers, which indicates the number of monkeys to let go, the latter indicating which hand they put, and 1 left 2 right. output Format
Total output N row, line I is the first monkey
interested, you can analyze it on your own. The principle is the same.
private static final Map
3. getnextevent of the event Source
Finally, how to obtain the event analysis is reached. We continue to use the monkeysourcenetwork network command to process monkeyrunner as an example to see how it handles the commands from monkeyrunner. Let's take a look at the implementation of the Interface Class monkeyeventsource.
/** * event source interface */public interface MonkeyEventSource { /**
only analyze the "press" command, if you are interested, you can analyze it on your own. The principle is the same.
private static final Map
3. getNextEvent of the event Source
Finally, how to obtain the event analysis is reached. We continue to use the MonkeySourceNetwork network command to process monkeyrunner as an example to see how it handles the commands from monkeyrunner. Let's take a look at the implementation of the Interface Class MonkeyEventSource.
/** * event source interface */
First, Monkey 1) What is Monkey? Monkey is a tool that comes with the SDK. 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 TestThis address: Http://blog.csdn.net/caroline_wendyFirst, monkey test introductionMonkey Testing is a means of automated testing for Android platforms, simulating user touch screens, sliding trackball, keystrokes, etc. via the monkey programTo stress test the program on the device, An exception occurs when the program is detected for a long time. ii. Int
First,Monkey test Introduction Monkey testing is an automated test of the Android platform, through the Monkey program to simulate the user touch screen, sliding trackball, keys and other operations to the device's program on the pressure Force test, the duration of the procedure will be abnormal.Ii.Introduction of Monkey
To give you illustrator software users to detailed analysis to share the design Monkey greeting card production tutorials.
Tutorial Sharing:
1. Open illustrator, press CTRL + N to create a new file, define a file name in the dialog box, select Size (size) for letter sizes, and file orientation as horizontal. Because the final result is not printed output, choose Color mode (color pattern) for RGB, you can ensure that the color of t
In the previous section, the Monkey tool was described using the environment of the building, portal. In this section I will describe in detail the use of the Monkey tool. First, Monkey test introduction Monkey testing is a means of Android platform automation, through the monkey
Android Monkey Stress Test IntroductionMonkey is a command-line tool provided by the Android SDK that can be easily and easily run on any version of the Android emulator and physical device. Monkey will send a pseudo-random user event stream for stress testing of the appRead Catalogue
Environment construction
What is Monkey
What
Shell, monkey, system, Android, file system monkey, example, Introduction
1. Introduction to monkey testing
Monkey testing is an automated test method on the Android platform. Using the monkey program, you can simulate the user's touch screen, sliding trackball, and buttons
Android Monkey Stress Test IntroductionMonkey is a command-line tool provided by the Android SDK that can be easily and easily run on any version of the Android emulator and physical device. Monkey will send a pseudo-random user event stream for stress testing of the appRead Catalogue
Environment construction
What is Monkey
What
Ext.: http://blog.csdn.net/huangbiao86/article/details/8490743Shell, Monkey, System, Android, File system Monkey, example, introductionFirst, Monkey test introductionMonkey testing is an automated test of the Android platform, through the monkey program to simulate the user touch screen, sliding trackball, keys and oth
1.1 Monkey Test IntroductionMonkey testing is a means of automated testing of the Android platform, through the monkey program to simulate the user touch screen, sliding trackball, keystrokes and other operations to stress the program on the device, the detection of how long the program will be abnormal.1.2 Monkey Program Introduction1)
This paper is aimed at the data structure Basic Series Network course (2): Linear table Practice project."Project-Monkey King"A group of monkeys, numbering is three-way ... m, the monkeys (m) sit around in the order of 1-m. Starting from the 1th number, every number to Nth, the monkey will leave this circle, so in turn, until the last monkey left in the circle, t
than the corresponding base dimensions of the lower block because There have to is some space for the monkey to step on. This is meant, for example, which blocks oriented to has equal-sized bases couldn ' t be stacked.Your job is to write a program this determines the height of the tallest tower the monkey can build with a given set of BL Ocks.Inputthe input fil
fling.py
View the Android Monitor memory is also released
The test code is as follows
The code is as follows fling.py
#!/usr/bin/env monkeyrunner
Import time
from Com.android.monkeyrunner import Monkeyrunner, Monkeydevice
device = monkeyrunner.waitforconnection (5)
# fling up
def scrollupfling ():
Device.touch (100, 500, Monkeydevice.down)
Device.touch (MB, monkeydevice.move)
Device.touch (MB, monkeydevice.up)
Print "Fling Up"
# Fling down
def scrolldownfling ():
Device.touch (MB,
ADB devices viewing connected devicesADB install package.apkADB Shell Monkey 1000 operates randomly 1000 times when the operation Mayadb cannot be used, prompting Error:unknown host service solutionSolutions here http://blog.csdn.net/liguilicsdn/article/details/50902194There will be feedback when this command executesEvents injected:1000 here if the value equals your input value then it is executed 1000 times, if it is less than your value then it ind
Monkey test_automated test_check whether your application is robust enough. androidmonkey
In the previous article, we mentioned that the application can automatically capture Crash logs and submit them to the server. If the application has not been strictly tested before the release (some small applications developed by my personal trainer), we will find that many exceptions are obvious errors, I just did not strictly test and ignored it. In fact, and
shell DMESG will print out debug information for the kernel. 5. Publishing ports You can set any port number as the request port for the host to the emulator or device. Such as: ADB forward tcp:5555 tcp:8000 6. Send files from the computer to the device ADB Push Use the push command to copy files or folders on your computer to your device (mobile) 7. Download files from the device to the computer ADB pull Use the pull command to copy files or folde
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.