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

Unit testing method and device, medium and electronic equipment

A unit test and sub-unit technology, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc., can solve problems such as waste of resources, a large amount of manpower, and waste of manpower

Pending Publication Date: 2021-02-19
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The traditional unit test is coded separately according to each method, so that for each class, it is necessary to construct the input parameters, and when verifying the test results, it is also necessary to construct the test results, so that when writing unit tests It requires a lot of manpower. When there is a change in the data structure, a large number of unit test input parameters need to be modified, which will cause a waste of manpower, and it is also prone to omissions. Repeated modifications will lead to waste of development resources and low efficiency. Development costs remain 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
  • Unit testing method and device, medium and electronic equipment
  • Unit testing method and device, medium and electronic equipment
  • Unit testing method and device, medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

[0030] Furthermore, the drawings are merely schematic illustrations of the application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically se...

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 relates to the field of software function testing, and discloses a unit testing method and device, a medium and electronic equipment. The method comprises steps that a data model is established, the logic structure of the data model corresponds to the incidence relation between methods in a service logic code to be tested, and the data model comprises input parameter data corresponding to parameters of the methods in the service logic code, wherein the data model is used for transmitting input parameter data to a unit test code when the service logic code is subjected to the unittest; and inputted parameter data provided by the data model is obtained, and the input parameter data are taken as an input parameter to transmit a written unit test code so as to carry out unit test on the business logic code. According to the method, parameter data construction does not need to be carried out for each class or method when unit testing is carried out, so development and testingcost is reduced, and efficiency is improved.

Description

technical field [0001] The present application relates to the technical field of software function testing, in particular to a unit testing method, device, medium and electronic equipment. Background technique [0002] Unit testing is an important method of developing code to check the impact of changes to the code. To avoid the new logic affecting the original functions without the developers knowing, it will cause defects in the test environment and even cause production accidents. Unit testing is to verify whether the logic of each method in the system is carried out according to the design plan. The unit test of a system is completely covered. When there is a new change, the developer will execute all the unit tests after completing the development and unit testing. If there is a problem, it means that the original function caused by this modification is not available. use. An efficient unit test can improve development quality assurance. [0003] The traditional uni...

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/3688
Inventor 黑晓群
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD