Automatic generation method of interactive test case

An interactive testing and automatic generation technology, applied in software testing/debugging, user interface execution, error detection/correction, etc., can solve problems such as increased labor input and omission, and achieve fast results

Active Publication Date: 2021-03-16
SOUTH CHINA UNIV OF TECH
View PDF8 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

By manually coding test cases, it not only needs ...

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 generation method of interactive test case
  • Automatic generation method of interactive test case
  • Automatic generation method of interactive test case

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0030] When the automatic generation algorithm of software test cases based on manifold optimization solves the ATCG-PC problem, it first needs to obtain the coding space M of the test cases, and then obtain the test cases satisfying the constraints through manifold optimization. This embodiment provides a method for automatically generating test cases related to user interaction, which realizes the automatic generation of test cases for modern applications using manifold optimization software, and improves the efficiency of obtaining the coding space M of test cases.

[0031] Such as figure 1 As shown, the method automatically generates test cases related to user click interaction by traversing the clickable views in the application UI interface, including the following steps:

[0032] T1. Traversing all clickable views in the application UI interface to obtain the traversal results, the process is as follows:

[0033] When the UI interface of the application is displayed, b...

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 a method for automatically generating an interactive test case, and the method comprises the following steps: after a UI of an application program is displayed, traversing allviews in a view tree corresponding to the UI of the application program, and recording paths of clickable views in the view tree to obtain a set of path information of all the clickable views in the view tree in the UI; generating a corresponding test case for each path information in the set: in the test case, according to the path information of the to-be-tested view in the view tree, searchingthe view in a UI (User Interface) of the application program, and triggering a click event of the view, thereby finishing a click interaction test on the view. According to the method, strict requirements for the type and the running environment of the application program are avoided, only the UI layout of the application program needs to meet the structure of the view tree, each view has the corresponding attribute which can be used for inquiring whether the view can respond to the click event or not, and the test case related to the click event of the user can be automatically generated through the method.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to an automatic generation method of interactive test cases. Background technique [0002] Generating test cases is the basis of software testing. The diversity, large scale and complexity of test case coding space will cause high computational cost for test case generation and affect test efficiency. When the automatic generation algorithm of software test cases based on manifold optimization solves the ATCG-PC problem, it first needs to obtain the coding space M of the test cases, and then obtain the test cases satisfying the constraints through manifold optimization. When using the automatic generation algorithm of test cases based on manifold optimization software for modern applications, due to the diversity of user interaction methods and the complexity of user interaction interfaces, how to effectively obtain the coding space M of test cases is an engineering need. ...

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/36G06F9/451
CPCG06F11/3684G06F9/451Y02D10/00
Inventor 黄翰曹捷叶垒刘方青
Owner SOUTH CHINA UNIV OF TECH
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