Monkeyrunner Tools Objective: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 con
command.
Example 3:
1. Set the pause for each action for 5 seconds or another time period until an error occurs. At this time, you can have more time to view the execution process of each action.
2. After an error is found, change the source code. After the error is changed, perform the same seed value and the same starting position to test the same event again.
3. If the error does not occur again, perform another SEED value
all packages. To specify multiple packages, you need to use multiple-p options, and each-p option can be used for only one package.
Using the monkey processIn general, it is relatively simple to test with monkey, but it is necessary to do some more complex preparation work. The following is a detailed test procedure (very simple OH), the content is based on the already configu
One bug-raised issuesIf there is a bug in the development process: "Constantly switching the language of the phone to display the phenomenon of flower screen." How do we verify this problem? I think the best way should be automated testing.So what are the tasks that automated testing can accomplish?Simply put, those repetitive testing work can be done by automating:1, set the language of the phone2. Add, delete, and bookmark contacts3, dial-up, hang-off4, even send text messages, collect text me
Monkey testing the use of 1--monkeyOriginal address:http://www.douban.com/note/257029872/(Transferred from watercress, copyright belongs to watercress and Douban friends, if offended please forgive and contact us)Use of MonkeyFirst, what is MonkeyMonkey 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,
This article is mainly to share with you how the Android application development process for unit testing, the individual in the process of doing the project, the unit test is necessary to ensure that we write the correctness of the program. Let's take a look at the unit test and the unit test.Unit testing (also known as module testing) is a
produce an error. Unit TestIn Android , A class that integrates the Androidtestcase class table name is a test class. Each method in the test class can be run independently.In Android , when you do unit testing, you need to add a test instruction set to the manifest file o
When many people come into contact with the Android unit test, the first response is whether the Android unit test has been fully integrated with JUnit. Unfortunately, this is not a fact. If you follow the running method of JUnit but use JDK instead, you will get an exception.
In fact, the TestCase Class is used to act
Android uses its own Junit to create a test project, androidjunit
1. Create an Android Project
Package com. shellway. junit; public class Service {public int divide (int a, int B) {return a/B ;}}Service. java. package com. shellway. junit; import junit. framework. assert; import android.
Android Automated Test explorationObjectiveGenerally speaking, after we have developed the product, it is up to the Test team or ourselves to point it out, basically without a problem and start on the line. However, over time, the functionality of a product becomes more and more powerful. At this point, in order to guarantee the quality of the product, we need to
Android junit unit test, androidjunit
Classification of software testing* Black box testing* Test the logical business* White box testing* Test logic method
Based on test Granularity* Method test: function
the difference between iOS and Android in app testing:1.AndroidSystem (http://www.maiziedu.com/course/android-px/)Mobile PhoneLong Press the home key to exhale the app list and switch apps, then right-swipe to terminate the app;2. Multi-resolution test, more than 20 kinds of Android, less iOS;3, mobile phone operating
Http://www.51testing.com /? Uid-489243-action-viewspace-itemid-810534
During this time, I saw some related topics with my friends.Mobile phoneTestThe automation methodFunction TestingCompared with mobile phone testing in recent years, the demand for mobile phone testing is getting higher and higher, and the technical requirements are getting higher and higher. We can expect mobile phone automation in the near future,Performance TestingWill become the focus.FirstAndroidSystem hardware com
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 the program on the device, the detection of h
First step: Install the JDKInstalling the JDK (above version 1.7)Installation complete Set JDK environment variable (Baidu query)cmd command, type the java-version command to check if the JDK is installed successfully and set the environment variable successfully, as shown in:Step Two: Install the Android SDK (software Development Kit for Android): http://tools.android-studio.org/index.php/sdk/As shown in t
First, the application layer:1. Android Developer website http://developer.android.comThe Android Developer website provides the most authoritative information on the Android system, which contains a detailed explanation of all Android concepts.2. Android SDK Sample ProgramT
, a libtestNDK. so file should be added to the libs \ armeabi directory.
4. Install apkRe-compile and run eclipse, a program will be started without accident, and the display is: Hello, test NDK!If the program is running, and the Log shows: WARNING: cocould not load library testndk !.It indicates that the shared library fails to be loaded. If the code is not changed, use Winrar to open the apk file under the bin directory and check whether libtestNDK
completes, if wants to return the concrete data, how to do? if Activity is destroyed and will be executed to Postexcutd method? The first line of code P364Links: http://www.cnblogs.com/sandyclaire1990/p/4766680.html49, View in onTouch,ontouchevent, The execution order of the OnClickPending answer50, do not use animation, how to achieve a dynamic View? Pending answer51. Update view differences between invalidate and Postinvalidate in Android?Links: ht
required
List, map, and parcelables types, which contain data members that can only be simple data types, such as string other than the supported types.
(In addition: I did not try to Parcelables, compiled under the Eclipse+adt, but perhaps in the future will have some support13, the process of DVM and the process of Linux, whether the process of the application is the sameThe DVM process is the DALIVK virtual machine process, each Android p
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.