Mobile phone Test System explained

Source: Internet
Author: User
Tags python script

1. Smoke Test-monkey Automation1.Monkey command Simple explanation monkey-v-P com.jh.jhcs.activity--throttle--pct-touch 100 5000; • Command explanation: Monkey refers to the tool name. -v Displays information about the default program. -p Com.jh.jhcs.activity is the procedure for making tests. --throttle 50 Set the delay to 0.5 seconds. --pct-touch Adjust touch events. • 100 specified for 100% execution. • 5000 Specifies the number of clicks; • Function: Through the monkey automatic click Function, the program to smoke test, check the program. By logcat the error of locating code, we can check out the null pointer of the code, etc. 2. Install, uninstall Test• Installation and uninstallation tests are primarily for APK installation files generated by the compiled source program.       • There are two main test points; • 1. The apk file can be installed and uninstalled on the real machine, and the general installation tools such as pea pods and 91 assistants can be installed and uninstalled normally 2.android the mobile phone.       3. Online upgrade installation and use test • Online upgrade installation and use test main three points; • 1. Verify the digital signature.        ·2. Can be used normally after upgrade. ·3. Online cross-version upgrade. 4. Business Logic Testing• Business logic test main test three points: • 1. Business logic test: The main test client business can be completed properly.      ·2. Functional point testing: The main test is whether the client function points are working properly. ·3. Correlation test: The main test client and PC-side interaction, after the client processing, the PC side and the client data consistent. 5. Stability and anomaly testing• Stability and anomaly testing two points; • 1. Interactive test: The client as the characteristics of the mobile phone test, including the situation of the interruption of 13 kinds, calls, to SMS, low battery test, but also pay attention to mobile phone hardware, such as: Standby, Plug and unplug data lines, headphones and other operations will not affect the client. ·2. Anomaly testing: Mainly includes broken nets, power outages, server anomalies, such as the situation, the client can be normal processing, to ensure the correctness of the data. 6. Performance Testing• The client performance test is mainly two points; • 1. Benchmark performance test: mainly through the server side interface and the client in different network environment response speed. The main 258 principles. ·2. Large number of tests: mainly in a specific environment, the client can update a large number of data and a list of people, the client is able to handle the normal, divided into three cases: • 2.1: The first time the client uses, the first time to update a large number of data and people list. • 2.2: The client updates a large amount of data in a normal update; 2.3: The client has updated a large amount of data again after downloading a lot of data locally on the phone. 7. Usability testing of the interface• Interface Usability Testing main two points: • 1. Interface and interactivity test: conform to the Android Interactive specification, in line with the user habits, easy to operate, with consistency. ·2. Usability testing: User experience is good, user operation is convenient, user error rate is low. 8.monkeyrunner+python• Monkeyrunner tools in tool tools that work with the Eclipse SDK. You can run a Python script to do automated testing and automate the save results. 9. Suitability Testing• The suitability test is mainly four points; • 1. Different resolution support: client supports 320*240, 480*320, 800*480, 854*480, 960*540, etc.. 2. Different versions of the phone support: 2.3.*, 2.2, 4.0; In the test plan: requires an    Separate time for compatibility testing of different Android systems, including version 2.0 and 3.*, version 4.0, etc.; ·3. Phone different manufacturers system support: Different manufacturers will have different Android systems, such as: Xiaomi mobile phone, Huawei's input method.    The market is the mainstream of the system and manufacturers of different models of support. 4. Support for different sizes of mobile phones: 2.0 to 4.0 screens differ in UI display, to support maximum to minimum. 10. Power and flow test of mobile phone• Mobile phone power and process testing is mainly to stand in the user's perspective, after all, electricity, traffic consumption is relatively large, will affect the customer's use of feelings. The battery usage rate is proportional to the CPU usage. As this has no more detailed provisions, only a common scope. CPU usage can not exceed 10%, traffic should not exceed 10M. Data is generally obtained from some monitoring software on the Android phone side. 11. Memory Leak TestAndroid's memory mechanism Android programs are written in the Java language, so Android memory management is similar to Java's memory management. The programmer allocates memory for the object through new, and all objects allocate space within the Java heap, whereas the object's release is done by the garbage collector. The Android virtual machine is a register-based Dalvik, its maximum heap size is generally 16M, and some machines are 24M. So the amount of memory space we can use is limited. OutOfMemory errors occur if our memory footprint exceeds a certain level. If a long-term reference resource is not released, it can cause a memory leak. Android Memory leak Check tool Ddms+mat Memory Monitor tool DDMS-heap open Eclipse and switch to DDMS perspective while confirming that Devices, Heap, and logcat views are open; • Link a mobile device to a computer And make sure to use the "USB Debug" mode link instead of "Mass Storage" mode; • When the link is successful, you will see the serial number of the device in the devices view, and the part of the process that is running on the device; • Click to select the process for the app you want to analyze, on the devices view The "Update Heap" and "Dump HPROF file" Two buttons at the same time, this is the DDMS tool will automatically generate the. HPROF file for the currently selected process and convert it to be stored in SDcard if you Now that the mat plugin is installed, the mat will automatically be enabled and the. hprof file is analyzed. 12. Online Commissioning• On-line debugging is mainly when the tester obtains the source code, and after connecting through the phone, Logcat can record the operation process. This can be a lot of positioning problems, can be located through the Logcat code, that type of error, in that line of code. Ensure the recurrence of the bug, and the problem location. can help develop many positioning problems and make changes. 13. External network testing and external network testing the main reality of the simulation of customer use of the network environment, the verification of the customer single program in the actual network environment usage and business operations. • External network testing is mainly covered by wifi\2g\3g, Net\wap, telecom \ Mobile Unicom, all possible combinations are tested. • Principle: • 1. To cover the user's usage scene as comprehensively as possible, the test cases need to include various combinations of network permutations; • 2. Also the analog signal is blocked when the client's influence and so on. ·3. Also to do external scene testing, in the high mountains, hills, trains and other special conditions for comprehensive testing.

Mobile phone Test System explained

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.