CN114116432A - Migration verification method, migration verification platform, electronic device and storage medium - Google Patents

Migration verification method, migration verification platform, electronic device and storage medium Download PDF

Info

Publication number
CN114116432A
CN114116432A CN202210109647.2A CN202210109647A CN114116432A CN 114116432 A CN114116432 A CN 114116432A CN 202210109647 A CN202210109647 A CN 202210109647A CN 114116432 A CN114116432 A CN 114116432A
Authority
CN
China
Prior art keywords
service request
target
result
actual
expected
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
CN202210109647.2A
Other languages
Chinese (zh)
Inventor
王艺超
涂卫平
林彤
宗深
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology 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 China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202210109647.2A priority Critical patent/CN114116432A/en
Publication of CN114116432A publication Critical patent/CN114116432A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a migration verification method, a migration verification platform, electronic equipment and a storage medium, wherein an acquired log file of an original system is analyzed, each obtained service request is translated into a target service request meeting the request format of a target system and then is sent to the target system, and the target system sends an actual processing result and an actual key characteristic value obtained by processing each received target service request to the migration verification platform; generating an expected result object corresponding to each service request according to a processing result corresponding to each service request; generating an actual result object corresponding to each target service request according to the actual processing result and the actual key characteristic value of each target service request; and comparing the expected result object corresponding to each service request with the actual result object corresponding to the target service request corresponding to each service request to obtain a comparison result corresponding to the service request. The invention can reduce the cost of the mobility verification.

Description

Migration verification method, migration verification platform, electronic device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a migration verification method, a migration verification platform, an electronic device, and a storage medium.
Background
With the rapid development of computer technology, the update speed of the civil aviation service system is faster and faster, and when the civil aviation service system is updated, a service request originally processed by an original system needs to be migrated to a target system (the updated civil aviation service system) for processing. However, in the process of technology upgrade, the interface design of the target system is often optimized, so that the format of the service request processed by the original system is not necessarily the same as the format of the service request processed by the target system, and the access channels of the service requests are not necessarily the same. Therefore, migration verification of the target system is required before the target system is actually put into production.
In the existing system migration verification method, a corresponding shunting device is arranged for each channel, after a service request sent by the corresponding channel is shunted by the shunting device, an original system and a target system are respectively sent, and then processing results of the original system and the target system are compared.
Disclosure of Invention
In view of this, the present invention provides a migration verification method, a migration verification platform, an electronic device, and a storage medium, so as to solve the problem in the prior art that a shunting device needs to be installed on processing interfaces of all channels of a target system and an original system, which results in an excessively high cost.
The invention discloses a migration verification method in a first aspect, which is applied to a migration verification platform and comprises the following steps:
acquiring a log file of an original system, analyzing the log file to obtain service requests sent based on various channels and a processing result corresponding to each service request;
translating each service request into a target service request meeting the request format of the target system, sending each target service request to the target system so that the target system processes each received target service request, and sending an actual processing result and an actual key characteristic value corresponding to each obtained target service request to the migration verification platform;
generating an expected result object corresponding to each service request according to a processing result corresponding to each service request, wherein the expected result object comprises an expected processing result and an expected key characteristic value;
generating an actual result object corresponding to each target service request according to an actual processing result and an actual key characteristic value corresponding to each target service request;
for each service request, comparing an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request to obtain a comparison result corresponding to the service request.
The second aspect of the present invention discloses a migration verification platform, which includes:
the log analysis module is used for acquiring a log file of an original system and analyzing the log file to obtain service requests sent based on each channel and a processing result corresponding to each service request;
the request translation module is used for translating each service request into a target service request meeting the request format of the target system, sending each target service request to the target system so that the target system processes each received target service request, and sending an actual processing result and an actual key characteristic value corresponding to each obtained target service request to the migration verification platform;
the reply translation module is used for generating an expected result object corresponding to each service request according to a processing result corresponding to each service request, and the expected result object comprises an expected processing result and an expected key characteristic value;
the target system processing result processing module is used for generating an actual result object corresponding to each target service request according to an actual processing result and an actual key characteristic value corresponding to each target service request;
and the comparison module is used for comparing an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request aiming at each service request to obtain a comparison result corresponding to the service request.
A third aspect of the present invention discloses an electronic apparatus comprising: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory is configured to store a program for implementing the migration verification method disclosed in the first aspect of the present invention.
A fourth aspect of the present invention discloses a computer-readable storage medium having stored therein computer-executable instructions for performing the migration verification method as disclosed in the first aspect of the present invention.
The invention provides a system migration verification method, a migration verification platform, electronic equipment and a storage medium, wherein a log file of an original system is obtained through the migration verification platform, and the log file is analyzed to obtain service requests sent based on various channels and processing results corresponding to each service request; after each service request is translated into a target service request meeting the request format of a target system, each item mark service request is sent to the target system, so that the target system processes each received target service request, and an actual processing result and an actual key characteristic value corresponding to each obtained target service request are sent to a migration verification platform; generating an expected result object corresponding to each service request according to the processing result corresponding to each service request, wherein the expected result object comprises an expected processing result and an expected key characteristic value; generating an actual result object corresponding to the target service request according to the actual processing result and the actual key characteristic value corresponding to each target service request; and finally, comparing the expected result object corresponding to each service request with the actual result object corresponding to the target service request corresponding to each service request to obtain a comparison result corresponding to the service request, wherein a corresponding shunting device does not need to be arranged for each channel, and the cost is greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
The above and other features, advantages and aspects of the disclosed embodiments will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic structural diagram of a migration verification platform according to an embodiment of the present invention;
fig. 2 is a flowchart of a migration verification method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another migration verification method provided by an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules, or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules, or units.
It is noted that references to "a", "an", and "the" modifications in the disclosure are exemplary rather than limiting, and that those skilled in the art will understand that "one or more" unless the context clearly dictates otherwise.
Referring to fig. 1, a schematic structural diagram of a migration verification platform provided in an embodiment of the present invention is shown, where the migration verification platform 100 includes a log parsing module 101, a request translation module 102, a reply translation module 103, a target system processing result processing module 104, and a comparison module 105.
The log analyzing module 101 is configured to obtain a log file of an original system, analyze the log file, and obtain service requests sent based on each channel and a processing result corresponding to each service request.
The request translation module 102 is configured to translate each service request into a target service request meeting a request format of a target system, and send each entry mark service request to the target system, so that the target system processes each received target service request, and sends an actual processing result and an actual key feature value corresponding to each obtained target service request to the migration verification platform.
And the reply translation module 103 is configured to generate an expected processing result and an expected key feature value corresponding to each service request according to the processing result corresponding to each service request.
And the target system processing result processing module 104 is configured to generate an actual result object corresponding to the target service request according to the actual processing result and the actual key feature value corresponding to each target service request.
The comparison module 105 is configured to, for each service request, compare an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request to obtain a comparison result corresponding to the service request.
Further, before executing the log parsing module, the migration verification platform provided in the embodiment of the present invention further includes a target system initialization script generation module and a target system initialization execution module.
And the target system initialization script generation module is used for generating the initialization script of the target system according to the time for starting the migration verification of the original system when the original system is detected to start the migration verification.
And the target system initialization execution module is used for executing the initialization script to initialize the target system.
Optionally, the log analysis module is configured to, when acquiring a log file of an original system, and analyzing the log file to obtain the service requests sent based on each channel and a processing result corresponding to each service request,:
acquiring a log file of an original system in a preset time period, wherein the preset time period is from the time when the original system starts the migration verification to the current time of the original system;
and analyzing the log file to obtain service requests sent based on each channel and a processing result corresponding to each service request.
Optionally, the request translation module translates each service request into a target service request meeting a request format of the target system, and sends each target service request to the target system, so that the target system processes each received target service request, and sends an actual processing result and an actual key feature value corresponding to each obtained target service request to the migration verification platform, where the request translation module is configured to:
aiming at each service request, creating a corresponding request object to be translated for the service request;
translating the request object to be translated into a target service request meeting the request format of a target system;
and sequentially sending the target service requests corresponding to the service requests to a target system according to the sequence of receiving the service requests so that the target system processes the received target service requests and sends the obtained actual processing results and actual key characteristic values corresponding to the target service requests to a migration verification platform.
Optionally, when the reply translation module generates an expected processing result and an expected key feature value corresponding to each service request according to the processing result corresponding to each service request, the reply translation module is configured to:
aiming at the processing result corresponding to each service request, creating a corresponding object to be translated for the processing result corresponding to the service request;
and for each object to be translated, processing the corresponding to-be-translated object according to a preset corresponding relation to obtain an expected result object of the object to be translated, wherein the expected result object comprises an expected processing result and an expected key characteristic value corresponding to the service request corresponding to the object to be translated.
Optionally, the comparison module compares, for each service request, an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request, and when obtaining a comparison result corresponding to the service request, is configured to:
for each service request, comparing an expected processing result in an expected result object corresponding to the service request with an actual processing result corresponding to a target service request corresponding to the service request to obtain a first comparison result of the service request;
comparing an expected key characteristic value in an expected result object corresponding to the service request with an actual key characteristic value corresponding to a target service request corresponding to the service request to obtain a second comparison result of the service request;
generating a comparison result of the service request according to the first comparison result of the service request and the second comparison result of the service request;
further, before executing the log parsing module, the migration verification platform provided by the embodiment of the present invention further includes a comparison result report generating unit;
and the comparison result report generating unit is used for generating a corresponding comparison result report according to the comparison result corresponding to each service request.
It should be noted that, for the specific working process of each module in the migration verification platform provided in the foregoing embodiment of the present application, reference may be made to the implementation of corresponding steps in the following migration verification method embodiment, and details are not described here again.
Another embodiment of the present application provides a migration verification method, as shown in fig. 2, where the migration verification method is applied to a migration verification platform shown in fig. 1, and the migration verification method specifically includes the following steps:
s201: and acquiring a log file of an original system, analyzing the log file, and obtaining service requests sent based on each channel and a processing result corresponding to each service request.
In the specific process of executing step S201, the migration verification platform obtains the log file of the original system through the log analysis module, and analyzes the obtained log file of the original system to obtain the service requests sent based on each channel and the replies corresponding to each service request, that is, the processing results corresponding to each service request.
It should be noted that after the obtained log file of the original system is analyzed to obtain the service requests sent based on each channel, for each service request, the service request may be used as a verification case to be verified, so that a corresponding request object to be translated may be created for the verification case in the following.
It should be noted that the service request sent based on each channel may be a blank screen (instruction type) request, an http request, an EDIFACT message request sent by a GDS/foreign navigation server, or the like.
It should be noted that, because the log file of the original system includes the sequence in which the original system receives the service requests sent based on each channel, the log of the original system can be analyzed to ensure that the requests are sent to the target system according to the same time sequence, and the log file of the original system includes the service requests sent through all channels, the subsequent migratory verification performed by acquiring the log file of the original system is closer to the real production scenario.
S202: and translating each service request into a target service request meeting the request format of the target system, sending each item mark service request to the target system so that the target system processes each received target service request, and sending an actual processing result and an actual key characteristic value corresponding to each obtained target service request to the migration verification platform.
In the process of specifically executing step S202, after analyzing the obtained log file to obtain service requests sent based on each channel, for each service request, a corresponding object to be translated is created for the service request through the request translation module, for example: original Systom request POJO; and writing the created request object to be translated into a preset verification case set.
And the target business request is sent to the target system until all the request objects to be translated are translated into corresponding target business requests and sent to the target system.
It should be noted that, after receiving the target service request, the target service request processes the received target service request to obtain a corresponding actual processing result, extracts a corresponding actual key feature value from the actual processing result, and sends the actual processing result and the actual key feature value corresponding to the obtained target service request to the migration verification platform; or, the target service system may also extract a corresponding actual key feature value from an actual processing result corresponding to the target service request, store the actual key feature value corresponding to the target service request in the memory, and send the actual processing result corresponding to the target service request to the migration platform, so that the migration verification platform obtains the actual key feature value corresponding to the target service request from the memory of the target system through the target system processing result processing module or accesses the query service of the target system, and generates a corresponding actual result object according to the obtained actual processing result corresponding to the target service request and the actual key feature value.
It should be further noted that, in the process of processing the target service request by the target system, if the target service request needs to be sent to the external system, the target service request is sent to the external system, and then the external system sends a reply of the target service request to the target system.
S203: and generating an expected result object corresponding to each service request according to the processing result corresponding to each service request, wherein the expected result object comprises an expected processing result and an expected key characteristic value.
In the process of specifically executing step S203, after the obtained log file of the original system is analyzed to obtain a processing result corresponding to each service request, for each service request, a corresponding object to be translated is created for the service request, for example: origin Systom Response POJO; and translating the to-be-translated processing object corresponding to the service request into a corresponding expected result object according to a preset corresponding relation, wherein the expected result object comprises an expected processing result and an expected key characteristic value corresponding to the service request corresponding to the to-be-translated processing object.
S204: and generating an actual result object corresponding to the target service request according to the actual processing result and the actual key characteristic value corresponding to each target service request.
In the process of specifically executing step S204, after acquiring the actual processing result and the actual key feature value corresponding to the target service request, for each target service request, the target system processes the result request processing module to generate an actual result object corresponding to the target service request according to the actual processing result and the actual key feature value corresponding to the target service object, for example: target system Actual Processing Result POJO.
It should be noted that, when the service request corresponding to the target service request is taken as a verification use case, the actual result object corresponding to the target service request corresponding to the verification use case may be written into a preset verification use case set.
S205: for each service request, comparing an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request to obtain a comparison result corresponding to the service request.
In the process of specifically executing step S205, for each service request, obtaining, by a comparison module, an expected result object corresponding to the service request and an actual result object corresponding to a corresponding target service object from a verification case set, and comparing an expected processing result in the expected result object corresponding to the service request with an actual processing result in the actual result object corresponding to the target service request corresponding to the service request to obtain a first comparison result of the service request; comparing an expected key characteristic value in an expected result object corresponding to the service request with an actual key characteristic value corresponding to a target service request corresponding to the service request to obtain a second comparison result of the service request; and generating a final comparison result of the service request according to the first comparison result of the service request and the second comparison result of the service request.
It should be noted that, for each service request, if an expected processing result in an expected result object corresponding to the service request is not consistent with an actual processing result in an actual result object corresponding to a target service request corresponding to the service request, it is indicated that a processing result obtained by processing the target service request corresponding to the service request by a target system is different from a processing result obtained by processing the service request by an original system, a field having the difference is recorded, and a first comparison result indicating that the comparison fails is generated according to the recorded difference field; if the comparison result is consistent with the processing result obtained by the original system, the processing result obtained by the target system processing the target service request corresponding to the service request is not different from the processing result obtained by the original system processing the service request, and a first comparison result representing that the comparison is successful is generated.
If the expected key characteristic value in the expected result object corresponding to the service request is inconsistent with the actual key characteristic value in the actual result object corresponding to the target service request corresponding to the service request, it is indicated that the key characteristic value obtained by processing the target service request corresponding to the service request by the target system is different from the key characteristic value obtained by processing the service request by the original system, a field with the difference is recorded, and a second comparison result of the representation failure is generated according to the recorded difference field; if the two comparison results are consistent, it is indicated that the key characteristic value obtained by processing the target service request corresponding to the service request by the target system is not different from the key characteristic value obtained by processing the service request by the original system, and a second comparison result with successful representation comparison is generated.
If the first comparison result and the second comparison result corresponding to the service request both represent and are successfully compared, the mobility verification of the service request is successful; if any one of the first comparison result and the second comparison result corresponding to the service request has a result representation comparison failure, the migration verification of the service request is failed, and the migration verification between the original system and the target system can be successfully verified only under the condition that the verification results of all the service requests are migration verification success.
The invention provides a migration verification method, which is applied to a migration verification platform, and is used for acquiring a log file of an original system through the migration verification platform and analyzing the log file to obtain service requests sent based on various channels and processing results corresponding to each service request; after each service request is translated into a target service request meeting the request format of a target system, each item mark service request is sent to the target system, so that the target system processes each received target service request, and an actual processing result and an actual key characteristic value corresponding to each obtained target service request are sent to a migration verification platform; generating an expected result object corresponding to each service request according to the processing result corresponding to each service request, wherein the expected result object comprises an expected processing result and an expected key characteristic value; generating an actual result object corresponding to the target service request according to the actual processing result and the actual key characteristic value corresponding to each target service request; and finally, comparing the expected result object corresponding to each service request with the actual result object corresponding to the target service request corresponding to each service request to obtain a comparison result corresponding to the service request, wherein a corresponding shunting device does not need to be arranged for each channel, and the cost is greatly reduced.
Another embodiment of the present application provides another migration verification method, as shown in fig. 3, where the migration verification method is applied to the migration verification platform shown in fig. 1, and the migration verification method specifically includes the following steps:
s301: and when detecting that the original system starts the migration verification, generating an initialization script of the target system according to the time of starting the migration verification by the original system.
In the process of specifically executing step S301, the original system is detected in real time, and when it is detected that the original system starts the migration verification, a system time snapshot of the original system when the migration verification is started, that is, the time when the original system starts the migration verification, is obtained, so as to generate an initialization script of the target system according to the time when the original system starts the migration verification, so as to initialize the target system according to the generated initialization script, and prepare for subsequent migration verification.
S302: and executing the initialization script to initialize the target system.
In the specific execution process of step S302, after the initialization script of the target system is generated according to the time when the migration verification is started by the original system, the generated initialization script is executed to initialize the target system, so that the target system is set to a state that is consistent with the migration verification start point of the original system.
S303: the method comprises the steps of obtaining log files of an original system in a preset time period, analyzing the log files, and obtaining service requests sent based on all channels and processing results corresponding to all the service requests, wherein the preset time period is from the time when the original system starts migration verification to the current time of the original system.
In the specific process of executing step S303, after the initialization script is executed to initialize the target system, a log file of the original system within a preset time period may be obtained, and the log file is analyzed to obtain the service requests sent based on each channel and a processing result corresponding to each service request, where the preset time period is from the time when the original system starts the migratory verification to the current time of the original system.
It should be noted that, in order to ensure the extent of generating the scene coverage, the preset time period may be a little longer, so that there is enough time to collect the service requests sent based on each channel, and further the extent of generating the scene coverage is ensured.
S304: and translating each service request into a target service request meeting the request format of the target system, sending each item mark service request to the target system so that the target system processes each received target service request, and sending an actual processing result and an actual key characteristic value corresponding to each obtained target service request to the migration verification platform.
S305: and generating an expected result object corresponding to each service request according to the processing result corresponding to each service request, wherein the expected result object comprises an expected processing result and an expected key characteristic value.
S306: and generating an actual result object corresponding to the target service request according to the actual processing result and the actual key characteristic value corresponding to each target service request.
S307: for each service request, comparing an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request to obtain a comparison result corresponding to the service request.
In the process of specifically executing step S304 to step S307, the specific execution process and implementation principle of step S304 to step S307 and the specific execution process and implementation principle of step S204 to step S205 in fig. 2 disclosed in the foregoing embodiment of the present invention may refer to corresponding parts in fig. 2, and are not described again here.
S308: and generating a corresponding comparison result report according to the comparison result corresponding to each service request.
In the embodiment of the application, after the comparison result corresponding to each service request is obtained, the comparison result report generating module generates a corresponding comparison result report according to the comparison result of each service request, so that a technician can determine the previous migration verification condition between the original system and the target system by checking the corresponding comparison result report.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The names of messages or information exchanged between devices in the disclosed embodiments are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations for the disclosed invention may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
An embodiment of the present application further provides an electronic device, which includes: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory is used for storing a program for implementing the migration verification method.
Referring now to FIG. 4, a block diagram of an electronic device suitable for use in implementing the disclosed embodiments of the invention is shown. The electronic devices in the disclosed embodiments of the present invention may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the disclosed embodiments of the present invention.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 406 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flowchart. In such embodiments, the computer program may be downloaded and installed from a network through the communication device 409, or from the storage device 308, or from the ROM 402. Which when executed by the processing means 401, performs the above-mentioned functions defined in the methods of the disclosed embodiments of the invention.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used for executing the migration verification method.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a log file of an original system, analyzing the log file to obtain the service requests sent based on each channel and a processing result corresponding to each service request; translating each service request into a target service request meeting the request format of the target system, sending each target service request to the target system so that the target system processes each received target service request, and sending an actual processing result and an actual key characteristic value corresponding to each obtained target service request to the migration verification platform; generating an expected result object corresponding to each service request according to a processing result corresponding to each service request, wherein the expected result object comprises an expected processing result and an expected key characteristic value; generating an actual result object corresponding to each target service request according to an actual processing result and an actual key characteristic value corresponding to each target service request; for each service request, comparing an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request to obtain a comparison result corresponding to the service request.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the computer readable medium mentioned above in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.

Claims (10)

1. A migration verification method is applied to a migration verification platform, and comprises the following steps:
acquiring a log file of an original system, analyzing the log file to obtain service requests sent based on various channels and a processing result corresponding to each service request;
translating each service request into a target service request meeting the request format of the target system, sending each target service request to the target system so that the target system processes each received target service request, and sending an actual processing result and an actual key characteristic value corresponding to each obtained target service request to the migration verification platform;
generating an expected result object corresponding to each service request according to a processing result corresponding to each service request, wherein the expected result object comprises an expected processing result and an expected key characteristic value;
generating an actual result object corresponding to each target service request according to an actual processing result and an actual key characteristic value corresponding to each target service request;
for each service request, comparing an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request to obtain a comparison result corresponding to the service request.
2. The method of claim 1, wherein prior to obtaining the log file of the original system, the method further comprises:
when detecting that the original system starts the migration verification, generating an initialization script of a target system according to the time of starting the migration verification of the original system;
and executing the initialization script to initialize the target system.
3. The method according to claim 2, wherein the obtaining a log file of an original system and analyzing the log file to obtain the service requests sent based on each channel and a processing result corresponding to each service request comprises:
acquiring a log file of an original system in a preset time period, wherein the preset time period is from the time when the original system starts the mobility verification to the current time of the original system;
and analyzing the log file to obtain the service requests sent based on each channel and a processing result corresponding to each service request.
4. The method according to claim 1, wherein the translating each of the service requests into a target service request satisfying a request format of the target system, and sending each of the target service requests to the target system, so that the target system processes each of the received target service requests, and sends an actual processing result and an actual key feature value corresponding to each of the obtained target service requests to the migration verification platform, includes:
aiming at each service request, creating a corresponding request object to be translated for the service request;
translating the request object to be translated into a target service request meeting the request format of the target system;
and sequentially sending the target service requests corresponding to the service requests to the target system according to the sequence of receiving the service requests, so that the target system processes the received target service requests, and sends the obtained actual processing results and actual key characteristic values corresponding to the target service requests to the migration verification platform.
5. The method according to claim 1, wherein the generating an expected processing result and an expected key feature value corresponding to each of the service requests according to the processing result corresponding to each of the service requests comprises:
aiming at the processing result corresponding to each service request, creating a corresponding object to be translated for the processing result corresponding to the service request;
and for each object to be translated, processing the object to be translated correspondingly according to a preset corresponding relation to obtain an expected result object of the object to be translated, wherein the expected result object comprises an expected processing result and an expected key characteristic value corresponding to the service request corresponding to the object to be translated.
6. The method according to claim 1, wherein for each of the service requests, comparing an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request to obtain a comparison result corresponding to the service request comprises:
for each service request, comparing an expected processing result in an expected result object corresponding to the service request with an actual processing result corresponding to a target service request corresponding to the service request to obtain a first comparison result of the service request;
comparing an expected key characteristic value in an expected result object corresponding to the service request with an actual key characteristic value corresponding to a target service request corresponding to the service request to obtain a second comparison result of the service request;
and generating a comparison result of the service request according to the first comparison result of the service request and the second comparison result of the service request.
7. The method of claim 1, further comprising:
and generating a corresponding comparison result report according to the comparison result corresponding to each service request.
8. A migration verification platform, comprising:
the log analysis module is used for acquiring a log file of an original system and analyzing the log file to obtain service requests sent based on each channel and a processing result corresponding to each service request;
the request translation module is used for translating each service request into a target service request meeting the request format of the target system, sending each target service request to the target system so that the target system processes each received target service request, and sending an actual processing result and an actual key characteristic value corresponding to each obtained target service request to the migration verification platform;
the reply translation module is used for generating an expected result object corresponding to each service request according to a processing result corresponding to each service request, and the expected result object comprises an expected processing result and an expected key characteristic value;
the target system processing result processing module is used for generating an actual result object corresponding to each target service request according to an actual processing result and an actual key characteristic value corresponding to each target service request;
and the comparison module is used for comparing an expected result object corresponding to the service request with an actual result object corresponding to a target service request corresponding to the service request aiming at each service request to obtain a comparison result corresponding to the service request.
9. An electronic device, comprising: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory for storing a program for implementing the migratory authentication method of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon for performing the migration verification method of claims 1-7.
CN202210109647.2A 2022-01-29 2022-01-29 Migration verification method, migration verification platform, electronic device and storage medium Pending CN114116432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210109647.2A CN114116432A (en) 2022-01-29 2022-01-29 Migration verification method, migration verification platform, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210109647.2A CN114116432A (en) 2022-01-29 2022-01-29 Migration verification method, migration verification platform, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114116432A true CN114116432A (en) 2022-03-01

Family

ID=80362121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210109647.2A Pending CN114116432A (en) 2022-01-29 2022-01-29 Migration verification method, migration verification platform, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114116432A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070256058A1 (en) * 2003-12-15 2007-11-01 Evolveware, Inc. A Corporation Apparatus for Migration and Conversion of Software Code from Any Source Platform to Any Target Platform
CN108399114A (en) * 2018-03-21 2018-08-14 财付通支付科技有限公司 A kind of system performance testing method, apparatus and storage medium
US20180232174A1 (en) * 2017-02-15 2018-08-16 Beijing Baidu Netcom Science And Technology Co., Ltd. Data Migration Between Cloud Storage Systems
CN112486814A (en) * 2020-11-26 2021-03-12 北京三快在线科技有限公司 System migration test method, migration test system, device and storage medium
CN112597047A (en) * 2020-12-29 2021-04-02 上海瑞家信息技术有限公司 Test method, test device, electronic equipment and computer readable medium
CN113946425A (en) * 2021-10-28 2022-01-18 中国建设银行股份有限公司 Service processing method and device, electronic equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070256058A1 (en) * 2003-12-15 2007-11-01 Evolveware, Inc. A Corporation Apparatus for Migration and Conversion of Software Code from Any Source Platform to Any Target Platform
US20180232174A1 (en) * 2017-02-15 2018-08-16 Beijing Baidu Netcom Science And Technology Co., Ltd. Data Migration Between Cloud Storage Systems
CN108399114A (en) * 2018-03-21 2018-08-14 财付通支付科技有限公司 A kind of system performance testing method, apparatus and storage medium
CN112486814A (en) * 2020-11-26 2021-03-12 北京三快在线科技有限公司 System migration test method, migration test system, device and storage medium
CN112597047A (en) * 2020-12-29 2021-04-02 上海瑞家信息技术有限公司 Test method, test device, electronic equipment and computer readable medium
CN113946425A (en) * 2021-10-28 2022-01-18 中国建设银行股份有限公司 Service processing method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN111459822B (en) Method, device, equipment and readable medium for extracting system component data
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN112596720A (en) Service operation method and device, electronic equipment and computer storage medium
CN109697034B (en) Data writing method and device, electronic equipment and storage medium
CN111597107B (en) Information output method and device and electronic equipment
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN111708680A (en) Error reporting information analysis method and device, electronic equipment and storage medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN113807056B (en) Document name sequence error correction method, device and equipment
CN113114346B (en) Method and device for synchronizing time by analyzing satellite navigation data
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN112379967B (en) Simulator detection method, device, equipment and medium
CN114116432A (en) Migration verification method, migration verification platform, electronic device and storage medium
CN112230986A (en) Project file generation method and device, electronic equipment and computer readable medium
CN112487416A (en) Business process verification method and device and electronic equipment
CN111447298A (en) Method, device, equipment and medium for acquiring network address in application program
CN110991312A (en) Method, apparatus, electronic device, and medium for generating detection information
CN112084440B (en) Data verification method, device, electronic equipment and computer readable medium
CN111310483B (en) Translation method, translation device, electronic equipment and storage medium
CN113821248B (en) Service method of vehicle-end software, vehicle-end software and related equipment thereof
CN116737402A (en) Information transmission method, electronic device, and computer-readable medium
CN118036561A (en) Lightweight markup language text conversion method, lightweight markup language text conversion device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220301