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

Automated testing method for production and playback in Android equipment and Android equipment

A test method and Android technology, applied in the computer field, can solve the problems such as the instable Monkeyrunner, limited supported operations, problems, etc., to achieve the effect of convenient recording and playback test

Active Publication Date: 2014-06-11
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the two methods of the prior art have the following disadvantages: the first method often has problems in use because Monkeyrunner itself is not stable enough; the supported operations are limited, and currently only have screen clicks, keyboard input, dragging, and do not include Such as "shake" and other operations; the second method can only record and playback the interface of the tested Android application itself, and cannot record and playback across different application tests

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
  • Automated testing method for production and playback in Android equipment and Android equipment
  • Automated testing method for production and playback in Android equipment and Android equipment
  • Automated testing method for production and playback in Android equipment and Android equipment

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0024] Please refer to figure 1 , figure 1 It is a flow chart of an automated testing method for recording and playing back on an Android device provided in the first embodiment of the present application. Described test method comprises the following steps:

[0025] S11: Obtain the start recording command of the Android device, call and execute the first executable binary file loaded in the Android device through the shell command of the Android system, and the first executable binary file is used to record the application program under test, Listen to the record files corresponding to all operation events of all tested applications located at the bottom layer of the Android system.

[0026] The first executable binary file is responsible for recording events, and the second executable binary file mentioned later is responsible for replaying events. Recording an event refers to the process of recording the user's operation on the Android device, and records the user's oper...

no. 2 example

[0034] see figure 2 , figure 2 It is a flow chart of an automated testing method for recording and playing back on an Android device provided in the second embodiment of the present application. Described test method comprises the following steps:

[0035] S21: Obtain the start recording command of the Android device, call and execute the first executable binary file loaded in the Android device through the shell command of the Android system, and the first executable binary file is used to record the application program under test, Listen to the record files corresponding to all operation events of all tested applications located at the bottom layer of the Android system;

[0036] S22: Obtain an end recording command on the Android device, and generate a recording file according to the recording file;

[0037] S23: Obtain the start playback command of the Android device, call and execute the second executable binary file loaded in the Android device through the shell com...

no. 3 example

[0050] image 3 It is a flowchart of an automated testing method for recording and playing back in an Android device provided in the third embodiment of the present application, Figure 4 It is a schematic diagram of an automated testing method for recording and playing back on an Android device provided in the third embodiment of the present application. Please also refer to image 3 and Figure 4 , the test method comprises the following steps:

[0051] S31: Obtain the start recording command of the Android device, call and execute the first executable binary file loaded in the Android device through the shell command of the Android system, and the first executable binary file is used to record the application program under test, Listen to the record files corresponding to all operation events of all tested applications located at the bottom layer of the Android system;

[0052] S32: Obtain an end recording command on the Android device, and generate a recording file acc...

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 application of the invention provides an automated testing method for production and playback in Android equipment and the Android equipment. The method comprises the following steps of acquiring the production-starting command of an Android equipment end, and calling and executing a first executable binary file which is loaded in the Android equipment through the shell instruction of an Android system, wherein the first executable binary file is used for producing tested application programs and monitoring recording files corresponding to all the operational events of all the tested application programs which are positioned at the bottom layer of the Android system; acquiring the production-ending command of the Android equipment end, and generating the producing files according to the recording files; acquiring the playback-starting command of the Android equipment end, calling and executing a second executable binary file which is loaded in the Android equipment through the shell instruction of the Android system, reading the contents in the producing files, and rewriting the contents in the producing files into the corresponding recording files.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to an automated testing method for recording and playback in an Android device and the Android device. Background technique [0002] At present, there are two main ways to record and play back user operations on Android devices (phones, tablet computers, TVs and other electronic devices with an Android operating system): the first is recording and playback based on Monkeyrunner, and the second is For recording and playback based on Instrumentation. Among them, Monkeyrunner is a set of APIs officially provided by Google, which is used to control Android devices and emulators outside of Android code. Instrumentation is a mechanism officially provided by Google for Android system testing, which is a collection of a series of methods for controlling the Android system. Each component of the Android application can be independently controlled outside the normal life cycle o...

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 TENCENT TECH (SHENZHEN) 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