Recently in the review before the note, in retrospect Monkeyrunner looked at the Google website content, written well, translated out to share. In fact, the Google website is really a good place to learn.Basic knowledgeThe Monkeyrunner tool provides an API for controlling Android devices and emulators outside of Android code. With Monkeyrunner, you can write a Python program to install an
/target/product/gerneric/system/bin directory.Six. RePack Android system files System.img:[email protected]:~/android$ make Snod This way, the repackaged system.img file contains the hello executable file that was just compiled.Seven. Run the emulator and use the/system/bin/hello executable to access the Linux kernel driver:[Email protected]:~/android$ emulator-k
When interviewing the app developer recently, I met with the technical Director to ask the conceptual questions of the app test, then feel the basic project flow, Project logic, screen adaptation,Testing is completely no problem, but for the application of performance testing, stress testing and other high-end testing, there is a flaw in it, after all, professional development of the appPersonnel. However, the process of pursuing app development is ne
Android entry notes-data storage-SQLite, unit test
Why do we need to add three lightweight databases (SQLite) today? Because it is really light. Sqlite is a lightweight database specially prepared by unembedded devices. Although it is small, it has many functions. The biggest difference between it and other databases: MySql, SqlServer, Oracle and other databases I think is that Sqlite can only run on termin
ObjectiveAndroid has more than 2 years of automation capabilities, the use of functional automation framework has robotium, Uiautomator, Appium. Recently, research the automation case reuse scheme, researched the automation framework of appium, and applied it to the standard of Bank one account, this article introduces the Android function Automation combat experience based on appium in detail. The main contents include the following aspects:
Test-driven Android developmentRunning test cases on an Android emulator or on a real machine is slow. It usually takes a minute or more to build, deploy, and launch apps. This is not a TDD (test-driven development) mode. Robolectric provides a better way.Maybe you've been t
July 26, Android P Beta 4 released (ie, Android P DP5), this version is the developer's last preview version, also indicates that the Android P official version is about to meet you.To ensure that developers are fully developed and tested before the advent of the official version, the application is successfully adapted to An
Testing is a very important part of development. In other words, good applications are not developed, but measured. While we don't need to be proficient in testing as programmers, we still need to understand the basics of testing.Wirelessly provides a test framework for us to use. We just have to inherit this framework and we can do unit testing.Preparatory workCreate a new Android project with two new clas
message to NULL for recycling!There are many articles on the web about how the main thread and other sub-threads interact, transmit information, and ultimately who will perform the processing of information, such as personal understanding is the simplest way-to determine the handler object inside the Looper object belongs to which thread, then by the thread to execute!1. When the argument of the handler object's constructor is empty, it is the looper of the current thread;2. Looper.getmainloope
;} return NULL ;}}
Both classes have been created, but we need to test whether the two classes we created work normally, whether they can be inserted, updated, deleted, or queried. Here we use testcase for testing.
Sqlitedemotest. Java
Import android. database. cursor; import android. test. androidtestcase; public clas
During development, we need to perform unit tests on some functions and start activity to test some small functions. This is a bit of a fuss.
We can use the android unit test tool
This article is just an introduction to the effect of brick throwing.
Instrumentation has no interface and can be started.
The following is a simple example to explain the basic
large collection of penetration test tools under Android platformShare a Google project, a variety of Android under the Penetration testing tool.Ad Network Detector (1.2): Http://market.android.com/details?id=com.lookout.addetectorApp Backup Restore (1.0.5): Http://market.android.com/details?id=mobi.infolife.appbackupApp Cache Cleaner (1.1.3): Http://market.andr
Android test Framework, part of the integration in the development environment, provides a framework and powerful toolscan help test your app from cell to frame in every aspect.The test framework has these key features:1. TheAndroid test component is based on Junit. You can
Monkeyrunner 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 contac
How to perform android unit testing
Add the following to menifest. xml:Add:Join outside:Android: Label = "test for my app"/>
Write unit test code: it must inherit from androidtestcase classPackage name. feisky. Android. test;Import A
/1hqggrvaThis is the Android Framework Source Code, which is downloaded and decompressed to copy or move the entire folder to .../android-sdk-windows/sources folder , and then reopen SDK Manager. exe. For the sake of insurance, in case of later use and not installed, so here all installed.Click "AVD Manager.exe" below to create the android emulator. Click "Create
Mobile phone automation Framework is also more, for ios,android two different platforms, finally I picked the appium, it is the use of webdriver to drive testing, this framework I am more familiar with, and it supports two platforms. So I have for these two different platforms to build and test, the environment of the iOS platform is not a problem, concrete construction methods see:Http://blog.sina.com.cn/s
Objective:
Recently began to study the Android automated test methods, some of these tools, methods and frameworks to do some simple collation, including the Android test framework, CTS, Monkey, Monkeyrunner, benchmark, other test tool, and so on. Due to contact time is ver
Test
Black box test-testers do not know the source code
White box test-testers know the source code, can write some test cases
According to the granularity of the test
Method tests the function test
;%logfilename%_traces.log
REM to expand, upload logs to server
: EXIT
ECHO.
ECHO. [INFO] Please press any key to close the window ...
Pause>nul
Note: When you save the bat note for the file format ANSI ha, windows you understand
2), "How to use"
A, save the script: Copy the config.conf, Monkey_findyou.bat content in this article is saved in the same directory
b, modify the configuration: Modify the content in the config.conf for the app you need to
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.