CN115563011A - Bank application system testing method and device based on log - Google Patents

Bank application system testing method and device based on log Download PDF

Info

Publication number
CN115563011A
CN115563011A CN202211330251.7A CN202211330251A CN115563011A CN 115563011 A CN115563011 A CN 115563011A CN 202211330251 A CN202211330251 A CN 202211330251A CN 115563011 A CN115563011 A CN 115563011A
Authority
CN
China
Prior art keywords
interface request
application system
bank application
production environment
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211330251.7A
Other languages
Chinese (zh)
Inventor
黄实
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202211330251.7A priority Critical patent/CN115563011A/en
Publication of CN115563011A publication Critical patent/CN115563011A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for testing a bank application system based on logs, which relate to the technical field of financial processing, wherein the method comprises the following steps: acquiring a transaction log of a first bank application system which is operated in a production environment; extracting an interface request under the production environment from the transaction log; testing a second bank application system in the test environment according to the interface request in the production environment; the second bank application system is a system which requests the interactive relation with the first bank application system through an interface, and the second bank application system is a bank application system to be tested. The invention can extract the interface request under the production environment, playback the interface request under the test environment and test the bank application system to be tested, thereby ensuring that the bank application system can pass the verification of the request message of the production environment before being deployed to the production environment and ensuring that the bank application system can normally provide service to the outside after being on line.

Description

Bank application system testing method and device based on log
Technical Field
The invention relates to the technical field of financial processing, in particular to a method and a device for testing a bank application system based on logs.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, before the bank system is put into production, a test system can be fully tested, but the condition limitation cannot guarantee that the interface request of the production environment is correctly identified and returned by the system after the system is deployed in the production environment. Normally, the system cannot be tested in a production environment, and therefore, it cannot be guaranteed that the system can normally provide services to the outside after being on line.
Disclosure of Invention
The embodiment of the invention provides a log-based method for testing a bank application system, which is used for extracting an interface request in a production environment, replaying the interface request in the test environment and testing the bank application system to be tested, so that the bank application system can be ensured to pass the verification of a production environment request message before being deployed in the production environment, and the bank application system can be ensured to normally provide service to the outside after being on line, and the method comprises the following steps:
acquiring a transaction log of a first bank application system which is operated in a production environment;
extracting an interface request under a production environment from the transaction log;
testing a second bank application system in the test environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relation through an interface.
The embodiment of the invention also provides a log-based bank application system testing device, which is used for extracting the interface request in the production environment, replaying the interface request in the testing environment and testing the bank application system to be tested, thereby ensuring that the bank application system can pass the verification of the production environment request message before being deployed in the production environment and ensuring that the bank application system can normally provide service to the outside after being on line, and the device comprises:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a transaction log of a first bank application system which operates in a production environment;
the extraction unit is used for extracting an interface request under a production environment from the transaction log;
the testing unit is used for testing a second bank application system in a testing environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relationship through an interface.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the bank application system testing method based on the log when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the method for testing the bank application system based on the log is realized.
The embodiment of the invention also provides a computer program product, which comprises a computer program, and when the computer program is executed by a processor, the journal-based bank application system testing method is realized.
In the embodiment of the invention, the journal-based bank application system test scheme is implemented by the following steps: acquiring a transaction log of a first bank application system which is operated in a production environment; extracting an interface request under a production environment from the transaction log; testing a second bank application system in the test environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relationship through an interface. The invention can extract the interface request under the production environment, play back the interface request under the test environment, and test the bank application system to be tested, thereby ensuring that the bank application system can pass the verification of the production environment request message before being deployed in the production environment, and ensuring that the bank application system can normally provide service to the outside after being on line.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a schematic flow chart of a method for testing a bank application system based on a log according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for testing a journal-based banking application system according to another embodiment of the present invention;
FIG. 3 is a flow chart illustrating a data preprocessing operation for facilitating subsequent testing of interface requests in a production environment according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating testing a second bank application system in a testing environment according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the testing of a journal-based banking application system in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a testing apparatus for a bank application system based on a log according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
In order to enable interface requests on production to be sent to the test environment, one approach is to replicate production traffic by traffic replication, through router or load configuration, to a share of the traffic flow to the test environment; or an http sniffer is used to record an http request of a certain port and then replay according to the recorded content.
Both the traffic replication and sniffer logging methods require software or hardware modifications to existing systems that are not friendly to systems already operating in a production environment. Meanwhile, desensitization operation cannot be performed on sensitive information in the production flow, and potential safety hazards can be caused.
In order to solve the above problems, an embodiment of the present invention provides a journal-based testing scheme for a bank application system, where the scheme is designed to satisfy the following points:
1. the log is used as an input data source, the influence on the existing application is minimal, and the log can be accessed without modification.
2. And extracting the interface related information in the log in a batch script mode, and generating a temporary file.
3. The data in the generated temporary file is further processed, such as data desensitization and removal of signature or encryption information.
4. The processed data is exported to a file format supported by subsequent replay software for a subsequent system to carry out interface replay operation, and the exported file can be repeatedly used, so that subsequent verification work is facilitated.
The journal-based banking application system test scheme is described in detail below.
Fig. 1 is a schematic flow chart of a method for testing a bank application system based on a log in an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 101: acquiring a transaction log of a first bank application system which is operated in a production environment;
step 103: extracting an interface request under a production environment from the transaction log;
step 105: testing a second bank application system in the test environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relation through an interface, and the second bank application system is a bank application system to be tested.
The bank application system testing method based on the log provided by the embodiment of the invention is characterized by comprising the following steps: acquiring a transaction log of a first bank application system which is operated in a production environment; extracting an interface request under a production environment from the transaction log; testing a second bank application system in the test environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relationship through an interface. The invention can extract the interface request under the production environment, play back the interface request under the test environment, and test the bank application system to be tested, thereby ensuring that the bank application system can pass the verification of the production environment request message before being deployed in the production environment, and ensuring that the bank application system can normally provide service to the outside after being on line. The method for testing the bank application system based on the log is described in detail below.
In the above step 101, the first bank application system already running in the production environment may be a system that has interaction with the second bank application system, for example, a client system, a server system, or various financial product systems of a bank, etc.
In step 103, all request interface reports can be extracted by using shell commands such as grep.
The above-described steps 101 and 103 correspond to "input" in fig. 5.
In one embodiment, as shown in fig. 2, the method for testing a bank application system based on a log may further include step 104: performing data preprocessing operation convenient for subsequent testing on the interface request in the production environment to obtain the interface request in the production environment after data preprocessing;
subsequent step 105: according to the interface request in the production environment, testing a second bank application system in a testing environment may include: and testing the second bank application system in the test environment according to the interface request in the production environment after the data preprocessing.
In specific implementation, after the interface request in the production environment is subjected to data preprocessing operation convenient for subsequent testing, the second bank application system in the testing environment is tested, and the efficiency and accuracy of testing the bank application system to be tested can be improved.
In an embodiment, as shown in fig. 3, performing a data preprocessing operation for facilitating a subsequent test on the interface request in the production environment to obtain the interface request in the production environment after data preprocessing may include:
step 1041: performing directional replacement on data in a preset sensitive field in the interface request to obtain the interface request after data desensitization processing;
step 1042: directionally replacing data in a preset encryption field in the interface request subjected to data desensitization to obtain the interface request subjected to data desensitization and encryption information deletion;
step 1043: and directionally replacing data in a preset signature field in the interface request subjected to data desensitization processing and encrypted information deletion to obtain the interface request subjected to data desensitization processing, encrypted information deletion and signed information, and using the interface request as the interface request in the production environment subjected to data preprocessing.
In specific implementation, after data desensitization processing and data preprocessing operation of deleting encrypted information and signature information are performed on the interface request in the production environment, the second bank application system in the test environment is tested, and the efficiency and accuracy of testing the bank application system to be tested can be further improved.
The above steps 1041 to 1043 correspond to "processing" in fig. 5.
In an embodiment, after step 103, the method for testing a bank application system based on a log may further include: and processing the interface request extracted from the transaction log under the production environment into an interface request in a format convenient for subsequent testing.
In specific implementation, the interface request extracted from the transaction log under the production environment is processed into the interface request in a format convenient for subsequent testing, so that the efficiency and the accuracy of testing the application system of the bank to be tested can be improved.
In one embodiment, the interface request in the format for facilitating subsequent testing may be an interface request in json format.
In specific implementation, the interface request extracted from the transaction log under the production environment is processed into the interface request in the json format, so that the efficiency and the accuracy of testing the application system of the bank to be tested can be further improved.
The above-mentioned step of "processing the interface request extracted from the transaction log under the production environment into an interface request in a format convenient for subsequent testing" corresponds to "export" in fig. 5.
In an embodiment, as shown in fig. 4, testing the second bank application system in the testing environment according to the interface request in the production environment may include:
step 1051: importing the interface requests under the production environment into a postman tool, replaying the interface requests, and sending each interface request to a second bank application system; the second bank application system is a bank application system to be tested;
step 1052: and verifying the result fed back by the bank application system to be tested according to each interface request to obtain the test result of the bank application system to be tested.
In specific implementation, the interface requests in the production environment are imported into the postman tool, the interface requests are played back, and each interface request is sent to the second bank application system; the second bank application system is a bank application system to be tested, the result fed back by the bank application system to be tested according to each interface request is verified, the test result of the bank application system to be tested is obtained, and the efficiency and accuracy of testing the bank application system to be tested can be further improved.
To facilitate understanding of how to implement the detailed implementation of testing the second bank application system in the testing environment according to the interface request in the production environment in step 105, the interaction process through the interface request can be implemented by the following interaction of a) and b).
a) With respect to the http protocol
The Hypertext Transfer Protocol (HTTP) is a simple request-response Protocol that typically runs on top of TCP. It specifies what messages the client might send to the server and what responses get. The headers of the request and response messages are given in ASCII form; and the message content has a MIME-like format.
Typically, a request is initiated by the HTTP client to create a TCP connection to a specified port (80 ports by default) of the server. The HTTP server listens for the client's request at that port. Upon receiving the request, the server returns a status, such as "HTTP/1.1 200OK," to the client, along with the returned content, such as the requested file, an error message, or other information.
b) Functional testing of an interface
The functional test is to send an http request with a specific format to an application system through a specific test program (such as postman, or a browser, etc.), and determine whether the request is successful according to a response result of the http.
The above-described steps 1051 to 1052 correspond to "playback" in fig. 5.
To facilitate an understanding of how the present invention may be practiced, reference is now made to the following detailed description taken in conjunction with FIG. 5.
The embodiment of the invention provides a log-based testing scheme for a bank application system, which can copy real interface requests in production, play back the requests in a testing environment and ensure that the system can normally provide services to the outside after being online. The key information including interface calling in the log is a precondition which can be realized by the scheme, and under a general condition, the system can print the input of the external system in the log and output the external system by the system, so that problem analysis is conveniently carried out when a problem is found.
As shown in fig. 5, the whole log-based playback (system test) method comprises the following 4 steps:
1. inputting and preprocessing: and taking the transaction log as input, extracting the request information related to the interface, and exporting all request interface messages to a temporary file by using shell commands such as grep.
2. Processing the exported temporary file: extracting a json-format request report into a js object (interface request) by using a character string processing method in a js script, importing the json-format request report into a memory, and then sequentially finishing the following work:
a) And performing directional replacement on the data in the specific sensitive field in the js object according to the definition of the sensitive field to complete data desensitization.
b) And carrying out directional replacement on data in a specific encryption field in the js object according to the definition of the encryption field to finish the deletion of the encryption information.
c) And directionally replacing data in the specific signature field in the js object according to the definition of the signature field to finish the deletion of the signature information.
The above description and definition information about the sensitive field, the encrypted field and the signature field can be stored in a specific configuration file, and the js script is used to read the file to obtain the related information.
3. Derivation of data: serializing the processed js objects into character strings in json format, exporting the character strings into a file, and ensuring that the export format can be read by a subsequent replay tool, wherein the export format can be defined as json by taking a postman tool as an example.
4. Interface playback: the postman tool is used for writing a test script, and the following contents need to be written in the script:
a) And specifying test information such as ip and ports of the system to be tested.
b) The upload information is replaced by using the occupancy Fu Zhanwei for subsequent reading of the json file.
c) And writing assertion verification of the test result, namely what returned content represents that the test is successful.
When the test is started, the exported json file is imported into a postman tool, then the written test script is started to be executed, the script can initiate an interface request to a system to be tested, and the request content is the production message processed in the last step. The script sends all messages one by one, assertion verification is carried out on the test result returned by each test, and a test report is generated after the test for analysis of developers.
In summary, the embodiments of the present invention need to implement a method capable of replaying an interface request on a production system to a test environment system, and simultaneously need to satisfy the following points:
1. the influence on the existing production system is as small as possible.
2. Key information in the interface request can be extracted.
3. Certain processing, such as desensitization, is performed on the interface data.
4. And replaying the processed data to the designated test system.
In summary, the bank application system test scheme based on the log provided by the invention has the advantages that: the information required by interface playback can be obtained from the production system log, and the extracted information is played back and tested on the test system. Therefore, the system can be ensured to pass the verification of the production environment request message before being deployed to the production environment, and the production problem is avoided.
The embodiment of the invention also provides a device for testing the bank application system based on the log, which is described in the following embodiment. Because the principle of solving the problems of the device is similar to the journal-based bank application system test method, the implementation of the device can refer to the implementation of the journal-based bank application system test method, and repeated parts are not described again.
Fig. 6 is a schematic structural diagram of a testing apparatus for a bank application system based on a log in an embodiment of the present invention, as shown in fig. 6, the apparatus includes:
the acquisition unit 01 is used for acquiring a transaction log of a first bank application system which is operated in a production environment;
the extracting unit 03 is configured to extract an interface request in a production environment from the transaction log;
the testing unit 05 is used for testing the second bank application system in the testing environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relationship through an interface.
In one embodiment, the apparatus for testing a bank application system based on a log may further include:
the generating unit is used for generating the extracted interface request under the production environment into a temporary file;
the preprocessing unit is used for performing data preprocessing operation convenient for subsequent testing on the interface request in the production environment in the temporary file to obtain the interface request in the production environment after data preprocessing;
the test unit is specifically configured to: and testing the second bank application system in the test environment according to the interface request in the production environment after the data preprocessing.
In one embodiment, the preprocessing unit is specifically configured to:
carrying out directional replacement on data in a preset sensitive field in the interface request to obtain the interface request after data desensitization processing;
directionally replacing data in a preset encryption field in the interface request subjected to data desensitization to obtain the interface request subjected to data desensitization and encryption information deletion;
and directionally replacing data in a preset signature field in the interface request subjected to data desensitization processing and encrypted information deletion to obtain the interface request subjected to data desensitization processing, encrypted information deletion and signed information, and using the interface request as the interface request in the production environment subjected to data preprocessing.
In one embodiment, the apparatus for testing a bank application system based on a log may further include: and the format processing unit is used for processing the interface request extracted from the transaction log under the production environment into an interface request in a format convenient for subsequent testing.
In one embodiment, the interface request in the format for facilitating subsequent testing is an interface request in a json format.
In one embodiment, the test unit may be specifically configured to:
importing the interface requests under the production environment into a postman tool, replaying the interface requests, and sending each interface request to a second bank application system; the second bank application system is a bank application system to be tested;
and verifying the result fed back by the bank application system to be tested aiming at each interface request to obtain the test result of the bank application system to be tested.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the bank application system testing method based on the log when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the method for testing the bank application system based on the log is realized.
The embodiment of the invention also provides a computer program product, which comprises a computer program, and when the computer program is executed by a processor, the method for testing the bank application system based on the log is realized.
In the embodiment of the invention, the journal-based bank application system test scheme is implemented by the following steps: acquiring a transaction log of a first bank application system which is operated in a production environment; extracting an interface request under a production environment from the transaction log; testing a second bank application system in the test environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relationship through an interface. The invention can extract the interface request under the production environment, play back the interface request under the test environment, and test the bank application system to be tested, thereby ensuring that the bank application system can pass the verification of the production environment request message before being deployed in the production environment, and ensuring that the bank application system can normally provide service to the outside after being on line.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and should not be used to limit the scope of the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (15)

1. A bank application system testing method based on logs is characterized by comprising the following steps:
acquiring a transaction log of a first bank application system which is operated in a production environment;
extracting an interface request under a production environment from the transaction log;
testing a second bank application system in the test environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relationship through an interface.
2. The method of claim 1, further comprising: performing data preprocessing operation convenient for subsequent testing on the interface request in the production environment to obtain the interface request in the production environment after data preprocessing;
according to the interface request under the production environment, testing a second bank application system under a test environment, comprising: and testing the second bank application system in the test environment according to the interface request in the production environment after the data preprocessing.
3. The method of claim 2, wherein performing a data preprocessing operation on the interface request in the production environment to facilitate subsequent testing to obtain the interface request in the production environment after data preprocessing comprises:
performing directional replacement on data in a preset sensitive field in the interface request to obtain the interface request after data desensitization processing;
directionally replacing data in a preset encryption field in the interface request subjected to data desensitization to obtain the interface request subjected to data desensitization and encryption information deletion;
and directionally replacing data in a preset signature field in the interface request subjected to data desensitization processing and encrypted information deletion to obtain the interface request subjected to data desensitization processing, encrypted information deletion and signed information, and using the interface request as the interface request in the production environment subjected to data preprocessing.
4. The method of claim 1, further comprising: and processing the interface request extracted from the transaction log under the production environment into an interface request in a format convenient for subsequent testing.
5. The method of claim 4, wherein the interface request that facilitates subsequent test format is an interface request in json format.
6. The method of claim 1, wherein testing the second bank application system in the test environment according to the interface request in the production environment comprises:
importing the interface requests under the production environment into a postman tool, replaying the interface requests, and sending each interface request to a second bank application system; the second bank application system is a bank application system to be tested;
and verifying the result fed back by the bank application system to be tested according to each interface request to obtain the test result of the bank application system to be tested.
7. A kind of bank application system testing device based on journal, characterized by that, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a transaction log of a first bank application system which is operated in a production environment;
the extraction unit is used for extracting the interface request under the production environment from the transaction log;
the testing unit is used for testing the second bank application system in the testing environment according to the interface request in the production environment; the second bank application system is a system which requests the first bank application system to have an interactive relation through an interface.
8. The apparatus of claim 7, further comprising: the preprocessing unit is used for performing data preprocessing operation convenient for subsequent testing on the interface request in the production environment to obtain the interface request in the production environment after data preprocessing;
the test unit is specifically configured to: and testing the second bank application system in the test environment according to the interface request in the production environment after the data preprocessing.
9. The apparatus of claim 8, wherein the pre-processing unit is specifically configured to:
performing directional replacement on data in a preset sensitive field in the interface request to obtain the interface request after data desensitization processing;
directionally replacing data in a preset encryption field in the interface request subjected to data desensitization to obtain the interface request subjected to data desensitization and encryption information deletion;
and directionally replacing data in a preset signature field in the interface request subjected to data desensitization processing and encryption information deletion to obtain the interface request subjected to data desensitization processing, encryption information deletion and signature information, and using the interface request as the interface request in the production environment subjected to data preprocessing.
10. The apparatus of claim 7, further comprising: and the format processing unit is used for processing the interface request extracted from the transaction log under the production environment into an interface request in a format convenient for subsequent testing.
11. The apparatus of claim 10, wherein the interface request that facilitates subsequent test format is an interface request in json format.
12. The apparatus of claim 7, wherein the test unit is specifically configured to:
the interface requests under the production environment are led into a postman tool, the interface requests are played back, and each interface request is sent to a second bank application system; the second bank application system is a bank application system to be tested;
and verifying the result fed back by the bank application system to be tested according to each interface request to obtain the test result of the bank application system to be tested.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 6 when executing the computer program.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.
15. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 6.
CN202211330251.7A 2022-10-27 2022-10-27 Bank application system testing method and device based on log Pending CN115563011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211330251.7A CN115563011A (en) 2022-10-27 2022-10-27 Bank application system testing method and device based on log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211330251.7A CN115563011A (en) 2022-10-27 2022-10-27 Bank application system testing method and device based on log

Publications (1)

Publication Number Publication Date
CN115563011A true CN115563011A (en) 2023-01-03

Family

ID=84768499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211330251.7A Pending CN115563011A (en) 2022-10-27 2022-10-27 Bank application system testing method and device based on log

Country Status (1)

Country Link
CN (1) CN115563011A (en)

Similar Documents

Publication Publication Date Title
US10204035B1 (en) Systems, methods and devices for AI-driven automatic test generation
CN109271326B (en) Cloud database testing method and device, equipment and storage medium thereof
US10037255B2 (en) Device, method and program for performing system testing
US11354101B2 (en) Automation and orchestration platform for software development and deployment
CN112579437B (en) Method for verifying conformity in program running process
US9558097B2 (en) Automated recording and playback of application interactions
US11275570B1 (en) Automation and orchestration platform for software development and deployment
CN108228312A (en) The system and method that code is performed by interpreter
KR102160379B1 (en) Testing method for decentralized application based on blockchain and testing apparatus
CN115563011A (en) Bank application system testing method and device based on log
CN111949537A (en) Interface test method, device, equipment and medium
CN111124937A (en) Method and system for assisting in improving test case generation efficiency based on instrumentation function
CN115048299A (en) Application program testing method and device, storage medium and electronic equipment
CN111737090B (en) Log simulation method and device, computer equipment and storage medium
CN111786991B (en) Block chain-based platform authentication login method and related device
CN114138633A (en) Method, device and equipment for testing software based on data driving and readable medium
CN116212398B (en) Game management method, device, equipment and medium based on data center
CN117573197A (en) Offline verification method for consistency of source code and binary version
CN115730354A (en) Data integrity test method for database
CN116974569A (en) Method, system and device for acquiring script
CN114238327A (en) Data access method, device, equipment and storage medium of real-time data platform
CN117014152A (en) Method and device for testing activation link of industry card and electronic equipment
CN116302968A (en) Performance test method and device, electronic equipment and storage medium
CN115439220A (en) Operation playback method and device of bank product
CN117896372A (en) Sensitive file protection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination