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

Probability finite-state machine variation test case generation method

A finite state machine, mutation testing technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve the problem of not providing a method for generating test cases for migration loss variants, and not providing auxiliary test tools for correctness and effectiveness Sex, time and other issues

Active Publication Date: 2020-11-13
GUANGXI TEACHERS EDUCATION UNIV
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The shortcomings of this method are: (1) Due to the huge number of PFSM variants, it is time-consuming to solve the test sequence after determining whether each variant is equivalent to the original PFSM one by one; (2) It cannot be determined by the output sequence of the test The cause and location of the variant
In addition, the literature [16, 17] did not provide methods for generating other variant test cases such as migration loss, changing input and changing output, and did not provide relevant auxiliary testing tools to verify the correctness and accuracy of the proposed method through experiments. effectiveness

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
  • Probability finite-state machine variation test case generation method
  • Probability finite-state machine variation test case generation method
  • Probability finite-state machine variation test case generation method

Examples

Experimental program
Comparison scheme
Effect test

experiment example

[0224] The following three experiments are carried out in the following computer environment: hardware environment i5-2.4G PC, 4G memory; software environment Win7+VC.

[0225] Experiment 1

[0226] consider as figure 1 PFSM variant test case. Select all variants of the PFSM based on changing the initial state (ISC), all variants based on increasing input (IE) and all variants based on increasing output (OE); at the same time, respectively, in 10 4 - 1 variant based on changing transfer target state (TSC), 1022 based on changing transfer loss (TL), 1022 based on changing input (IC), 1022 based on changing output (OC) Each randomly selects 100 variants as test objects in 1022 variants based on the probability of change (PC), investigates and utilizes the given method of the present invention to kill the variant number, generates test cases and kills the variants required time.

[0227] like Figure 8 Situations where mutants operating for various mutations are killed. Amo...

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 probability finite state machine variation test case generation method, which comprises the steps of defining a PFSM original state machine, and obtaining a test case set ofthe PFSM original state machine; defining a plurality of mutation operations and corresponding variants; wherein the mutation operation at least comprises probability change and migration target statechange; selecting test cases capable of killing strain allogeneities from the test case set of the PFSM original state machine by utilizing a hypothesis testing method, and generating a new test caseset for killing variants. The test case obtained by the method provided by the invention can effectively kill the variants, and the variation sufficiency is high; Meanwhile, whether each variant is equivalent to the original PFSM or not does not need to be judged, so that the test time is short.

Description

technical field [0001] The invention relates to the technical field of software testing, and more specifically, the invention relates to a method for generating a variation test case of a probabilistic finite state machine. Background technique [0002] Finite state machine is a formal specification description tool for describing software requirements, which has the advantages of accuracy, derivability and verifiability. Therefore, testing based on finite state machines, especially its test case generation technology, has been extensively studied [0003] . Domestic scholars have also carried out in-depth research on this aspect, Zhang Yong [2] proposed an improved method of Wp method, using this method can generate a relatively small number of test input sequences when the number of finite machine states is large. As a defect-oriented software testing technique, mutation testing has been widely used [3] . [0004] Probabilistic finite state machines are a generalizati...

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/3684G06F11/3688
Inventor 陆建波廖伟志李松钊
Owner GUANGXI TEACHERS EDUCATION 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