CN110471696B - Clearing data playback comparison method, device, computer equipment and storage medium - Google Patents

Clearing data playback comparison method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110471696B
CN110471696B CN201910604234.XA CN201910604234A CN110471696B CN 110471696 B CN110471696 B CN 110471696B CN 201910604234 A CN201910604234 A CN 201910604234A CN 110471696 B CN110471696 B CN 110471696B
Authority
CN
China
Prior art keywords
clearing
environment
version
result
acquiring
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.)
Active
Application number
CN201910604234.XA
Other languages
Chinese (zh)
Other versions
CN110471696A (en
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.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co 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 Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN201910604234.XA priority Critical patent/CN110471696B/en
Publication of CN110471696A publication Critical patent/CN110471696A/en
Application granted granted Critical
Publication of CN110471696B publication Critical patent/CN110471696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application relates to the technical field of functional testing, and provides a clearing data playback comparison method, a clearing data playback comparison device, computer equipment and a storage medium. The method comprises the following steps: acquiring cleared production data, version numbers and target environment parameters, simulating the clearing environment of the production baseline version and the clearing environment of the test iteration version according to the version numbers and the target environment parameters, importing the cleared production data into the clearing environment of the production baseline version and the clearing environment of the test iteration version, when the running state of each clearing environment is executable clearing, running a preset clearing serial execution program, and when clearing is completed, acquiring clearing results of each clearing environment, comparing and analyzing the clearing results of each clearing environment, and determining the clearing quality of the clearing environment of the test iteration version. The method can provide support for improving the clearing quality.

Description

Clearing data playback comparison method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of functional testing, and in particular, to a method, an apparatus, a computer device, and a storage medium for comparing clearing data playback.
Background
With the development of computer technology, the off-site trading market (OTC) has emerged. The off-market trading market, sometimes also referred to as the over-the-counter market or the store head trading market, is an important part of the bond trading market. Specifically, this market refers to a market formed by a large number of distributed securities counters of securities management institutions such as investment banks and main telecommunication facilities buying and selling securities. For off-site trading markets, it is often necessary to make a clearing by exporting production data in the post-test trading software after receipt.
However, due to limited test environment and limited test data, the conventional transaction software is easy to have the condition of missing derived production data and clearing errors in clearing, and the problem that the transaction software of the test iteration version cannot provide support for improving the clearing quality exists.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a clearing data playback comparison method, apparatus, computer device, and storage medium capable of providing support for improving clearing quality.
A method of clearing data playback comparison, the method comprising:
acquiring cleared production data, version numbers and target environment parameters, and simulating a clearing environment of a production baseline version and a clearing environment of a test iteration version according to the version numbers and the target environment parameters;
importing the cleared production data into a production baseline version of the clearing environment and a test iteration version of the clearing environment;
when the running state of each clearing environment is executable clearing, running a preset clearing serial execution program, wherein the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing;
and when the clearing is completed, acquiring clearing results of all the clearing environments, comparing and analyzing the clearing results of all the clearing environments, and determining the clearing quality of the clearing environments of the test iteration version.
In one embodiment, simulating the production baseline version of the clearing environment and the test iteration version of the clearing environment based on the version number and the target environment parameters comprises:
generating a query instruction according to the version number and the target environment parameter;
calling a release order server according to the query instruction, and acquiring and displaying a release order list corresponding to the query instruction from the release order server;
Responding to the release order selection operation, acquiring a release order selection instruction, and determining a release mode according to the release order selection instruction;
and calling a release order server according to the release mode, deploying a release order corresponding to the release mode, and simulating a clearing environment of the production baseline version and a clearing environment of the test iteration version.
In one embodiment, when the running state of each clearing environment is executable clearing, before running the preset clearing serial execution program, the method further includes:
sending a connectivity request to each clearing environment;
when feedback information corresponding to the connectivity request is received, acquiring the last update time of the cleared production data imported into each clearing environment;
calculating a time difference value between the last update time and the current time, and acquiring a clearing state of each clearing environment when the time difference value is smaller than a preset difference value threshold value;
when the clearing status of each clearing environment is cleared rollback, determining the operational status of each clearing environment as executable clearing.
In one embodiment, comparing the clearing results of each clearing environment, determining the clearing quality of the clearing environment for the test iteration version includes:
determining the completion condition of each clearing step in each clearing result according to the clearing result of each clearing environment;
Acquiring the number of data results after the clearing steps are completed in each clearing result;
comparing the number of data results after the same clearing steps in each clearing result are completed, the sum value of preset key fields in each clearing result and the upper account and lower account export file in each clearing result, and generating a test report according to the completion condition of each clearing step in each clearing result and the comparison result;
and determining the clearing quality of the clearing environment of the test iteration version according to the test report.
In one embodiment, determining completion of each clearing step in each clearing result based on the clearing result of each clearing environment includes:
acquiring a clearing time point, and determining a clearing batch according to the clearing time point;
determining a target clearing step according to the clearing batch;
acquiring each clearing step in each clearing result;
comparing the target clearing step with each clearing step in each clearing result;
and determining the completion condition of each clearing step in each clearing result according to the comparison result.
In one embodiment, when the running state of each clearing environment is executable clearing, after running the preset clearing serial execution program, the method further includes:
acquiring a clearing state table corresponding to the clearing serial execution program according to a preset time interval;
And determining the current clearing step and the clearing progress according to the clearing state table, and displaying.
A clearing data playback alignment apparatus, the apparatus comprising:
the acquisition module is used for acquiring the cleared production data, the version number and the target environment parameter, and simulating the clearing environment of the production baseline version and the clearing environment of the test iteration version according to the version number and the target environment parameter;
an importing module for importing the cleared production data into a clearing environment for producing the baseline version and a clearing environment for testing the iterative version;
the first processing module is used for running a preset clearing serial execution program when the running state of each clearing environment is executable clearing, and the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing;
and the second processing module is used for acquiring the clearing result of each clearing environment when clearing is completed, comparing and analyzing the clearing result of each clearing environment, and determining the clearing quality of the clearing environment of the test iteration version.
In one embodiment, the obtaining module is further configured to generate a query instruction according to the version number and the target environment parameter, call the issue list server according to the query instruction, obtain an issue list corresponding to the query instruction from the issue list server, display the issue list, respond to the issue list selection operation, obtain an issue list selection instruction, determine an issue mode according to the issue list selection instruction, call the issue list server according to the issue mode, deploy an issue list corresponding to the issue mode, and simulate a clearing environment of a production baseline version and a clearing environment of a test iteration version.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring cleared production data, version numbers and target environment parameters, and simulating a clearing environment of a production baseline version and a clearing environment of a test iteration version according to the version numbers and the target environment parameters;
importing the cleared production data into a production baseline version of the clearing environment and a test iteration version of the clearing environment;
when the running state of each clearing environment is executable clearing, running a preset clearing serial execution program, wherein the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing;
and when the clearing is completed, acquiring clearing results of all the clearing environments, comparing and analyzing the clearing results of all the clearing environments, and determining the clearing quality of the clearing environments of the test iteration version.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring cleared production data, version numbers and target environment parameters, and simulating a clearing environment of a production baseline version and a clearing environment of a test iteration version according to the version numbers and the target environment parameters;
Importing the cleared production data into a production baseline version of the clearing environment and a test iteration version of the clearing environment;
when the running state of each clearing environment is executable clearing, running a preset clearing serial execution program, wherein the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing;
and when the clearing is completed, acquiring clearing results of all the clearing environments, comparing and analyzing the clearing results of all the clearing environments, and determining the clearing quality of the clearing environments of the test iteration version.
According to the clearing data playback comparison method, the device, the computer equipment and the storage medium, the cleared production data are imported into the clearing environment of the production baseline version and the clearing environment of the test iteration version for production data clearing, clearing results of all the clearing environments are obtained, the clearing results of all the clearing environments are subjected to comparison analysis, and clearing quality of the clearing environment of the test iteration version is determined, so that support can be provided for improving the clearing quality according to the clearing quality of the clearing environment of the test iteration version, and after the clearing quality of the test iteration version is determined, iterative upgrading can be performed on transaction software according to the test iteration version, so that the clearing quality of the transaction software is improved.
Drawings
FIG. 1 is an application scenario diagram of a method of clearing data playback alignment in one embodiment;
FIG. 2 is a flow diagram of a method of comparing playback of data in one embodiment;
FIG. 3 is a schematic flow chart illustrating the sub-process of step S202 in FIG. 2 according to one embodiment;
FIG. 4 is a flow chart of a method of comparing the playback of the clearing data in another embodiment;
FIG. 5 is a schematic flow chart illustrating the sub-process of step S208 in FIG. 2 according to one embodiment;
FIG. 6 is a schematic flow chart illustrating the sub-process of step S502 in FIG. 5 according to one embodiment;
FIG. 7 is a flow chart of a method of comparing a clearingout data playback according to yet another embodiment;
FIG. 8 is a block diagram of an apparatus for comparison of clearing data playback in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The clearing data playback comparison method provided by the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 obtains the cleared production data from the server 104, obtains the version number and the target environment parameter by means of user input, simulates the clearing environment of the production baseline version and the clearing environment of the test iteration version according to the version number and the target environment parameter, imports the cleared production data into the clearing environment of the production baseline version and the clearing environment of the test iteration version, runs a preset clearing serial execution program when the running state of each clearing environment is executable clearing, and the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to clear the production data respectively, obtains the clearing results of each clearing environment when clearing is completed, carries out comparison analysis on the clearing results of each clearing environment, and determines the clearing quality of the clearing environment of the test iteration version. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, and tablet computers, and the server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, there is provided a clearing data playback comparison method, which is described by taking an example that the method is applied to the terminal in fig. 1, and includes the following steps:
s202: and acquiring the cleared production data, the version number and the target environment parameters, and simulating the clearing environment of the production baseline version and the clearing environment of the test iteration version according to the version number and the target environment parameters.
The cleared production data includes clearing DB data, which is data that has been cleared, and a TA (transfer agent) validation file that can be used to manage the product, the share of the customer, and the profit calculation. The clearing DB data and the TA confirmation file are saved to the operation and maintenance server after the clearing of the current day is completed, and the terminal can acquire the data from the operation and maintenance server. The terminal obtains the version number input by the user and the selected target environment parameter, determines the clearing environment according to the version number and the target environment parameter, obtains the release order corresponding to the required clearing environment from the release order server according to the required clearing environment, and simulates the required clearing environment according to the corresponding release order. Wherein the required clearing environment comprises a production baseline version clearing environment and a test iteration version clearing environment, the production baseline version refers to the version currently used by the customer, and the test iteration version refers to the upgrade version in the test.
S204: the cleared production data is imported into a production baseline version of the clearing environment and a test iteration version of the clearing environment.
After simulating the production baseline version of the clearing environment and testing the iterative version of the clearing environment, the server imports the cleared production data into each clearing environment, stores the cleared production data in each clearing environment after importation is completed, and updates the last update time of the cleared production data so that the server determines the importation time and importation condition of the cleared production data.
S206: when the running state of each clearing environment is executable clearing, running a preset clearing serial execution program, wherein the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing.
The clearing environment of the production baseline version and the clearing environment of the test iteration version can be carried out simultaneously, the production data clearing of the clearing environment of the production baseline version and the clearing environment of the test iteration version are not influenced mutually, when clearing is carried out, each clearing environment can record the completion condition of each clearing step, the total value of the preset key fields and the upper account and lower account export file in real time, and further a clearing result is generated according to the completion condition of each clearing step, the total value of the preset key fields and the upper account and lower account export file. The preset key fields comprise a fund balance occurrence number, a fund available occurrence number, a share balance occurrence number, a share available occurrence number and the like. The account export file includes the total amount of the transaction accounts and the total amount of the transaction accounts.
S208: and when the clearing is completed, acquiring clearing results of all the clearing environments, comparing and analyzing the clearing results of all the clearing environments, and determining the clearing quality of the clearing environments of the test iteration version.
The clearing result of each clearing environment comprises the completion condition of each clearing step, the number of data results after each clearing step is completed, the sum value of preset key fields and the upper and lower account export file, the terminal carries out comparison analysis on the clearing environment of the production baseline version and the clearing environment of the test iteration version according to the clearing result of each clearing environment, and the clearing quality of the clearing environment of the test iteration version can be determined, so that the test iteration version is perfected, the clearing quality of the clearing environment of the test iteration version is improved, and the clearing quality of the transaction software can be improved when the transaction software is iteratively upgraded according to the test iteration version.
According to the clearing data playback comparison method, the cleared production data are imported into the clearing environment of the production baseline version and the clearing environment of the test iteration version to carry out production data clearing, clearing results of all the clearing environments are obtained, the clearing results of all the clearing environments are compared and analyzed, and clearing quality of the clearing environment of the test iteration version is determined, so that support can be provided for improving the clearing quality according to the clearing quality of the clearing environment of the test iteration version, and after the clearing quality of the test iteration version is determined, transaction software can be iteratively upgraded according to the test iteration version, and the clearing quality of the transaction software is improved.
In one embodiment, as shown in fig. 3, S202 includes:
s302: generating a query instruction according to the version number and the target environment parameter;
s304: calling a release order server according to the query instruction, and acquiring and displaying a release order list corresponding to the query instruction from the release order server;
s306: responding to the release order selection operation, acquiring a release order selection instruction, and determining a release mode according to the release order selection instruction;
s308: and calling a release order server according to the release mode, deploying a release order corresponding to the release mode, and simulating a clearing environment of the production baseline version and a clearing environment of the test iteration version.
The terminal calls the release order server according to the query instruction to query the release order server, when a corresponding release order exists in the release order server, the release order server filters the release order with failed release state, pushes the release order list to the terminal according to the release time sequence, the terminal acquires and displays the release order list, responds to release order selection operation, acquires release order selection instructions, determines that the release mode is partial release or full release according to the release order selection instructions, calls the release order server according to the release mode, deploys the release order corresponding to the release mode, and simulates a clearing environment of a production baseline version and a clearing environment of a test iteration version. The terminal can query the latest release state regularly according to a preset query interval, and when the release list is released successfully in a release mode, the deployment is completed. The release sheet comprises version contents, component codes, corresponding scripts and the like.
In one embodiment, as shown in fig. 4, before S206, the method further includes:
s402: sending a connectivity request to each clearing environment;
s404: when feedback information corresponding to the connectivity request is received, acquiring the last update time of the cleared production data imported into each clearing environment;
s406: calculating a time difference value between the last update time and the current time, and acquiring a clearing state of each clearing environment when the time difference value is smaller than a preset difference value threshold value;
s408: when the clearing status of each clearing environment is cleared rollback, determining the operational status of each clearing environment as executable clearing.
The terminal may detect connectivity to each clearing environment by sending a connectivity request to each clearing environment, and when the terminal receives feedback information corresponding to the connectivity request, it may be considered that connectivity to each clearing environment has been established. After communicating with each clearing environment, the terminal acquires the last update time of the cleared production data imported into each clearing environment, determines whether the cleared production data has been successfully imported into each clearing environment, calculates a time difference between the last update time and the current time, and considers that the cleared production data has been successfully imported when the time difference is smaller than a preset difference threshold. For example, if the general comparison of the clearing data is performed on the friday and friday, the cleared production data is generally imported into each clearing environment on the monday and friday, so that the data update condition can be determined by calculating the time difference between the last update time and the current time.
After the cleared production data is successfully imported into each clearing environment, the terminal responds to the clearing rollback operation of the user, and rolls back the cleared production data to a state before clearing according to the clearing rollback operation so as to carry out clearing in each clearing environment. When the clearing rollback is completed, the clearing state of each clearing environment may become cleared rollback, at which time each clearing environment may be able to clear production data, i.e., the operational state of each clearing environment is executable. The terminal may determine an operational status of each clearing environment by obtaining a clearing status of each clearing environment, and enter a next step when the operational status of each clearing environment is an executable clearing.
In one embodiment, as shown in fig. 5, S208 includes:
s502: determining the completion condition of each clearing step in each clearing result according to the clearing result of each clearing environment;
s504: acquiring the number of data results after the clearing steps are completed in each clearing result;
s506: comparing the number of data results after the same clearing steps in each clearing result are completed, the sum value of preset key fields in each clearing result and the upper account and lower account export file in each clearing result, and generating a test report according to the completion condition of each clearing step in each clearing result and the comparison result;
S508: and determining the clearing quality of the clearing environment of the test iteration version according to the test report.
After the clearing of each clearing environment is completed, the terminal determines the completion condition of each clearing step in each clearing result according to the clearing result of each clearing environment, so as to judge whether each clearing environment completes the clearing work. The terminal acquires the number of data results after the clearing steps are completed in each clearing result, and judges whether the completion conditions of the same clearing steps of the two clearing environments are the same or not by comparing the number of data results after the clearing steps are completed in the clearing results of the two clearing environments, so as to judge the execution conditions of the clearing steps of the clearing environments of the test iteration version. Meanwhile, the terminal can conduct comparison and verification on the sum value of preset key fields in each clearing result, and conduct comparison and verification on the account export files in each clearing result. The preset key fields comprise a fund balance occurrence number, a fund available occurrence number, a share balance occurrence number, a share available occurrence number and the like, and when the comparison check is performed on the export articles of the accounts, the comparison check is performed on the total sum of the accounts of all transactions and the total sum of the accounts. The clearing quality of the test iteration version is further judged by checking the amounts. And the terminal generates a test report according to the completion condition of each clearing step in each clearing result and the comparison result, so as to determine the clearing quality of the clearing environment of the test iteration version according to the test report.
In one embodiment, as shown in fig. 6, S502 includes:
s602: acquiring a clearing time point, and determining a clearing batch according to the clearing time point;
s604: determining a target clearing step according to the clearing batch;
s606: acquiring each clearing step in each clearing result;
s608: comparing the target clearing step with each clearing step in each clearing result;
s610: and determining the completion condition of each clearing step in each clearing result according to the comparison result.
The production data clearing includes a plurality of batches, and the clearing time points of different batches are different. For example, a day may be divided into three clearing periods, morning, evening, and evening, each clearing period corresponding to a clearing lot, the clearing steps of the different clearing lots not being identical. When the terminal determines the completion condition of each clearing step in each clearing result according to the clearing result of each clearing environment, the clearing time point should be determined first, and then the clearing batch can be determined according to the clearing time point, so that the target clearing step is determined according to the clearing batch, and the target clearing step is the step which needs to be executed when each clearing environment carries out clearing in the present clearing process, and the detection of the completion condition of each clearing step in each clearing result can be realized by comparing the target clearing step with each clearing step in each clearing result.
In one embodiment, as shown in fig. 7, after S206, the method further includes:
s702: acquiring a clearing state table corresponding to the clearing serial execution program according to a preset time interval;
s704: and determining the current clearing step and the clearing progress according to the clearing state table, and displaying.
The terminal periodically acquires a clearing state table corresponding to the clearing serial execution program according to a preset time interval, so that the current clearing step and the clearing progress are determined according to the clearing state table and displayed. The preset time interval can be set by oneself according to the requirement, the identifiers corresponding to the clearing steps and the clearing progress are displayed in the clearing state table, the identifiers corresponding to the clearing steps are preset, when clearing is carried out to a certain step, the identifiers corresponding to the clearing steps are displayed in the clearing state table, and particularly, the identifiers corresponding to the clearing steps can be digital.
It should be understood that, although the steps in the flowcharts of fig. 2-7 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 8, there is provided a clearing data playback comparison apparatus, comprising: an acquisition module 802, an import module 804, a first processing module 806, and a second processing module 808, wherein:
an obtaining module 802, configured to obtain the cleared production data, the version number, and the target environment parameter, and simulate a clearing environment of the production baseline version and a clearing environment of the test iteration version according to the version number and the target environment parameter;
an import module 804 for importing the cleared production data into a production baseline version of the clearing environment and a test iteration version of the clearing environment;
a first processing module 806, configured to, when the running state of each clearing environment is executable clearing, run a preset clearing serial execution program, where the clearing serial execution program is configured to call the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively perform production data clearing;
and the second processing module 808 is configured to obtain a clearing result of each clearing environment when clearing is completed, compare and analyze the clearing result of each clearing environment, and determine the clearing quality of the clearing environment of the test iteration version.
According to the clearing data playback comparison device, the cleared production data are imported into the clearing environment of the production baseline version and the clearing environment of the test iteration version to carry out production data clearing, clearing results of all the clearing environments are obtained, the clearing results of all the clearing environments are compared and analyzed, and clearing quality of the clearing environment of the test iteration version is determined, so that support can be provided for improving clearing quality according to the clearing quality of the clearing environment of the test iteration version, and after the clearing quality of the test iteration version is determined, transaction software can be iteratively upgraded according to the test iteration version, and clearing quality of the transaction software is improved.
In one embodiment, the obtaining module is further configured to generate a query instruction according to the version number and the target environment parameter, call the issue list server according to the query instruction, obtain an issue list corresponding to the query instruction from the issue list server, display the issue list, respond to the issue list selection operation, obtain an issue list selection instruction, determine an issue mode according to the issue list selection instruction, call the issue list server according to the issue mode, deploy an issue list corresponding to the issue mode, and simulate a clearing environment of a production baseline version and a clearing environment of a test iteration version.
In one embodiment, the first processing module is further configured to send a connectivity request to each clearing environment, when feedback information corresponding to the connectivity request is received, obtain a last update time of the cleared production data that has been imported into each clearing environment, calculate a time difference between the last update time and a current time, and obtain a clearing state of each clearing environment when the time difference is less than a preset difference threshold, and determine an operation state of each clearing environment as executable clearing when the clearing state of each clearing environment is cleared rollback.
In one embodiment, the second processing module is further configured to determine, according to the clearing result of each clearing environment, a completion condition of each clearing step in each clearing result, obtain a number of data result strips after completion of each clearing step in each clearing result, compare the number of data result strips after completion of each same clearing step in each clearing result, a sum value of preset key fields in each clearing result, and an account-up and account-down derived file in each clearing result, generate a test report according to the completion condition of each clearing step in each clearing result and the comparison result, and determine, according to the test report, a clearing quality of the clearing environment of the test iteration version.
In one embodiment, the second processing module is further configured to obtain a clearing time point, determine a clearing batch according to the clearing time point, determine a target clearing step according to the clearing batch, obtain each clearing step in each clearing result, compare the target clearing step with each clearing step in each clearing result, and determine a completion condition of each clearing step in each clearing result according to the comparison result.
In one embodiment, the first processing module is further configured to obtain a clearing state table corresponding to the clearing serial execution program according to a preset time interval, determine a current clearing step and a clearing progress according to the clearing state table, and display the clearing progress.
For specific limitations on the clearing data playback comparison means, reference may be made to the above limitations on the clearing data playback comparison method, and no further description is given here. The respective modules in the above-described clearing data playback comparison apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a clearing data playback alignment method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of:
acquiring cleared production data, version numbers and target environment parameters, and simulating a clearing environment of a production baseline version and a clearing environment of a test iteration version according to the version numbers and the target environment parameters;
importing the cleared production data into a production baseline version of the clearing environment and a test iteration version of the clearing environment;
when the running state of each clearing environment is executable clearing, running a preset clearing serial execution program, wherein the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing;
And when the clearing is completed, acquiring clearing results of all the clearing environments, comparing and analyzing the clearing results of all the clearing environments, and determining the clearing quality of the clearing environments of the test iteration version.
The clearing data playback comparison computer equipment is used for importing the cleared production data into the clearing environment of the production baseline version and the clearing environment of the test iteration version to carry out production data clearing, acquiring clearing results of all the clearing environments, carrying out comparison analysis on the clearing results of all the clearing environments, and determining the clearing quality of the clearing environment of the test iteration version, so that support can be provided for improving the clearing quality according to the clearing quality of the clearing environment of the test iteration version, and after the clearing quality of the test iteration version is determined, the transaction software can be subjected to iterative upgrade according to the test iteration version, so that the clearing quality of the transaction software is improved.
In one embodiment, the processor when executing the computer program further performs the steps of:
generating a query instruction according to the version number and the target environment parameter;
calling a release order server according to the query instruction, and acquiring and displaying a release order list corresponding to the query instruction from the release order server;
Responding to the release order selection operation, acquiring a release order selection instruction, and determining a release mode according to the release order selection instruction;
and calling a release order server according to the release mode, deploying a release order corresponding to the release mode, and simulating a clearing environment of the production baseline version and a clearing environment of the test iteration version.
In one embodiment, the processor when executing the computer program further performs the steps of:
sending a connectivity request to each clearing environment;
when feedback information corresponding to the connectivity request is received, acquiring the last update time of the cleared production data imported into each clearing environment;
calculating a time difference value between the last update time and the current time, and acquiring a clearing state of each clearing environment when the time difference value is smaller than a preset difference value threshold value;
when the clearing status of each clearing environment is cleared rollback, determining the operational status of each clearing environment as executable clearing.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining the completion condition of each clearing step in each clearing result according to the clearing result of each clearing environment;
acquiring the number of data results after the clearing steps are completed in each clearing result;
Comparing the number of data results after the same clearing steps in each clearing result are completed, the sum value of preset key fields in each clearing result and the upper account and lower account export file in each clearing result, and generating a test report according to the completion condition of each clearing step in each clearing result and the comparison result;
and determining the clearing quality of the clearing environment of the test iteration version according to the test report.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring a clearing time point, and determining a clearing batch according to the clearing time point;
determining a target clearing step according to the clearing batch;
acquiring each clearing step in each clearing result;
comparing the target clearing step with each clearing step in each clearing result;
and determining the completion condition of each clearing step in each clearing result according to the comparison result.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring a clearing state table corresponding to the clearing serial execution program according to a preset time interval;
and determining the current clearing step and the clearing progress according to the clearing state table, and displaying.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Acquiring cleared production data, version numbers and target environment parameters, and simulating a clearing environment of a production baseline version and a clearing environment of a test iteration version according to the version numbers and the target environment parameters;
importing the cleared production data into a production baseline version of the clearing environment and a test iteration version of the clearing environment;
when the running state of each clearing environment is executable clearing, running a preset clearing serial execution program, wherein the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing;
and when the clearing is completed, acquiring clearing results of all the clearing environments, comparing and analyzing the clearing results of all the clearing environments, and determining the clearing quality of the clearing environments of the test iteration version.
The clearing data are replayed and compared with the storage medium, the cleared production data are imported into the clearing environment of the production baseline version and the clearing environment of the test iteration version for clearing production data, clearing results of all the clearing environments are obtained, the clearing results of all the clearing environments are compared and analyzed, and clearing quality of the clearing environment of the test iteration version is determined, so that support can be provided for improving clearing quality according to the clearing quality of the clearing environment of the test iteration version, and after the clearing quality of the test iteration version is determined, transaction software can be iteratively upgraded according to the test iteration version, and clearing quality of the transaction software is improved.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a query instruction according to the version number and the target environment parameter;
calling a release order server according to the query instruction, and acquiring and displaying a release order list corresponding to the query instruction from the release order server;
responding to the release order selection operation, acquiring a release order selection instruction, and determining a release mode according to the release order selection instruction;
and calling a release order server according to the release mode, deploying a release order corresponding to the release mode, and simulating a clearing environment of the production baseline version and a clearing environment of the test iteration version.
In one embodiment, the computer program when executed by the processor further performs the steps of:
sending a connectivity request to each clearing environment;
when feedback information corresponding to the connectivity request is received, acquiring the last update time of the cleared production data imported into each clearing environment;
calculating a time difference value between the last update time and the current time, and acquiring a clearing state of each clearing environment when the time difference value is smaller than a preset difference value threshold value;
when the clearing status of each clearing environment is cleared rollback, determining the operational status of each clearing environment as executable clearing.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the completion condition of each clearing step in each clearing result according to the clearing result of each clearing environment;
acquiring the number of data results after the clearing steps are completed in each clearing result;
comparing the number of data results after the same clearing steps in each clearing result are completed, the sum value of preset key fields in each clearing result and the upper account and lower account export file in each clearing result, and generating a test report according to the completion condition of each clearing step in each clearing result and the comparison result;
and determining the clearing quality of the clearing environment of the test iteration version according to the test report.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a clearing time point, and determining a clearing batch according to the clearing time point;
determining a target clearing step according to the clearing batch;
acquiring each clearing step in each clearing result;
comparing the target clearing step with each clearing step in each clearing result;
and determining the completion condition of each clearing step in each clearing result according to the comparison result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring a clearing state table corresponding to the clearing serial execution program according to a preset time interval;
and determining the current clearing step and the clearing progress according to the clearing state table, and displaying.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of clearing data playback comparison, the method comprising:
acquiring cleared production data, version numbers and target environment parameters, and simulating a clearing environment of a production baseline version and a clearing environment of a test iteration version according to the version numbers and the target environment parameters;
importing the cleared production data into a clearing environment of the production baseline version and a clearing environment of the test iteration version;
When the running state of each clearing environment is executable clearing, running a preset clearing serial execution program, wherein the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing;
when the clearing is completed, acquiring clearing results of each clearing environment, acquiring clearing time points, and determining a clearing batch according to the clearing time points;
determining a target clearing step according to the clearing batch;
acquiring each clearing step in each clearing result;
comparing the target clearing step with each clearing step in each clearing result;
determining the completion condition of each clearing step in each clearing result according to the comparison result;
acquiring the number of data result strips after the clearing steps are completed in each clearing result;
comparing the number of data results after the same clearing steps in the clearing results are completed, the sum value of preset key fields in the clearing results and the upper account and lower account export file in the clearing results, and generating a test report according to the completion condition and comparison result of the clearing steps in the clearing results;
And determining the clearing quality of the clearing environment of the test iteration version according to the test report.
2. The method of claim 1, wherein simulating a production baseline version of the clearing environment and a test iteration version of the clearing environment based on the version number and the target environment parameter comprises:
generating a query instruction according to the version number and the target environment parameter;
calling a release order server according to the query instruction, and acquiring and displaying a release order list corresponding to the query instruction from the release order server;
responding to the release order selection operation, acquiring a release order selection instruction, and determining a release mode according to the release order selection instruction;
and calling the release order server according to the release mode, deploying a release order corresponding to the release mode, and simulating a clearing environment of a production baseline version and a clearing environment of a test iteration version.
3. The method according to claim 1, wherein when the running status of each of the clearing environments is executable clearing, before running a preset clearing serial execution program, further comprising:
sending a connectivity request to each of the clearing environments;
When feedback information corresponding to the connectivity request is received, acquiring the last update time of the cleared production data imported into each clearing environment;
calculating a time difference value between the last update time and the current time, and acquiring a clearing state of each clearing environment when the time difference value is smaller than a preset difference value threshold;
and when the clearing state of each clearing environment is cleared rollback, determining the running state of each clearing environment as executable clearing.
4. The method according to claim 1, wherein when the running status of each of the clearing environments is executable clearing, after running a preset clearing serial execution program, further comprising:
acquiring a clearing state table corresponding to the clearing serial execution program according to a preset time interval;
and determining the current clearing step and the clearing progress according to the clearing state table, and displaying.
5. A clearing data playback alignment apparatus, the apparatus comprising:
the acquisition module is used for acquiring the cleared production data, the version number and the target environment parameter, and simulating the clearing environment of the production baseline version and the clearing environment of the test iteration version according to the version number and the target environment parameter;
An importing module for importing the cleared production data into a clearing environment of the production baseline version and a clearing environment of the test iteration version;
the first processing module is used for running a preset clearing serial execution program when the running state of each clearing environment is executable clearing, and the clearing serial execution program is used for calling the clearing environment of the production baseline version and the clearing environment of the test iteration version to respectively carry out production data clearing;
the second processing module is used for acquiring the clearing result of each clearing environment when clearing is completed, acquiring a clearing time point, determining a clearing batch according to the clearing time point, determining target clearing steps according to the clearing batch, acquiring each clearing step in each clearing result, comparing the target clearing steps with each clearing step in each clearing result, determining the completion condition of each clearing step in each clearing result according to the comparison result, acquiring the number of data result strips after the completion of each clearing step in each clearing result, comparing the number of data result strips after the completion of each same clearing step in each clearing result, the sum value of preset key fields in each clearing result and the up-down account export file in each clearing result, generating a test report according to the completion condition of each clearing step in each clearing result and the comparison result, and determining the clearing environment quality of the test iteration version according to the test report.
6. The apparatus of claim 5, wherein the obtaining module is further configured to generate a query instruction according to the version number and the target environment parameter, call a release order server according to the query instruction, obtain a release order list corresponding to the query instruction from the release order server, display the release order list, respond to a release order selection operation, obtain a release order selection instruction, determine a release mode according to the release order selection instruction, call the release order server according to the release mode, deploy a release order corresponding to the release mode, and simulate a clearing environment of a production baseline version and a clearing environment of a test iteration version.
7. The apparatus of claim 5, wherein the first processing module is further configured to send a connectivity request to each of the clearing environments, when feedback information corresponding to the connectivity request is received, obtain a last update time of cleared production data that has been imported into each of the clearing environments, calculate a time difference between the last update time and a current time, obtain a clearing state of each of the clearing environments when the time difference is less than a preset difference threshold, and determine an operational state of each of the clearing environments as executable clearing when the clearing state of each of the clearing environments is cleared rollback.
8. The apparatus of claim 5, wherein the first processing module is further configured to obtain a clearing status table corresponding to the clearing serial execution program according to a preset time interval, determine a current clearing step and a clearing progress according to the clearing status table, and display the current clearing step and the clearing progress.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN201910604234.XA 2019-07-05 2019-07-05 Clearing data playback comparison method, device, computer equipment and storage medium Active CN110471696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910604234.XA CN110471696B (en) 2019-07-05 2019-07-05 Clearing data playback comparison method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910604234.XA CN110471696B (en) 2019-07-05 2019-07-05 Clearing data playback comparison method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110471696A CN110471696A (en) 2019-11-19
CN110471696B true CN110471696B (en) 2024-04-05

Family

ID=68506893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910604234.XA Active CN110471696B (en) 2019-07-05 2019-07-05 Clearing data playback comparison method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110471696B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015463B (en) * 2020-08-24 2023-08-18 中国银行股份有限公司 Configuration version management device and working method thereof
CN114445184A (en) * 2022-01-27 2022-05-06 聚好看科技股份有限公司 Order flow playback method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9235409B1 (en) * 2012-10-30 2016-01-12 Amazon Technologies, Inc. Deployment version management
CN105930259A (en) * 2015-12-23 2016-09-07 中国银联股份有限公司 Method and apparatus for WEB regression testing
CN108304309A (en) * 2018-02-24 2018-07-20 中国农业银行股份有限公司 A kind of method and device of automation contrast test data
CN109271325A (en) * 2018-10-26 2019-01-25 携程旅游网络技术(上海)有限公司 Test method, system, electronic equipment and the storage medium of application

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352907B2 (en) * 2009-08-10 2013-01-08 International Business Machines Corporation Software application recreation
US10176082B2 (en) * 2016-06-30 2019-01-08 International Business Machines Corporation Z/OS SMF/RMF workload data playback with web dashboard visualization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9235409B1 (en) * 2012-10-30 2016-01-12 Amazon Technologies, Inc. Deployment version management
CN105930259A (en) * 2015-12-23 2016-09-07 中国银联股份有限公司 Method and apparatus for WEB regression testing
CN108304309A (en) * 2018-02-24 2018-07-20 中国农业银行股份有限公司 A kind of method and device of automation contrast test data
CN109271325A (en) * 2018-10-26 2019-01-25 携程旅游网络技术(上海)有限公司 Test method, system, electronic equipment and the storage medium of application

Also Published As

Publication number Publication date
CN110471696A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN108804548B (en) Test data query method, device, computer equipment and storage medium
CN110603525A (en) Web application program testing method and system
US10970263B1 (en) Computer system and method of initiative analysis using outlier identification
CN110471696B (en) Clearing data playback comparison method, device, computer equipment and storage medium
CN109597759A (en) Test method and device, storage medium, the computer equipment of business software
CN111026647B (en) Method and device for acquiring code coverage rate, computer equipment and storage medium
CN112035350A (en) Test method and device for block chain system and computer equipment
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
CN108228611B (en) Document information copying method and device
CN113505026B (en) Method, device and equipment for verifying backup data and storage medium
CN114816806A (en) Container availability verification method and device, computer equipment and storage medium
CN114490415A (en) Service testing method, computer device, storage medium, and computer program product
CN111506340B (en) Business rule information processing method, device and system
CN111538664A (en) System and method for testing payment marking application
US11887143B2 (en) Record management system for enabling access to a record
CN110796464A (en) Monitoring data anti-cheating method and verification method, device, storage medium and terminal
CN113722208B (en) Project progress verification method and device for software test report
CN110704218B (en) Data processing method, data processing device, computer equipment and storage medium
CN117891714A (en) Flow playback testing method, device, equipment and storage medium
CN114998017A (en) Data settlement method, apparatus, computer device, storage medium and program product
CN116401162A (en) Verification method and device for automatic test, computer equipment and storage medium
CN117331812A (en) Service code verification method, device, computer equipment, storage medium and product
CN115454846A (en) Data consistency verification method, device, system and medium based on production environment
CN116089138A (en) Service data processing method, device, computer equipment and storage medium
CN112749091A (en) Software regression testing method

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
GR01 Patent grant
GR01 Patent grant