CN117291696A - Method and device for testing clearing system, electronic equipment and storage medium - Google Patents

Method and device for testing clearing system, electronic equipment and storage medium Download PDF

Info

Publication number
CN117291696A
CN117291696A CN202311257428.XA CN202311257428A CN117291696A CN 117291696 A CN117291696 A CN 117291696A CN 202311257428 A CN202311257428 A CN 202311257428A CN 117291696 A CN117291696 A CN 117291696A
Authority
CN
China
Prior art keywords
clearing system
test result
file
ignored
fields
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
CN202311257428.XA
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 CN202311257428.XA priority Critical patent/CN117291696A/en
Publication of CN117291696A publication Critical patent/CN117291696A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The method, the device, the electronic equipment and the storage medium for testing the clearing system can be used in the financial field, and the method comprises the steps of obtaining a first test result output by a target clearing system and a second test result output by an original clearing system; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields; determining a field to be ignored according to the detected function of the target clearing system; comparing the first test result with the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored; according to the comparison result, whether the target clearing system is abnormal and/or the cause of the abnormality is determined, and the efficiency and the accuracy of determining whether the target clearing system is abnormal and the cause of the abnormality can be improved.

Description

Method and device for testing clearing system, electronic equipment and storage medium
Technical Field
The present application relates to the financial field or other fields, and in particular, to a method, apparatus, electronic device, and storage medium for testing a clearing system.
Background
The system integrates functions of money exchange, checking, inquiring, checking and recovering, monitoring, accounting and the like, and mainly realizes the money and clearing among financial institutions and clients and the settlement and clearing of multiparty transactions in the financial market.
Currently, for the function verification of a clearing system, a manual verification method is generally adopted.
However, due to the functional diversity and complexity of the clearing system, it is difficult to quickly determine whether or not there is an abnormality in the clearing system and the cause of the abnormality in the process of testing the clearing system.
Disclosure of Invention
The application provides a clearing system testing method, device, electronic equipment and storage medium, which are used for solving the problem that whether an abnormality exists in a clearing system or not and the reason of the abnormality cannot be rapidly determined.
In a first aspect, an embodiment of the present application provides a method for testing a target clearing system, where the target clearing system is used to process a transaction request instead of an original clearing system, and the method includes:
Acquiring a first test result output by a target clearing system and a second test result output by an original clearing system; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields;
determining a field to be ignored according to the detected function of the target clearing system;
comparing the first test result with the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored;
and determining whether the target clearing system is abnormal and/or an abnormality cause according to the comparison result.
Optionally, the input file includes a plurality of transaction requests; the target clearing system and the original clearing system are both used for processing a plurality of transaction requests in an input file, and the obtained first test result and second test result are respectively stored in a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system;
correspondingly, acquiring the first test result output by the target clearing system and the second test result output by the original clearing system comprises the following steps:
Displaying a file loading button through an interactive interface;
responding to the click of the file loading button by a user, and acquiring a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system by reading a configuration file;
and loading a first test result from the first root directory and loading a second test result from the second root directory.
Optionally, determining the field to be ignored according to the measured function of the target clearing system includes:
displaying a file content comparison button through an interactive interface;
responding to the clicking of the file content comparison button by a user, acquiring a plurality of tested functions of the target clearing system, and displaying the plurality of tested functions on the interactive interface;
and acquiring fields to be ignored, which are input by a user according to the plurality of tested functions and are aiming at file contents.
Optionally, comparing the first test result with the second test result according to a plurality of fields corresponding to each report and the fields to be ignored, including:
determining the fields to be compared corresponding to each report file according to a plurality of fields contained in each report file and the fields to be ignored aiming at the file content;
And comparing the contents of the report files under the first root directory with the contents of the report files under the second root directory according to the fields to be compared corresponding to each report file.
Optionally, before the file content comparison button is displayed through the interactive interface, the method further includes:
displaying a file directory comparison button on an interactive interface, and responding to the fact that a user clicks the file directory comparison button, displaying prompt information, wherein the prompt information is used for prompting the user to input fields to be ignored of the file directory;
comparing the file catalogue under the first root catalogue with the file catalogue under the second root catalogue according to the field to be ignored aiming at the file catalogue;
and displaying a file name comparison button on the interactive interface, responding to the input of a field to be ignored aiming at the file name by a user, and comparing the file name under the first root directory with the file name under the second root directory according to the field to be ignored aiming at the file name.
Optionally, determining whether an abnormality and/or an abnormality cause exists in the target clearing system according to the comparison result includes:
generating a comparison report according to the comparison result, wherein the comparison report highlights the difference points of the first test result and the second test result, the difference points comprise the difference points of the file catalogue, the difference points of the file name and the difference points of the file content, and the prompt is omitted from the difference points corresponding to the fields to be ignored;
Displaying the comparison report on an interactive interface;
and obtaining a conclusion and/or an abnormality reason of whether the target clearing system determined by the user according to the comparison report is abnormal or not.
Optionally, determining whether an abnormality and/or an abnormality cause exists in the target clearing system according to the comparison result includes:
if the first test result and the second test result are not identical, determining that the target clearing system is abnormal;
and inputting the comparison result into an anomaly identification model to obtain the anomaly cause of the target clearing system.
In a second aspect, embodiments of the present application provide a device for testing a target clearing system, where the target clearing system is used to process a transaction request instead of an original clearing system, the device includes:
the acquisition module is used for acquiring a first test result output by the target clearing system and a second test result output by the original clearing system; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields;
The first determining module is used for determining a field to be ignored according to the measured function of the target clearing system;
the comparison module is used for comparing the first test result and the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored;
and the second determining module is used for determining whether the target clearing system has an abnormality and/or an abnormality reason according to the comparison result.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any of the above aspects.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are configured to implement the method of any one of the above aspects.
According to the method, the device, the electronic equipment and the storage medium for testing the clearing system, the first test result output by the target clearing system and the second test result output by the original clearing system are obtained; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields; determining a field to be ignored according to the detected function of the target clearing system; comparing the first test result with the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored; according to the comparison result, whether the target clearing system is abnormal and/or the cause of the abnormality is determined, and the efficiency and the accuracy of determining whether the target clearing system is abnormal and the cause of the abnormality can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is an application scenario diagram provided in an embodiment of the present application;
fig. 2 is a flow chart of a method for testing a clearing system according to an embodiment of the present application;
FIG. 3 is an interactive schematic diagram of another method for testing a clearing system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a test device of a clearing system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
It should be noted that the test method, the device, the electronic device and the storage medium of the clearing system can be used in the financial field, and can also be used in any field except the financial field, and the application fields of the test method, the device, the electronic device and the storage medium of the clearing system are not limited.
The function of the clearing system is mainly to realize the funds and clearing among various financial institutions and clients and realize the settlement and clearing of multiparty transactions in the financial market.
In some techniques, for functional verification of the clearing system, a manual verification method is employed. However, due to the functional diversity and complexity of the clearing system, it is difficult to quickly determine whether or not there is an abnormality in the clearing system and the cause of the abnormality in the process of testing the clearing system.
In view of this, the present application provides a method for testing a clearing system, in which the same input file is input to a target clearing system and an original clearing system respectively, so as to obtain a first test result and a second test result, where the first test result and the second test result both include a plurality of report files, each report file includes a plurality of fields, a field to be ignored is determined according to a tested function of the target clearing system, the first test result and the second test result are compared according to the field to be ignored, and whether an abnormality and a cause of the abnormality exist in the target clearing system can be determined according to the comparison result, so that efficiency and accuracy for determining whether the abnormality exists in the target clearing system and the cause of the abnormality can be improved.
Fig. 1 is an application scenario diagram provided in an embodiment of the present application. As shown in fig. 1, the user equipment displays a file loading button through an interactive interface, the user clicks the file loading button, the user equipment reads a configuration file in response to clicking of the user, obtains a first root directory corresponding to a target clearing system and a second root directory corresponding to an original clearing system, loads a first test result from the first root directory, loads a second test result from the second root directory, and displays a file content comparison button through the interactive interface. The user clicks a file comparison button, the user equipment responds to the clicking of the user to acquire a plurality of tested functions of the target clearing system, such as function 1, function 2 and function 3, the tested functions are displayed on the interactive interface, the user inputs a field to be ignored according to the tested functions displayed on the interactive page, clicks a confirmation button, the user equipment compares a first test result with a second test result according to the acquired field to be ignored, and finally, whether the target clearing system is abnormal or not and the reason for the abnormality are determined according to the comparison result.
According to the clearing system testing method, a first testing result output by a target clearing system and a second testing result output by an original clearing system are acquired; the first test result and the second test result are obtained by respectively inputting the same input file into the target clearing system and the original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields; determining a field to be ignored according to the detected function of the target clearing system; therefore, when the first test result and the second test result are compared, only the fields except the fields to be ignored in the report file are compared, the comparison efficiency can be improved, and finally, according to the obtained comparison result, whether the target clearing system is abnormal or not and the reasons for the abnormality are determined, and the efficiency and the accuracy for determining whether the target clearing system is abnormal or not and the abnormality are improved.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flow chart of a test method of a clearing system according to an embodiment of the present application. The execution body of the embodiment may be a user equipment. As shown in fig. 2, a method for testing a target clearing system, where the target clearing system is used to process a transaction request instead of an original clearing system, may include:
step 201, acquiring a first test result output by a target clearing system and a second test result output by an original clearing system; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result each comprise a plurality of report files, and each report file comprises a plurality of fields.
Specifically, inputting a certain input file into a target clearing system, and outputting a first test result by the target clearing system; the same input file is input into an original clearing system, the original clearing system outputs a second test result, the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields.
The user equipment firstly acquires a first test result output by the target clearing system and a second test result output by the original clearing system.
Optionally, the input file includes a plurality of transaction requests; the target clearing system and the original clearing system are both used for processing a plurality of transaction requests in an input file, and the obtained first test result and second test result are respectively stored in a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system;
correspondingly, acquiring the first test result output by the target clearing system and the second test result output by the original clearing system comprises the following steps:
displaying a file loading button through an interactive interface;
responding to the click of the file loading button by a user, and acquiring a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system by reading a configuration file;
and loading a first test result from the first root directory and loading a second test result from the second root directory.
Specifically, the input file includes a plurality of transaction requests, and the target clearing system is configured to process the plurality of transaction requests in the input file to obtain a first test result, where the first test result is stored in a first root directory corresponding to the target clearing system.
The original clearing system is used for processing a plurality of transaction requests in the same input file to obtain a second test result, and the second test result is stored in a second root directory corresponding to the original clearing system.
Correspondingly, acquiring the first test result output by the target clearing system and the second test result output by the original clearing system comprises the following steps:
the user equipment displays a file loading button through the interactive interface, the user clicks the file loading button displayed on the interactive interface, and the user equipment responds to the click of the user to read a configuration file, wherein a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system are recorded in the configuration file.
After the configuration file is read, a first root directory and a second root directory are obtained, a first test result is loaded from the first root directory, and a second test result is loaded from the second root directory.
The user clicks a file loading button displayed on the interactive interface, and the user equipment responds to the click of the user and can acquire the first root directory and the second root directory by reading the configuration file, so that after the first root directory and the position root directory are changed, only the configuration file is required to be changed, the changing efficiency is improved, and the user experience is enhanced.
Step 202, determining a field to be ignored according to the measured function of the target clearing system.
The target clearing system comprises a plurality of tested functions, such as draft, account checking, query checking, monitoring, accounting and the like, and the fields to be ignored are used for indicating fields which are not compared in the first test result and the second test result. The field to be ignored may be a system processing time, for example, a processing time of the target clearing system included in the first test result is 20230911, a processing time of the original clearing system included in the second test result is 20230901, and when the first test result and the second test result are compared, the field related to the system processing time will not be compared.
The user equipment may determine the fields to ignore based on the measured functions of the target clearing system.
Optionally, determining the field to be ignored according to the measured function of the target clearing system includes:
displaying a file content comparison button through an interactive interface;
responding to the clicking of the file content comparison button by a user, acquiring a plurality of tested functions of the target clearing system, and displaying the plurality of tested functions on the interactive interface;
And acquiring fields to be ignored, which are input by a user according to the plurality of tested functions and are aiming at file contents.
Specifically, the user equipment displays a file content comparison button through the interactive interface, the user clicks the content comparison button, the user equipment responds to the click of the user to acquire a plurality of tested functions of the target clearing system, and the acquired plurality of tested functions are displayed on the interactive interface.
And the user inputs the field to be ignored for the file content according to the displayed multiple tested functions, and after the input is completed, the user equipment clicks the confirm button to acquire the field to be ignored for the file content input by the user.
Therefore, the user can input the field to be ignored aiming at the file content according to a plurality of tested functions of the target clearing system, and the comparison efficiency of the first test result and the second test result can be improved while the personalized requirements of the user are met.
Optionally, before the file content comparison button is displayed through the interactive interface, the method further includes:
displaying a file directory comparison button on an interactive interface, and responding to the fact that a user clicks the file directory comparison button, displaying prompt information, wherein the prompt information is used for prompting the user to input fields to be ignored of the file directory;
Comparing the file catalogue under the first root catalogue with the file catalogue under the second root catalogue according to the field to be ignored aiming at the file catalogue;
and displaying a file name comparison button on the interactive interface, responding to the input of a field to be ignored aiming at the file name by a user, and comparing the file name under the first root directory with the file name under the second root directory according to the field to be ignored aiming at the file name.
Specifically, the user equipment displays a file directory comparison button on the interactive interface, the user clicks the file directory comparison button, the user equipment responds to the click of the user and displays prompt information, the prompt information is used for prompting the user to input a field to be ignored for the file directory, the prompt information can be "please input the field to be ignored (for the file directory)", after the user inputs the field to be ignored for the file directory, the user equipment clicks the confirmation button, acquires the field to be ignored for the file directory input by the user, and compares the file directory under the first root directory with the file directory under the second root directory according to the acquired field to be ignored for the file directory. The field to be ignored for the file directory may be a system processing time, for example, the processing time of the target clearing system is 20230911, the processing time of the original clearing system is 20230901, when the file directory under the first root directory and the file directory under the second root directory are compared, the fields related to the system processing time will not be compared, and for example, the system processing time related to "Beijing branch 20230911" in the file directory under the first root directory and "Beijing branch 20230901" in the file directory under the second root directory will not be compared, so that the difference will not be prompted in the following steps.
The user equipment displays a file name comparison button on the interactive interface, the user clicks the file name comparison button, the user equipment responds to clicking of the user and displays another prompt message, the prompt message is used for prompting the user to input a field to be ignored for the file name, the prompt message can be "please input the field to be ignored (for the file name)", after the user inputs the field to be ignored for the file name, the user equipment clicks the confirmation button, acquires the field to be ignored for the file name input by the user, and compares the file name under the first root directory with the file name under the second root directory according to the acquired field to be ignored for the file name. The field to be ignored for the file name may be a system processing time, for example, the processing time of the target clearing system is 20230911, the processing time of the original clearing system is 20230901, when the file name under the first root directory and the file name under the second root directory are compared, the fields related to the system processing time will not be compared, and for example, the "Beijing branch 20230911.Txt" in the file name under the first root directory and the "Beijing branch 20230901..txt" in the file name under the second root directory will not be compared, so that the difference will not be prompted later.
Therefore, the user can input information to be ignored aiming at the file directory and the file name according to the self requirement, the requirements of different scenes can be met, the user experience is enhanced, and the comparison efficiency of the subsequent first test result and the second test result is further improved.
And 203, comparing the first test result with the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored.
And the user equipment compares the first test result with the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored.
Optionally, comparing the first test result with the second test result according to a plurality of fields corresponding to each report and the fields to be ignored, including:
determining the fields to be compared corresponding to each report file according to a plurality of fields contained in each report file and the fields to be ignored aiming at the file content;
and comparing the contents of the report files under the first root directory with the contents of the report files under the second root directory according to the fields to be compared corresponding to each report file.
Specifically, the user equipment removes the field to be ignored for the file content from the multiple fields corresponding to each report file, obtains the field to be compared corresponding to each report file, and compares the content of the report file under the first root directory with the content of the report file obtained under the second root directory according to the obtained field to be compared corresponding to each report file, that is, compares the content of the report file under the first root directory with the content of the report file under the second root directory, and only compares the fields to be compared.
Therefore, when the contents of the report files under the first root directory and the second root directory are compared, all fields are not required to be compared, the fields to be ignored can be removed on the basis of all the fields, only the fields to be ignored are compared, and the comparison efficiency is improved.
And 204, determining whether the target clearing system has an abnormality and/or an abnormality cause according to the comparison result.
Specifically, if the comparison result is normal, it can be determined that the target clearing system is not abnormal; if the comparison result is abnormal, whether the target clearing system is abnormal or not or whether the target clearing system is abnormal or not can be further judged, and whether the target clearing system is abnormal or not and the abnormal cause can be judged at the same time.
Optionally, determining whether the target clearing system has an anomaly and/or an anomaly cause includes:
generating a comparison report according to the comparison result, wherein the comparison report highlights the difference points of the first test result and the second test result, the difference points comprise the difference points of the file catalogue, the difference points of the file name and the difference points of the file content, and the prompt is omitted from the difference points corresponding to the fields to be ignored;
Displaying the comparison report on an interactive interface;
and obtaining a conclusion and/or an abnormality reason of whether the target clearing system determined by the user according to the comparison report is abnormal or not.
Specifically, the user equipment may generate a comparison report according to the comparison result, and highlight the difference points of the first test result and the second test result in the comparison report, where the difference points of the first test result and the second test result include the difference points of the file directory, the difference points of the file name and the difference points of the file content, and the difference points corresponding to the fields to be ignored are not prompted.
After the comparison report is generated, the user equipment displays the comparison report on the interactive interface, the user determines whether the target clearing system is abnormal or the cause of the abnormality of the target clearing system according to the comparison report displayed on the interactive interface, or simultaneously determines whether the target clearing system is abnormal and the cause of the abnormality, inputs the determined conclusion and/or the cause of the abnormality of the target clearing system on the interactive interface, and after the confirmation button is clicked, the user equipment obtains the conclusion and/or the cause of the abnormality of the target clearing system determined by the user according to the comparison report.
Therefore, the comparison report is displayed on the interactive interface, and the user determines whether the target clearing system is abnormal and the cause of the abnormality according to the comparison report with the highlight prompt on the difference point, so that the efficiency of determining whether the target clearing system is abnormal and the abnormality exists can be improved.
Optionally, determining whether an abnormality and/or an abnormality cause exists in the target clearing system according to the comparison result includes:
if the first test result and the second test result are not identical, determining that the target clearing system is abnormal;
and inputting the comparison result into an anomaly identification model to obtain the anomaly cause of the target clearing system.
Specifically, if the first test result and the second test result are identical, the user equipment determines that the target clearing system is not abnormal; if the first test result and the second test result are not identical, the user equipment determines that the target clearing system is abnormal, and inputs the comparison result into the trained abnormality identification model, so that the abnormality reason of the target clearing system can be obtained.
The training process of the anomaly identification model is as follows: acquiring a plurality of historical comparison results and abnormal reasons corresponding to each comparison result; training an anomaly identification model according to the history comparison result and the anomaly cause, wherein the anomaly identification model is used for predicting the corresponding anomaly cause according to the history comparison result.
When the first test result and the second test result are not identical, the comparison result is input into the anomaly identification model to obtain the anomaly cause of the target clearing system, so that the efficiency and the accuracy of determining the anomaly cause of the target clearing system can be improved.
In summary, the method for testing a clearing system provided by the present application includes: acquiring a first test result output by a target clearing system and a second test result output by an original clearing system; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields; determining a field to be ignored according to the detected function of the target clearing system; comparing the first test result with the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored; and determining whether the target clearing system is abnormal and/or an abnormality cause according to the comparison result. The efficiency and accuracy of determining whether the target clearing system is abnormal or not can be improved.
The original clearing system can be a clearing system which is put into use, the system can be simplified or optimized, the overall performance is improved, the system is redesigned by adopting other languages or frames, the target clearing system is obtained, the original clearing system can be updated and upgraded, and the target clearing system is obtained, wherein part or all of functions or modules of the target clearing system and the original clearing system are overlapped, and the part of the functions or modules of the target clearing system overlapped with the original clearing system can be verified by adopting the method in the application, so that the part of functions or modules can be confirmed to have abnormality and cause of the abnormality.
The specific type of the reason for the abnormality is not limited in the application, and the reason for the abnormality can be used for indicating which function or which module of the target settlement system is abnormal, and also can be used for indicating the code error at the bottom layer.
All functions or modules which are coincident with the original clearing system in the functions of the target clearing system can be verified, which function or which module of the target clearing system is abnormal can be determined according to the comparison result, and the code error of the bottommost layer can be determined according to the comparison result. The function or module to be verified in the target clearing system may be, for example, a draft, checking account, inquiring and recovering, monitoring, accounting and the like, when the first test result corresponding to the target clearing system is compared with the second test result corresponding to the original clearing system, if the difference point is the total transaction number or total transaction amount occurring in the preset time period, it may be determined that the accounting function or module of the target clearing system is abnormal, or it may be determined that the corresponding code error of the bottom layer is wrong.
Fig. 3 is an interactive schematic diagram of another test method of the clearing system according to an embodiment of the present application. As shown in fig. 3, the user device displays a file loading button on the interactive interface, the user clicks the file loading button, the user device responds to clicking of the user device, reads the configuration file to obtain a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system, loads a first test result from the first root directory, loads a second test result from the second root directory, then the user device displays a file directory comparison button on the interactive interface, the user clicks the file directory comparison button, the user device responds to clicking of the user, displays a prompt message, the prompt message is used for prompting the user to input a field to be ignored for the file directory, after the user inputs the field to be ignored for the file directory, clicks a confirmation button, the user device obtains the field to be ignored for the file directory, which is input by the user, then the user device displays a file name comparison button on the interactive interface, the user device clicks the file name comparison button, the user device obtains the file to be ignored for the file name after the user inputs the field to be ignored for the user, the user device obtains the multiple content of the user interface is compared on the interactive interface, the user device displays the file name comparison button is clicked, the file name comparison button is clicked on the user is used for the user to respond to the click of the user to the user device is used for inputting a file name to be ignored, and comparing the first test result with the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored, if the first test result and the second test result are not identical, determining that the target clearing system is abnormal, and inputting the comparison result into a trained abnormality recognition model to obtain the abnormality reason of the target clearing system.
Corresponding to the above-mentioned clearing system testing method, the embodiment of the present application further provides a clearing system testing device. Fig. 4 is a schematic structural diagram of a test device of a clearing system according to an embodiment of the present application. As shown in fig. 4, the apparatus is for testing a target clearing system for processing a transaction request in place of an original clearing system, the apparatus comprising:
an obtaining module 401, configured to obtain a first test result output by the target clearing system and a second test result output by the original clearing system; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields;
a first determining module 402, configured to determine a field to be ignored according to a measured function of the target clearing system;
a comparison module 403, configured to compare the first test result and the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored;
and a second determining module 404, configured to determine, according to the comparison result, whether an abnormality and/or an abnormality cause exists in the target clearing system.
Optionally, the input file includes a plurality of transaction requests; the target clearing system and the original clearing system are both used for processing a plurality of transaction requests in an input file, and the obtained first test result and second test result are respectively stored in a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system;
correspondingly, the acquiring module 401 is specifically configured to:
displaying a file loading button through an interactive interface;
responding to the click of the file loading button by a user, and acquiring a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system by reading a configuration file;
and loading a first test result from the first root directory and loading a second test result from the second root directory.
Optionally, the first determining module 402 is specifically configured to:
displaying a file content comparison button through an interactive interface;
responding to the clicking of the file content comparison button by a user, acquiring a plurality of tested functions of the target clearing system, and displaying the plurality of tested functions on the interactive interface;
and acquiring fields to be ignored, which are input by a user according to the plurality of tested functions and are aiming at file contents.
Optionally, the comparison module 403 is specifically configured to:
determining the fields to be compared corresponding to each report file according to a plurality of fields contained in each report file and the fields to be ignored aiming at the file content;
and comparing the contents of the report files under the first root directory with the contents of the report files under the second root directory according to the fields to be compared corresponding to each report file.
Optionally, the obtaining module 401 is further configured to:
displaying a file directory comparison button on an interactive interface, and responding to the fact that a user clicks the file directory comparison button, displaying prompt information, wherein the prompt information is used for prompting the user to input fields to be ignored of the file directory;
comparing the file catalogue under the first root catalogue with the file catalogue under the second root catalogue according to the field to be ignored aiming at the file catalogue;
and displaying a file name comparison button on the interactive interface, responding to the input of a field to be ignored aiming at the file name by a user, and comparing the file name under the first root directory with the file name under the second root directory according to the field to be ignored aiming at the file name.
Optionally, the second determining module 404 is specifically configured to:
Generating a comparison report according to the comparison result, wherein the comparison report highlights the difference points of the first test result and the second test result, the difference points comprise the difference points of the file catalogue, the difference points of the file name and the difference points of the file content, and the prompt is omitted from the difference points corresponding to the fields to be ignored;
displaying the comparison report on an interactive interface;
and obtaining a conclusion and/or an abnormality reason of whether the target clearing system determined by the user according to the comparison report is abnormal or not.
Optionally, the second determining module 404 is specifically configured to:
if the first test result and the second test result are not identical, determining that the target clearing system is abnormal;
and inputting the comparison result into an anomaly identification model to obtain the anomaly cause of the target clearing system.
The specific implementation principle and effect of the clearing system testing device provided in the embodiment of the present application may be referred to the foregoing embodiments, and will not be described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device of the present embodiment may include:
at least one processor 501; and
A memory 502 communicatively coupled to the at least one processor;
wherein the memory 502 stores instructions executable by the at least one processor 501 to cause the electronic device to perform the method as described in any of the embodiments above.
Alternatively, the memory 502 may be separate or integrated with the processor 501.
The implementation principle and technical effects of the electronic device provided in this embodiment may be referred to the foregoing embodiments, and will not be described herein again.
The embodiment of the application further provides a computer readable storage medium, in which computer executable instructions are stored, which when executed by a processor, implement the method according to any of the previous embodiments.
Embodiments of the present application also provide a computer program product comprising a computer program which, when executed by a processor, implements the method according to any of the preceding embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to perform some of the steps of the methods described in various embodiments of the present application.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU for short), other general purpose processors, digital signal processor (Digital Signal Processor, DSP for short), application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution. The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). It is also possible that the processor and the storage medium reside as discrete components in an electronic device or a master device.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. A method of testing a target clearing system for processing a transaction request in place of an original clearing system, the method comprising:
acquiring a first test result output by a target clearing system and a second test result output by an original clearing system; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields;
determining a field to be ignored according to the detected function of the target clearing system;
comparing the first test result with the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored;
and determining whether the target clearing system is abnormal and/or an abnormality cause according to the comparison result.
2. The method of claim 1, wherein the input file comprises a plurality of transaction requests; the target clearing system and the original clearing system are both used for processing a plurality of transaction requests in an input file, and the obtained first test result and second test result are respectively stored in a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system;
Correspondingly, acquiring the first test result output by the target clearing system and the second test result output by the original clearing system comprises the following steps:
displaying a file loading button through an interactive interface;
responding to the click of the file loading button by a user, and acquiring a first root directory corresponding to the target clearing system and a second root directory corresponding to the original clearing system by reading a configuration file;
and loading a first test result from the first root directory and loading a second test result from the second root directory.
3. The method of claim 2, wherein determining the field to be ignored based on the measured function of the target clearing system comprises:
displaying a file content comparison button through an interactive interface;
responding to the clicking of the file content comparison button by a user, acquiring a plurality of tested functions of the target clearing system, and displaying the plurality of tested functions on the interactive interface;
and acquiring fields to be ignored, which are input by a user according to the plurality of tested functions and are aiming at file contents.
4. The method of claim 2, wherein comparing the first test result and the second test result according to the plurality of fields corresponding to each report and the field to be ignored comprises:
Determining the fields to be compared corresponding to each report file according to a plurality of fields contained in each report file and the fields to be ignored aiming at the file content;
and comparing the contents of the report files under the first root directory with the contents of the report files under the second root directory according to the fields to be compared corresponding to each report file.
5. The method of claim 2, wherein prior to presenting the file content alignment button via the interactive interface, the method further comprises:
displaying a file directory comparison button on an interactive interface, and responding to the fact that a user clicks the file directory comparison button, displaying prompt information, wherein the prompt information is used for prompting the user to input fields to be ignored of the file directory;
comparing the file catalogue under the first root catalogue with the file catalogue under the second root catalogue according to the field to be ignored aiming at the file catalogue;
and displaying a file name comparison button on the interactive interface, responding to the input of a field to be ignored aiming at the file name by a user, and comparing the file name under the first root directory with the file name under the second root directory according to the field to be ignored aiming at the file name.
6. The method of claim 5, wherein determining whether an anomaly and/or cause of an anomaly exists in the target clearing system based on the comparison comprises:
generating a comparison report according to the comparison result, wherein the comparison report highlights the difference points of the first test result and the second test result, the difference points comprise the difference points of the file catalogue, the difference points of the file name and the difference points of the file content, and the prompt is omitted from the difference points corresponding to the fields to be ignored;
displaying the comparison report on an interactive interface;
and obtaining a conclusion and/or an abnormality reason of whether the target clearing system determined by the user according to the comparison report is abnormal or not.
7. The method according to any one of claims 1-5, wherein determining whether an anomaly and/or a cause of an anomaly exists in the target clearing system based on the comparison result comprises:
if the first test result and the second test result are not identical, determining that the target clearing system is abnormal;
and inputting the comparison result into an anomaly identification model to obtain the anomaly cause of the target clearing system.
8. A clearing system testing apparatus for testing a target clearing system for processing a transaction request in place of an original clearing system, the apparatus comprising:
The acquisition module is used for acquiring a first test result output by the target clearing system and a second test result output by the original clearing system; the first test result and the second test result are obtained by respectively inputting the same input file into a target clearing system and an original clearing system; the first test result and the second test result comprise a plurality of report files, and each report file comprises a plurality of fields;
the first determining module is used for determining a field to be ignored according to the measured function of the target clearing system;
the comparison module is used for comparing the first test result and the second test result according to a plurality of fields corresponding to each report file and the fields to be ignored;
and the second determining module is used for determining whether the target clearing system has an abnormality and/or an abnormality reason according to the comparison result.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 7.
CN202311257428.XA 2023-09-26 2023-09-26 Method and device for testing clearing system, electronic equipment and storage medium Pending CN117291696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311257428.XA CN117291696A (en) 2023-09-26 2023-09-26 Method and device for testing clearing system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311257428.XA CN117291696A (en) 2023-09-26 2023-09-26 Method and device for testing clearing system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117291696A true CN117291696A (en) 2023-12-26

Family

ID=89247636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311257428.XA Pending CN117291696A (en) 2023-09-26 2023-09-26 Method and device for testing clearing system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117291696A (en)

Similar Documents

Publication Publication Date Title
CN110782240B (en) Business data processing method and device, computer equipment and storage medium
CN108305055B (en) Payment testing method and device
CN108536521B (en) Simulation platform-based offline environment checking method and device
CN109614766B (en) Method and device for carrying out block chaining and evidence saving on webpage through file acquisition
CN110175849B (en) Collecting method, device, equipment, server and system
CN108230130B (en) Method and device for verifying daily cutting data and electronic equipment
CN115292163A (en) Application program detection method and device and computer readable storage medium
CN113312259B (en) Interface testing method and device
CN113934758A (en) Vehicle fault repairing method and device, vehicle-mounted terminal, server and storage medium
CN117495544A (en) Sandbox-based wind control evaluation method, sandbox-based wind control evaluation system, sandbox-based wind control evaluation terminal and storage medium
CN112215693A (en) Voucher generation method and related device
CN117291696A (en) Method and device for testing clearing system, electronic equipment and storage medium
CN115203300A (en) Data verification method and device
CN115563008A (en) Code coverage rate detection system, method, device and storage medium
CN115391224A (en) Flow playback method and device, computer equipment and readable storage medium
US20220292497A1 (en) Transaction Based Authentication with Refunded Transactions Removed
CN112084114B (en) Method and apparatus for testing interfaces
CN114490415A (en) Service testing method, computer device, storage medium, and computer program product
CN110659191B (en) Buried data analysis method, buried data analysis device, computer equipment and storage medium
CN114245385A (en) Short message anti-explosion login method and system based on time sequence analysis
CN114564140A (en) Financial product configuration method, device, equipment and readable storage medium
CN113868210A (en) Validity verification method, system, equipment and storage medium for imported data
CN112328450A (en) Data monitoring method and device, computer equipment and storage medium
CN111367776A (en) Recording method, device, equipment and storage medium of resource transfer service
CN111311262A (en) Order payment system, method, device, terminal and readable storage medium

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