CN117573554A - Service verification method and system, storage medium and electronic equipment - Google Patents

Service verification method and system, storage medium and electronic equipment Download PDF

Info

Publication number
CN117573554A
CN117573554A CN202311637567.5A CN202311637567A CN117573554A CN 117573554 A CN117573554 A CN 117573554A CN 202311637567 A CN202311637567 A CN 202311637567A CN 117573554 A CN117573554 A CN 117573554A
Authority
CN
China
Prior art keywords
verification
transaction
case
business
service
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
CN202311637567.5A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311637567.5A priority Critical patent/CN117573554A/en
Publication of CN117573554A publication Critical patent/CN117573554A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a service verification method and system, a storage medium and electronic equipment, comprising the following steps: based on the service verification case library, generating a service case list corresponding to the verification scene demand information; generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list; ordering all verification transactions in the business verification case transaction list to obtain a verification transaction queue; generating verification transaction messages one by one for verification transactions in the verification transaction queue, and sending the verification transaction messages to the disaster recovery environment to obtain service verification results fed back by the disaster recovery environment. And generating verification transaction by the service cases in the constructed service verification case library, generating a verification transaction message for the verification transaction, and then sending the verification transaction message to the disaster recovery environment for service verification.

Description

Service verification method and system, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a service verification method and system, a storage medium, and an electronic device.
Background
With the continuous development of information technology, the government affair informatization and enterprise informatization levels are continuously improved, information systems become more and more important in daily offices, production and services, and disaster recovery construction of the information systems becomes an important means for improving the availability of the systems and the continuity of services.
In order to confirm the availability of the disaster recovery environment, during the daily switching exercise or the real switching of the disaster recovery environment, an internal staff is required to execute the service verification work of the disaster recovery environment in a manual mode, but the service range of manual verification is limited, the personnel organization cost is high, and the time required for verification is long.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a service verification method and system, a storage medium, and an electronic device, by applying the solution provided by the present invention, service verification can be performed rapidly, manual participation is reduced, cost of service verification is reduced, and time spent is reduced.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
a service verification method, comprising:
determining verification scene demand information;
generating a business case list corresponding to the verification scene demand information based on a pre-constructed business verification case library, wherein the business case list comprises at least one business case;
generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list;
based on preset transaction rules, ordering all verification transactions in the business verification case transaction list to obtain a verification transaction queue;
and acquiring verification transactions in the verification transaction queue one by one, generating a verification transaction message for the acquired verification transactions, and sending the verification transaction message to a disaster recovery environment corresponding to the verification scene demand information so as to acquire a service verification result generated after the disaster recovery environment applies the verification transaction message to carry out service verification.
The method, optionally, generating a business case list corresponding to the verification scenario requirement information based on a pre-constructed business verification case library, includes:
acquiring each case screening element in the verification scene demand information;
selecting service cases in the service verification case library based on each service screening element;
a business case inventory is generated using the selected individual business cases.
The method, optionally, generating a business verification case transaction list based on the business case list, includes:
for each business case in the business case list, configuring at least one transaction data for the business case, wherein the transaction data comprises input values of transaction input items of the business case, and generating verification transaction of each transaction data;
and forming each verification transaction of each business case into a business verification case transaction list.
The method, optionally, generating a verification transaction message for the obtained verification transaction includes:
acquiring a transaction code of the verification transaction;
acquiring a transaction report Wen Moban corresponding to the transaction code from a pre-constructed verification transaction report Wen Moban library;
and extracting the transaction input data of the verification transaction, and generating a verification transaction message of the verification transaction by applying the transaction input data and the transaction message template.
The method, optionally, a process of constructing a business verification case library, includes:
acquiring each transaction log from a preset log library;
acquiring each case element of each business transaction from each transaction log;
constructing each business case based on each case element of each business transaction;
and forming a service verification case library by using each service case.
The method, optionally, further comprises:
recording each service verification result, and displaying each service verification result.
A service verification system, comprising:
the system comprises a case module, a message template, a scheduling module and an execution engine;
the case module is used for constructing a service verification case library, and generating a service case list corresponding to the verification scene demand information based on the service verification case library when receiving the verification scene demand information, wherein the service case list comprises at least one service case; generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list;
the message template is used for establishing a verification transaction report Wen Moban library, and the verification transaction report Wen Moban library comprises a plurality of transaction reports Wen Moban;
the scheduling module is used for sequencing all verification transactions in the business verification case transaction list based on a preset transaction rule to obtain a verification transaction queue; acquiring verification transactions in the verification transaction queue one by one, acquiring a transaction message template corresponding to the verification transactions from a verification transaction message Wen Moban library of the message template, and generating a verification transaction message of the verification transactions by using the transaction message template;
the execution engine is used for receiving the verification transaction message generated by the dispatching module, sending the received verification transaction message to the disaster recovery environment corresponding to the verification scene demand information, and obtaining a service verification result generated after the disaster recovery environment applies the verification transaction message to carry out service verification.
The above system, optionally, further comprising:
a result processing module;
and the result processing module is used for recording each service verification result and displaying each service verification result.
A storage medium comprising stored instructions, wherein the instructions, when executed, control a device on which the storage medium resides to perform a business validation method as described above.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to perform a business validation method as described above by one or more processors.
Compared with the prior art, the invention has the following advantages:
the invention provides a service verification method and system, a storage medium and electronic equipment, comprising the following steps: determining verification scene demand information; based on a pre-constructed service verification case library, generating a service case list corresponding to verification scene demand information, wherein the service case list comprises at least one service case; generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list; based on preset transaction rules, ordering all verification transactions in a transaction list of the business verification case to obtain a verification transaction queue; the method comprises the steps of acquiring verification transactions in a verification transaction queue one by one, generating a verification transaction message for the acquired verification transactions, and sending the verification transaction message to a disaster recovery environment corresponding to the verification scene demand information to acquire a service verification result generated after service verification is performed by applying the verification transaction message to the disaster recovery environment. The invention generates the verification transaction through the service cases in the constructed service verification case library, generates the verification transaction message for the verification transaction, and then sends the verification transaction message to the disaster recovery environment for service verification, thereby reducing the manual participation degree, the cost and the time required by the verification service in the whole process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a method flowchart of a service verification method provided in an embodiment of the present invention;
fig. 2 is a flowchart of a method for generating a business case list corresponding to verification scene requirement information based on a pre-constructed business verification case library according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for constructing a business verification case library according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service verification system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a scenario of service verification according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Term interpretation:
disaster recovery switching: when the production system fails accidentally and can not provide service to the outside, the service is switched to the disaster recovery site through the fail-over function, and the service is provided to the outside through the disaster recovery site.
And (3) service verification: by means of internal personnel or a system, real business is simulated, end-to-end (from a system client to a system server) transaction is initiated, and whether related business processes run according to expected behaviors is verified.
Transaction message: when a client initiates a transaction, transaction data units exchanged and transmitted in a network, namely transaction data blocks to be sent by the client at one time, wherein the transaction messages contain complete data information to be sent, and formats or field information contained in different transaction messages are different.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor devices, distributed computing environments that include any of the above devices or devices, and the like. The execution subject of the invention is a processor or a server.
Referring to fig. 1, a method flowchart of a service verification method provided by an embodiment of the present invention is specifically described as follows:
s101, determining verification scene demand information.
The verification scene demand information contains information of disaster recovery environments needing service verification, such as information of systems in the disaster recovery environments, and also contains various elements required by case screening in the service verification process.
S102, generating a service case list corresponding to the verification scene demand information based on a pre-constructed service verification case library, wherein the service case list comprises at least one service case.
The business verification case library comprises a plurality of business cases, a business case usage log in the business verification case library is generated, and the log is generated when the production environment carries out business transaction in the application process.
Referring to fig. 2, a flowchart of a method for generating a business case list corresponding to verification scenario requirement information based on a pre-constructed business verification case library according to an embodiment of the present invention is described below.
S201, acquiring each case screening element in the verification scene demand information.
Analyzing the verification scene demand information to obtain each case screening element, wherein each case screening element comprises, but is not limited to, channel types, transaction occurrence frequency and the like; the case screening element may be used as a dimension to select a business case.
S202, selecting service cases in a service verification case library based on each service screening element.
Based on each service screening element, the service cases meeting all the service screening elements in the service verification case library can be used as selected service cases.
Illustratively, there is a case element corresponding to each business screening element in the business case.
When a business case is selected in the business verification case library, each case element of the business case can be compared with a corresponding business screening element, and when each case element of the business case is matched with the corresponding business screening element, the business case can be selected.
For example, when each case screening element is a channel type and a transaction type, each business screening element in a business case is a channel type and a transaction type; when the channel type in the business screening element of the business case is the same as the channel type in the case screening element, and the transaction type in the business screening element of the business case is the same as the transaction type in the case screening element, the business case is used as the selected business case.
S203, generating a business case list by using each selected business case.
After each selected business case is obtained, each selected business case can be generated into a business case list.
According to the invention, the service case is selected from the service verification case library based on the verification scene demand information, so that the service case which meets the verification demand better can be obtained, and the subsequent service verification is facilitated. Preferably, the selected business case can generate a business case list, and the generated business case list can be displayed to the user later so that the user can determine the selected business case during business verification through the business case list and is convenient for follow-up verification tracing and adjustment.
Referring to fig. 3, a flowchart of a method for constructing a business verification case library according to an embodiment of the present invention is specifically described below:
s301, acquiring each transaction log from a preset log library.
The log library is used for storing transaction logs generated by the business transaction carried out by the system when the system is applied.
Preferably, when the transaction log is acquired, the transaction log may be acquired according to a preset period, for example, a day, a month, a quarter or a year, or a specified time is taken as the period.
S302, acquiring each case element of each business transaction from each transaction log.
It should be noted that each case element includes, but is not limited to, a transaction code, a transaction name, a channel type, a transaction input item, etc.; these case elements may also be referred to as key factors.
S303, constructing each business case based on each case element of each business transaction.
Preferably, different businesses have different business cases, and different business cases are constructed when specific values of the same case element are different in the process of constructing each business case.
Referring to table 1, an example table of individual case elements in a business case is provided for an embodiment of the present invention.
TABLE 1
It should be noted that, the transaction frequency of different transactions in different periods can be calculated according to the year, quarter, month and day by taking the transaction code and the channel type as indexes, and the transaction frequency can be immediately the occurrence frequency of the transactions. Preferably, the business cases in the business verification case library may be ordered in order of the transaction frequency from high to low.
Further, the transaction type for each business case may be determined based on whether or not the ledger transaction is involved.
S304, forming a service verification case library by using each service case.
The service verification case library is constructed in advance, and the service verification case library comprises a plurality of service cases, so that the service cases can be conveniently selected from the service verification case library when the service verification is carried out subsequently.
S103, generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list.
The process of generating the business verification case transaction list is as follows:
for each business case in the business case list, configuring at least one transaction data for the business case, wherein the transaction data comprises the input value of the transaction input item of the business case, and generating verification transaction of each transaction data;
and forming each verification transaction of each business case into a business verification case transaction list.
It should be noted that the content of different transaction data is different, and for the same business case, different transaction data needs to generate different verification transactions.
Preferably, the data in the transaction input item of the business case is data that needs to be used when conducting the business transaction corresponding to the business case.
For example, for the transaction input item in the same business case, when the configured values are different, different verification transactions need to be generated, for example, for the business case 1, when the transaction input item is a withdrawal amount and the transaction data of the transaction input item is 100, the verification transaction when the transaction data of the transaction data item is 100 is generated; when the transaction data of the transaction input item is 500, a verification transaction is generated when the transaction data of the transaction data item is 500.
It should be noted that, after the verification transaction is generated, a verification case number is generated, and rules of the verification case are as follows: XXXX (note: 4-bit transaction code) -XXXX (note: 4-bit channel code) -XX (note: 2-bit transaction type code).
S104, based on preset transaction rules, ordering all verification transactions in the business verification case transaction list to obtain a verification transaction queue.
It should be noted that the transaction rule may include various types of execution sequence descriptions, for example, firstly making account inquiry transaction, then making funds deposit transaction, and then making funds extraction transaction; the account withdrawal amount must be less than or equal to the account balance, etc. In other words, the execution order of various transactions is set in the transaction rule, and each verification transaction in the business verification case transaction list is ordered based on the transaction rule, so as to obtain a verification transaction queue.
S105, acquiring verification transactions in the verification transaction queue one by one, generating a verification transaction message for the acquired verification transactions, and sending the verification transaction message to the disaster recovery environment corresponding to the verification scene demand information so as to acquire a service verification result generated after the service verification is performed by applying the verification transaction message to the disaster recovery environment.
Preferably, when the verification transactions in the verification transaction queue are acquired one by one, each verification transaction in the verification transaction queue may be read one by one.
For a read verification transaction, a verification transaction message of the verification transaction needs to be generated, which is specifically described as follows:
acquiring a transaction code for verifying a transaction;
acquiring a transaction report Wen Moban corresponding to the transaction code from a pre-constructed verification transaction report Wen Moban library;
and extracting transaction input data of the verification transaction, and generating a verification transaction message of the verification transaction by applying the transaction input data and the transaction message template.
It should be noted that, the transaction code of the verification transaction may be obtained from the verification case number of the verification transaction; different transaction codes correspond to different transaction message templates, the transaction message templates are pre-generated, and the transaction message templates can be generated based on each transaction record in the log library.
The transaction input data herein is configured to generate transaction data configured to validate a transaction.
Based on the transaction message Wen Moban, the transaction input data is composed, thereby generating a verification transaction message corresponding to the verification transaction.
Further, after generating the verification transaction message, the verification transaction message may be sent to an execution engine, and then the execution engine sends the verification transaction message to the disaster recovery environment; and after the disaster recovery environment applies the verification transaction message to carry out corresponding service verification, generating a service verification result.
The service verification result of each verification transaction fed back by the disaster recovery environment can be obtained, then each service verification result is recorded, and each service verification result is displayed.
Based on the transaction log in the log library in the production environment, the invention constructs a complete service verification case library and a message template library (equivalent to the verification transaction report Wen Moban library) since the transaction log information is extracted and identified from the transaction log, identifies and establishes key links and an automatic flow of service verification, greatly improves the service verification efficiency of the disaster recovery environment of enterprises, shortens the service interruption time, and strengthens the service continuity guarantee capability of the enterprises.
In the method provided by the embodiment of the invention, the verification scene demand information is determined; based on a pre-constructed service verification case library, generating a service case list corresponding to verification scene demand information, wherein the service case list comprises at least one service case; generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list; based on preset transaction rules, ordering all verification transactions in a transaction list of the business verification case to obtain a verification transaction queue; the method comprises the steps of acquiring verification transactions in a verification transaction queue one by one, generating a verification transaction message for the acquired verification transactions, and sending the verification transaction message to a disaster recovery environment corresponding to the verification scene demand information to acquire a service verification result generated after service verification is performed by applying the verification transaction message to the disaster recovery environment. The invention generates the verification transaction through the service cases in the constructed service verification case library, generates the verification transaction message for the verification transaction, and then sends the verification transaction message to the disaster recovery environment for service verification, thereby reducing the manual participation degree, the cost and the time required by the verification service in the whole process.
The embodiment of the present invention further provides a service verification system, which is provided to support implementation of the method shown in fig. 1, referring to fig. 4, and is a schematic structural diagram of the service verification system provided by the embodiment of the present invention, where the service verification system includes a case module 401, a report Wen Moban 402, a scheduling module 403 and an execution engine 404 as shown in the figure.
The case module 401 is configured to construct a service verification case library, and generate a service case list corresponding to the verification scene requirement information based on the service verification case library when receiving the verification scene requirement information, where the service case list includes at least one service case; and generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list.
It should be noted that, the case module automatically generates a series of business verification cases, and the specific functions include: support definition and configuration of various business verification scenes; automatically extracting transaction data from a transaction log of a production environment to generate a service verification case library, wherein the service verification case library comprises a plurality of service cases; the parameterization and dynamic adjustment of the service cases are supported, and different service requirements are met; automatically generating a business verification case transaction list from a business verification case library according to the defined verification scene; and supporting the operations of adding, deleting, checking and modifying the service verification case list.
Preferably, when generating the business verification case transaction list, the business verification case transaction list can be automatically generated after the business cases are selected in the business verification case library according to the verification scene requirements (equivalent to the verification scene requirement information above) from the dimensions of channel types, transaction occurrence frequencies and the like, and a unique verification case number is generated for each verification transaction in the list. Verifying the transaction for each service in a parameterized manner, configuring a transaction entry value, including: transaction account, transaction amount, transaction user, etc. The verification case numbering rules are as follows:
XXXX (note: 4-bit transaction code) -XXXX (note: 4-bit channel code) -XX (note: 2-bit transaction type code).
Further, the case module also executes the relevant content of the above method, and will not be described herein.
The report Wen Moban, for establishing a verification transaction report Wen Moban library, the verification transaction report Wen Moban library includes a plurality of transaction message templates.
The message module can automatically generate message format templates of different service verification cases. The specific functions include: automatically generating corresponding transaction message format templates for different business verification cases from a production environment transaction log; support the operations of adding, deleting, checking and modifying transaction message templates.
The transaction verification transaction report Wen Moban library is generated by reading and establishing transaction message format templates (corresponding to the transaction report Wen Moban above) for generating different business cases from the system log by taking the transaction codes as indexes. The message module can maintain and check the transaction message templates of different business cases in the business verification transaction message Wen Moban library.
A scheduling module 403, configured to sort each verification transaction in the service verification case transaction list based on a preset transaction rule, so as to obtain a verification transaction queue; and acquiring verification transactions in the verification transaction queue one by one, acquiring a transaction message template corresponding to the verification transactions from a verification transaction message Wen Moban library of the message template, and generating a verification transaction message of the verification transactions by using the transaction message template.
And configuring transaction rules according to the transaction channels and verification scenes. For example: firstly, account inquiry transaction is carried out, then fund deposit transaction is carried out, and then fund extraction transaction is carried out; the account withdrawal amount must be less than or equal to the account balance, etc.
And acquiring a business verification case transaction list from the case module, reading business verification transaction in the list, generating a verification transaction queue according to transaction rules, taking a transaction code as an index, acquiring a transaction message template for appointed verification transaction from the message module, combining data of a transaction input item of the verification transaction, assembling and generating business verification transaction messages, and sending the business verification transaction messages to an execution engine one by one.
Acquiring and storing service verification results from an execution engine, wherein the service verification results comprise verification case codes and verification results (transaction success, transaction failure and error information); and the concurrent execution and transaction management of the business verification transaction are supported, and the correctness and reliability of the transaction are ensured.
And the execution engine 404 is configured to receive the verification transaction message generated by the scheduling module, send the received verification transaction message to a disaster recovery environment corresponding to the verification scene demand information, and obtain a service verification result generated after the disaster recovery environment performs service verification by applying the verification transaction message to the verification transaction message.
It should be noted that, a plurality of engines may be configured according to different transaction channels; and receiving the verification transaction message sent by the scheduling module, and sending the verification transaction message to the disaster recovery environment. And receiving and recording a service verification result of the verification transaction message, and returning the service verification result to the scheduling module.
Further, the scheduling module and the execution engine are used for scheduling and executing the service cases, and specific functions comprise: support definition and configuration of transaction rules under different service verification scenes; scheduling and executing a series of business verification cases according to defined transaction rules; concurrent execution and transaction management of business transactions are supported to ensure correctness and reliability of transactions.
The service verification system provided by the invention further comprises a result processing module, wherein the result processing module is used for recording each service verification result and displaying each service verification result.
In addition, the result processing module interacts with the scheduling module to acquire a service verification result and records the result into the system; recording, inquiring, counting and analyzing of service verification results are supported; and support export and sharing of business validation results.
Recording and managing service verification results in the system through a result processing module, wherein the specific functions comprise: recording and inquiring service verification results are supported; supporting statistics and analysis of service verification results; and supporting the report and the display of the service verification result.
The scheme can automatically extract business transaction information based on the production system log, construct a business verification case library and a message template library, identify business verification key links and processes of a disaster recovery environment on the basis, effectively meet the requirements of implementing large-scale automatic business verification under disaster recovery switching through the design of a scheduling module, an execution engine and a recording/displaying module, effectively improve the business verification efficiency of the disaster recovery environment, expand the business verification range, reduce the verification organization cost and further strengthen the system business continuity guarantee capability.
Referring to fig. 5, an exemplary diagram of a scenario for service verification provided by an embodiment of the present invention includes a log library, a message module, a case module, a result processing module, a scheduling module, an execution engine, and a disaster recovery environment.
Firstly, automatically extracting business transaction records and transaction message formats through transaction logs in a log library of a production system. Screening different transactions based on transaction records extracted from the log, generating corresponding service verification cases, and establishing a service verification case library according to dimensions such as channels, transaction types, transaction frequencies and the like; based on the transaction message format extracted from the log, generating a one-to-one corresponding transaction message template for each service verification case, and establishing a service verification case report Wen Moban library; secondly, selecting verification transaction from a service verification case library, designating verification elements such as account, amount and the like of the verification transaction, and generating a service verification case list; extracting a message format corresponding to a transaction from a message template library (equivalent to the verification transaction report Wen Moban library) and assembling and generating a service verification transaction task queue according to a transaction rule configured in advance and a service verification case list, sending the service verification task queue to a disaster recovery environment, and executing and completing service verification; and finally, checking the service verification completion condition in real time through the service verification view to generate a service verification report. The invention improves the service verification efficiency of disaster recovery switching, expands the service verification range, effectively reduces the verification cost, remarkably improves the usability guarantee capability of the disaster recovery environment of enterprises, and has the advantages of high efficiency, low cost and the like.
The embodiment of the invention also provides a storage medium, which comprises stored instructions, wherein the equipment where the storage medium is located is controlled to execute the service verification method when the instructions run.
The embodiment of the invention also provides an electronic device, the structure of which is shown in fig. 6, specifically including a memory 601, and one or more instructions 602, where the one or more instructions 602 are stored in the memory 601, and configured to be executed by the one or more processors 603, where the one or more instructions 602 are the service verification method described above.
It should be noted that, information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of related data are required to comply with related laws and regulations and standards of related countries and regions.
The specific implementation process and derivative manner of the above embodiments are all within the protection scope of the present invention.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A service verification method, comprising:
determining verification scene demand information;
generating a business case list corresponding to the verification scene demand information based on a pre-constructed business verification case library, wherein the business case list comprises at least one business case;
generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list;
based on preset transaction rules, ordering all verification transactions in the business verification case transaction list to obtain a verification transaction queue;
and acquiring verification transactions in the verification transaction queue one by one, generating a verification transaction message for the acquired verification transactions, and sending the verification transaction message to a disaster recovery environment corresponding to the verification scene demand information so as to acquire a service verification result generated after the disaster recovery environment applies the verification transaction message to carry out service verification.
2. The method of claim 1, wherein generating a business case manifest corresponding to the verification scenario requirement information based on a pre-constructed business verification case library comprises:
acquiring each case screening element in the verification scene demand information;
selecting service cases in the service verification case library based on each service screening element;
a business case inventory is generated using the selected individual business cases.
3. The method of claim 1, wherein generating a business verification case transaction manifest based on the business case manifest comprises:
for each business case in the business case list, configuring at least one transaction data for the business case, wherein the transaction data comprises input values of transaction input items of the business case, and generating verification transaction of each transaction data;
and forming each verification transaction of each business case into a business verification case transaction list.
4. The method of claim 1, wherein generating the validation transaction message for the acquired validation transaction comprises:
acquiring a transaction code of the verification transaction;
acquiring a transaction report Wen Moban corresponding to the transaction code from a pre-constructed verification transaction report Wen Moban library;
and extracting the transaction input data of the verification transaction, and generating a verification transaction message of the verification transaction by applying the transaction input data and the transaction message template.
5. The method of claim 1, wherein the process of constructing the business verification case library comprises:
acquiring each transaction log from a preset log library;
acquiring each case element of each business transaction from each transaction log;
constructing each business case based on each case element of each business transaction;
and forming a service verification case library by using each service case.
6. The method as recited in claim 1, further comprising:
recording each service verification result, and displaying each service verification result.
7. A service verification system, comprising:
the system comprises a case module, a message template, a scheduling module and an execution engine;
the case module is used for constructing a service verification case library, and generating a service case list corresponding to the verification scene demand information based on the service verification case library when receiving the verification scene demand information, wherein the service case list comprises at least one service case; generating a business verification case transaction list based on the business case list, wherein the business verification case transaction list comprises verification transactions of each business case in the business case list;
the message template is used for establishing a verification transaction report Wen Moban library, and the verification transaction report Wen Moban library comprises a plurality of transaction reports Wen Moban;
the scheduling module is used for sequencing all verification transactions in the business verification case transaction list based on a preset transaction rule to obtain a verification transaction queue; acquiring verification transactions in the verification transaction queue one by one, acquiring a transaction message template corresponding to the verification transactions from a verification transaction message Wen Moban library of the message template, and generating a verification transaction message of the verification transactions by using the transaction message template;
the execution engine is used for receiving the verification transaction message generated by the dispatching module, sending the received verification transaction message to the disaster recovery environment corresponding to the verification scene demand information, and obtaining a service verification result generated after the disaster recovery environment applies the verification transaction message to carry out service verification.
8. The system of claim 7, further comprising:
a result processing module;
and the result processing module is used for recording each service verification result and displaying each service verification result.
9. A storage medium comprising stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform the service verification method of any one of claims 1-6.
10. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the business validation method of any of claims 1-6.
CN202311637567.5A 2023-12-01 2023-12-01 Service verification method and system, storage medium and electronic equipment Pending CN117573554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311637567.5A CN117573554A (en) 2023-12-01 2023-12-01 Service verification method and system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311637567.5A CN117573554A (en) 2023-12-01 2023-12-01 Service verification method and system, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117573554A true CN117573554A (en) 2024-02-20

Family

ID=89860644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311637567.5A Pending CN117573554A (en) 2023-12-01 2023-12-01 Service verification method and system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117573554A (en)

Similar Documents

Publication Publication Date Title
US10678683B2 (en) System and method for automated service layer testing and regression
US11164131B2 (en) Measure factory
CN109783581A (en) Right management method, device, electronic equipment and storage medium
CN103038752A (en) Bug clearing house
CN110941630A (en) Database operation and maintenance method, device and system
US20210109904A1 (en) System and method for process and automation framework to enable acceptance test driven development
CN112102099B (en) Policy data processing method and device, electronic equipment and storage medium
CN112035350B (en) Test method and device for block chain system and computer equipment
CN113420057A (en) Account checking data processing method and related device
CN112506771A (en) Message comparison method and device
US9569516B2 (en) Method and device for executing an enterprise process
CN113609011A (en) Method, device, medium and equipment for testing insurance product factory
CN106708869B (en) Group data processing method and device
CN117036062A (en) Accounting resource calculation method and device
CN117573554A (en) Service verification method and system, storage medium and electronic equipment
US20220092503A1 (en) Measure factory
CN112419052B (en) Transaction testing method, device, electronic equipment and readable storage medium
CA3157219A1 (en) Interprocess communication for asynchronous tasks
CN114238324A (en) Checking method and device for host station, electronic equipment and storage medium
CN114170006A (en) Information data acquisition method, device, equipment and medium based on state machine
CN112862264A (en) Enterprise operation condition analysis method, computer device and computer storage medium
CN109471790A (en) Send nuclear parameter comparison method and device, computer installation and readable storage medium storing program for executing
US11831490B1 (en) Systems, methods, and media for performing information technology service management correlation for infrastructure environment functions
CN113128910A (en) Method, device, equipment and storage medium for constructing data application portal system
CN115309644A (en) Method and device for testing query page

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