Automatic testing method of Android program

A technology of automatic testing and programming, applied in software testing/debugging, etc., can solve problems such as not intuitive enough, too much manpower and material resources, cumbersome key code writing, etc.

Active Publication Date: 2012-06-27
福建凯米网络科技有限公司
View PDF5 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Both have disadvantages: manual black-box testing will consume a lot of manpower and material resources; using the written keycode file is very cumbersome and not intuitive enough when writing the keycode
The data obtained by this method is only the elements of the page where the program under test is active. A

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
  • Automatic testing method of Android program
  • Automatic testing method of Android program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Please refer to figure 1 Shown, the inventive method comprises the following steps

[0029] Step 10, record the user operation through the Android emulator, the operation is written into the serial port by the Android operating system, and then export the serial port data as a binary file:

[0030] In order to facilitate developers to debug, Google provides a very easy-to-use Android emulator, and the emulator can run independently of the development environment, so we can easily use the emulator to record the required user operations.

[0031] Android is a Linux-based operating system. All peripheral input (including touch screen and keyboard) will write data to the serial port, so the user's operation can be obtained by reading the serial port data.

[0032] The specific method is:

[0033] (1) Run the Android emulator;

[0034] (2) Enter the Android remote terminal by running the command:

[0035] ~ / AndroidSDKPath / adb.exe shell;

[0036] (3) Export the serial po...

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 automatic testing method of an Android program, and the automatic testing method comprises the following steps of: step 10, recording a user operation through an Android simulator, which is written into a serial port by an Android operating system, and then exporting the data of the serial port into a binary file; step 20, formatting the binary file into a program-recognizable key file; and step 30, applying the key file to carry out automatic testing. Through the method provided by the invention, the global recording of a touch screen and a keyboard can be achieved, and furthermore, the influence of the access authority of hardware equipment is free.

Description

【Technical field】 [0001] The invention relates to an automatic testing method of an Android program. 【Background technique】 [0002] Program testing has always been a very critical and cumbersome part of application development, and stability testing and batch testing are the most time-consuming and cumbersome stages. Common traditional testing methods mainly include: (1) manual simulation of user operations for black-box testing; (2) through plug-in programs or the program's own modules, read the written key code file, and perform batch testing. Both have disadvantages: manual black-box testing will consume a lot of manpower and material resources; using the keycode file written is very cumbersome and not intuitive enough when writing keycodes. In addition, Android application layer programs have very limited access rights to hardware devices, making it difficult to achieve global recording of touch screens and keyboards. The following are the automatic testing methods fo...

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
IPC IPC(8): G06F11/36
Inventor 李中冬陈节省
Owner 福建凯米网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products