CA3129150C - Interface message test method and device, computer equipment and storage medium - Google Patents
Interface message test method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CA3129150C CA3129150C CA3129150A CA3129150A CA3129150C CA 3129150 C CA3129150 C CA 3129150C CA 3129150 A CA3129150 A CA 3129150A CA 3129150 A CA3129150 A CA 3129150A CA 3129150 C CA3129150 C CA 3129150C
- Authority
- CA
- Canada
- Prior art keywords
- interface message
- node
- target
- interface
- benchmark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000010998 test method Methods 0.000 title description 21
- 238000000034 method Methods 0.000 claims abstract description 87
- 230000006870 function Effects 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000006243 chemical reaction Methods 0.000 abstract 1
- 238000004590 computer program Methods 0.000 description 26
- 238000010586 diagram Methods 0.000 description 12
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 210000001550 testis Anatomy 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
STORAGE MEDIUM
Field [0001] The present disclosure relates to computer technology field, particularly to an interface message test method, apparatus, computer device, and storage medium.
Background
The test succeeds only when the field name and the correspondingly field value are the same, this test method can easily miss the case of the empty filed value or the nonexistent field and lead to the low accuracy of the interface message test.
Invention Content
Date recue/date received 2021-10-27
obtaining candidate benchmark interface message set, the candidate benchmark interface message set includes at least one candidate benchmark interface message; obtaining candidate interface identity corresponding to each candidate interface; establishing association relation between the candidate benchmark interface message and the correspondingly candidate interface identity; obtaining the correspondingly target benchmark interface message according to the current interface identity, comprising:
obtaining the correspondingly target benchmark interface message according to the association relation and the current interface identity.
Date recue/date received 2021-10-27
if differential nodes in the new differential node set are consistent, determining the target node set according to the actual interface message and the target benchmark interface message; if target nodes in the target node set are consistent, determining the test result of interface message as successful test result of interface message.
Date recue/date received 2021-10-27
determining differential node set according to the actual interface message and the target benchmark interface message; determining interface message test result according to node value corresponding to the differential node in the differential node set, the interface message test result is used to determine the correctness of the actual interface message. Obtaining differential node set by comparing the actual interface message and correspondingly target benchmark interface message, obtaining test result of interface message according to the node value corresponding to the differential node in the differential node set, which will not miss the case of empty node value or nonexistent node, test the interface message comprehensively and improve accuracy of interface message test.
Drawing Description Date recue/date received 2021-10-27
Specific implementation methods Date recue/date received 2021-10-27
Furthermore, the interface message test result can be returned to terminal 102 for the terminal user to view.
Date recue/date received 2021-10-27
Wherein, the benchmark interface message corresponding to the different interface identities can be different or the same, specifically can be determined based on service requirements, actual application scenarios, or product requirements.
Date recue/date received 2021-10-27
Date recue/date received 2021-10-27
"testl" : "1", "test3" :
Date recue/date received 2021-10-27
"testl" : "1", "test2" :
}
Date recue/date received 2021-10-27
"testl" : "1", "test3" :
}
"testl" : "1", "test2" :
test3 in the target benchmark interface message and test2 in the actual interface message. Wherein, the node values of test3 and test2 are empty, therefore, removing the test3 and test2 from the differential node set, obtaining a new differential node set, the new differential node set does not have differential node.
Wherein, the inconsistency of the differential nodes in the new differential node set includes different node names and values of the differential nodes in the new differential node set, then determining as inconsistency. The inconsistency of the differential nodes in the new different node set indicates that the actual interface message and the target benchmark interface message are different, then the actual interface Date recue/date received 2021-10-27 message exists a problem, and the interface message test result is failure.
Among them, in another implementation, a switch can be set to control whether the differential node with empty node value needs to be removed from the differential node set, specifically can be determined according to business requirements, product requirements or application scenarios, by default, the switch is generally adopted if needs to remove the differential node with empty node value from the differential node set.
Date recue/date received 2021-10-27
"testl" : "1", "test3" :
"testl" : "1", "test2" :
test3 in the target benchmark interface message and test2 in the actual interface message, the target node is: testl, in the actual interface message and the target benchmark interface message, the node values corresponding to the target node testl are all 1, then determining the interface message test result is successful test result.
Date recue/date received 2021-10-27
Date recue/date received 2021-10-27 "testl" : "1", "test3" :
"testl" : "1", "test2" :
test3 in the target benchmark interface message and test2 in the actual interface message, the target node is: testl.
Date recue/date received 2021-10-27
Date recue/date received 2021-10-27
"testl" : "1", "test2" : [{
"test3" : "1", {
"test3": "2",
"testi" : "1", "test2" : [{
"test3" : "3", {
"test3": "2", }, {
"test3": "1",
Otherwise, if the target child nodes names are the same and the target child nodes values are not the same, determining of the interface message test result is failure test result. Among them, in another implementation, a switch can be set to control whether perform sequence detection between each target child node, specifically can be set according to business requirements, product requirements or application scenarios.
Date recue/date received 2021-10-27
Date recue/date received 2021-10-27
The computer program is executed by the processor to implement an interface message test method.
The computer program is executed by the processor to implement an interface message test method. The computer device's display monitor can be LCD monitor or electronic ink display monitor, the input apparatus of the computer device can be the touch layer on the display monitor, also can be button, trackball, or touchpad, and can be the external keyboard, touchpad, or mouse, etc.
determining differential node set according to the actual interface message and the target benchmark Date recue/date received 2021-10-27 interface message; determining interface message test result according to node value corresponding to the differential node in the differential node set, the interface message test result is used to determine the correctness of the actual interface message.
obtaining the correspondingly target benchmark interface message according to the association relation and the current interface identity.
traversing benchmark node name in the target benchmark interface message; determining differential node and forming differential node set, wherein the differential node is the node with different actual node name from the benchmark node name.
[01671 In an implementation, the processor performs the following steps when executing the computer program: removing the differential node with empty node value from the differential node set, obtaining a new differential node set; if differential nodes in the new differential node set are inconsistent, determining the test result of interface message as failure test result of interface message.
[0168] In an implementation, the processor performs the following steps when executing the computer program: if differential nodes in the new differential node set are consistent, determining the target node set according to the actual interface message and the target benchmark interface message; if target nodes in the target node set are consistent, determining the test result of interface message as successful test result Date recue/date received 2021-10-27 of interface message.
[0169] In an implementation, the processor performs the following steps when executing the computer program: traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; determining target node and forming target node set, wherein the target node is the node with the same actual node name as the benchmark node name.
[0170] In an implementation, the processor performs the following steps when executing the computer program: if node names corresponding to the target nodes in the target node set are the same and node values corresponding to the target nodes are the same, determining of the target nodes in the target node set are consistent; if the target nodes include plural target child nodes, the method also comprises: if the number of the target child nodes corresponding to the target node in the actual interface message is the same as the number of the target child nodes corresponding to the target node in the benchmark interface message, obtaining the target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; if the target child node names are the same and the target child node values are the same, determining of the target nodes in the target node set are consistent.
[0171] In an implementation, a computer readable storage medium stored with a computer program configured to achieve the following steps when the processor executes the computer program: obtaining actual interface message, the actual interface message carries the current interface identity; obtaining target benchmark interface message according to the current interface identity;
detelinining differential node set according to the actual interface message and the target benchmark interface message; determining interface message test result according to node value corresponding to the differential node in the differential node set, the interface message test result is used to determine the correctness of the actual interface message.
[0172] In an implementation, the processor performs the following steps when executing the computer Date recue/date received 2021-10-27 program: obtaining candidate benchmark interface message set, the candidate benchmark interface message set includes at least one candidate benchmark interface message; obtaining candidate interface identity corresponding to each candidate interface; establishing association relation between the candidate benchmark interface message and the correspondingly candidate interface identity; obtaining the correspondingly target benchmark interface message according to the current interface identity, comprising:
obtaining the correspondingly target benchmark interface message according to the association relation and the current interface identity.
[0173] In an implementation, the processor performs the following steps when executing the computer program: traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; determining differential node and forming differential node set, wherein the differential node is the node with different actual node name from the benchmark node name.
[0174] In an implementation, the processor performs the following steps when executing the computer program: removing the differential node with empty node value from the differential node set, obtaining a new differential node set; if differential nodes in the new differential node set are inconsistent, determining the test result of interface message as failure test result of interface message.
[0175] In an implementation, the processor performs the following steps when executing the computer program: if differential nodes in the new differential node set are consistent, determining the target node set according to the actual interface message and the target benchmark interface message; if target nodes in the target node set are consistent, determining the test result of interface message as successful test result of interface message.
[0176] In an implementation, the processor performs the following steps when executing the computer program: traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmaric interface message; determining target node and forming target node set, wherein the Date recue/date received 2021-10-27 target node is the node with the same actual node name as the benchmark node name.
[0177] In an implementation, the processor performs the following steps when executing the computer program: if node names corresponding to the target nodes in the target node set are the same and node values corresponding to the target nodes are the same, determining of the target nodes in the target node set are consistent; if the target nodes include plural target child nodes, the method also comprises: if the number of the target child nodes corresponding to the target node in the actual interface message is the same as the number of the target child nodes corresponding to the target node in the benchmark interface message, obtaining the target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; if the target child node names are the same and the target child node values are the same, determining of the target nodes in the target node set are consistent.
[0178] The skilled in the art can understand that all or partial of procedures from the above-mentioned methods can be performed by computer program instructions through related hardware, the mentioned computer program can be stored in a non-volatile material computer readable storage medium, this computer can include various implementation procedures from the abovementioned methods when execution. Any reference to the memory, the storage, the database, or the other media used in each implementation provided in current application can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programable ROM (PROM), electrically programmable ROM (EPRPMD), electrically erasable programmable ROM (EEPROM) or flash memory.
Volatile memory can include random access memory (RAM) or external cache memory. As an instruction but not limited to, RAM is available in many forms such as static RAM (SRAM), dynamic RAM
(DRAMD), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SRAM
(ESDRAM), synchronal link (Synchlink) DRAM (SLDRAM), memory bus (Rambus), direct RAM
(RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM
(RDRAM), etc.
Date recue/date received 2021-10-27 [0179] The technical features of the above-mentioned implementations can be randomly combined, for concisely statement, not all possible combinations of technical features in the abovementioned implementations are described. However, if there are no conflicts in the combinations of these technical features, it shall be within the scope of this descriptions.
[0180] The above-mentioned implementations are only several implementations in this disclosure and the description is more specific and detailed but cannot be understood as the limitation of the scope of the invention patent. Evidently those ordinary skilled in the art can make various modifications and variations to the disclosure without departing from the spirit and scope of the disclosure. Therefore, the appended claims are intended to be construed as encompassing the described embodiment and all the modifications and variations coming into the scope of the disclosure.
Date recue/date received 2021-10-27
Claims (272)
an actual interface message obtaining module configured to obtain the actual interface message, wherein the actual interface message carries current interface identity;
a benchmark interface message obtaining module configured to obtain target benchmark interface message according to the current interface identity;
a differential node set determining module configured to determine differential node set according to the actual interface message and the target benchmark interface message;
an interface message test result determining module configured to determine interface message test result according to node value corresponding to differential node in the differential node set, wherein the interface message test result determines correctness of the actual interface message;
the benchmark interface message obtaining module further configured to obtain candidate benchmark interface message set, wherein the candidate benchmark interface message set includes a candidate benchmark interface message;
the actual interface message obtaining module further configured to obtain candidate interface identity corresponding to each candidate interface; and the interface message test result determining module further configured to establish association relation between the candidate benchmark interface message and the candidate interface identity.
Date Recue/Date Received 2023-12-18 obtain the target benchmark interface message according to the association relation and the current interface identity.
traverse actual node name in the actual interface message;
traverse benchmark node name in the target benchmark interface message; and determine the differential node and forming the differential node set, wherein the differential node is node with different actual node name from the benchmark node name.
remove the differential node with empty node value from the differential node set;
obtain a new differential node set; and wherein the differential node in the new differential node set is inconsistent, determine the interface message test result as failure test result of interface message.
wherein the differential node in the new differential node set is consistent, determining target node set according to the actual interface message and the target benchmark interface message; and wherein target nodes in the target node set are consistent, determining the interface message test result as successful test result of the interface message.
Date Recue/Date Received 2023-12-18 traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the target node and forming the target node set, wherein the target node is a node with same actual node name as the benchmark node name.
wherein the node names corresponding to the target nodes in the target node set are same and the node values corresponding to the target nodes are same, determining of the target nodes in the target node set are consistent.
wherein number of target child nodes corresponding to the target node in the actual interface message is same as the number of the target child nodes corresponding to the target node in benchmark interface message, obtaining target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; and wherein the target child node names are same and the target child node values are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
obtaining actual interface message, wherein the actual interface message carries current interface identity;
obtaining target benchmark interface message according to the current interface identity;
Date Recue/Date Received 2023-12-18 determining differential node set according to the actual interface message and the target benchmark interface message;
determining interface message test result according to node value corresponding to differential node in the differential node set, wherein the interface message test result determines correctness of the actual interface message;
obtaining candidate benchmark interface message set, wherein the candidate benchmark interface message set includes a candidate benchmark interface message;
obtaining candidate interface identity corresponding to each candidate interface; and establishing association relation between the candidate benchmark interface message and the candidate interface identity.
obtaining the target benchmark interface message according to the association relation and the current interface identity.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the differential node and forming the differential node set, wherein the differential node is node with different actual node name from the benchmark node name.
Date Recue/Date Received 2023-12-18
removing the differential node with empty node value from the differential node set;
obtaining a new differential node set; and wherein the differential node in the new differential node set is inconsistent, determining the interface message test result as failure test result of interface message.
wherein the differential node in the new differential node set is consistent, determining target node set according to the actual interface message and the target benchmark interface message; and wherein target nodes in the target node set are consistent, determining the interface message test result as successful test result of the interface message.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the target node and fo filling the target node set, wherein the target node is a node with same actual node name as the benchmark node name.
Date Recue/Date Received 2023-12-18 wherein node names corresponding to the target nodes in the target node set are same and the node values corresponding to the target nodes are same, determining of the target nodes in the target node set are consistent.
wherein number of target child nodes corresponding to the target node in the actual interface message is same as the number of the target child nodes corresponding to the target node in benchmark interface message, obtaining target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; and wherein the target child node names are same and the target child node values are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
a memory including a nonvolatile storage medium and an internal memory, wherein an operating system, machine-executable code, and databases are stored in the nonvolatile storage medium, wherein the internal memory provides operation environment for execution of the operating system and the machine-executable code stored in the nonvolatile storage medium;
a network interface communicates with an external terminal through a network connection;
the database connected by system bus;
a processor configured to provide calculation and control capabilities;
the machine-executable code on the processor configured to:
Date Recue/Date Received 2023-12-18 obtain actual interface message, wherein the actual interface message carries current interface identity;
obtain target benchmark interface message according to the current interface identity;
determine differential node set according to the actual interface message and the target benchmark interface message;
determine interface message test result according to node value corresponding to differential node in the differential node set, wherein the interface message test result determines correctness of the actual interface message;
obtain candidate benchmark interface message set, wherein the candidate benchmark interface message set includes a candidate benchmark interface message;
obtain candidate interface identity corresponding to each candidate interface; and establish association relation between the candidate benchmark interface message and the candidate interface identity.
obtaining the taxget benchmark interface message according to the association relation and the current interface identity.
traversing actual node name in the actual interface message;
Date Recue/Date Received 2023-12-18 traversing benchmark node name in the target benchmark interface message; and determining the differential node and forming the differential node set, wherein the differential node is node with different actual node name from the benchmark node name.
removing the differential node with empty node value from the differential node set;
obtaining a new differential node set; and wherein the differential node in the new differential node set is inconsistent, determining the interface message test result as failure test result of interface message.
wherein the differential node in the new differential node set is consistent, determining target node set according to the actual interface message and the target benchmark interface message; and wherein target nodes in the target node set are consistent, determining the interface message test result as successful test result of the interface message.
1Taversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and Date Recue/Date Received 2023-12-18 determining the target node and forming the target node set, wherein the target node is a node with same actual node name as the benchmark node name.
wherein node names corresponding to the target nodes in the target node set are same and the node values corresponding to the target nodes are same, determining of the target nodes in the target node set are consistent.
wherein number of target child nodes corresponding to the target node in the actual interface message is same as the number of the target child nodes corresponding to the target node in benchmark interface message, obtaining target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; and wherein the target child node names are same and the target child node values are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
obtain actual interface message, wherein the actual interface message carries current interface identity;
obtain target benchmark interface message according to the current interface identity;
determine differential node set according to the actual interface message and the target benchmark interface message; ;
determine interface message test result according to node value corresponding to differential node in the differential node set, wherein the interface message test result determines correctness of the actual interface message;
Obtain candidate benchmark interface message set, wherein the candidate benchmark interface message set includes a candidate benchmark interface message;
Date Recue/Date Received 2023-12-18 obtain candidate interface identity corresponding to each candidate interface;
and establish association relation between the candidate benchmark interface message and the candidate interface identity.
obtaining the target benchmark interface message according to the association relation and the current interface identity.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the differential node and forming the differential node set, wherein the differential node is node with different actual node name from the benchmark node name.
removing the differential node with empty node value from the differential node set;
obtaining a new differential node set; and wherein the differential node in the new differential node set is inconsistent, determining the interface message test result as failure test result of interface message.
Date Recue/Date Received 2023-12-18 wherein the differential nodes in the new differential node set are consistent, determining target node set according to the actual interface message and the target benchmark interface message; and wherein target nodes in the target node set are consistent, determining the interface message test result as successful test result of the interface message.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the target node and forming the target node set, wherein the target node is a node with same actual node name as the benchmark node name.
wherein node names corresponding to the target nodes in the target node set are same and the node values corresponding to the target nodes are same, determining of the target nodes in the target node set are consistent.
wherein number of target child nodes corresponding to the target node in the actual interface message is same as the number of the target child nodes corresponding to the target node in benchmark interface message, obtaining target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; and wherein the target child node names are same and the target child node values are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
a differential node set determining module configured to determine differential node set according to an actual interface message and a target benchmark interface message;
Date Recue/Date Received 2023-12-18 an interface message test result determining module configured to determine interface message test result according to node value corresponding to differential node in the differential node set, wherein the interface message test result determines correctness of the actual interface message;
An actual interface message obtaining module configured to obtain the actual interface message, wherein the actual interface message carries current interface identity;
a benchmark interface message obtaining module configured to obtain the target benchmark interface message according to the current interface identity;
the benchmark interface message obtaining module further configured to obtain candidate benchmark interface message set, wherein the candidate benchmark interface message set includes a candidate benchmark interface message; and the actual interface message obtaining module further configured to obtain candidate interface identity corresponding to each candidate interface.
establishing association relation between the candidate benchmark interface message and correspondingly candidate interface identity.
obtain the target benchmark interface message according to the association relation and the current interface identity.
Date Recue/Date Received 2023-12-18 traverse actual node name in the actual interface message;
traverse benchmark node name in the target benchmark interface message; and determine the differential node and forming the differential node set, wherein the differential node is node with different actual node name from the benchmark node name.
remove the differential node with empty node value from the differential node set;
obtain a new differential node set; and wherein the differential node in the new differential node set is inconsistent, determine the interface message test result as failure test result of interface message.
wherein the differential node in the new differential node set is consistent, determining target node set according to the actual interface message and the target benchmark interface message; and wherein target nodes in the target node set are consistent, determining the interface message test result as successful test result of the interface message.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and Date Recue/Date Received 2023-12-18 determining the target node and forming the target node set, wherein the target node is a node with same actual node name as the benchmark node name.
wherein node names corresponding to the target nodes in the target node set are same and the node values corresponding to the target nodes are same, determining of the target nodes in the target node set are consistent.
wherein number of target child nodes corresponding to the target node in the actual interface message is same as the number of the target child nodes corresponding to the target node in benchmark interface message, obtaining target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; and wherein the target child node names are same and the target child node values are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
determining differential node set according to an actual interface message and a target benchmark interface message; and determining interface message test result according to node value corresponding to differential node in the differential node set, wherein the interface message test result determines correctness of the actual interface message;
Obtaining the actual interface message, wherein the actual interface message carries current interface identity;
Date Recue/Date Received 2023-12-18 obtaining the target benchmark interface message according to the current interface identity;
obtaining candidate benchmark interface message set, wherein the candidate benchmark interface message set includes a candidate benchmark interface message;
and obtaining candidate interface identity corresponding to each candidate interface.
establishing association relation between the candidate benchmark interface message and correspondingly candidate interface identity.
obtaining the target benchmark interface message according to the association relation and the current interface identity.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the differential node and forming the differential node set, wherein the differential node is node with different actual node name from the benchmark node name.
Date Recue/Date Received 2023-12-18 removing the differential node with empty node value from the differential node set;
obtaining a new differential node set; and wherein the differential node in the new differential node set is inconsistent, determining the interface message test result as failure test result of interface message.
wherein the differential node in the new differential node set is consistent, determining target node set according to the actual interface message and the target benchmark interface message; and wherein target nodes in the target node set are consistent, determining the interface message test result as successful test result of the interface message.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the target node and forming the target node set, wherein the target node is a node with same actual node name as the benchmark node name.
wherein node names corresponding to the target nodes in the target node set are same and the node values corresponding to the target nodes are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18 wherein number of target child nodes corresponding to the target node in the actual interface message is same as the number of the target child nodes corresponding to the target node in benchmark interface message, obtaining target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; and wherein the target child node names are same and the target child node values are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
a memory including a nonvolatile storage medium and an internal memory, wherein an operating system, machine-executable code, and databases are stored in the nonvolatile storage medium, wherein the internal memory provides operation environment for execution of the operating system and the co machine-executable code stored in the nonvolatile storage medium;
a network Interface communicates with an external terminal through a network connection;
the database connected by system bus;
a processor configured to provide calculation and control capabilities;
the machine-executable code on the processor configured to:
determine differential node set according to an actual interface message and a target benchmark interface message; and determine interface message test result according to node value corresponding to differential node in the differential node set, wherein the interface message test result determines correctness of the actual interface message;
obtain the actual interface message, wherein the actual interface message carries current interface identity;
obtain the target benchmark interface message according to the current interface identity;
Date Recue/Date Received 2023-12-18 obtain candidate benchmark interface message set, wherein the candidate benchmark interface message set includes a candidate benchmark interface message; and obtain candidate interface identity corresponding to each candidate interface.
establishing association relation between the candidate benchmark interface message and correspondingly candidate interface identity.
obtaining the target benchmark interface message according to the association relation and the current interface identity.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the differential node and forming the differential node set, wherein the differential node is node with different actual node name from the benchmark node name.
removing the differential node with empty node value from the differential node set;
Date Recue/Date Received 2023-12-18 obtaining a new differential node set; and wherein the differential node in the new differential node set is inconsistent, determining the interface message test result as failure test result of interface message.
wherein the differential node in the new differential node set is consistent, determining target node set according to the actual interface message and the target benchmark interface message; and wherein target nodes in the target node set are consistent, determining the interface message test result as successful test result of the interface message.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the target node and forming the target node set, wherein the target node is a node with same actual node name as the benchmark node name.
wherein node names corresponding to the target nodes in the target node set are same and the node values corresponding to the target nodes are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18 wherein number of target child nodes corresponding to the target node in the actual interface message is same as the number of the target child nodes corresponding to the target node in benchmark interface message, obtaining target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; and wherein the target child node names are same and the target child node values are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
determine differential node set according to an actual interface message and a target benchmark interface message;
determine interface message test result according to node value corresponding to differential node in the differential node set, wherein the interface message test result determines correctness of the actual interface message;
obtaining the actual interface message, wherein the actual interface message carries current interface identity;
obtaining the target benchmark interface message according to the current interface identity;
obtain candidate benchmark interface message set, wherein the candidate benchmark interface message set includes a candidate benchmark interface message; and obtain candidate interface identity corresponding to each candidate interface.
establishing association relation between the candidate benchmark interface message and correspondingly candidate interface identity.
obtaining the target benchmark interface message according to the association relation and the current interface identity.
Date Recue/Date Received 2023-12-18 traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and determining the differential node and forming the differential node set, wherein the differential node is node with different actual node name from the benchmark node name.
removing the differential node with empty node value from the differential node set;
obtaining a new differential node set; and wherein the differential node in the new differential node set is inconsistent, determining the interface message test result as failure test result of interface message.
wherein the differential node in the new differential node set is consistent, determining target node set according to the actual interface message and the target benchmark interface message; and wherein target nodes in the target node set are consistent, determining the interface message test result as successful test result of the interface message.
traversing actual node name in the actual interface message;
traversing benchmark node name in the target benchmark interface message; and Date Recue/Date Received 2023-12-18 determining the target node and forming the target node set, wherein the target node is a node with same actual node name as the benchmark node name.
wherein node names corresponding to the target nodes in the target node set are same and the node values corresponding to the target nodes are same, determining of the target nodes in the target node set are consistent.
wherein number of target child nodes corresponding to the target node in the actual interface message is same as the number of the target child nodes corresponding to the target node in benchmark interface message, obtaining target child node names and target child node values corresponding to the target child nodes in the actual interface message and the target benchmark interface message; and wherein the target child node names are same and the target child node values are same, determining of the target nodes in the target node set are consistent.
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Date Recue/Date Received 2023-12-18
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010895798.6 | 2020-08-31 | ||
CN202010895798.6A CN112165406B (en) | 2020-08-31 | 2020-08-31 | Interface message testing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CA3129150A1 CA3129150A1 (en) | 2022-02-28 |
CA3129150C true CA3129150C (en) | 2024-02-27 |
Family
ID=73857306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CA3129150A Active CA3129150C (en) | 2020-08-31 | 2021-08-27 | Interface message test method and device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112165406B (en) |
CA (1) | CA3129150C (en) |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4467147A (en) * | 1982-07-16 | 1984-08-21 | At&T Bell Laboratories | Switching network for interactive access and testing of subscriber loops |
IT1264602B1 (en) * | 1993-06-15 | 1996-10-04 | Sits Soc It Telecom Siemens | TELEPHONE SIGNALING PROCESSOR GENERATED BY TAX MEASUREMENTS FOR DIGITAL MOBILE RADIO SYSTEMS |
CN101335648A (en) * | 2008-07-25 | 2008-12-31 | 中兴通讯股份有限公司 | Automatic converting method for packets of different interfaces and apparatus thereof |
CN103023720B (en) * | 2012-12-04 | 2016-03-09 | 迈普通信技术股份有限公司 | A kind of system and method testing Wide Area Network interface performance |
US20180167303A1 (en) * | 2016-12-09 | 2018-06-14 | Cyara Solutions Pty Ltd | Case-based automated email testing |
CN107453784A (en) * | 2017-07-25 | 2017-12-08 | 南方电网科学研究院有限责任公司 | Communication interface sensitivity test method and system |
CN110399293B (en) * | 2019-06-21 | 2024-05-03 | 平安科技(深圳)有限公司 | System test method, device, computer equipment and storage medium |
CN110399932A (en) * | 2019-07-31 | 2019-11-01 | 中国工商银行股份有限公司 | Soft Clause in Letter of Credit recognition methods and device |
CN110806973A (en) * | 2019-10-11 | 2020-02-18 | 苏宁云计算有限公司 | Automatic generation method and device of interface message |
CN111026645B (en) * | 2019-11-20 | 2023-11-28 | 航天信息股份有限公司 | User interface automatic test method and device, storage medium and electronic equipment |
CN111159049B (en) * | 2019-12-31 | 2023-11-17 | 中国银行股份有限公司 | Automatic interface testing method and system |
CN111177005B (en) * | 2019-12-31 | 2024-04-16 | 中国银行股份有限公司 | Service application testing method, device, server and storage medium |
-
2020
- 2020-08-31 CN CN202010895798.6A patent/CN112165406B/en active Active
-
2021
- 2021-08-27 CA CA3129150A patent/CA3129150C/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112165406A (en) | 2021-01-01 |
CA3129150A1 (en) | 2022-02-28 |
CN112165406B (en) | 2022-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109474578B (en) | Message checking method, device, computer equipment and storage medium | |
CN108304553B (en) | Data migration method and device, computer equipment and storage medium | |
CN110569035A (en) | Code compiling method, device, equipment and storage medium of software development project | |
CN108848142B (en) | Message pushing method and device, computer equipment and storage medium | |
CN110781070B (en) | Big data test verification method and device, computer equipment and storage medium | |
CN113326181A (en) | Fuzzy test method, device and storage medium for stateful network protocol | |
CN106843947B (en) | Method and device for processing code defects | |
US20150186195A1 (en) | Method of analysis application object which computer-executable, server performing the same and storage media storing the same | |
CN109542962B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN112817935A (en) | Data processing method, device and equipment based on field type and storage medium | |
US12089143B2 (en) | Network search method and apparatus, device and storage medium | |
CN108762787B (en) | Software repairing method, device, computer equipment and storage medium | |
CN109086077A (en) | A kind of operation method and device of application program | |
CN111522881B (en) | Service data processing method, device, server and storage medium | |
CA3129150C (en) | Interface message test method and device, computer equipment and storage medium | |
CN112463783A (en) | Index data monitoring method and device, computer equipment and storage medium | |
CN112612706A (en) | Automated testing method, computer device and storage medium | |
CN114546705B (en) | Operation response method, operation response device, electronic apparatus, and storage medium | |
CN110019262B (en) | Data updating method and device | |
CN110704218B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN110334905B (en) | Project fault display method, device, computer equipment and storage medium | |
CN111124814A (en) | SOC memory access monitoring method and device and computer equipment | |
CN116719791A (en) | Information processing method, device, electronic equipment and storage medium | |
CN112860564A (en) | Code detection method, server, user terminal, computer device and storage medium | |
CN111209187B (en) | Service request processing method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |