CN115344498A - System test method, device, electronic equipment and storage medium - Google Patents
System test method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115344498A CN115344498A CN202211014893.6A CN202211014893A CN115344498A CN 115344498 A CN115344498 A CN 115344498A CN 202211014893 A CN202211014893 A CN 202211014893A CN 115344498 A CN115344498 A CN 115344498A
- Authority
- CN
- China
- Prior art keywords
- result
- processing request
- transaction processing
- target
- new system
- 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
Links
- 238000010998 test method Methods 0.000 title description 5
- 238000012545 processing Methods 0.000 claims abstract description 203
- 238000012360 testing method Methods 0.000 claims abstract description 88
- 238000000034 method Methods 0.000 claims abstract description 64
- 238000004590 computer program Methods 0.000 claims description 23
- 230000015654 memory Effects 0.000 claims description 16
- 238000007405 data analysis Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 29
- 238000010586 diagram Methods 0.000 description 21
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000004807 localization Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a system testing method, a system testing device, electronic equipment and a storage medium, relates to the technical field of data analysis, and is used for testing an operation result of a new system so as to ensure the operation stability and accuracy of the new system. The method can receive the transaction processing request, and respectively acquire a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request; comparing the first operation result with the second operation result to generate a comparison result; and based on the comparison result, a test result of the new system is obtained, and based on the comparison result, the operation result of the new system can be quickly and accurately tested, so that the operation stability and accuracy of the new system are ensured.
Description
Technical Field
The present application relates to the field of data analysis technologies, and in particular, to a system test method, an apparatus, an electronic device, and a storage medium.
Background
With the continuous development of science and technology, the updating of old and new systems is a common project. For example, with the increasing maturity of the localization platform, the systems of enterprises such as banks are actively embracing the localization platform, and the original old systems are actively updated to new localization systems.
However, after an old system is updated to a new system, how to test the operation result of the new system so as to ensure the operation stability and accuracy of the new system is a technical problem which needs to be solved urgently at present.
Disclosure of Invention
The application provides a system testing method, a system testing device, electronic equipment and a storage medium, which are used for testing the operation result of a new system, so that the operation stability and accuracy of the new system are ensured.
In a first aspect, the present application provides a system testing method, the method comprising:
receiving a transaction processing request;
respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request;
comparing the first operation result with the second operation result to generate a comparison result;
and obtaining a test result of the new system based on the comparison result.
In a possible implementation manner, after the receiving the transaction processing request, before the respectively obtaining a first operation result of the new system on the transaction processing request and a second operation result of the old system on the transaction processing request, the method further includes:
if the transaction processing request is a transaction processing request processed based on a new system, the transaction processing request is intercepted, and the transaction processing request is respectively sent to the new system and the old system.
In one possible implementation, after the receiving the transaction processing request and before the intercepting the transaction processing request, the method further comprises:
identifying a target transaction type carried by the transaction processing request, and judging whether the target transaction type is located in a preset transaction type list;
if yes, the subsequent steps are carried out.
In one possible embodiment, the method further comprises:
and if the target transaction type is not in a preset transaction type list, sending the transaction processing request to the new system.
In a possible implementation, the comparing the first operation result and the second operation result includes:
identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between a pre-stored transaction type and the comparison field;
and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result aiming at each target comparison field, and comparing the first operation sub-result with the second operation sub-result.
In a possible embodiment, the obtaining a test result for the new system based on the alignment result includes:
counting the percentage of the target comparison fields with the same first operation sub-result and second operation sub-result; judging whether the percentage reaches a set percentage threshold value;
if yes, determining that the test result is qualified;
if not, determining that the test result is unqualified.
In one possible embodiment, the method further comprises:
and outputting set prompt information aiming at the target comparison fields with different first operation sub-results and second operation sub-results.
In a second aspect, the present application provides a system test apparatus, the apparatus comprising:
a receiving module for receiving a transaction processing request;
the acquisition module is used for respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request;
the comparison module is used for comparing the first operation result with the second operation result to generate a comparison result;
and the determining module is used for obtaining a test result of the new system based on the comparison result.
In one possible embodiment, the apparatus further comprises:
and the sending module is used for intercepting the transaction processing request and respectively sending the transaction processing request to the new system and the old system if the transaction processing request is a transaction processing request processed based on the new system.
In a possible implementation manner, the sending module is further configured to:
identifying a target transaction type carried by the transaction processing request, and judging whether the target transaction type is in a preset transaction type list or not; if yes, intercepting the transaction processing request, and respectively sending the transaction processing request to the new system and the old system.
In a possible implementation manner, the sending module is further configured to:
and if the target transaction type is not in a preset transaction type list, sending the transaction processing request to the new system.
In a possible embodiment, the alignment module is specifically configured to:
identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between the transaction type and the comparison field which is stored in advance;
and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result aiming at each target comparison field, and comparing the first operation sub-result with the second operation sub-result.
In a possible implementation manner, the determining module is specifically configured to:
counting the percentage of the target comparison fields with the same first operation sub-result and second operation sub-result; judging whether the percentage reaches a set percentage threshold value or not;
if yes, determining that the test result is qualified;
if not, determining that the test result is unqualified.
In a possible embodiment, the apparatus further comprises:
and the prompt module is used for outputting set prompt information aiming at the target comparison fields with different first operation sub-results and second operation sub-results.
In a third aspect, the present application provides an electronic device comprising at least a processor and a memory, the processor being configured to implement the steps of the method according to any of the above when executing a computer program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of any of the methods described above.
In a fifth aspect, the present application provides a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the steps of the method as described in any one of the above.
The method can receive the transaction processing request, and respectively acquire a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request; comparing the first operation result with the second operation result to generate a comparison result; and based on the comparison result, a test result of the new system is obtained, and based on the result, the operation result of the new system can be quickly and accurately tested, so that the operation stability and accuracy of the new system are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the implementation manner in the related art, the drawings used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the description below are some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to these drawings.
FIG. 1 illustrates a first system test process diagram provided by some embodiments;
FIG. 2 illustrates a second system test process schematic provided by some embodiments;
FIG. 3 illustrates a third system testing process provided by some embodiments;
FIG. 4A illustrates a fourth system testing process diagram provided by some embodiments;
FIG. 4B illustrates a system test scenario diagram provided by some embodiments;
FIG. 5 illustrates a fifth system test process diagram provided by some embodiments;
FIG. 6 illustrates a system testing apparatus according to some embodiments;
fig. 7 shows a schematic structural diagram of an electronic device according to some embodiments.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the embodiments described in the present application are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the brief descriptions of the terms in the present application are only for convenience of understanding of the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and claims of this application and in the foregoing drawings are used for distinguishing between similar or analogous objects or entities and are not necessarily intended to limit the order or sequence in which they are presented unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," as well as any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or device that comprises a list of elements is not necessarily limited to all of the elements explicitly listed, but may include other elements not expressly listed or inherent to such product or device.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the functionality associated with that element.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
In order to test the operation result of a new system and further ensure the operation stability and accuracy of the new system, the application provides a system test method, a device, electronic equipment and a storage medium.
Example 1:
all the implementation modes of the embodiment of the application can acquire, store, use, process and the like the data according with relevant regulations of national laws and regulations.
Fig. 1 shows a schematic diagram of a first system test process provided by some embodiments, as shown in fig. 1, the process includes the following steps:
s101: a transaction processing request is received.
The system testing method provided by the embodiment of the application is applied to electronic equipment, and the electronic equipment can be equipment such as a PC (personal computer), a mobile terminal and the like, and can also be equipment such as a server and the like.
In one possible embodiment, a tester or the like may trigger (initiate) a transaction processing request, which may be received by the electronic device. The triggering mode of the transaction processing request is not particularly limited, and can be flexibly set according to requirements.
S102: and respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request.
In a possible implementation manner, in order to improve the testing efficiency, a tester or the like may trigger a transaction processing request only once, and after receiving the transaction processing request, the electronic device may directly send the transaction processing request to the new system and the old system, respectively. For example, a tester may trigger a transaction processing request for processing a transaction processing request based on a new system only once, and when the electronic device receives the transaction processing request, if the transaction processing request is identified as a transaction processing request for processing the transaction processing request based on the new system, in order to quickly and accurately test the new system, the electronic device may intercept the transaction processing request and send the transaction processing request to the new system and the old system, respectively, so that the new system and the old system may process the transaction processing request, respectively, and thus a first operation result of the new system on the transaction processing request (for convenience of description, a processing result or an operation result of the new system on the transaction processing request is referred to as a first operation result) and a second operation result of the old system (for convenience of description, a processing result or an operation result of the old system on the transaction processing request is referred to as a second operation result) may be obtained, respectively. Compared with the situation that a tester needs to trigger a transaction processing request for a new system and trigger a transaction processing request for an old system again, the method and the device can reduce repeated operation and improve testing efficiency.
S103: and comparing the first operation result with the second operation result to generate a comparison result.
In a possible implementation manner, in order to test the operation result of the new system and ensure the operation stability and accuracy of the new system, after acquiring a first operation result of the new system on the transaction processing request and a second operation result of the old system on the transaction processing request, the electronic device may compare the first operation result with the second operation result and identify the difference between the first operation result and the second operation result.
In a possible implementation manner, in order to quickly and accurately compare the first operation result with the second operation result, when the first operation result is compared with the second operation result, a target transaction type carried by the transaction processing request may be identified first (for convenience of description, the transaction type carried by the transaction processing request is referred to as a target transaction type), where the target transaction type is not specifically limited in the present application, and may be flexibly set according to a requirement, and for example, the target transaction type may be an organization change, and the like.
In a possible implementation manner, in order to improve the testing efficiency, the corresponding relationship between each transaction type and the comparison field may be pre-stored, where the transaction type and the comparison field corresponding to the transaction type are not specifically limited in the present application, and may be flexibly set according to requirements. The electronic device can determine each target comparison field corresponding to the target transaction type according to the corresponding relationship between the transaction type and the comparison field stored in advance. Then, for each target comparison field, a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result are respectively determined, and by comparing the first operation sub-result with the corresponding second operation sub-result, whether the first operation sub-result and the second operation sub-result corresponding to each target comparison field are the same or not is determined, and a corresponding comparison result is generated.
S104: and obtaining a test result of the new system based on the comparison result.
In one possible embodiment, after determining the comparison of the first operation result with the second operation result, a test result for the new system may be obtained based on the comparison result. Optionally, when the test result of the new system is obtained based on the comparison result, if the first operation sub-result and the second operation sub-result of any target comparison field are identified to be different, it may be determined that the operation stability and accuracy of the new system are not good enough, and the test result may be determined to be unqualified. When the first operation sub-result and the second operation sub-result of each target comparison field are the same, the operation stability and accuracy of the new system are considered to be good, and the test result can be determined to be qualified.
In a possible embodiment, when obtaining a test result of a new system based on the comparison result, the percentage of the target comparison fields in which the first run sub-result is the same as the second run sub-result may be counted first, that is, the percentage of the target comparison fields in which the first run sub-result is the same as the second run sub-result is counted first in all the target comparison fields, for example, if the number of the target comparison fields in which the first run sub-result is the same as the second run sub-result is 80, the percentage of the target comparison fields in which the first run sub-result is the same as the second run sub-result is 80%. After the percentage of the target comparison field with the same first operation sub-result and the same second operation sub-result is determined, whether the percentage reaches a set percentage threshold value or not can be judged, if the percentage reaches the set percentage threshold value, the operation stability and accuracy of the new system can be considered to be good, and the test result of the new system can be determined to be qualified. And if the percentage of the target comparison field with the same first operation sub-result and the same second operation sub-result does not reach the set percentage threshold, the operation stability and accuracy of the new system can be considered to be poor, and the test result of the new system can be determined to be unqualified. The percentage threshold is not specifically limited in the present application, and for example, the percentage threshold may be 100%, and the percentage threshold may be flexibly set according to requirements.
In a possible implementation manner, in order to prompt a tester and the like, when there is a target comparison field in which the first operation sub-result is different from the second operation sub-result, set prompt information may be output for the target comparison field in which the first operation sub-result is different from the second operation sub-result. The prompt information is not specifically limited, and for example, the corresponding sound alarm information may be output, or a target comparison field in which the first operation sub-result is different from the second operation sub-result is displayed in bold or highlighted in a set color, and the like, and the prompt information may be flexibly set according to requirements.
For ease of understanding, the system test process provided herein is described below with a specific embodiment. Fig. 2 is a schematic diagram of a second system test process provided in some embodiments, and as shown in fig. 2, the process includes the following steps:
s201: receiving a transaction processing request;
s202: if the transaction processing request is a transaction processing request processed based on the new system, the transaction processing request is intercepted, and the transaction processing request is respectively sent to the new system and the old system.
S203: and respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request.
S204: identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between the transaction type and the comparison field which are stored in advance; and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result aiming at each target comparison field, and comparing the first operation sub-result with the second operation sub-result so as to generate a corresponding comparison result.
S205: and obtaining a test result of the new system based on the comparison result.
For the sake of understanding, the system testing process provided in the present application is described below by using a specific embodiment. Fig. 3 is a schematic diagram illustrating a third system testing process provided in some embodiments, where, as shown in fig. 3, the process includes the following steps:
s301: receiving a transaction processing request;
s302: if the transaction processing request is a transaction processing request processed based on the new system, the transaction processing request is intercepted, and the transaction processing request is respectively sent to the new system and the old system.
S303: and respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request.
S304: identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between the transaction type and the comparison field which is stored in advance; and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result for each target comparison field, and comparing the first operation sub-result with the second operation sub-result to generate a corresponding comparison result.
S305: counting the percentage of the target comparison field with the same first operation sub-result and the same second operation sub-result; judging whether the percentage reaches a set percentage threshold value; if yes, performing S306; if not, proceed to S307.
S306: determining that the test result is qualified;
s307: and determining that the test result is unqualified.
The method can receive the transaction processing request, and respectively acquire a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request; comparing the first operation result with the second operation result to generate a comparison result; and based on the comparison result, a test result of the new system is obtained, and based on the comparison result, the operation result of the new system can be quickly and accurately tested, so that the operation stability and accuracy of the new system are ensured.
In addition, because the electronic equipment can rapidly and intelligently generate the comparison result by comparing the first operation result and the second operation result of the target comparison field, compared with the manual comparison of the first operation result and the second operation result, the labor cost can be saved, the comparison efficiency and accuracy can be improved, and the test efficiency and accuracy can be further improved.
Example 2:
all the implementation modes of the embodiment of the application can acquire, store, use, process and the like the data according with relevant regulations of national laws and regulations.
In order to flexibly and accurately test the operation result of the new system, on the basis of the above embodiment, in this embodiment of the present application, after the receiving a transaction processing request, before the intercepting the transaction processing request, the method further includes:
identifying a target transaction type carried by the transaction processing request, and judging whether the target transaction type is in a preset transaction type list or not;
if yes, the subsequent steps are carried out.
In a possible implementation manner, considering that some transaction types may be important, the operation result of the new system needs to be tested to ensure stability and accuracy of the new system operating the more important transaction types, while some transaction types may not be important, and may be directly operated on the new system without testing the operation result of the new system, in order to enable the electronic device to distinguish the more important transaction types, a tester and the like may preset a transaction type list, and the transaction types in the transaction type list may be considered as the more important transaction types.
Optionally, after receiving the transaction processing request, the electronic device may identify a target transaction type carried by the transaction processing request, and determine whether the target transaction type is in a preset transaction type list, and if the target transaction type is in the preset transaction type list, the target transaction type may be considered as a relatively important transaction type, in order to test an operation result of the new system, the transaction processing request may be intercepted, and the transaction processing request is respectively sent to the new system and the old system, so that the new system and the old system may respectively process the transaction processing request, and further may respectively obtain a first operation result of the new system on the transaction processing request and a second operation result of the old system on the transaction processing request, and compare the first operation result and the second operation result to generate a comparison result, and obtain a test result of the new system based on the comparison result.
It will be appreciated that if the target transaction type is not in the pre-established list of transaction types, the transaction processing request may simply be sent to the new system so that the new system processes the transaction processing request without being sent to the old system.
For ease of understanding, the system test process provided herein is described below with a specific embodiment. Fig. 4A is a schematic diagram of a fourth system testing process provided by some embodiments, and as shown in fig. 4A, the process includes the following steps:
s401: a transaction processing request is received.
S402: if the transaction processing request is processed based on the new system, the transaction processing request is intercepted, and the transaction processing request is respectively sent to the new system and the old system.
S403: and respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request.
S404: and comparing the first operation result with the second operation result to generate a comparison result.
S405: and obtaining a test result of the new system based on the comparison result.
For the sake of understanding, the system testing process provided in the present application is described below by using a specific embodiment. Fig. 4B is a schematic diagram of a system test scenario provided by some embodiments, and as shown in fig. 4B, the system test procedure is as follows:
the tester or the like triggers a transaction processing request, which the electronic device may receive. If the transaction processing request is a transaction processing request processed based on the new system, the electronic device may intercept the transaction processing request and send the transaction processing request to the new system and the old system respectively (for convenience of description, the transaction processing request is referred to as transaction double-sending).
In a possible implementation manner, the electronic device may be configured with a new system and an old system at the same time, and after receiving the transaction processing request, the electronic device may directly and respectively process the transaction processing request based on the new system and the old system in the electronic device, and respectively obtain a first operation result of the new system on the transaction processing request and a second operation result of the old system on the transaction processing request.
In a possible implementation manner, the electronic device may be configured with only one of the new system and the old system, taking that the electronic device is configured with only the new system as an example, after receiving the transaction processing request, the electronic device may process the transaction processing request based on the new system in the electronic device, and obtain a first operation result of the new system on the transaction processing request; meanwhile, the electronic equipment can also send the transaction processing request to other electronic equipment configured with the old system, so that the old system can process the transaction processing request to generate a second operation result. The electronic device may obtain the second operation result, and optionally, after the old system configured in the other electronic device completes processing of the transaction processing request to generate the second operation result, the electronic device may send the second operation result to the electronic device, so that the electronic device may obtain the second operation result. In addition, the electronic device may periodically pull the second operation result from another electronic device, and after the old system in the other electronic device completes processing of the transaction processing request to generate the second operation result, the electronic device may pull (acquire) the second operation result.
After the first operation result and the second operation result are obtained, the electronic device can compare the first operation result with the second operation result to generate a comparison result, and a test result of the new system is obtained based on the comparison result. Optionally, the electronic device may display the test result for the tester to check. In addition, the tester and the like may also query the corresponding test result, for example, the tester and the like may input query conditions such as time and a transaction identification code corresponding to the transaction processing request, and the electronic device may match the test result corresponding to the transaction processing request, and display a comparison result between the first operation sub-result and the second operation sub-result corresponding to each target comparison field.
For ease of understanding, the system test process provided in the present application is described below with reference to a specific embodiment. Fig. 5 shows a schematic diagram of a fifth system test process provided by some embodiments, and as shown in fig. 5, the process includes the following steps:
s501: a transaction processing request is received.
S502: if the transaction processing request is a transaction processing request processed based on the new system, identifying a target transaction type carried by the transaction processing request, judging whether the target transaction type is located in a preset transaction type list, and if not, performing S503; if yes, proceed to S504.
S503: a transaction processing request is sent to the new system.
S504: the transaction processing request is intercepted and sent to the new system and the old system respectively.
S505: and respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request.
S506: and comparing the first operation result with the second operation result to generate a comparison result.
S507: and obtaining a test result of the new system based on the comparison result.
Example 3:
all the embodiments of the present application implement data acquisition, storage, use, processing, etc. in compliance with relevant regulations of national laws and regulations.
Based on the same technical concept, the present application provides a system test apparatus, and fig. 6 shows a schematic diagram of a system test apparatus according to some embodiments, where the apparatus includes:
a receiving module 61, configured to receive a transaction processing request;
an obtaining module 62, configured to obtain a first operation result of the transaction processing request by the new system and a second operation result of the transaction processing request by the old system;
a comparison module 63, configured to compare the first operation result with the second operation result, and generate a comparison result;
a determining module 64, configured to obtain a test result for the new system based on the comparison result.
In a possible embodiment, the apparatus further comprises:
and the sending module is used for intercepting the transaction processing request and respectively sending the transaction processing request to the new system and the old system if the transaction processing request is a transaction processing request processed based on the new system.
In a possible implementation manner, the sending module is further configured to:
identifying a target transaction type carried by the transaction processing request, and judging whether the target transaction type is located in a preset transaction type list; if yes, intercepting the transaction processing request, and respectively sending the transaction processing request to the new system and the old system.
In a possible implementation manner, the sending module is further configured to:
and if the target transaction type is not in a preset transaction type list, sending the transaction processing request to the new system.
In a possible embodiment, the alignment module 63 is specifically configured to:
identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between the transaction type and the comparison field which is stored in advance;
and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result for each target comparison field, and comparing the first operation sub-result with the second operation sub-result.
In a possible implementation, the determining module 64 is specifically configured to:
counting the percentage of the target comparison fields with the same first operation sub-result and second operation sub-result; judging whether the percentage reaches a set percentage threshold value;
if yes, determining that the test result is qualified;
if not, determining that the test result is unqualified.
In a possible embodiment, the apparatus further comprises:
and the prompt module is used for outputting set prompt information aiming at the target comparison fields with different first operation sub-results and second operation sub-results.
Example 4:
all the embodiments of the present application implement data acquisition, storage, use, processing, etc. in compliance with relevant regulations of national laws and regulations.
Based on the same technical concept, the present application further provides an electronic device, and fig. 7 shows a schematic structural diagram of an electronic device provided in some embodiments, and as shown in fig. 7, the electronic device includes: the system comprises a processor 71, a communication interface 72, a memory 73 and a communication bus 74, wherein the processor 71, the communication interface 72 and the memory 73 are communicated with each other through the communication bus 74;
the memory 73 has stored therein a computer program which, when executed by the processor 71, causes the processor 71 to perform the steps of:
receiving a transaction processing request;
respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request;
comparing the first operation result with the second operation result to generate a comparison result;
and obtaining a test result of the new system based on the comparison result.
In a possible implementation, the processor 71 is further configured to:
if the transaction processing request is a transaction processing request processed based on a new system, the transaction processing request is intercepted, and the transaction processing request is respectively sent to the new system and the old system.
In a possible implementation, the processor 71 is further configured to:
identifying a target transaction type carried by the transaction processing request, and judging whether the target transaction type is located in a preset transaction type list; if yes, intercepting the transaction processing request, and respectively sending the transaction processing request to the new system and the old system.
In a possible implementation, the processor 71 is further configured to:
and if the target transaction type is not in a preset transaction type list, sending the transaction processing request to the new system.
In a possible implementation, the processor 71 is specifically configured to:
identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between the transaction type and the comparison field which is stored in advance;
and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result for each target comparison field, and comparing the first operation sub-result with the second operation sub-result.
In a possible implementation, the processor 71 is specifically configured to:
counting the percentage of the target comparison field with the same first operation sub-result and the same second operation sub-result; judging whether the percentage reaches a set percentage threshold value;
if yes, determining that the test result is qualified;
if not, determining that the test result is unqualified.
In a possible implementation, the processor 71 is further configured to:
and outputting set prompt information aiming at the target comparison fields with different first operation sub-results and second operation sub-results.
Because the principle of solving the problems of the electronic equipment is similar to that of the system testing method, the implementation of the electronic equipment can refer to the implementation of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 72 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc.
Example 5:
all the embodiments of the present application implement data acquisition, storage, use, processing, etc. in compliance with relevant regulations of national laws and regulations.
Based on the same technical concept, embodiments of the present application provide a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to perform the following steps:
receiving a transaction processing request;
respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request;
comparing the first operation result with the second operation result to generate a comparison result;
and obtaining a test result of the new system based on the comparison result.
In a possible implementation manner, after the receiving the transaction processing request, before the respectively obtaining a first operation result of the new system on the transaction processing request and a second operation result of the old system on the transaction processing request, the method further includes:
if the transaction processing request is a transaction processing request processed based on a new system, the transaction processing request is intercepted, and the transaction processing request is respectively sent to the new system and the old system.
In one possible embodiment, after the receiving the transaction processing request and before the intercepting the transaction processing request, the method further comprises:
identifying a target transaction type carried by the transaction processing request, and judging whether the target transaction type is located in a preset transaction type list;
if yes, the subsequent steps are carried out.
In one possible embodiment, the method further comprises:
and if the target transaction type is not in a preset transaction type list, sending the transaction processing request to the new system.
In a possible implementation, the comparing the first operation result and the second operation result includes:
identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between a pre-stored transaction type and the comparison field;
and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result aiming at each target comparison field, and comparing the first operation sub-result with the second operation sub-result.
In a possible embodiment, the obtaining a test result for the new system based on the alignment result includes:
counting the percentage of the target comparison field with the same first operation sub-result and the same second operation sub-result; judging whether the percentage reaches a set percentage threshold value;
if yes, determining that the test result is qualified;
if not, determining that the test result is unqualified.
In one possible embodiment, the method further comprises:
and outputting set prompt information aiming at the target comparison fields with different first operation sub-results and second operation sub-results.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memories (NAND FLASH), solid State Disks (SSDs), etc.
Based on the same technical concept, the present application provides a computer program product, comprising: computer program code which, when run on a computer, causes the computer to carry out the method of any of the method embodiments described above as applied to an electronic device when executed.
In the above embodiments, the implementation may be realized in whole or in part by software, hardware, firmware, or any combination thereof, and may be realized in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions which, when loaded and executed on a computer, cause a process or function according to an embodiment of the application to be performed, in whole or in part.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (17)
1. A method of system testing, the method comprising:
receiving a transaction processing request;
respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request;
comparing the first operation result with the second operation result to generate a comparison result;
and obtaining a test result of the new system based on the comparison result.
2. The method of claim 1, wherein after receiving the transaction processing request, the method further comprises, before obtaining a first operation result of the new system on the transaction processing request and a second operation result of the old system on the transaction processing request, respectively:
if the transaction processing request is a transaction processing request processed based on a new system, the transaction processing request is intercepted, and the transaction processing request is respectively sent to the new system and the old system.
3. The method of claim 2, wherein after receiving the transaction processing request and before intercepting the transaction processing request, the method further comprises:
identifying a target transaction type carried by the transaction processing request, and judging whether the target transaction type is in a preset transaction type list or not;
if yes, the subsequent steps are carried out.
4. The method of claim 3, further comprising:
and if the target transaction type is not in a preset transaction type list, sending the transaction processing request to the new system.
5. The method of claim 1, wherein the comparing the first operational result and the second operational result comprises:
identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between the transaction type and the comparison field which is stored in advance;
and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result for each target comparison field, and comparing the first operation sub-result with the second operation sub-result.
6. The method of claim 5, wherein obtaining the test result for the new system based on the comparison comprises:
counting the percentage of the target comparison field with the same first operation sub-result and the same second operation sub-result; judging whether the percentage reaches a set percentage threshold value;
if yes, determining that the test result is qualified;
if not, determining that the test result is unqualified.
7. The method of claim 5, further comprising:
and outputting set prompt information aiming at the target comparison fields with different first operation sub-results and second operation sub-results.
8. A system test apparatus, the apparatus comprising:
a receiving module for receiving a transaction processing request;
the acquisition module is used for respectively acquiring a first operation result of the new system to the transaction processing request and a second operation result of the old system to the transaction processing request;
the comparison module is used for comparing the first operation result with the second operation result to generate a comparison result;
and the determining module is used for obtaining a test result of the new system based on the comparison result.
9. The apparatus of claim 8, further comprising:
and the sending module is used for intercepting the transaction processing request and respectively sending the transaction processing request to the new system and the old system if the transaction processing request is a transaction processing request processed based on the new system.
10. The apparatus of claim 9, wherein the sending module is further configured to:
identifying a target transaction type carried by the transaction processing request, and judging whether the target transaction type is located in a preset transaction type list; if yes, intercepting the transaction processing request, and respectively sending the transaction processing request to the new system and the old system.
11. The apparatus of claim 10, wherein the sending module is further configured to:
and if the target transaction type is not in a preset transaction type list, sending the transaction processing request to the new system.
12. The apparatus of claim 8, wherein the alignment module is specifically configured to:
identifying a target transaction type carried by the transaction processing request, and determining each target comparison field corresponding to the target transaction type according to a corresponding relation between the transaction type and the comparison field which is stored in advance;
and respectively determining a first operation sub-result corresponding to the target comparison field in the first operation result and a second operation sub-result corresponding to the target comparison field in the second operation result aiming at each target comparison field, and comparing the first operation sub-result with the second operation sub-result.
13. The apparatus of claim 12, wherein the determining module is specifically configured to:
counting the percentage of the target comparison field with the same first operation sub-result and the same second operation sub-result; judging whether the percentage reaches a set percentage threshold value or not;
if yes, determining that the test result is qualified;
if not, determining that the test result is unqualified.
14. The apparatus of claim 12, further comprising:
and the prompt module is used for outputting set prompt information aiming at the target comparison fields with different first operation sub-results and second operation sub-results.
15. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being adapted to carry out the steps of the method according to any of claims 1-7 when executing a computer program stored in the memory.
16. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
17. A computer program product, the computer program product comprising: computer program code for causing a computer to perform the steps of the method according to any of claims 1-7 when said computer program code is run on a computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211014893.6A CN115344498A (en) | 2022-08-23 | 2022-08-23 | System test method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211014893.6A CN115344498A (en) | 2022-08-23 | 2022-08-23 | System test method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115344498A true CN115344498A (en) | 2022-11-15 |
Family
ID=83953631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211014893.6A Pending CN115344498A (en) | 2022-08-23 | 2022-08-23 | System test method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115344498A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070011209A1 (en) * | 2005-07-06 | 2007-01-11 | Markus Wietlisbach | Technique for the migration of a host environment to a new system platform |
CN111506593A (en) * | 2020-04-24 | 2020-08-07 | 东莞市精驰软件有限公司 | Software system data upgrading method, device, equipment and storage medium |
CN112162922A (en) * | 2020-09-17 | 2021-01-01 | 中国建设银行股份有限公司 | Method, device, server and storage medium for determining difference of new and old systems |
CN113742212A (en) * | 2021-06-30 | 2021-12-03 | 中国工商银行股份有限公司 | New and old system migration test method and device |
CN114443485A (en) * | 2022-01-28 | 2022-05-06 | 中国建设银行股份有限公司 | Service system function verification method and system based on data migration |
CN114640503A (en) * | 2022-02-22 | 2022-06-17 | 中国建设银行股份有限公司 | Application system verification method and device, computer equipment and storage medium |
-
2022
- 2022-08-23 CN CN202211014893.6A patent/CN115344498A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070011209A1 (en) * | 2005-07-06 | 2007-01-11 | Markus Wietlisbach | Technique for the migration of a host environment to a new system platform |
CN111506593A (en) * | 2020-04-24 | 2020-08-07 | 东莞市精驰软件有限公司 | Software system data upgrading method, device, equipment and storage medium |
CN112162922A (en) * | 2020-09-17 | 2021-01-01 | 中国建设银行股份有限公司 | Method, device, server and storage medium for determining difference of new and old systems |
CN113742212A (en) * | 2021-06-30 | 2021-12-03 | 中国工商银行股份有限公司 | New and old system migration test method and device |
CN114443485A (en) * | 2022-01-28 | 2022-05-06 | 中国建设银行股份有限公司 | Service system function verification method and system based on data migration |
CN114640503A (en) * | 2022-02-22 | 2022-06-17 | 中国建设银行股份有限公司 | Application system verification method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108090567B (en) | Fault diagnosis method and device for power communication system | |
CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
CN111897724A (en) | Automatic testing method and device suitable for cloud platform | |
CN110879781B (en) | Program debugging method, device, electronic equipment and computer readable storage medium | |
EP3131041A1 (en) | Testing of enterprise resource planning systems | |
CN114329469A (en) | API abnormal calling behavior detection method, device, equipment and storage medium | |
CN109388564B (en) | Test method and device and electronic equipment | |
CN117076330B (en) | Access verification method, system, electronic equipment and readable storage medium | |
CN112256672B (en) | Database change approval method and device | |
CN108629699A (en) | Data uploading method, data uploading device, storage medium and device | |
CN106034150B (en) | Application program dynamic pushing method, device and system | |
CN115344498A (en) | System test method, device, electronic equipment and storage medium | |
CN113760631B (en) | Page loading time length determining method, device, equipment and storage medium | |
CN109165127B (en) | Problem interface positioning method and device and electronic equipment | |
CN110442370B (en) | Test case query method and device | |
CN110413516B (en) | Method and device for identifying slow SQL codes and electronic equipment | |
CN114547008A (en) | Data processing method, device, equipment and medium | |
CN110489341B (en) | Test method and device, storage medium and electronic equipment | |
CN114425787A (en) | Control method and device for robot automatic test, server and storage medium | |
CN111241560B (en) | Device detection control method and system, computer device, and computer storage medium | |
CN110727582B (en) | Program testing method and device, computer equipment and storage medium | |
CN116594862B (en) | DBMS test method and device, electronic equipment and readable storage medium | |
CN115640231A (en) | Method, device and equipment for determining test duration and storage medium | |
CN112783759B (en) | White box test task execution method and device, storage medium and computer equipment | |
CN112241362B (en) | Test method, test device, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |