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

Application testing method and device in terminal equipment

A technology for terminal equipment and application testing, applied in software testing/debugging, etc., can solve serious problems of operating systems and models, high complexity, fragmentation, etc., and achieve good applicability, strong usability, and high reliability Effect

Active Publication Date: 2016-02-17
ALIBABA GRP HLDG LTD
View PDF9 Cites 53 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, as the code volume and complexity of mobile terminal software applications increase, traditional manual testing methods have been difficult to obtain satisfactory and comprehensive test results. The system and various hardware devices have different specifications, especially mobile terminal devices equipped with the Android operating system, which have more serious problems of operating system and model fragmentation
If the test project needs to cover as many system versions or models as possible, it will take a lot of test time and human and material costs. Excessive test time will also increase the development cycle, which is not conducive to the timely release of software products or updates

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
  • Application testing method and device in terminal equipment
  • Application testing method and device in terminal equipment
  • Application testing method and device in terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] see figure 1 , which is a flow chart of the application testing method in the terminal device provided in Embodiment 1 of the present application, mainly introduces the recording process, as shown in the figure, the method may include the following steps:

[0046] S101: Start the target application to be tested;

[0047] In order to obtain the script file used for testing the target application, firstly, the test process may be recorded to generate the script file. In the process of recording the test script file, firstly, the target application to be tested can be started in the terminal device. Specifically, test management software can be installed in the terminal device, and when it is necessary to record a test script for the target application, the target application to be tested can be started through the test management software. For example, in a terminal device equipped with an Android operating system, for a target application under the Android operating sy...

example 1

[0072] Example 1. When the target control is a local native control:

[0073] {"action":"click","activity":"com.taobao.tao.Welcome","index":"18","isLongClick":"false","sleep":13271,"view":" ImageView"}

[0074] Among them, the "action": "click" key-value pair indicates that the operation event is a click; the "index": "18" key-value pair indicates that the index of the control is 18; the "view": "ImageView" key-value pair indicates that the The control type of the control is the native ImageView type control of the system.

example 2

[0075] Example 2. When the target control is of type WebView:

[0076] {"action":"click","activity":"com.taobao.tao.BrowserActivity","className":"","id":"","index":"0","name":" null","ridInt":"2131230857","sleep":"41400","tagName":"IMG","text":"","value":"null","view":"HybridWebView", "xpath": " / html / body / div[2] / ul / li / div / img"}

[0077] Among them, the "action": "click" key-value pair indicates that the operation event is a click; the "index": "0" key-value pair indicates that the index of the control is 0; the "ridInt": "2131230857" key-value pair indicates... ; The key-value pair represents the path information xpath of the control.

[0078] Furthermore, during the recording of the test script, there usually needs to be a certain event interval between various operations, so that the target application can perform operations such as instruction execution, loading and refreshing pages. When using test scripts for playback to realize automatic testing, it is also necessary ...

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 an application testing method and device in terminal equipment. The method comprises the following steps: starting a target application to be tested; receiving an instruction for recording a test script; monitoring an operation event which operates the target application; determining a target control used for processing the operation event in the target application; obtaining the control information of the target control; and storing the operation event and the corresponding control information as a preset-format sequence entry in the test script so as to bring convenience for carrying out playback on the sequence entry in the test script to finish a test when the target application is tested again. The method can more accurately and reliably finish testing the application in the terminal equipment.

Description

technical field [0001] The present application relates to the technical field of mobile terminal application testing, in particular to a testing method and device for applications in mobile terminal equipment. Background technique [0002] With the continuous development of mobile terminal equipment manufacturing technology, the intelligence and portability of various mobile terminal equipment have been improved unprecedentedly, and mobile terminal equipment such as smart phones have been popularized on a large scale. Today's mobile terminal equipment can run relatively complex operating systems. At the same time, more and more developers are investing in the development of application software for mobile terminal equipment, and have developed a large number of software applications for various equipment platforms. Various software applications with rich functions in the terminal device can perform activities such as online browsing, chatting, shopping, and games. [0003] ...

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 ALIBABA GRP HLDG 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