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

An extended finite state machine test data generation method based on variable partition

A finite state machine and test data technology, which is applied in the fields of electrical digital data processing, software testing/debugging, genetic rules, etc., can solve the problems of increasing the probability of multiple backtracking, difficulty in generating effective test data, and increasing time overhead, etc., to achieve Improve generation efficiency, evolutionary algebra, less running time, and high success rate

Active Publication Date: 2019-03-29
BEIHANG UNIV
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1) When solving combinatorial optimization problems, the complexity of the algorithm is proportional to the size of the problem. For the generation of test data, when the number of input variables is large, the time spent on searching will increase significantly, even within a limited time Difficulty generating valid test data
[0006] 2) When using the heuristic method to solve the value of the input variable that satisfies the constraint condition, the value of all input variables will be changed at the same time to make the cost function approach the correct direction, because only one constraint condition is considered at a time, so the solution that satisfies the constraint condition After the variable value of the condition, it is necessary to search for the variable value that satisfies the next constraint condition on the basis of the current variable value. If some variables do not meet the next condition, the value of all variables will be changed to search again. This search process will lead to another Some variables that satisfy all the constraints no longer satisfy, increasing the probability of multiple backtracking

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 extended finite state machine test data generation method based on variable partition
  • An extended finite state machine test data generation method based on variable partition
  • An extended finite state machine test data generation method based on variable partition

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in combination with specific implementation cases and with reference to the accompanying drawings. The following examples are only used to illustrate the technical solutions of the present invention more clearly, but not to limit the protection scope of the present invention.

[0032] The overall implementation flow chart of the present invention is as figure 1 As shown, the test data generation method includes the following steps:

[0033] Step 1) Convert the software program to be tested into an EFSM model in the computer, and generate a test path candidate set by means of graph traversal.

[0034] Step 2) For the test path candidate set in step 1), preprocess the test path candidate set, use different symbols to represent the variables with the same name in different migration input variable tables, and then...

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 extended finite state machine test data generation method based on variable division, and belongs to the technical field of software test, in particular to the technical field of model-based test. In the test based on extended finite state machine, how to improve the searching efficiency of the algorithm is a key problem in obtaining test data by heuristic method. The invention provides a method for automatically dividing independent input variables in a test path on the basis of a genetic algorithm. This method is characterized by in-depth analysis of variables andvariables in the model, The relationship between a variable and a predicate condition, determining an independent input variable that does not affect the predicate condition in the subpath and its initial partition migration, At the same time, a dynamic executable model framework is developed to provide the information feedback needed by the algorithm, and then the segmented input variables are gradually separated from the individual in the search process of genetic algorithm to achieve the automatic reduction of search space, quickly generate test data of the target test path, and improve theefficiency of test data generation.

Description

technical field [0001] The invention belongs to the technical field of software testing, and in particular relates to the technical field of model-based testing, which is used to determine and segment irrelevant input variables in the generation of extended finite state machine test data. Specifically, it refers to an extended method based on variable segmentation. Finite state machine test data generation method. Background technique [0002] Software testing plays a key role in ensuring software quality. A model is an abstract description of a software system. Model-Based Testing (MBT) uses a formal method to determine where software errors lie, thereby ensuring the correctness and reliability of the software to be tested. Because MBT is not aimed at a certain program code itself, it is widely used in product testing in the early stages of software life cycle, especially suitable for the early evaluation of safety-related systems such as aerospace software. It is one of t...

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/36G06N3/12
CPCG06F11/3688G06N3/126
Inventor 潘雄郝帅苑政国张春熹代琪王磊
Owner BEIHANG 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