Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for generating state transition test cases

A state transition and transition testing technology, applied in software testing/debugging, etc., can solve problems such as missing state transition paths, inability to guarantee the integrity of test cases, randomness, etc., to reduce time, improve efficiency, and ensure integrity sexual effect

Active Publication Date: 2017-01-25
BEIJING RUNKE GENERAL TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a method and device for generating state transition test cases, which are used to solve the test cases designed by the exhaustive method in the prior art, which have greater randomness and may miss some states The conversion path cannot guarantee the integrity of the test case. The technical solution is as follows:

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
  • A method and device for generating state transition test cases
  • A method and device for generating state transition test cases
  • A method and device for generating state transition test cases

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0056] see figure 1 , which is a schematic flowchart of a method for generating a state transition test case provided by an embodiment of the present invention, the method may include:

[0057] Step S101: Generate a state transition table.

[0058] Wherein, the state transition table includes various states existing in the system and state transition information, and the state transition information is used to indicate whether transition between states is pos...

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 provides a method and a device for generating state conversion test samples. The method comprises the following steps that a state conversion table including each state of the system and the state conversion information is generated, and the state conversion information is used for indicating that whether conversion can be carried out between the states or not; an N-Switch state conversion tree is generated according to the state conversion table, and in addition, a valid state conversion test path is generated according to the N-Switch state conversion tree; an invalid state conversion test path is generated according to the state conversion table; a state conversion test sample set is generated according to the valid state conversion test path and the invalid state conversion test path. The method and the device provided by the invention have the advantages that all of the states of the system and the conversion relationship between the states can be covered, so the sufficiency of the test samples can be ensured, in addition, the certainty and the uniqueness of the generated state conversion test sample set can be ensured, and the condition that test samples designed by different people are different can be avoided.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a method and device for generating state transition test cases. Background technique [0002] In software testing, when the object under test has multiple states, there is a certain logical transition relationship between each state, and the transition between states is triggered by events or generated by some actions. In order to fully verify events and actions , the relationship between states and state transitions, and whether the system can respond correctly to input events requires certain methods and techniques to design test cases. [0003] The simplest and most direct method used in the prior art is to use exhaustive method to list possible state transition scenarios in the system according to the requirements and design of the system, and form corresponding test cases. In the process of realizing the invention, the inventor found that: the test cases designed b...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 殷红珍陈义林
Owner BEIJING RUNKE GENERAL TECH