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

Web application test case generation method based on user interface state flow graph

A test case generation and user interface technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve the problems of low test efficiency, repeated searches of the same sub-path, high cost of Web application testing, etc., and achieve scale reduction , The effect of reducing the cost of testing

Active Publication Date: 2018-08-28
SOUTHEAST UNIV
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the process of searching the SFG graph by DFS, it is often easy to fall into repeated searches for the same sub-path, and the generated set of test cases for web applications is generally large, resulting in high cost and low test efficiency for web applications

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
  • Web application test case generation method based on user interface state flow graph
  • Web application test case generation method based on user interface state flow graph
  • Web application test case generation method based on user interface state flow graph

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0041] In this embodiment, a depth-first dynamic search technique is used to generate a user interface state flow graph (SFG) as a Web application test model, and a test case is generated by reversely traversing the SFG graph. A complete path in the SFG graph corresponds to a test case of the Web application. The implementation steps are as follows:

[0042] 1. Generate SFG diagram

[0043] 1) Initially load the entry address of the web application to generate the initial state index of SFG;

[0044] 2) Analyze the DOM elements related to the clickable event in the index object, and extract the clickable event set {e 1 ,e 5}, select one of the unclicked events e 1 , simulating its triggering, generating a new state s 1 , update the SFG graph;

[0045] 3) Use the depth-first strategy to dynamically search for new states, update the SFG graph, and backtrack until there are no clickable events in the current state. as from s 1 Departure choose e 2 Simulate trigger, genera...

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 web application test case generation method based on a user interface state flow graph. The method includes: using the dynamic searching technology to generate the user interface state flow graph (SFG) to serve as a Web application test model, and performing reverse depth-first traversal on the SFG starting from a final-state node to obtain event sequence on a complete path from an initial-state node to the final-state node so as to generate Web application test cases, wherein visiting nodes are marked during the reverse traversal of the SFG, and the shortest paths from the initial nodes to the marked nodes are used to replace depth traversal during subsequent test case generation. By the method, test case set scale can be reduced under the premise that SFG edge coverage is guaranteed, Web application testing cost is lowered, and Web application testing efficiency is increased.

Description

technical field [0001] The invention belongs to the field of software analysis and testing in software engineering, and in particular relates to a method for generating Web application test cases based on user interface state flow diagrams. Background technique [0002] With the popularization of network technology and the continuous increase of practical application requirements, the development and use of Web applications are becoming more and more extensive. The ensuing quality problems of Web applications have an important impact on people's production and life, especially in e-commerce, information management and other application fields, sometimes the quality problems of Web applications will bring immeasurable losses to people. Web application testing is an important means of software quality assurance, and how to effectively generate test cases for web applications is a key technology in the research of web application testing. According to different ways of generat...

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
CPCG06F11/3684
Inventor 戚晓芳化云龙
Owner SOUTHEAST UNIV
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