Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Android platform automation integration testing method and device

An integrated testing and platform technology, applied in the field of computer applications, can solve the problems of unguaranteed accuracy, long time-consuming, inability to realize page and control operation and detection, etc., to reduce labor costs and time costs, improve stability and performance. The effect of accuracy

Active Publication Date: 2013-05-29
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF2 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The above-mentioned first method has high labor costs and takes a long time, and the test results are related to the experience, technology and energy of the testers, and the accuracy cannot be guaranteed
[0008] In the second way, shell tools cannot realize the operation and detection of pages and controls during the test process, the test results are unstable, and the test cannot be performed on devices with different resolutions.
[0009] The third method needs to communicate with the Android View Server to obtain View information, which is very slow and consumes a lot of resources, and the test stability and performance cannot be guaranteed.
[0010] Most importantly, since each Android application program runs in each virtual machine instance, each virtual machine instance is an independent process space, so in the various implementations of the prior art, the Android platform cannot obtain multiple cross-process The process context of the application is used for integration test automation, resulting in test accuracy and stability cannot be guaranteed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Android platform automation integration testing method and device
  • Android platform automation integration testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 1 The flow chart of the main method provided by Embodiment 1 of the present invention, such as figure 1 As shown, the method includes the following steps:

[0048] Step 101: Initialize the test environment of the tested Android device.

[0049] Test environment initialization is the first step that will be performed during the test process. This step mainly includes:

[0050] 1) Flash the version of the Android device under test according to the test requirements. Usually, when a certain test is carried out, it is carried out for a specific Android version, so the Android device under test must first reinstall the system and deploy it into an Android version that meets the test requirements.

[0051] 2) Obtain root authority and read and write system authority. Since the subsequent test process will involve modification and reading and writing of system files (that is, subsequent configuration files) (that is, subsequent acquisition of installation files and r...

Embodiment 2

[0072] figure 2 The structure diagram of the Android platform automation integration test device provided for the second embodiment of the present invention, the device can usually be arranged on a PC, the PC is connected with the Android device under test, for example connected by USB, the automation integration test run on the PC The device is responsible for completing the integration testing of the Android device under test. Such as figure 2 As shown, the device includes: an initialization unit 01 , a file reading unit 02 , a decompilation unit 03 , a configuration modification unit 04 , a compilation replacement unit 05 and a use case execution unit 06 .

[0073] The initialization unit 01 is used to initialize the test environment of the tested Android device. Specifically, flash the version of the Android device under test according to the test requirements, and deploy it to an Android version that meets the test requirements; obtain root permissions and read and wr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an Android platform automation integration testing method and a device, wherein the Android platform automation integration testing method comprises the following steps: obtaining an installation document of a measured application program from a measured Android device; conducting decompilation on the installation document of the measured application program; modifying a configuration file of the measured application program into uniform user identity (id) and uniform course id; compiling the modified measured application program into a new installation document, and utilizing the new installation document to replace the installation document of a measured Android device; restarting the measured Android device and executing an integrating test case. Human cost is saved, and test accuracy and stability can be ensured.

Description

【Technical field】 [0001] The invention relates to the field of computer application technology, in particular to an Android platform automation integration testing method and device. 【Background technique】 [0002] In recent years, the mobile platform Android operating system has developed rapidly. Android-based mobile devices have occupied half of the mobile market. The number of applications in each Android application market has also increased by leaps and bounds. Android has become the most popular mobile platform operation. system. [0003] In order to ensure that the Android application can run smoothly, it is an indispensable process to carry out integration testing. In order to realize the integration testing of the Android platform, the existing implementation methods mainly include the following: [0004] The first is the way of manual testing. [0005] The second is to use Shell tools for testing, such as monkeyrunner, adb shell commands, etc. [0006] The thir...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 程振宇董海峰
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products