Single-test assertion program configuration method, device, equipment and storage medium

A configuration method and a configuration device technology, applied in the field of financial technology, can solve problems such as bloated assertion test codes and difficult maintenance and reading of assertion codes

Active Publication Date: 2019-11-08
WEBANK (CHINA)
View PDF24 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of the present invention is to propose a configuration method, device, device and computer-readable storage medium for a single-test ass

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
  • Single-test assertion program configuration method, device, equipment and storage medium
  • Single-test assertion program configuration method, device, equipment and storage medium
  • Single-test assertion program configuration method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0056] Such as figure 1 as shown, figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present invention.

[0057] The device for configuring the single-test assertion program in the embodiment of the present invention may be a PC or a server device on which a Java virtual machine runs.

[0058] Such as figure 1 As shown, the device for configuring the single-test assertion program may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a key...

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 single-test assertion program configuration method, a device, equipment and a storage medium. The method comprises the steps of receiving a current unit test module and a configuration file input by a user; determining a target data expression according to a target class name in the configuration file, and obtaining to-be-asserted object data in a database through the target data expression; and obtaining a to-be-executed asserted statement in the configuration file, calling a corresponding grammar executor to assert the to-be-asserted object data, and outputting an asserted execution result corresponding to the to-be-asserted object data. According to the method, the assertion statement is separated from the unit test module, and the assertion program is flexiblyconfigured through the configuration file registered by the annotation statement, so that the writing efficiency of the assertion code is improved, repeated writing of the assertion statement is avoided, the assertion code content is simplified, and the readability and maintainability of the assertion test code are improved.

Description

technical field [0001] The present invention relates to the technical field of financial technology (Fintech), in particular to a configuration method, device, equipment and computer-readable storage medium of a single-test assertion program. Background technique [0002] With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) The industry's security and real-time requirements also put forward higher requirements for technology. For the bank's business system, to assert the expected result through the unit test, it is necessary to first write the data access layer code to obtain the database data through the access layer code, and then write the assertion code. Therefore, the test code contains data of various business scenarios, resulting in bloated assertion code, which is difficult to maintain and read. Contents of the invention [0003] The main purpose of the present invention is to p...

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
IPC IPC(8): G06F8/41G06F11/36
CPCG06F8/42G06F8/443G06F11/3688Y02D10/00
Inventor 朱凯江旻
Owner WEBANK (CHINA)
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