minimum cost test case generation method based on an EFSM model

A test case generation, minimal technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as slow convergence and query speed, low optimal solution efficiency, complex test model, etc., to avoid combinatorial explosion problems, ensuring code coverage, and the effect of high test efficiency

Active Publication Date: 2019-04-05
HANGZHOU DIANZI UNIV
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, these heuristic and search algorithms still have certain limitations. For example, the test model converted from a million-level code software or tens of millions of test data is complex and huge. Using heuristic algorithms and search algorithms to converge and query speed Slow, resulting in inefficiency in obtaining the optimal solution, and the final test case set is small, but not necessarily the smallest
When these technologies are applied to software testing based on large and complex models, not only the test cost is high, the test efficiency is low, and good results cannot be guaranteed.

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
  • minimum cost test case generation method based on an EFSM model
  • minimum cost test case generation method based on an EFSM model
  • minimum cost test case generation method based on an EFSM model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The present invention is described below according to the accompanying drawings, and the example given is the EFSM model diagram that is simplified by a certain module of a UAV flight control system, as image 3 shown. This example is only used to explain the present invention, not to limit the scope of the present invention.

[0045] figure 1 Method flow diagram of the method for minimum-cost test case generation based on EFSM models; figure 2 for figure 1 The overall module block diagram of corresponding generation method; The overall flow chart of the present invention is as figure 1 As shown, the specific steps are as follows:

[0046] Step 1: Construct the initial scalable finite state machine model EFSM according to the program code, and use XML document storage, parse the XML document and store it in the corresponding data structure;

[0047] Step 2: Perform the migration coverage algorithm on the EFSM model to obtain a set of migration fragments;

[0048]...

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 relates to a minimum cost test case generation method based on an EFSM model. Based on an expansibility finite state machine and a set division theory, a migration coverage algorithm isdesigned, and a migration sequence set is obtained; And abstract models are given to different positions of the two migration sequences, analysis is carried out according to the abstract models, and then a reduction merging algorithm is designed to obtain a minimum test sequence set. Converting the minimum test sequence set to obtain an effective test path set, and finding out a shortest path froman initial state to a certain state by adopting reverse thinking in a conversion process; According to the method, the migration coverage criterion is met, invalid test paths and combination explosion problems can be avoided, the code coverage rate can be ensured, the number of the test paths in the set reaches the minimum, and the balance between the test cost and the test efficiency is ensured;The method is not only limited to an EFSM model, but also applicable to other models capable of being abstracted into directed graphs, and particularly remarkable in effect of solving a large complexnetwork graph.

Description

technical field [0001] The invention mainly relates to the field of software testing, in particular to a minimum-cost test case set generation method based on an extended finite state machine (EFSM) model. Background technique [0002] Software testing is an important means to discover errors in software and ensure software quality. At present, software testing is still a very expensive work in practical application, and it occupies a large part of the software development cost. Traditional testers manually design and run test cases, and check whether the output results are consistent with the expected results also need to be completed manually. With the continuous expansion of software scale and open source software code, software with hundreds of thousands and millions of lines of code appears more and more frequently. Relying on manual testing is not only extremely inefficient, but also costly and difficult to guarantee the quality of testing. Therefore, automation Soft...

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/3676G06F11/3684G06F11/3688
Inventor 王兴起陈孔婷张怀相陈滨方景龙魏丹
Owner HANGZHOU DIANZI UNIV
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