Unlock instant, AI-driven research and patent intelligence for your innovation.

An automated testing method based on dynamic ui model

An automated testing and model technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as state explosion, state model granularity is too coarse, and GUI state is ignored, so as to enhance coverage and improve test efficiency and quality effects

Active Publication Date: 2021-08-31
NANJING UNIV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

According to the research, the performance of existing testing methods in real applications is unsatisfactory. One of the main reasons is that it is very difficult to construct a reasonable state according to a specific model for the complex GUI of real applications. The constructed state model The granularity may be too coarse, ignoring many GUI states; or the granularity may be too fine, and the state explosion problem may occur, resulting in the entire test process being limited to a few specific states, and the final coverage rate is low
From the perspective of the GUI model, its main disadvantage is that it does not take into account the common structural characteristics between interface elements, and does not find a suitable granularity to divide element "groups"

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
  • An automated testing method based on dynamic ui model
  • An automated testing method based on dynamic ui model
  • An automated testing method based on dynamic ui model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The technical solutions of the present invention will be described in detail below through specific embodiments in conjunction with the accompanying drawings.

[0038] Such as figure 1 as shown, figure 1 It is a logical architecture diagram of the present invention, including various modules of the present invention. It mainly includes Activity module, GUI module, grouping and modeling module, selection and event execution module, feedback module, weight update module and group splitting and reorganization module.

[0039] Such as figure 2 as shown, figure 2 It is a flow chart of the present invention, which includes all steps in the entire test process, and the entire test process is like a process of continuous circulation in the flow chart, until the time or event limit set by the test is reached.

[0040] Step 1: Analyze the GUI state of the application. Such as figure 1 As shown in Obtaining Status Information, parsing the GUI status of an application inclu...

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 automatic testing method based on a dynamic UI model to guide and accelerate the GUI exploration process, explore more Android application GUI states within a limited time, and improve the test coverage rate. In the initial stage, the interface elements will be characterized according to the properties of the interface elements and the structural features in the GUI tree, and they will be initially grouped, called element groups; in the testing stage, the interface will be triggered by the selected strategy Events on elements, collect the activity jump after the event is triggered as behavior feedback, and adjust the weight of the group or split and reorganize the original group according to the feedback result, group the elements of the GUI, and build a reasonable granularity In the testing process, through collecting feedback and heuristic process, the UI model is dynamically adjusted to solve the problem of state explosion in the testing process, and the coverage rate of automated testing is improved within a limited time.

Description

technical field [0001] The invention relates to the field of mobile application testing, in particular to an automatic testing method based on a dynamic UI model. Background technique [0002] The Android system has become the mobile terminal system with the highest market share. At the same time, the number of Android applications has also exploded. In 2017, the number of applications on Google Play has reached 3.3 million. In order to ensure the quality of Android applications, GUI testing of Android applications has become a current research hotspot. There are also great difficulties in the testing work. In order to provide rich functions and good user experience, the user interface of Android applications becomes more and more complicated, which brings new challenges to the testing of Android applications. In practice, testers need to write test scripts (use cases) to test GUI functions, but the workload is time-consuming and laborious, and when the application is upda...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688G06F11/3692
Inventor 曹春葛红军余萍马晓星
Owner NANJING UNIV