Test case construction method, test method, equipment and storage medium

A technology of test cases and storage media, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as heavy workload of software source code testing methods, improve development efficiency, reduce repetitive work, and ensure The effect of substitutability

Pending Publication Date: 2020-08-04
HEXING ELECTRICAL +2
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the technical problem of heavy workload in the software source code testing method in the prior art, the present invention provides a test case construction method, testing method, equipment and storage medium

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
  • Test case construction method, test method, equipment and storage medium
  • Test case construction method, test method, equipment and storage medium
  • Test case construction method, test method, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] This embodiment proposes a test case construction method, such as figure 1 shown, including:

[0028] S101. Configure a corresponding first file descriptor and a corresponding first parameter for more than one first storage address in the first storage medium in the first Excel table;

[0029] S102. According to the functional module requirements, use python to extract the first file descriptor in the first Excel table and the corresponding first parameter and save it as a test case in .json format;

[0030] S103. Mount the test case on the automated test software.

[0031] The first storage medium is Eprom, Flash or Ram; the corresponding hardware processing device may be a single-chip microcomputer, FPGA, DSP and the like. In the test case construction method described in this embodiment, the first file descriptor is configured for the corresponding first storage medium through the pre-allocation mechanism, avoiding manual management of the file management hardware ...

Embodiment 2

[0033] This embodiment proposes a test case construction method, which is further improved on the basis of Embodiment 1. In the first Excel table, configure the corresponding first file description for more than one first storage address in the first storage medium character and the corresponding first parameter, further:

[0034] configuring the first storage area for more than one first storage address in the first storage medium in the first Excel table;

[0035] The first column on the first Sheet page corresponding to the first storage area is configured to store the first file descriptor, and the 2nd to N1 columns on the first Sheet page are configured to store the first file descriptor More than one first parameter; wherein, N1≥2, N1 is an integer; in specific applications, N1 can take values ​​such as 2, 3, 4, 5, 6, etc., according to the first corresponding to the corresponding first file descriptor depends on the number of parameters. .

Embodiment 3

[0037] This embodiment proposes a test case construction method, which is further improved on the basis of Embodiment 1 or 2, the first parameter includes the data length indicated by the first file descriptor, the number of similar items in the first file descriptor, Whether the first file descriptor is read and written to the first storage address is checked; the data pointed to by the first file descriptor is notified.

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 test case construction method, a test method, equipment and a storage medium, and belongs to the technical field of software testing. The method comprises the following stepsof configuring a corresponding first file descriptor and a corresponding first parameter for more than one first storage address in the first storage medium in a first Excel table; extracting a firstfile descriptor in the first Excel table and a first parameter corresponding to the first file descriptor by adopting python according to functional module requirements, and storing the first file descriptor and the first parameter as test cases in a. Json format; and mounting the test case on automatic test software. To resolve the technical problem of large workload of a software source code test method in the prior art, test data can be effectively controlled, module functions are convenient to increase and decrease, the flexibility is high, the expansibility is good, and complex unit test conditions can be dealt with.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a test case construction method, testing method, equipment and storage medium. Background technique [0002] For software design in application fields such as smart meters, component modules are divided according to the principle of control inversion and the principle of opening and closing. Components use the idea of ​​object-oriented interface to develop, maintain, and optimize CBB (common building blocks) of each functional module, and establish a CBB framework; at the same time, based on makefile, a set of automatic construction tools that support multiple compilers and platforms is developed to facilitate CBB packaging and sharing and assemble. The unit test code can ensure that the product can maintain high quality while iterating quickly. The core of the traditional unity C test framework is composed of 3 files, a single .c file and 2 .h header files. The test c...

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 HEXING ELECTRICAL
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