Method for quickly generating database operation codes in automatic testing

A technology for automated testing and manipulation code, which is applied in the field of rapid generation of database manipulation codes in automated testing, which can solve the problems of reduced automated test coding and management efficiency, increased code development costs for testers, and increased maintenance costs, so as to improve readability. Effect

Pending Publication Date: 2021-06-04
重庆富民银行股份有限公司
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the SQL statements used for database operations in this way are mainly embedded in the function code, the SQL statements for specific database operations will be coupled with the exposed database access, and the modification may be due to the modification of an SQL statement. The logic of the method that leads to database access should also be modified together
That is to say, the SQL statement and the operation object are not separated, which increases the difficulty of later maintenance of the interface automation test code and increases the maintenance cost
In addition, if the interface automation test code involves many interfaces, the test business project not only needs to operate a large number of database tables, but also requires the tester to write the database access and operation code, which increases the code development cost of the tester and leads to Automated test coding and management efficiency is greatly reduced

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 for quickly generating database operation codes in automatic testing
  • Method for quickly generating database operation codes in automatic testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0041] In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present invention and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.

[0042] The following is further described in detail through specific implementation methods:

[0043] The present invention provides a method for quickly generating database operation codes in automated testing. The method for quickly generating database operation codes in automated testing includes:

[0044] By rewriting the CommentGenerator base class and PluginAdaper base class of the MyBatis framework, quickly generate codes for accessing database data that need to be used in writing bank interface automation test codes; implement operatio...

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 for quickly generating database operation codes in automatic testing, belongs to the technical field of computer program development, and aims to solve the problems of high code development cost and difficulty in later maintenance in bank interface automatic testing. The method comprises the following steps of: configuring an operation configuration mapping file code, a data access object file code and a data object file code of a data operation object and a database operation based on a MyBatis framework to generate a configuration file; in the configuration file, generating a code annotation of a data access object file code and a code annotation of a data object file code, and storing the operation configuration mapping file code, the data access object file code and the data object file code in different directories; according to the configuration file, database operation codes are generated, and the database operation codes comprise operation configuration mapping file codes, data access object file codes and data object file codes.

Description

technical field [0001] The invention relates to the technical field of computer program development, in particular to a method for rapidly generating database operation codes in automated testing. Background technique [0002] In the interface automation testing of traditional banks, for database access operations, testers mainly rely on testers to manually write functional codes, and then refer to the codes written by testers in specific interface test codes. Since the SQL statements used for database operations in this way are mainly embedded in the function code, the SQL statements for specific database operations will be coupled with the exposed database access, and the modification may be due to the modification of an SQL statement. The logic of the methods that lead to database access should also be modified. That is to say, the SQL statement and the operation object are not separated, which increases the difficulty of later maintenance of the interface automation tes...

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/36G06F16/242
CPCG06F11/3684G06F11/3688G06F16/2433
Inventor 肖时德杨斌
Owner 重庆富民银行股份有限公司
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