CN112419052A - Transaction testing method and device, electronic equipment and readable storage medium - Google Patents

Transaction testing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112419052A
CN112419052A CN202011064622.2A CN202011064622A CN112419052A CN 112419052 A CN112419052 A CN 112419052A CN 202011064622 A CN202011064622 A CN 202011064622A CN 112419052 A CN112419052 A CN 112419052A
Authority
CN
China
Prior art keywords
transaction
date
test result
transaction information
information
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
CN202011064622.2A
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.)
CITIC Aibank Corp Ltd
Original Assignee
CITIC Aibank Corp 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 CITIC Aibank Corp Ltd filed Critical CITIC Aibank Corp Ltd
Priority to CN202011064622.2A priority Critical patent/CN112419052A/en
Publication of CN112419052A publication Critical patent/CN112419052A/en
Pending legal-status Critical Current

Links

Images

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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/3684Test management for test design, e.g. generating new test cases
    • 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

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 application provides a transaction testing method, a transaction testing device, electronic equipment and a readable storage medium, and relates to the technical field of testing. Wherein, the method comprises the following steps: acquiring target transaction information to be tested, wherein the target transaction information to be tested comprises transaction information of a plurality of transaction dates; testing the transaction information of each transaction date of the target transaction to be tested to obtain the test result of each transaction date; and determining the test result of the target transaction to be tested based on the test result of each transaction date. The method and the device test the information of a plurality of transaction dates of the target transaction information, and particularly can test the transaction information of a plurality of transaction dates in the whole life cycle of the target transaction, thereby avoiding the problem of poor test accuracy caused by determining the target transaction information only according to the transaction information of a certain transaction date, and ensuring the accuracy of the target transaction information test.

Description

Transaction testing method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of testing technologies, and in particular, to a transaction testing method, an apparatus, an electronic device, and a readable storage medium.
Background
In the financial test of banks, the full life cycle test of different financial dates is required for both deposit and loan financial products, and the conventional automatic test tool is not suitable for the cross-batch business scene test. When a general tester carries out automatic testing and meets a testing scene which can be verified after daily final batch, the automatic testing simulating the scene is abandoned, and manual testing is changed into manual testing for the following reasons:
the daily final batch depends on an account core system, the batch of the core system is a full-row grade batch, the batch is usually operated according to a batch test plan (batch time point) of each project group, and the batch cannot be operated according to a single test product;
the current testing tool does not support the previous day execution result, after the batch execution is completed, the previous day result is automatically acquired and used as the case input after the batch execution, and the automatic testing tool automatically runs, so that the automatic testing cases in the whole life cycle cannot run.
Taking deposit products as an example, many "periodic smart deposit products" are currently on the market: the product takes 30 days as a period, pays the interest of the current period according to the full interest rate of 3.40 percent every full 30 days, and is stored and released on the current day; meanwhile, the support part draws in advance, and the drawing in advance part accounts for 0.385 percent of the bank current interest rate in the period. In actual testing, the existing automated testing tool can only test the online transaction for T days.
Disclosure of Invention
The embodiment of the application provides a transaction testing method, a transaction testing device, electronic equipment and a readable storage medium, which can improve the accuracy of target transaction information testing.
In a first aspect, an embodiment of the present application provides a transaction testing method, where the method includes:
acquiring target transaction information to be tested, wherein the target transaction information to be tested comprises transaction information of a plurality of transaction dates;
testing the transaction information of each transaction date of the target transaction to be tested to obtain the test result of each transaction date;
and determining the test result of the target transaction to be tested based on the test result of each transaction date.
Optionally, the transaction information of the plurality of transaction dates is transaction information of a complete life cycle of the transaction of the target to be tested.
Optionally, the step of testing the transaction information of each transaction date of the target transaction to be tested to obtain the test result of each transaction date includes:
testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
if the test result is that the transaction information of the first transaction date is wrong, correspondingly, the test result of the target transaction to be tested is determined based on the test result of each transaction date, and the method comprises the following steps:
and determining a test result of the target transaction to be tested based on the test result of the transaction information of the first transaction date.
Optionally, the step of testing the transaction information of each transaction date of the target transaction to be tested to obtain the test result of each transaction date includes:
testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
if the test result is that the transaction information of the first transaction date is correct, the transaction information of the subsequent transaction date corresponding to the first transaction date is tested to obtain a transaction information test result of the subsequent transaction date;
correspondingly, determining the test result of the target transaction to be tested based on the test result of each transaction date comprises the following steps:
and determining the test result of the target transaction to be tested based on the test result of the transaction information of the first transaction date and the test result of the transaction information of the subsequent transaction date.
Optionally, the step of testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date includes:
determining a first set of test cases of transaction information for a first transaction date, the first set of test cases including at least one test case;
and testing the transaction information of the first transaction date based on each test case of the first test case set, and determining a test result.
Optionally, the testing the transaction information of the first transaction date based on each test case of the first set of test cases and determining the test result includes:
and if the test result corresponding to any test case is failed, determining that the test result of the transaction information of the first transaction date is failed.
Optionally, if the test result is that the transaction information of the first transaction date is correct, the transaction information of the subsequent transaction date corresponding to the first transaction date is tested to obtain a transaction information test result of the subsequent transaction date, including:
and if the test result is that the transaction information of the first transaction date is correct, switching the system date to the subsequent transaction date to acquire the transaction information of the subsequent transaction date.
In a second aspect, there is provided a transaction testing device, comprising:
the acquisition module is used for acquiring target transaction information to be tested, wherein the target transaction information to be tested comprises transaction information of a plurality of transaction dates;
the test module is used for testing the transaction information of each transaction date of the transaction of the target to be tested to obtain the test result of each transaction date;
and the determining module is used for determining the test result of the target transaction to be tested based on the test result of each transaction date.
Optionally, the transaction information of the plurality of transaction dates is transaction information of a complete life cycle of the transaction of the target to be tested.
The determining module is specifically used for testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
and if the test result is that the transaction information on the first transaction date is wrong, correspondingly, the determining module is specifically used for determining the test result of the target transaction to be tested based on the test result of the transaction information on the first transaction date.
Optionally, a test module comprising:
the first testing unit is used for testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
the second testing unit is used for testing the transaction information of the subsequent transaction date corresponding to the first transaction date to obtain the transaction information testing result of the subsequent transaction date if the testing result is that the transaction information of the first transaction date is correct;
correspondingly, the determining module is specifically configured to determine a test result of the target transaction to be tested based on the test result of the transaction information on the first transaction date and the test result of the transaction information on the subsequent transaction date.
Optionally, the first testing unit is specifically configured to determine a first set of test cases of the transaction information for a first transaction date, where the first set of test cases includes at least one test case; and the system is used for testing the transaction information of the first transaction date based on each test case of the first test case set and determining a test result.
Optionally, the first testing unit is specifically configured to determine that the test result of the transaction information on the first transaction date is failed if the test result corresponding to any one of the test cases is failed.
Optionally, the second testing unit is configured to switch the system date to the subsequent transaction date to obtain the transaction information of the subsequent transaction date if the testing result is that the transaction information of the first transaction date is correct.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the apparatus is in operation, the processor executing the machine-readable instructions to perform the steps of the transaction testing method as set forth in the first aspect when executed.
In a fourth aspect, embodiments of the present application provide a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the transaction testing method as shown in the first aspect.
Compared with the prior art that only single-day transaction information can be tested, the transaction testing method and device, the electronic equipment and the readable storage medium have the advantages that target transaction information to be tested is obtained and comprises transaction information of a plurality of transaction dates; testing the transaction information of each transaction date of the target transaction to be tested to obtain the test result of each transaction date; and determining the test result of the target transaction to be tested based on the test result of each transaction date. The method and the device test the information of a plurality of transaction dates of the target transaction information, and particularly can test the transaction information of a plurality of transaction dates in the whole life cycle of the target transaction, thereby avoiding the problem of poor test accuracy caused by determining the target transaction information only according to the transaction information of a certain transaction date, and ensuring the accuracy of the target transaction information test.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a flow chart diagram illustrating a transaction testing method provided by an embodiment of the application;
FIG. 2 is a schematic diagram illustrating a structure of a transaction testing device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 4 shows a logic diagram of a transaction test provided by an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the embodiments described herein are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Interpretation of related terms:
cutting in unnatural days: the business date of the accounting system is switched, the daily switch of the system configuration is generally around zero point of each day, a unified daily switch component or other modes are called, the current working day is switched to the next working day, the step is one step in the current-day batch processing of the core system, and after the step is executed, the system date is the next working day. The date switching time is irrelevant to the natural day, a system time is set in the accounting database to control date switching of the transaction day, and the date switching time point can be the day of the natural day or the next day of the natural day. It is only after the day that it is time for the system to proceed to the second treatment day, rather than the change in nature.
Automated testing: automated testing is a process that translates human-driven test behavior into machine execution. Typically, after the test cases are designed and passed for review, the tests are performed step by the tester according to the procedures described in the test cases, resulting in a comparison of the actual results with the expected results. In the process, in order to save manpower, time or hardware resources and improve the testing efficiency, the concept of automatic testing is introduced.
Batch processing of a bank system: data exchange with peripheral systems such as credit management systems, financial management system data aggregation, and the like. And clearing the fund in the system, such as clearing the deposit, clearing, batch processing of wages and the like. Internal accounting processes such as automatic unloading and collecting due, etc. Preparing data for the analysis data platform, such as transferring data to the data platform, registering accounting books, such as generating general ledgers, generating accounting statements. The billing date of the production environment is changed and ready for the next working day.
Distributed: the distributed mode in the present document mainly refers to a deployment mode that under a system architecture with an X86 server cluster, the same application system is deployed on multiple servers through horizontal extension, and service calls are registered through a financial gateway.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features. It should also be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. In the description of the present application, it is also noted that the terms "first," "second," "third," and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
Example one
Fig. 1 shows a schematic flow chart of a transaction testing method provided in an embodiment of the present application, and as shown in fig. 1, the method may include:
step S101, obtaining target transaction information to be tested, wherein the target transaction information to be tested comprises transaction information of a plurality of transaction dates; the transaction information of the transaction dates is the transaction information of a complete life cycle of the transaction of the target to be tested.
Step S102, transaction information of each transaction date of the transaction of the target to be tested is tested, and a test result of each transaction date is obtained;
step S103, determining the test result of the target transaction to be tested based on the test result of each transaction date.
Compared with the prior art that only single-day transaction information can be tested, the transaction testing method and device, the electronic equipment and the readable storage medium have the advantages that target transaction information to be tested is obtained and comprises transaction information of a plurality of transaction dates; testing the transaction information of each transaction date of the target transaction to be tested to obtain the test result of each transaction date; and determining the test result of the target transaction to be tested based on the test result of each transaction date. The method and the device test the information of a plurality of transaction dates of the target transaction information, and particularly can test the transaction information of a plurality of transaction dates in the whole life cycle of the target transaction, thereby avoiding the problem of poor test accuracy caused by determining the target transaction information only according to the transaction information of a certain transaction date, and ensuring the accuracy of the target transaction information test.
The embodiment of the present application provides a possible implementation manner, specifically, the method for testing transaction information of each transaction date of a target transaction to be tested to obtain a test result of each transaction date includes:
testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
if the test result is that the transaction information of the first transaction date is wrong, correspondingly, the test result of the target transaction to be tested is determined based on the test result of each transaction date, and the method comprises the following steps:
and determining a test result of the target transaction to be tested based on the test result of the transaction information of the first transaction date.
The embodiment of the present application provides a possible implementation manner, specifically, the method for testing transaction information of each transaction date of a target transaction to be tested to obtain a test result of each transaction date includes:
testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
if the test result is that the transaction information of the first transaction date is correct, the transaction information of the subsequent transaction date corresponding to the first transaction date is tested to obtain a transaction information test result of the subsequent transaction date;
correspondingly, determining the test result of the target transaction to be tested based on the test result of each transaction date comprises the following steps:
and determining the test result of the target transaction to be tested based on the test result of the transaction information of the first transaction date and the test result of the transaction information of the subsequent transaction date.
The embodiment of the present application provides a possible implementation manner, and in particular, the method for testing transaction information on a first transaction date to obtain a test result of the transaction information on the first transaction date includes:
determining a first set of test cases of transaction information for a first transaction date, the first set of test cases including at least one test case;
and testing the transaction information of the first transaction date based on each test case of the first test case set, and determining a test result.
The embodiment of the present application provides a possible implementation manner, and specifically, the method for testing transaction information of a first transaction date based on each test case of a first test case set and determining a test result includes:
and if the test result corresponding to any test case is failed, determining that the test result of the transaction information of the first transaction date is failed.
The embodiment of the present application provides a possible implementation manner, specifically, if the test result is that the transaction information on the first transaction date is correct, the transaction information on the subsequent transaction date corresponding to the first transaction date is tested to obtain a transaction information test result on the subsequent transaction date, including:
and if the test result is that the transaction information of the first transaction date is correct, switching the system date to the subsequent transaction date to acquire the transaction information of the subsequent transaction date.
Illustratively, the logic of one test of an embodiment of the present application is shown in FIG. 4,
1. and creating an execution case set on the Tth day and the Tth + N day according to a designed cross-day settlement accounting test scene, compiling corresponding test cases, and registering links of the test sets.
2. And automatically calling a case set for executing for T days, judging whether the assertion result after each case is executed is successful, if all cases are successful, judging that the execution state is Y, and continuing to execute a subsequent judgment process. And if the assertion result of any case is failure, the execution state is N, the subsequent operation is not executed, and the process is ended.
3. Judging the assertion result executed by the T-day case set, continuing to perform the day-to-day switching operation if all the assertion results are successful, starting the day-to-day switching execution device, and automatically switching the system time to the next specified date.
4. And after the non-natural day switching of all the systems is successfully executed, starting batch processing operation, after the batch processing is successfully executed, starting a case set of the T +1 th day by the device, and if the assertion result of any case is failed, blocking the flow and failing the verification of the account test scene. If the assertion results for all cases are successful, the account test scenario verifies successfully.
The data storage device can store the case execution result in a local storage mode, and after the system date is switched to the appointed business day, the data to be used is taken out from the local storage and assigned to the request header of the next business day execution case, so that the execution continuity of the whole automatic test scene is ensured.
Specifically, when the execution of the T-day case is called, the data (card-opening card number, user name, etc.) required to be used the next day is stored in the storage through local storage in the response data processing script, and different information is named as different variables.
When the T +1 day case is called and executed, a code is added in the request parameter processing script, data (card number, user name and the like) in a case request header is replaced by data stored in storage, and a return value after the case is successfully executed can be used when the case is executed.
Illustratively, in an example of the embodiment of the present application, suppose a bank newly deducts a periodic smart deposit product, which takes 30 days as a period, pays the interest of the current date at an interest rate of 3.40% for the expiration of 30 days, and deposits the interest of the current date; meanwhile, the support part draws in advance, and the drawing in advance part accounts for 0.385 percent of the bank current interest rate in the period. Examples are:
a certain user opens an account and stores 10 ten thousand yuan into the product, and if the user holds the product for 10 days and draws 1 ten thousand yuan in advance, the 1 ten thousand yuan is calculated according to the drawing interest rate of 0.385 percent in advance, and the drawing interest is as follows: 0.385% by 1 ten thousand 10/360 ═ 1.07 yuan;
the balance 9 thousands of principal continues to hold for 30 days and then carry out the settlement of the period, and the settlement interest is as follows: 3.40%. 9 × 30/360 ═ 255 yuan;
when a tester needs to test the full life cycle of the product, the following test scenes are mainly available:
buying 10 ten thousand yuan in T day, getting 1 thousand in advance in T +10 days, and verifying whether the calculation of the result of getting in advance is correct.
And (4) after the T +30 days, 9 thousands of principal balance are expired, and whether the expiration balance interest calculation is correct or not is verified.
And the user gives an account and verifies whether the account is successfully given.
The method comprises the following steps:
the test set execution links of the T day, the T +10 day and the T +30 day are stored in the execution table, and the specific steps are as follows:
TABLE 1
Set id Collection name Test environment Test set address Execution state
1 Day T A http://tDate.runAuto Y
2 Day T +10 A http://t10Date.runAuto Y
3 Day T +30 A http://t30Date.runAuto Y
The automated testing component comprises a use case:
TABLE 2
Figure BDA0002713394450000131
A data storage device:
in the response data processing script:
Figure BDA0002713394450000141
in the request parameter processing script:
Figure BDA0002713394450000142
when a tester uses the method to test, the operation steps are as follows:
registering usage case set links of T day, T +10 day and T +30 day in the unified control device, wherein the day switch component device displays the current accounting system date as 20200729(T)
And 14:10, calling and executing a T-day test set, executing all test cases in sequence, storing the data into a data storage device due to the fact that information such as a card number (1110023010123), a name (Li Ming), a binding main card number (1110023010134) and the like which need to be returned by opening the card for T-day is presented in a subsequent account, and inquiring the balance to be 10 thousands.
At 14:35, when all execution is successful and the assertion passes, the daily cutting component is invoked to perform the daily cutting operation, the system accounting time is switched to 20200807(T +10), and the end-of-day batch processing is initiated.
At present, the accounting system time is 20200807(T +10), a T +10 day test set is called and executed, information such as card numbers (1110023010123), names (Li Ming), binding master card numbers (1110023010134) and the like is taken out from a data storage device and is used as request data to carry out withdrawal operation of 1 ten thousand, and whether the settlement function of advance withdrawal is correct or not is judged according to the principal of accounting and account and interest verification of the accounting and account. If 1 ten thousand principal are received and the interest is drawn 1.07 yuan in advance, then correct, otherwise the function is abnormal
15:05, after all executions are successful and the assertion passes, the daily cut component is invoked to perform the daily cut operation, the system accounting time is switched to 20200829(T +30), and the end-of-day batch processing is initiated.
At present, the accounting system time is 20200829(T +30), a T +30 day test set is called and executed, information such as card number (1110023010123), name (Li Ming), binding master card number (1110023010134) and the like is taken out from a data storage device to inquire the balance of the current account, and whether the balance function of the remaining principal is correct or not is verified. If the expiring interest is 225 yuan and the balance is 9 ten thousand 225 yuan, the function is correct, otherwise, the function is abnormal.
And submitting the application of the seller, verifying whether the application state of the seller is successful, if so, judging that the application state is correct, and otherwise, judging that the function is abnormal.
Example two
Correspondingly, the embodiment of the present application further provides a transaction testing device based on the transaction testing method of the first embodiment, and fig. 2 shows a schematic structural diagram of the transaction testing device provided in the embodiment of the present application.
As shown in fig. 2, the transaction testing device may include:
the acquisition module 201 is configured to acquire target transaction information to be tested, where the target transaction information to be tested includes transaction information of a plurality of transaction dates;
the test module 202 is configured to test transaction information of each transaction date of a target transaction to be tested, so as to obtain a test result of each transaction date;
the determining module 203 is used for determining the test result of the target transaction to be tested based on the test result of each transaction date.
The transaction information of the transaction dates is the transaction information of a complete life cycle of the transaction of the target to be tested.
The determining module is specifically configured to test the transaction information on the first transaction date to obtain a test result of the transaction information on the first transaction date;
and if the test result is that the transaction information on the first transaction date is wrong, correspondingly, the determining module is specifically used for determining the test result of the target transaction to be tested based on the test result of the transaction information on the first transaction date.
Specifically, the test module includes:
the first testing unit is used for testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
the second testing unit is used for testing the transaction information of the subsequent transaction date corresponding to the first transaction date to obtain the transaction information testing result of the subsequent transaction date if the testing result is that the transaction information of the first transaction date is correct;
correspondingly, the determining module is specifically configured to determine a test result of the target transaction to be tested based on the test result of the transaction information on the first transaction date and the test result of the transaction information on the subsequent transaction date.
In particular, a first testing unit, in particular for determining a first set of test cases of transaction information for a first transaction date, the first set of test cases comprising at least one test case; and the system is used for testing the transaction information of the first transaction date based on each test case of the first test case set and determining a test result.
Specifically, the first testing unit is specifically configured to determine that the test result of the transaction information on the first transaction date is failed if the test result corresponding to any one of the test cases is failed.
Specifically, the second testing unit is used for switching the system date to the subsequent transaction date to acquire the transaction information of the subsequent transaction date if the testing result is that the transaction information of the first transaction date is correct.
It should be understood that the above-described apparatus embodiments are merely exemplary, and that the apparatus and method disclosed in the embodiments of the present application may be implemented in other ways. For example, a division of modules into only one logical division of functionality may be implemented in practice in another division, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. That is, those skilled in the art will appreciate that embodiments of the present application may be implemented in any form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
EXAMPLE III
Based on this, the present application further provides a program product, where the program product may be a storage medium such as a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and the storage medium may store a computer program, and the computer program is executed by a processor to perform the steps of the service location recommendation method in the foregoing method embodiment. The specific implementation and technical effects are similar, and are not described herein again.
Example four
In addition, an electronic device is also provided in this embodiment of the present application, where the electronic device may be a device with data processing capability, such as the above-mentioned personal computer, server, or network device, and fig. 3 shows a schematic structural diagram of the electronic device provided in this embodiment of the present application.
As shown in fig. 3, the electronic device may include: a processor 31, a storage medium 32 and a bus 33, the storage medium 32 storing machine-readable instructions executable by the processor 31, the processor 31 communicating with the storage medium 32 via the bus 33 when the electronic device is operated, the processor 31 executing the machine-readable instructions to perform the steps of the transaction testing method as in the previous method embodiment. The specific implementation and technical effects are similar, and are not described herein again.
For ease of illustration, only one processor is described in the above electronic device. However, it should be noted that in some embodiments, the electronic device in the present application may further include multiple processors, and thus, the steps performed by one processor described in the present application may also be performed by multiple processors in combination or individually.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A transaction testing method, the method comprising:
acquiring target transaction information to be tested, wherein the target transaction information to be tested comprises transaction information of a plurality of transaction dates;
testing the transaction information of each transaction date of the target transaction to be tested to obtain the test result of each transaction date;
and determining the test result of the target transaction to be tested based on the test result of each transaction date.
2. The method of claim 1, wherein the transaction information of the plurality of transaction dates is transaction information of a complete life cycle of the transaction of the target to be tested.
3. The method of claim 1, wherein the step of testing the transaction information of each transaction date of the transaction of the target to be tested to obtain the test result of each transaction date comprises:
testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
if the test result is that the transaction information of the first transaction date is wrong, correspondingly, the test result of the target transaction to be tested is determined based on the test result of each transaction date, and the method comprises the following steps:
and determining a test result of the target transaction to be tested based on the test result of the transaction information of the first transaction date.
4. The method of claim 1, wherein the step of testing the transaction information of each transaction date of the transaction of the target to be tested to obtain the test result of each transaction date comprises:
testing the transaction information of the first transaction date to obtain a test result of the transaction information of the first transaction date;
if the test result is that the transaction information of the first transaction date is correct, the transaction information of the subsequent transaction date corresponding to the first transaction date is tested to obtain a transaction information test result of the subsequent transaction date;
correspondingly, determining the test result of the target transaction to be tested based on the test result of each transaction date comprises the following steps:
and determining the test result of the target transaction to be tested based on the test result of the transaction information of the first transaction date and the test result of the transaction information of the subsequent transaction date.
5. The method of claim 1, wherein the testing the transaction information on the first transaction date to obtain the test result of the transaction information on the first transaction date comprises:
determining a first set of test cases of transaction information for a first transaction date, the first set of test cases including at least one test case;
and testing the transaction information of the first transaction date based on each test case of the first test case set, and determining a test result.
6. The method of claim 5, wherein testing the transaction information for the first transaction date based on each test case of the first set of test cases and determining a test result comprises:
and if the test result corresponding to any test case is failed, determining that the test result of the transaction information of the first transaction date is failed.
7. The method of claim 4, wherein if the test result is that the transaction information of the first transaction date is correct, testing the transaction information of the subsequent transaction date relative to the first transaction date to obtain the test result of the transaction information of the subsequent transaction date, comprising:
and if the test result is that the transaction information of the first transaction date is correct, switching the system date to the subsequent transaction date to acquire the transaction information of the subsequent transaction date.
8. A transaction testing device, the device comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring target transaction information to be tested, and the target transaction information to be tested comprises transaction information of a plurality of transaction dates;
the test module is used for testing the transaction information of each transaction date of the transaction of the target to be tested to obtain the test result of each transaction date;
and the determining module is used for determining the test result of the target transaction to be tested based on the test result of each transaction date.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the transaction testing method of any of claims 1 to 6 when executed.
10. A readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, performs the steps of the transaction testing method according to any one of claims 1 to 6.
CN202011064622.2A 2020-09-30 2020-09-30 Transaction testing method and device, electronic equipment and readable storage medium Pending CN112419052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011064622.2A CN112419052A (en) 2020-09-30 2020-09-30 Transaction testing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011064622.2A CN112419052A (en) 2020-09-30 2020-09-30 Transaction testing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112419052A true CN112419052A (en) 2021-02-26

Family

ID=74854354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011064622.2A Pending CN112419052A (en) 2020-09-30 2020-09-30 Transaction testing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112419052A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113781226A (en) * 2021-09-14 2021-12-10 中电金信软件有限公司 Batch transaction data processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275337A1 (en) * 2010-10-10 2013-10-17 Super Derivatives, Inc. Device, method and system of testing financial derivative instruments
CN107741906A (en) * 2017-09-29 2018-02-27 平安科技(深圳)有限公司 Monetary fund system automation method of testing, device, equipment and storage medium
CN110377522A (en) * 2019-07-22 2019-10-25 中国工商银行股份有限公司 The test method for scene of trading, calculates equipment and medium at device
CN111274138A (en) * 2020-01-16 2020-06-12 宜人恒业科技发展(北京)有限公司 Method and device for testing account merging function
CN111309594A (en) * 2020-01-17 2020-06-19 腾讯科技(深圳)有限公司 System testing method, device, equipment and storage medium
CN111639022A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Transaction testing method and device, storage medium and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275337A1 (en) * 2010-10-10 2013-10-17 Super Derivatives, Inc. Device, method and system of testing financial derivative instruments
CN107741906A (en) * 2017-09-29 2018-02-27 平安科技(深圳)有限公司 Monetary fund system automation method of testing, device, equipment and storage medium
CN110377522A (en) * 2019-07-22 2019-10-25 中国工商银行股份有限公司 The test method for scene of trading, calculates equipment and medium at device
CN111274138A (en) * 2020-01-16 2020-06-12 宜人恒业科技发展(北京)有限公司 Method and device for testing account merging function
CN111309594A (en) * 2020-01-17 2020-06-19 腾讯科技(深圳)有限公司 System testing method, device, equipment and storage medium
CN111639022A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Transaction testing method and device, storage medium and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113781226A (en) * 2021-09-14 2021-12-10 中电金信软件有限公司 Batch transaction data processing method and device

Similar Documents

Publication Publication Date Title
JP6782778B2 (en) Data processing method and equipment
CN111325617B (en) File-based account checking method and device, computer equipment and readable storage medium
CN109582550B (en) Method, device and server for acquiring full-service scene fault set
CN107741906B (en) Monetary fund system automation test method, device, equipment and storage medium
CN111784510B (en) Account checking method and device
CN114418714A (en) 5G base station operation and maintenance management system and method
CN112882957B (en) Test task validity checking method and device
CN112419052A (en) Transaction testing method and device, electronic equipment and readable storage medium
CN114170023A (en) Method and device for testing fund transaction operation platform system
CN112347110B (en) Data difference determining method, device, equipment and storage medium
JP6224194B1 (en) Test process management system, test process management method, and test process management program
CN115375278A (en) Business work order processing method and device, electronic equipment and storage medium
CN115511586A (en) Method, system, terminal device and storage medium for automatic account checking based on jmeter
CN114936160A (en) Method and device for analyzing test requirement range of product
CN112990922A (en) Batch payment method, device, equipment and storage medium
CN112634006A (en) Account checking processing method and device, electronic equipment and storage medium
CN111625458A (en) Service system testing method, device and equipment
CN113590488B (en) System test method and test platform for simulating financial data support
CN116188190B (en) Multi-batch semi-real-time reconciliation method and system for high-concurrency payment system
CN113824847B (en) Method and device for determining charging abnormality, computing equipment and computer storage medium
CN113094273A (en) Method and device for verifying transaction path
CN116383052A (en) Automatic testing method, device and equipment for batch processing task and storage medium
CN115470032A (en) Task processing method, device, equipment, medium and program product
CN115374160A (en) Information verification method, apparatus, device, medium, and program product
CN117217691A (en) Business process processing method, device, terminal equipment and 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