First, talk about the principle of mobile phone automation testing
1, mobile phone automation testing principle for the PC on the control side (test tool) and the mobile phone on the agent side, through the serial, USB or wireless connection between the PC and mobile phone terminal, and then apply the test tool to the mobile phone to send a request or command, the phone received the command or request, to the agent side of the resolution, The agent then sends these parsed commands to the commands identified by each functional module of the phone, invoking those function modules to simulate the operation. After these operations, the phone will return some information, the agent can crawl the information, and then passed back to the PC side, so that completed a complete mobile phone automation test.
2, the key point is the agent, some companies are to their own mobile phone terminal software function module implanted in the test program response code, some companies can use Mmi_command way to control the mobile phone terminal; The principle is to provide a responsive interface to the phone.
3, and for the PC control, this test script can be used in various programming languages, see how to define.
4, and some automated test design into a recording mechanism, said the popular point, is to record the manual operation of the keyboard information or LCD operation information (LCD needs to use intelligent recognition mechanism)
5, the automated testing framework of the construction method is universal, you need a set of their own testing framework to ensure the smooth development of automated testing.
Second, the Android Automation test direction:
1. The cts,cts test is based on the Android instrumentation Test and is based on junit testing. To be blunt, the CTS is a bunch of unit test cases. This is also a good part of the Java language.
2, Monkey tool, Monkey is a command line tool in Android, can run in the simulator or 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 testing is a fast and effective method to test the stability and robustness of the software.
3, ase,ase meaning for the Android scripting environment, that is, we can use scripts (such as Python) to invoke the functionality of Android, so as to customize some tests. such as calling, texting, surfing the web, etc. We can expand its API (Java section) and invoke these APIs with a Python script to enable rich testing capabilities. For the API section to access all Android APIs, Python is also flexible to deploy tests, so the ASE is very scalable.
4, Robotium, this tool is used for automatic test of black box. Can be applied to the target in the case of source code or APK only
To test. Robotimu provides an API that mimics the behavior of the user, such as tapping on a control, entering text
Wait a minute. (You can study this tool, open source, I have information)
5, you can develop a mobile phone automation testing tools, the principle of the same
Android Automation test (1) Android Automation Test principle concept