A method, apparatus and medium for reconstructing a test

By comparing the output results and response information of the first and second technology stack systems and using baffles to check consistency, the problem of the inability to reuse unit test cases in existing refactoring tests is solved, and an efficient refactoring test process is achieved.

CN115827477BActive Publication Date: 2026-03-20CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In existing refactoring testing methods, the granularity of unit test cases is too small, making them unusable when migrating technology stacks. This causes old unit test cases to become invalid, requiring the writing of a large number of new unit test cases and increasing the burden on staff.

Method used

By acquiring the output results and response information of the first and second technology stack systems, and using a baffle to check their consistency, it can be determined whether the second technology stack system has successfully reconstructed the business functions, thus avoiding the need to write small-grained unit test cases.

Benefits of technology

It eliminates the need to write a large amount of code, simplifies the refactoring test process, improves the efficiency of refactoring tests, and saves manpower and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115827477B_ABST
    Figure CN115827477B_ABST
Patent Text Reader

Abstract

The present application relates to the field of data verification, and more particularly to a reconstruction test method, device and medium, the method comprising: obtaining a first output result and a second output result; checking whether the second output result is consistent with the first output result; obtaining first response information and second response information; checking whether the first response information and the second response information are consistent; when the first output result and the second output result are consistent, and the first response information and the second response information are consistent, determining that the second technology stack system is successfully reconstructed for the business function. Through the method, the problems of using small-granularity unit test cases and requiring a large amount of code for existing reconstruction testing can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data verification, and in particular to a reconstruction test method, device and medium. BACKGROUND

[0002] Currently, reconstruction testing generally adopts a test-driven development (TDD) manner, that is, before developing function code, a unit test case is written first, and the unit test case is used to clearly define the requirements that the developed code needs to meet.

[0003] However, the unit test case is often bound to a technology stack. Since the granularity of the unit test is small, when the technology stack is migrated, the test case at a small granularity cannot be reused, that is, the old unit test case cannot be mapped to the new unit test case after migration, the old unit test case is invalid, and a new unit test case needs to be written. In addition, the unit test case needs a large amount of code to implement, resulting in a heavy burden on the relevant staff. SUMMARY

[0004] The present application provides a reconstruction test method, device and medium, which are used to solve the problems of using small-granularity unit test cases and requiring a large amount of code to implement in existing reconstruction testing.

[0005] In a first aspect, an embodiment of the present application provides a reconstruction test method, comprising:

[0006] obtaining a first output result and a second output result;

[0007] The first output result is an output result generated by a first technology stack system based on an input parameter corresponding to a business function; and the second output result is an output result generated by a second technology stack system based on the input parameter.

[0008] checking whether the second output result is consistent with the first output result;

[0009] obtaining first response information and second response information;

[0010] The first response information is generated by the first technology stack system based on first return information, and the second response information is generated by the second technology stack system based on second return information. The first return information is generated by a stopper for the first output result, and the second return information is generated by the stopper for the second output result.

[0011] checking whether the first response information and the second response information are consistent;

[0012] When the first output result is consistent with the second output result, and the first response information is consistent with the second response information, it is determined that the second technical stack system is successful in reconstructing the business function.

[0013] By using the above method, the same input parameters are input into the first technical stack system and the second technical stack system to obtain corresponding first output results and second output results, and it is checked whether the second output results are consistent with the first output results, which can avoid using small-grained unit test cases and writing a large amount of code, and further preliminarily confirm whether the second technical stack system is successful in reconstructing the business function; first return information and first response information corresponding to the first output results are obtained, second return information and second response information corresponding to the second output results are obtained, and it is checked whether the first response information is consistent with the second response information, to further confirm whether the second technical stack system is successful in reconstructing the business function. When the first output result and the second output result are consistent, and the first response information and the second response information are consistent, it is determined that the second technical stack system is successful in reconstructing the business function. Optionally, obtaining the first output result includes:

[0014] inputting the input parameters into the first technical stack system to obtain the first output result, and storing the first output result in the baffle; and obtaining the first output result from the baffle.

[0015] Optionally, the first output result arrives at the baffle before the second output result.

[0016] Optionally, when the second output result is consistent with the first output result, the first return information is the same as the second return information.

[0017] Optionally, obtaining the first response information and the second response information includes: obtaining the first response information and the second response information when the first output result is consistent with the second output result.

[0018] In a second aspect, an embodiment of the present application provides a reconstruction test device, which includes:

[0019] a transceiving unit configured to obtain first output results and second output results;

[0020] The first output result is an output result generated by a first technical stack system based on input parameters corresponding to a business function; and the second output result is an output result generated by a second technical stack system based on the input parameters.

[0021] a processing unit configured to check whether the second output result is consistent with the first output result;

[0022] the transceiving unit is configured to obtain first response information and second response information.

[0023] The first response information is generated by the first technology stack system based on first return information; the second response information is generated by the second technology stack system based on second return information; the first return information is generated by the baffle for the first output result, and the second return information is generated by the baffle for the second output result;

[0024] The processing unit is configured to check whether the first response information and the second response information are consistent.

[0025] When the first output result and the second output result are consistent, and the first response information and the second response information are consistent, the processing unit determines that the second technology stack system is successfully reconstructed for the business function.

[0026] Optionally, the transceiving unit is configured to, when the first output result is obtained, input the input parameter into the first technology stack system, obtain the first output result, and store the first output result in the baffle; and obtain the first output result from the baffle.

[0027] Optionally, the first output result arrives at the baffle before the second output result.

[0028] Optionally, when the second output result is consistent with the first output result, the first return information is the same as the second return information.

[0029] Optionally, the transceiving unit is configured to, when the first response information and the second response information are obtained, obtain the first response information and the second response information when the first output result is consistent with the second output result.

[0030] In a third aspect, the present application also provides a device. The device can execute the method design described above. The device can be a chip or a circuit capable of executing the functions corresponding to the method described above, or a device including the chip or the circuit.

[0031] In a possible implementation, the device includes a memory configured to store computer executable program code, and a processor coupled to the memory. The program code stored in the memory includes instructions, which, when executed by the processor, cause the device or a device in which the device is installed to perform the method in any of the possible designs described above.

[0032] The device can further include a communication interface. The communication interface can be a transceiver. If the device is a chip or a circuit, the communication interface can be an input / output interface of the chip, such as an input / output pin.

[0033] In one possible design, the apparatus includes respective functional units for implementing the steps in the above method. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions.

[0034] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program. When the computer program is run on an apparatus, the method in any of the above possible designs is performed.

[0035] In a fifth aspect, a computer program product is provided, which includes computer program code. When the computer program code is run on a computer, the computer is caused to perform the method in any of the first aspect.

[0036] In addition, the technical effects brought by any of the implementation manners of the third aspect to the fifth aspect can refer to the technical effects brought by the different implementation manners of the first aspect, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS

[0037] Figure 1 A flowchart of a reconstruction test method provided for an embodiment of the present application;

[0038] Figure 2 A test schematic diagram corresponding to a first technology stack system provided for an embodiment of the present application;

[0039] Figure 3 A reconstruction test schematic diagram corresponding to a second technology stack system provided for an embodiment of the present application;

[0040] Figure 4 A flowchart of a reconstruction test method provided for an embodiment of the present application;

[0041] Figure 5 A communication apparatus 500 provided for an embodiment of the present application;

[0042] Figure 6 A communication apparatus 600 provided for an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the present application with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort belong to the scope of protection of the present application.

[0044] The application scenarios described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems. In the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more than two.

[0045] The technical concepts in the present application are explained as follows:

[0046] 1. Refactoring: By adjusting the program code, the design pattern and architecture are made more reasonable, thereby improving the quality and performance of the software system, and improving the scalability and maintainability of the software system.

[0047] Currently, the existing refactoring test method generally selects the TDD mode. However, using TDD to perform refactoring requires first writing unit test cases, the granularity of the unit test cases is small, and when refactoring, the old unit test cases will be invalid, and new unit test cases need to be written. And writing unit test cases requires a large amount of code, and the workload of the relevant staff is heavy.

[0048] Based on this, the present application provides a refactoring test method for solving the problems of using small-granularity unit test cases and requiring a large amount of code in the existing refactoring test.

[0049] As shown in Figure 1 , the present application provides a refactoring test method, and the flow thereof is specifically as follows:

[0050] Step 100: Obtain the first output result and the second output result.

[0051] Exemplarily, the communication information tool for obtaining the first output result and the second output result can be a baffle, and in addition, can be any other communication information tool, which is not limited by the present application.

[0052] Among them, the first output result is an output result generated by the first technology stack system based on the input parameters corresponding to the business function; and the second output result is an output result generated by the second technology stack system based on the same input parameters.

[0053] Specifically, Figure 2 is a test schematic diagram corresponding to the first technology stack system, and Figure 2 It can be seen that before the input parameters corresponding to the business function are input into the first technology stack system, the input parameters corresponding to the business function can be recorded in the micro server, and then input into the first technology stack system.

[0054] Exemplarily, in the acquisition of the first output result, the input parameter corresponding to the business function is input into the first technical stack system to obtain the first output result, and then the first output result reaches the baffle and is stored in the baffle, and then the first output result is acquired from the baffle.

[0055] Figure 3 The second technical stack system corresponds to the reconstruction test schematic diagram, which is Figure 3 It can be seen that the second technical stack system generates the second output result based on the input parameter recorded in the micro server. The first technical stack system is a system using an old technical stack, the second technical stack system is a system using a new technical stack, and the second technical stack system is a system reconstructed on the basis of the first technical stack system.

[0056] In the acquisition of the second output result, the second output result output by the second technical stack system is directly acquired, and then the second output result can reach the baffle. The first output result reaches the baffle before the second output result.

[0057] Step 110: Check whether the second output result is consistent with the first output result.

[0058] Exemplarily, the communication information tool for checking whether the second output result is consistent with the first output result can be the baffle, and in addition, can be any other communication information tool, which is not limited in the application.

[0059] Specifically, after the second output result reaches the baffle, the baffle checks whether the second output result is consistent with the first output result stored therein. If the second output result is not consistent with the first output result, it means that the second technical stack system fails to reconstruct the business function, and the baffle does not make any processing.

[0060] Step 120: Acquire the first response information and the second response information.

[0061] Specifically, when the first output result is consistent with the second output result, the first response information and the second response information are acquired. The first response information is generated by the first technical stack system based on the first return information, and the second response information is generated by the second technical stack system based on the second return information; and the first return information is generated by the baffle for the first output result, and the second return information is generated by the baffle for the second output result.

[0062] Exemplarily, as shown in Figure 2 After the first output result reaches the baffle, the baffle generates the first return information based on the first output result. The first return information is an instruction corresponding to the first output result.

[0063] Exemplarily, as shown in Figure 2As shown, after the baffle outputs the first return information, the first return information is input as a new input parameter to the first technology stack system, and the first technology stack system can generate first response information based on the first return information. The first response information can reach the checkpoint of the first technology stack system for checking to determine whether the first response information is correct, and output the corresponding checking result of the first response information. Wherein, the first response information can be stored in the platform corresponding to the checkpoint of the first technology stack system.

[0064] Exemplarily, as shown in the figure, Figure 3 As shown, in step 110, if the second output result is consistent with the first output result, the baffle generates second return information for the second output result. Wherein, the second return information is an instruction corresponding to the second output result, and the second return information is the same as the first return information.

[0065] Exemplarily, as shown in the figure, Figure 3 As shown, after the baffle outputs the second return information, the second return information is input as a new input parameter to the second technology stack system, and the second technology stack system generates second response information based on the second return information.

[0066] Step 130: Check whether the second response information and the first response information are consistent.

[0067] Specifically, after the second technology stack system generates the second response information based on the second return information in step 120, the second response information can reach the checkpoint of the second technology stack system for checking. Wherein, the checkpoint of the second technology stack system is the same as the checkpoint of the first technology stack system.

[0068] Exemplarily, the checkpoint of the second technology stack system checks whether the second response information and the first response information are consistent. Specifically, the checkpoint of the second technology stack system checks whether the second response information and the first response information stored in the platform are consistent.

[0069] Step 140: When the first output result and the second output result are consistent, and the first response information and the second response information are consistent, it is determined that the second technology stack system is successfully reconstructed for the business function.

[0070] Specifically, after checking whether the second response information and the first response information are consistent in step 130, if the second response information and the first response information are inconsistent, the corresponding inconsistent checking result is output, which represents that the second technology stack system fails to reconstruct the business function. If the second response information and the first response information are consistent, the corresponding consistent checking result is output, which represents that the second technology stack system successfully reconstructs the business function. Therefore, when the first output result and the second output result are consistent, and the first response information and the second response information are consistent, it can be determined that the second technology stack system successfully reconstructs the business function.

[0071] Exemplarily, to further verify whether the second technical stack system reconstruction is successful, the above steps need to be repeated to test the input parameters corresponding to multiple business functions. When the input parameters corresponding to multiple business functions are all tested successfully, it means that the second technical stack system reconstruction is successful.

[0072] Through the above method, the input parameters corresponding to multiple business functions are recorded, and the outputs corresponding to these input parameters when the first technical stack system (i.e., the system of the old technical stack) is used are stored. Thus, the second technical stack system (i.e., the system of the new technical stack) can read the recorded input parameters, generate corresponding outputs, and then verify whether the two outputs are the same, i.e., whether the second technical stack system is successfully reconstructed. In addition, the second technical stack system is set with the same checkpoints as the first technical stack system to further verify whether the second technical stack system is successfully reconstructed. Through the method of recording input and output, the present application does not need to write a large number of code to write unit test cases for small-granularity reconstruction testing, which saves a lot of manpower and time and improves the efficiency of reconstruction testing.

[0073] Exemplarily, Figure 4 A flowchart of a reconstruction testing method proposed by the present application is shown in FIG. 4. Figure 4 As shown in FIG. 4, the present application takes business function A as an example for specific description.

[0074] Step 401: Record the input parameters and the corresponding first output results of business function A in the first technical stack system.

[0075] Specifically, the input parameters of business function A in the first technical stack system can be recorded in the micro server, and the first output results can reach the baffle and be stored in the baffle after reaching the baffle.

[0076] Step 402: The baffle generates and outputs first return information based on the first output results.

[0077] Specifically, after the first output results reach the baffle, the baffle can generate first return information based on the first output results and output the first return information.

[0078] Step 403: The first technical stack system generates and outputs first response information based on the first return information.

[0079] Specifically, the first return information output by the baffle is input to the first technical stack system as new input parameters, and the first technical stack system generates and outputs first response information based on the first return information. The first response information can reach the checkpoint of the first technical stack system for checking and output the corresponding checking results. The first response information can be stored in the platform corresponding to the checkpoint of the first technical stack system.

[0080] Step 404: input the input parameter of the business function A into the second technical stack system to obtain a second output result.

[0081] Specifically, the input parameter of the recorded business function A is input into the second technical stack system to obtain a second output result, and the second output result can reach the baffle.

[0082] Step 405: determine whether the second output result is consistent with the first output result.

[0083] Specifically, the baffle determines whether the second output result is consistent with the first output result stored therein. If the second output result is not consistent with the first output result, it is determined that the second technical stack system fails to reconstruct the business function A; if the second output result is consistent with the first output result, it is determined that the second technical stack system successfully reconstructs the business function A.

[0084] Step 406: the baffle generates and outputs a second return information based on the second output result.

[0085] Specifically, after the second output result is consistent with the first output result, the baffle can generate a second return information based on the second output result and output the second return information.

[0086] Step 407: the second technical stack system generates and outputs a second response information based on the second return information.

[0087] Specifically, the second return information output by the baffle is input as a new input parameter into the second technical stack system, and the second technical stack system generates and outputs a second response information based on the second return information.

[0088] Step 408: determine whether the second response information is consistent with the first response information.

[0089] Specifically, the first response information stored in the platform is obtained, and the second response information is checked by the checkpoint of the second technical stack system to determine whether the second response information is consistent with the first response information stored in the platform. If the second response information is not consistent with the first response information, it is determined that the second technical stack system fails to reconstruct the business function A; if the second response information is consistent with the first response information, it is determined that the second technical stack system successfully reconstructs the business function A.

[0090] Specifically, when the second output result is consistent with the first output result and the second response information is consistent with the first response information, the second technical stack system successfully reconstructs the business function A.

[0091] In the technical scheme of the present application, the acquisition, storage, use, processing and the like of data comply with the relevant provisions of national laws and regulations.

[0092] The division of units in the embodiments of the present application is illustrative, and is only logical functional division. Actual implementation can have another division manner. In addition, each functional unit in each embodiment of the present application can be integrated in a processor, or can be a separate physical existence, or can be two or more units integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0093] The embodiment of the present application further provides a communication device 500, as shown in the figure, comprising a processing module 510 and a transceiver module 520. Figure 5 The processing module 510 is configured to control and manage the actions of the communication device 500.

[0094] The transceiver module 520 can comprise a receiving unit and a sending unit. The processing module 510 is configured to control and manage the actions of the communication device 500. The transceiver module 520 is configured to support the communication between the communication device 500 and other devices. Optionally, the communication device 500 can further comprise a storage unit configured to store the program code and data of the communication device 500.

[0095] Optionally, each module in the communication device 500 can be realized by software.

[0096] Optionally, the processing module 510 can be a processor or a controller, for example, can be a general central processing unit (CPU), a general processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can realize or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the embodiments of the present application. The processor can also be a combination realizing a computing function, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The transceiver module 520 can be a communication interface, a transceiver or a transceiver circuit, etc., wherein the communication interface is a general term, and in specific implementation, the communication interface can comprise a plurality of interfaces, and the storage unit can be a memory.

[0097] The processing module 510 invokes the transceiver module 520 to execute:

[0098] The transceiver module 520 is configured to acquire the first output result and the second output result.

[0099] The first output result is an output result generated by a first technology stack system based on an input parameter corresponding to a business function; and the second output result is an output result generated by a second technology stack system based on the input parameter.

[0100] The processing module 510 is configured to check whether the second output result is consistent with the first output result.

[0101] The transceiving module 520 is configured to obtain first response information and second response information.

[0102] The first response information is generated by the first technology stack system based on first return information; and the second response information is generated by the second technology stack system based on second return information.

[0103] The processing module 510 is configured to check whether the first response information is consistent with the second response information.

[0104] When the first output result is consistent with the second output result, and the first response information is consistent with the second response information, the processing module 510 determines that the second technology stack system is successfully reconstructed for the business function.

[0105] The embodiment of the application further provides another communication device 600, as shown in Figure 6 The communication device 600 comprises:

[0106] a communication interface 601, a memory 602, and a processor 603.

[0107] The communication device 600 communicates with other devices through the communication interface 601, such as transceiving messages; the memory 602 is configured to store program instructions; and the processor 603 is configured to call the program instructions stored in the memory 602 and execute the obtained program.

[0108] The processor 603 calls the program instructions stored in the communication interface 601 and the memory 602 to execute the following steps:

[0109] obtain first output result and second output result;

[0110] The first output result is an output result generated by a first technology stack system based on an input parameter corresponding to a business function; and the second output result is an output result generated by a second technology stack system based on the input parameter.

[0111] check whether the second output result is consistent with the first output result;

[0112] obtaining first response information and second response information;

[0113] The first response information is generated by the first technology stack system based on first return information; the second response information is generated by the second technology stack system based on second return information; the first return information is generated by the baffle for the first output result, and the second return information is generated by the baffle for the second output result.

[0114] checking whether the first response information and the second response information are consistent;

[0115] When the first output result and the second output result are consistent, and the first response information and the second response information are consistent, it is determined that the second technology stack system is successfully reconstructed for the business function.

[0116] The specific connection medium between the communication interface 601, the memory 602 and the processor 603 in the embodiment of the application is not limited, such as a bus, which can be divided into an address bus, a data bus, a control bus and the like.

[0117] In the embodiment of the application, the processor can be a general processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the disclosed methods, steps and logic block diagrams in the embodiment of the application. The general processor can be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiment of the application can be directly embodied as hardware processor execution or executed by a combination of hardware and software modules in the processor.

[0118] In the embodiment of the application, the memory can be a non-volatile memory, such as a hard disk (HDD) or a solid-state drive (SSD), and can also be a volatile memory, such as a random access memory (RAM). The memory can also be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer, but is not limited to this. The memory in the embodiment of the application can also be a circuit or any other device capable of realizing a storage function, used for storing program instructions and / or data.

[0119] The embodiment of the application also provides a computer readable storage medium comprising program code, when the program code is run on a computer, the program code is used to make the computer execute the steps of the method provided by the above embodiment of the application.

[0120] The embodiments of the present application also provide a computer program product, which comprises computer program codes, when the computer program codes are run on a computer, the computer program codes make the computer execute the steps of the method provided by the above-mentioned embodiments of the present application.

[0121] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) containing computer-usable program codes.

[0122] The present application is described with reference to the flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 means for carrying out the functions specified in the flowcharts and / or block diagrams.

[0123] These computer program instructions can also be stored in a computer-readable memory capable of directing the computer or other programmable data processing devices to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction means, which implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 means for carrying out the functions specified in the flowcharts and / or block diagrams.

[0124] These computer program instructions can also be loaded to the computer or other programmable data processing devices, so that a series of operation steps are executed on the computer or other programmable devices to produce a computer-implemented process, so that the instructions executed on the computer or other programmable devices provide a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 means for carrying out the functions specified in the flowcharts and / or block diagrams.

[0125] While the preferred embodiments of the application have been described, additional variations and modifications can be made to these embodiments by those skilled in the art once they have the benefit of the present disclosure without departing from the scope of the application. Accordingly, the attached claims are intended to embrace all such variations and modifications as fall within the scope of the application.

[0126] It is apparent that those skilled in the art can make various changes and modifications to the application without departing from the scope of the application. It is therefore intended to include all such changes and modifications in so far as they come within the scope of the claims or the equivalent thereof.

Claims

1. A refactoring test method, characterized in that, The method includes: Obtain the first and second output results; Wherein, the first output result is the output result generated by the first technology stack system based on the input parameters corresponding to the business function; the second output result is the output result generated by the second technology stack system based on the input parameters; Check whether the second output result is consistent with the first output result; Obtain first and second response information; Wherein, the first response information is generated by the first technology stack system based on the first return information; the second response information is generated by the second technology stack system based on the second return information; wherein, the first return information is generated by the baffle in response to the first output result, and the second return information is generated by the baffle in response to the second output result; Check whether the first response information and the second response information are consistent; When the first output result is consistent with the second output result, and the first response information is consistent with the second response information, it is determined that the second technology stack system has successfully reconstructed the business function.

2. The method as described in claim 1, characterized in that, Obtaining the first output result includes: The input parameters are input into the first technology stack system to obtain the first output result, and the first output result is stored in the baffle. The first output result is obtained from the baffle.

3. The method as described in claim 1, characterized in that, The first output result arrives at the baffle before the second output result.

4. The method as described in claim 1, characterized in that, When the second output result is consistent with the first output result, the first return information is the same as the second return information.

5. The method as described in claim 1, characterized in that, Obtain first response information and second response information, including: When the first output result is consistent with the second output result, the first response information and the second response information are obtained.

6. A reconfiguration test apparatus, characterized in that, The device includes: The transceiver unit is used to acquire the first output result and the second output result. Wherein, the first output result is the output result generated by the first technology stack system based on the input parameters corresponding to the business function; the second output result is the output result generated by the second technology stack system based on the input parameters; The processing unit is used to check whether the second output result is consistent with the first output result; The transceiver unit is used to acquire first response information and second response information; Wherein, the first response information is generated by the first technology stack system based on the first return information; the second response information is generated by the second technology stack system based on the second return information; wherein, the first return information is generated by the baffle in response to the first output result, and the second return information is generated by the baffle in response to the second output result; The processing unit is used to check whether the first response information and the second response information are consistent; when the first output result is consistent with the second output result and the first response information is consistent with the second response information, the processing unit determines that the second technology stack system has successfully reconstructed the business function.

7. The apparatus as claimed in claim 6, characterized in that, The transceiver unit is used to input the input parameters into the first technology stack system when obtaining the first output result, obtain the first output result, and store the first output result in the baffle. The first output result is obtained from the baffle.

8. The apparatus as claimed in claim 6, characterized in that, The first output result arrives at the baffle before the second output result.

9. The apparatus as claimed in claim 6, characterized in that, When the second output result is consistent with the first output result, the first return information is the same as the second return information.

10. The apparatus as claimed in claim 6, characterized in that, The transceiver unit is configured to acquire the first response information and the second response information when the first output result is consistent with the second output result, when acquiring the first response information and the second response information.

11. A computing device, characterized in that, The device includes a processor and an interface circuit, the interface circuit being used to receive signals from other devices outside the device and transmit them to the processor or to send signals from the processor to other devices outside the device, the processor being used to implement the method as described in any one of claims 1 to 5 through logic circuits or execution code instructions.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 5.

13. A computer program product, characterized in that, The computer program product includes: computer program code, which, when run on a computer, causes the computer to perform the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Verification method and device of reconstruction system, equipment and storage medium

    CN113407456A

  • Performance analysis method and system for RESAR performance engineering

    CN114386743A