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

Method and device for generating test cases used for software module testing

A technology of test cases and software modules, applied in the direction of software testing/debugging, can solve the problem of high cost, achieve the effect of quality assurance, improve effectiveness, and reduce test cost

Active Publication Date: 2013-04-17
CHINA CONSTRUCTION BANK
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, using this method to test, although higher quality can be obtained, its relative cost is very high

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
  • Method and device for generating test cases used for software module testing
  • Method and device for generating test cases used for software module testing
  • Method and device for generating test cases used for software module testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0023] see figure 1 , which illustrates Embodiment 1 of a test case generation method for software module testing of the present invention. According to various embodiments of the present invention, the test case includes a positive example and a negative example, the positive example refers to a test case that takes a value according to a predetermined correct value and obtains an expected logical result, and the negative example refers to a test case that does not follow the established correct value A test case where the correct value is taken and the expected error result is obtained.

[0024] In embodiment 1, the test case generation method for software module testing comprises:

[0025] Step S101, dividing the input field into fields of different levels according to the attributes of the input field of the software module;

[0026] Step S102, analyzing and obtaining values ​​for fields of different levels;

[0027] Step S103, filling the value into an executable test ...

Embodiment 2

[0036] see figure 2 , which illustrates Embodiment 2 of a test case generation method for software module testing of the present invention.

[0037] In embodiment 1, the test case generation method for software module testing comprises:

[0038] Step S201, sorting out the input fields of the software module, as shown in Table 1, the software module has 7 input fields, which are briefly represented as F1-F7.

[0039] Table 1:

[0040] F1

F2

F3

F4

F5

F6

F7

[0041] Step S202, analyzing the input fields and dividing the field levels, specifically, obtaining the attributes of the input fields, and dividing the input fields into key fields, main fields, auxiliary fields and Associated field.

[0042] For example, through hierarchical analysis, the input fields of this software module are distributed as follows:

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 method and a device for generating test cases used for software module testing. The method includes following steps: dividing input fields into fields of different levels according to attributes of the input fields of a software module; analyzing and valuing the fields of the different levels; and filling values into an executable test case list to generate executable test cases. By dividing the software module into the different levels and analyzing and valuing according to the different levels, integrity of cases is guaranteed while effectiveness of the cases is improved, so that quality is guaranteed while test cost is greatly lowered.

Description

technical field [0001] The invention relates to computer software testing technology, more specifically, to a test case generation method and device for software module testing. Background technique [0002] In the process of software development, in order to ensure the quality of development, testing is an indispensable means, and the main object of testing work is the test case. The current analysis methods of test cases are divided into two types: white box test and black box test. Among them, white box testing is also called structural testing, transparent box testing, logic-driven testing or code-based testing. It is a test case design method. The box refers to the software to be tested. Visually, it is clear what is inside the box and how it works; black-box testing is also called functional testing, which uses testing to detect whether each function can be used normally. In testing, the program is regarded as a program that cannot be opened. Black box, without consid...

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
Inventor 秦旭峰林志农戚桂凤黄萍田人龙宋杰杨毅
Owner CHINA CONSTRUCTION BANK