Supercharge Your Innovation With Domain-Expert AI Agents!

Android test incident record and playback methods and device

A test event, test record technology

Active Publication Date: 2013-03-27
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF8 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Due to the fact that the Android monkey test takes a long time and the test logs are poorly readable, it is difficult for developers to locate the specific cause of a bug only through the log information of the monkey test, so that they cannot effectively perform related repair operations

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 test incident record and playback methods and device
  • Android test incident record and playback methods and device
  • Android test incident record and playback methods and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] First, the Android monkey test is briefly introduced. figure 1 Shown is a schematic diagram of the Android architecture, and the Android architecture is divided into a driver layer, a Native layer, a Framework layer and an application layer. The Android monkey test mainly injects test events from the framework layer to test the application. The main operations involved include two parts: event sending and Activity switching. Since the prior art cannot directly obtain the event information of the framework layer, the recording of the Android monkey test event cannot be realized.

[0060] In order to solve the above technical problems, the embodiment of the present application provides a method for recording Android test events, comprising the following steps:

[0061] Generate and execute random test event streams in real time;

[0062] In the process of executing random test event flow, record the system environment information when each test event is executed;

[00...

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 discloses android test incident record and playback methods and a device. The test incident record method includes real-timely generating and executing a random test incident flow; in the process of executing the random test incident flow, recording system environmental information when each test incident is executed; changing the test incidents in the random test incident flow from a random mode to a script mode; and writing the test incidents in the script mode in a test recording file, and recording the system environmental information when each test incident is executed and total execution time of the random test incident flow in the test recording file. The test incident playback method includes positioning and back playing an initial incident in the test incident flow of the test recording file according to the proportion between the playback time and the total execution time, filtering and removing test incidents before back playing the initial incident, generating a testing script according to residual test incidents and corresponding system environmental information, and executing the generated testing script so as to achieve back playing of the test incidents.

Description

technical field [0001] The present application relates to the technical field of testing, in particular to a method and device for recording and playing back Android test events. Background technique [0002] Android (Android) is an open source operating system based on Linux, mainly used in portable devices such as smart phones and tablet computers. The system is developed by Java language, including operating system, middleware, user interface and application software. With the continuous development of the Android system, major hardware manufacturers are also continuously launching various products based on the Android system. At present, products based on the Android system have already occupied an important position in the market. [0003] The monkey random test is a means of automated testing on the Android platform. It uses the monkey program to simulate the user's key input, trackball input, touch screen input, etc., and organizes the above events in a pseudo-random...

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
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More