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

Unit test case generation method and device, equipment, medium and program product

A test case and unit test technology, applied in the financial field, can solve problems such as increasing engineering complexity and maintainability, reducing the effectiveness of development code quality protection, etc., to achieve the effect of maintenance quality and low engineering complexity

Pending Publication Date: 2022-07-01
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of implementing the disclosed concept, the inventors found at least the following problems in related technologies: the unit test case can only be generated after the developed source code is generated, which reduces the effectiveness of the unit test case in protecting the quality of the developed code; additionally generate mock code Documentation increases engineering complexity and maintainability

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 test case generation method and device, equipment, medium and program product
  • Unit test case generation method and device, equipment, medium and program product
  • Unit test case generation method and device, equipment, medium and program product

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for convenience of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It will be apparent, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

[0041] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. The terms "comprising", "comprising" and the like as used herein indicate the presence o...

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 unit test case generation method which can be applied to the financial field or other technical fields. The method comprises the steps of obtaining first data; partial fields in a preset case template are replaced with the first data, an initial test case is obtained, and the partial fields comprise fields with replacement marks; and executing the initial test case, and performing mock on the initial test case to generate a unit test case. The invention further provides a unit test case generation device and equipment, a storage medium and a program product.

Description

technical field [0001] The present disclosure relates to the financial field, and in particular, to a unit test case generation method, apparatus, device, medium and program product. Background technique [0002] In the existing technical solutions for automatic unit test case generation, unit test cases are mainly generated by relying on the developed source code. For example, according to the program of the test case to be generated, multiple program functions in the calling chain of the program are obtained, and the preset entry and exit functions are placed in the program functions; The call information of each program function is collected through the entry and exit functions; the test case of the program is generated according to the call information of each program function. Or, when unit testing mocks, additionally generate a mock code file that occupies memory, you need to rely on the source code of the class under test to obtain mock information, and generate a ph...

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/3684
Inventor 王永暨光耀连煜伟韩靖
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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