CN112202636A - Communication test method and system - Google Patents

Communication test method and system Download PDF

Info

Publication number
CN112202636A
CN112202636A CN202011051967.4A CN202011051967A CN112202636A CN 112202636 A CN112202636 A CN 112202636A CN 202011051967 A CN202011051967 A CN 202011051967A CN 112202636 A CN112202636 A CN 112202636A
Authority
CN
China
Prior art keywords
message
logic
effective
target system
test result
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.)
Granted
Application number
CN202011051967.4A
Other languages
Chinese (zh)
Other versions
CN112202636B (en
Inventor
刘海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202011051967.4A priority Critical patent/CN112202636B/en
Publication of CN112202636A publication Critical patent/CN112202636A/en
Application granted granted Critical
Publication of CN112202636B publication Critical patent/CN112202636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Mining & Analysis (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a communication test method and a communication test system. The communication test method comprises the following steps: acquiring a structured message and an environmental parameter; generating an effective message according to the structured message; sending the effective message to a message queue of a target system corresponding to the environmental parameter so that the target system tests the effective message to generate a test result; test results from the target system are received. The invention can simulate message queue information interaction to carry out communication test, and is free from dependence among systems, thereby improving development efficiency.

Description

Communication test method and system
Technical Field
The present invention relates to the field of communication testing technologies, and in particular, to a communication testing method and system.
Background
During application development, if interaction between different systems is involved, assembly tests must be performed to verify the correctness of the functions between the systems. For the information interaction through MQ (Message Queue), the assembly test must be established on the basis of the development completion of each interactive system. However, the reality is that the development progress of each system is not consistent, and the final assembly test must wait for the system with the slowest development progress, so-called "barrel effect". Therefore, the overall project progress is limited by the system with the most serious development progress delay, and the problem of low efficiency exists.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a communication test method and a communication test system, which are used for simulating message queue information interaction to carry out communication test, are free from dependence among systems and improve development efficiency.
In order to achieve the above object, an embodiment of the present invention provides a communication test method, including:
acquiring a structured message and an environmental parameter;
generating an effective message according to the structured message;
sending the effective message to a message queue of a target system corresponding to the environmental parameter so that the target system tests the effective message to generate a test result;
test results from the target system are received.
An embodiment of the present invention further provides a communication test system, including:
the acquisition unit is used for acquiring the structured message and the environmental parameters;
the effective message unit is used for generating an effective message according to the structured message;
the sending unit is used for sending the effective message to a message queue of the target system corresponding to the environmental parameter so that the target system tests the effective message and generates a test result;
and the receiving unit is used for receiving the test result from the target system.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program stored on the memory and running on the processor, wherein the steps of the communication test method are realized when the processor executes the computer program.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the communication testing method.
The communication test method and the system of the embodiment of the invention firstly generate the effective message according to the structured message, then send the effective message to the message queue of the target system corresponding to the environmental parameter so that the target system generates the test result, and finally receive the test result from the target system, thereby being capable of simulating the message queue information interaction to carry out the communication test, separating the dependence between the systems and improving the development efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a flow chart of a communication testing method in an embodiment of the invention;
FIG. 2 is a flowchart of S102 in an embodiment of the present invention;
FIG. 3 is a flow chart of a communication test method in another embodiment of the present invention;
FIG. 4 is a flow chart of a communication test method in accordance with a further embodiment of the present invention;
FIG. 5 is a block diagram of a communication test system according to an embodiment of the present invention;
FIG. 6 is a block diagram of a communication test system according to another embodiment of the present invention;
fig. 7 is a block diagram of a computer device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
In view of the problem that the overall progress is limited by a system with the most serious development progress delay in the prior art and the efficiency is low, the embodiment of the invention provides a communication test method for simulating message queue information interaction to perform communication test, separating from the dependence among systems and improving the development efficiency. The present invention will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a communication test method in an embodiment of the present invention. As shown in fig. 1, the communication test method includes:
s101: and acquiring the structured message and the environmental parameters.
The structured message is written by the user according to needs, and the environment parameters are configured by the user according to needs.
The environment parameters comprise addresses, ports, MQ queue names and the like, and a user can specify different test environments by modifying the environment parameters of the configuration file. The format of the structured message conforms to the template provided by the message source system.
S102: and generating an effective message according to the structured message.
Fig. 2 is a flowchart of S102 in the embodiment of the present invention. As shown in fig. 2, S102 includes:
s201: and determining a message source system according to the structured message.
S202: and calling a group report module corresponding to the message source system, and organizing the structured message into an effective message.
The effective message is in a format which can be identified by a message queue.
S103: and sending the effective message to a message queue of the target system corresponding to the environmental parameter so that the target system tests the effective message to generate a test result.
Wherein, the message queue is a data structure of 'first-in first-out' in the basic data structure. The method is generally used for solving the problems of application decoupling, asynchronous messages, flow peak clipping and the like, and realizes a high-performance, high-availability, scalable and final consistency framework. The components of the IBM host based message queue are specified in the present invention.
In specific implementation, a corresponding target system may be selected according to the environmental parameters, and after receiving a message sending instruction sent by a user, the target system is connected to send an effective message to a message queue of the target system corresponding to the environmental parameters, so as to trigger application logic of the target system and generate a test result.
S104: test results from the target system are received.
In specific implementation, after the test result is received, the test result can be returned for verification by the user.
The execution subject of the communication test method shown in fig. 1 may be a computer. As can be seen from the flow shown in fig. 1, the communication test method according to the embodiment of the present invention first generates an effective packet according to the structured packet, then sends the effective packet to the message queue of the target system corresponding to the environmental parameter, so that the target system generates a test result, and finally receives the test result from the target system, which can simulate message queue information interaction to perform communication test, and thus, the inter-system dependency is removed, and the development efficiency is improved.
TABLE 1
Figure BDA0002709843620000031
Figure BDA0002709843620000041
Table 1 is a relationship table between the source system and the report module in the embodiment of the present invention. As shown in table 1, before executing S202, the method further includes: and judging the current packet logic state of the message source system. When the current multicast logic state is not upgraded (corresponding to the implementation logic (general) in table 1, the multicast logic of the multicast module is consistent with the multicast logic of the packet source system), S202 is executed to organize the structured packet into an effective packet supported by the associated system.
And judging whether the current packet logic state is not upgraded or not according to the version number of the packet logic. When the current packet logic state is not upgraded, the version number of the packet logic of the source system is synchronous with the version number of the packet logic of the packet module, and the current packet logic of the message source system is not upgraded at this time.
Fig. 3 is a flow chart of a communication test method in another embodiment of the invention. As shown in table 1 and fig. 3, after S201 is executed, the method further includes:
s301: and judging the current packet logic state of the message source system.
S302: when the current multicast logic state of the message source system is upgrading, the upgrading logic of the message source system is obtained, and the multicast module is logically upgraded according to the upgrading logic.
S303: and calling the logic-upgraded group report module to organize the structured message into a first effective message.
S304: and sending the first effective message to a message queue of the target system corresponding to the environmental parameter so that the target system tests the first effective message to generate a first test result.
In specific implementation, after receiving a message sending instruction sent by a user, the target system may be connected to send the first effective message to a message queue of the target system corresponding to the environmental parameter.
Fig. 4 is a flow chart of a communication test method in a further embodiment of the invention. As shown in table 1 and fig. 4, the communication test method further includes:
s401: and when the current multicast logic state of the message source system is the upgrade completion, logically updating the multicast module according to the current multicast logic state of the message source system.
And judging whether the current packet logic state is upgraded or not according to the version number of the packet logic. When the upgrade is completed, the version number of the group report logic of the source system is greater than the version number of the group report logic of the group report module, which indicates that the upgrade of the current group report logic of the message source system is completed, and the current group report logic of the message source system needs to be copied to the group report module to logically update the group report module.
S402: and calling the logically updated group report module to organize the structured message into a second effective message.
S403: and sending the second effective message to a message queue of the target system corresponding to the environmental parameter so that the target system tests the second effective message to generate a second test result.
During specific implementation, the second effective message can be automatically sent to a message queue of the target system corresponding to the environmental parameter without user intervention.
In one embodiment, the method further comprises: receiving a first test result and a second test result from a target system; and generating a test report according to the comparison result of the first test result and the second test result.
The flow shown in fig. 3 corresponds to the implementation logic (special) in table 1, that is, the source system is related to the upgrade of the reporting logic in the current batch, so that the test result needs to be verified again. The first test result is a first verification result, and the second test result is a second verification result. And issuing a test report by comparing the difference of the first test result and the second test result and informing a user of the number of the test report for the user to inquire.
The specific process of the embodiment of the invention is as follows:
1. and acquiring a structured message and environmental parameters, and determining a message source system according to the structured message.
2. And judging the current packet logic state of the message source system.
3. And when the current packet logic state is not upgraded, calling a packet module corresponding to the message source system, organizing the structured message into an effective message, sending the effective message to a message queue of a target system corresponding to the environmental parameter, and receiving a test result from the target system.
4. And when the current multicast logic state of the message source system is upgrading, logically upgrading the multicast module according to the upgrading logic of the message source system.
5. And calling the logic-upgraded group report module to organize the structured message into a first effective message.
6. And sending the first effective message to a message queue of the target system corresponding to the environmental parameter, and receiving a first test result from the target system.
7. And when the current multicast logic state of the message source system is the upgrade completion, logically updating the multicast module according to the current multicast logic state of the message source system.
8. And calling the logically updated group report module to organize the structured message into a second effective message.
9. And sending the second effective message to a message queue of the target system corresponding to the environmental parameter, and receiving a second test result from the target system.
10. And generating a test report according to the comparison result of the first test result and the second test result.
To sum up, the communication test method of the embodiment of the invention generates the effective message according to the structured message, then sends the effective message to the message queue of the target system corresponding to the environmental parameter, so that the target system generates the test result, and finally receives the test result from the target system, thereby simulating the message queue information interaction to carry out the communication test, separating the dependency between the systems and improving the development efficiency.
Based on the same inventive concept, the embodiment of the invention also provides a communication test system, and as the principle of solving the problems of the system is similar to the communication test method, the implementation of the system can refer to the implementation of the method, and repeated parts are not described again.
Fig. 5 is a block diagram of a communication test system according to an embodiment of the present invention. Fig. 6 is a block diagram of a communication test system according to another embodiment of the present invention. As shown in fig. 5 to 6, the communication test system includes:
the acquisition unit is used for acquiring the structured message and the environmental parameters;
the effective message unit is used for generating an effective message according to the structured message;
the sending unit is used for sending the effective message to a message queue of the target system corresponding to the environmental parameter so that the target system tests the effective message and generates a test result;
and the receiving unit is used for receiving the test result from the target system.
In one embodiment, the valid packet unit is specifically configured to:
determining a message source system according to the structured message;
and calling a group report module corresponding to the message source system, and organizing the structured message into an effective message.
In one embodiment, the method further comprises the following steps:
the judging unit is used for judging the current packet logic state of the message source system;
the logic upgrading unit is used for carrying out logic upgrading on the report organizing module according to the upgrading logic of the message source system when the current report organizing logic state of the message source system is upgrading;
the active message unit is further configured to: calling a group report module after logic upgrading to organize the structured message into a first effective message;
the sending unit is further configured to: and sending the first effective message to a message queue of the target system corresponding to the environmental parameter so that the target system tests the first effective message to generate a first test result.
In one embodiment, the method further comprises the following steps:
a logic updating unit, configured to, when the current multicast logic state of the packet source system is update completion, perform logic updating on the multicast module according to the current multicast logic state of the packet source system;
the active message unit is further configured to: calling a logic-updated group report module to organize the structured message into a second effective message;
the sending unit is further configured to: and sending the second effective message to a message queue of the target system corresponding to the environmental parameter so that the target system tests the second effective message to generate a second test result.
In one embodiment, the receiving unit is further configured to: receiving a first test result and a second test result from a target system;
the communication test system further comprises:
and the test report unit is used for generating a test report according to the comparison result of the first test result and the second test result.
As shown in fig. 5-6, in practical applications, the communication test system includes a message module, an environment configuration module, and a report module.
The message module comprises an acquisition unit, an effective message unit, a judgment unit, a logic upgrading unit and a logic updating unit, and is used for receiving the structured message input by the user as required and customizing the structured message into an effective message supported by the associated system. The input is a structured message input by a user as required, and the output is an effective message.
The environment configuration module comprises an acquisition unit, and is used for receiving the structured environment parameters required by the user and customizing the test environment configuration according to the parameters.
The transmitting module comprises a transmitting unit and a receiving unit and is used for acquiring the environmental parameters from the environmental configuration module so as to be connected to the target system; and obtaining the effective message from the message module, and sending the effective message to a message queue of the target system, so as to trigger the application logic of the target system to generate a test result.
To sum up, the communication test system of the embodiment of the invention generates the effective message according to the structured message, then sends the effective message to the message queue of the target system corresponding to the environmental parameter, so that the target system generates the test result, and finally receives the test result from the target system, thereby simulating the message queue information interaction to carry out the communication test, separating the dependency between the systems and improving the development efficiency.
The embodiment of the invention also provides a specific implementation mode of the computer equipment, which can realize all the steps in the communication test method in the embodiment. Fig. 7 is a block diagram of a computer device in an embodiment of the present invention, and referring to fig. 7, the computer device specifically includes the following:
a processor (processor)701 and a memory (memory) 702.
The processor 701 is configured to call the computer program in the memory 702, and the processor implements all the steps in the communication test method in the above embodiments when executing the computer program, for example, the processor implements the following steps when executing the computer program:
acquiring a structured message and an environmental parameter;
generating an effective message according to the structured message;
sending the effective message to a message queue of a target system corresponding to the environmental parameter so that the target system tests the effective message to generate a test result;
test results from the target system are received.
To sum up, the computer device of the embodiment of the present invention generates an effective packet according to the structured packet, then sends the effective packet to the message queue of the target system corresponding to the environmental parameter, so that the target system generates a test result, and finally receives the test result from the target system, which can simulate message queue information interaction to perform a communication test, and thus, the inter-system dependency is removed, and the development efficiency is improved.
An embodiment of the present invention further provides a computer-readable storage medium capable of implementing all the steps in the communication testing method in the foregoing embodiment, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements all the steps in the communication testing method in the foregoing embodiment, for example, when the processor executes the computer program, the processor implements the following steps:
acquiring a structured message and an environmental parameter;
generating an effective message according to the structured message;
sending the effective message to a message queue of a target system corresponding to the environmental parameter so that the target system tests the effective message to generate a test result;
test results from the target system are received.
To sum up, the computer-readable storage medium according to the embodiment of the present invention generates an effective packet according to the structured packet, then sends the effective packet to the message queue of the target system corresponding to the environmental parameter, so that the target system generates a test result, and finally receives the test result from the target system, which can simulate message queue information interaction to perform a communication test, and thus, the inter-system dependency is removed, and the development efficiency is improved.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Those of skill in the art will further appreciate that the various illustrative logical blocks, units, and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate the interchangeability of hardware and software, various illustrative components, elements, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The various illustrative logical blocks, or elements, or devices described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may be located in a user terminal. In the alternative, the processor and the storage medium may reside in different components in a user terminal.
In one or more exemplary designs, the functions described above in connection with the embodiments of the invention may be implemented in hardware, software, firmware, or any combination of the three. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media that facilitate transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, such computer-readable media can include, but is not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store program code in the form of instructions or data structures and which can be read by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Additionally, any connection is properly termed a computer-readable medium, and, thus, is included if the software is transmitted from a website, server, or other remote source via a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wirelessly, e.g., infrared, radio, and microwave. Such discs (disk) and disks (disc) include compact disks, laser disks, optical disks, DVDs, floppy disks and blu-ray disks where disks usually reproduce data magnetically, while disks usually reproduce data optically with lasers. Combinations of the above may also be included in the computer-readable medium.

Claims (12)

1. A communication testing method, comprising:
acquiring a structured message and an environmental parameter;
generating an effective message according to the structured message;
sending the effective message to a message queue of a target system corresponding to the environmental parameter so that the target system tests the effective message to generate a test result;
receiving a test result from the target system.
2. The communication test method of claim 1, wherein generating valid messages from the structured messages comprises:
determining a message source system according to the structured message;
and calling a report group module corresponding to the message source system, and organizing the structured message into an effective message.
3. The communication test method according to claim 2, further comprising:
judging the current packet logic state of the message source system;
when the current report logic state of the message source system is upgrading, acquiring the upgrading logic of the message source system, and carrying out logic upgrading on the report module according to the upgrading logic;
calling a logic-upgraded group report module, and organizing the structured message into a first effective message;
and sending the first effective message to a message queue of a target system corresponding to the environment parameter so that the target system tests the first effective message to generate a first test result.
4. The communication test method of claim 3, further comprising:
when the current report logic state of the message source system is the update completion, carrying out logic update on the report module according to the current report logic of the message source system;
calling a logic-updated group report module to organize the structured message into a second effective message;
and sending the second effective message to a message queue of a target system corresponding to the environment parameter, so that the target system tests the second effective message to generate a second test result.
5. The communication test method of claim 4, further comprising:
receiving the first test result and the second test result from the target system;
and generating a test report according to the comparison result of the first test result and the second test result.
6. A communication test system, comprising:
the acquisition unit is used for acquiring the structured message and the environmental parameters;
the effective message unit is used for generating an effective message according to the structured message;
the sending unit is used for sending the effective message to a message queue of a target system corresponding to the environmental parameter so that the target system tests the effective message and generates a test result;
and the receiving unit is used for receiving the test result from the target system.
7. The communication test system according to claim 6, wherein the valid packet unit is specifically configured to:
determining a message source system according to the structured message;
and calling a report group module corresponding to the message source system, and organizing the structured message into an effective message.
8. The communication test system of claim 7, further comprising:
a judging unit, configured to judge a current packet logic state of the packet source system;
the logic upgrading unit is used for acquiring the upgrading logic of the message source system when the current packet logic state of the message source system is upgrading, and logically upgrading the packet module according to the upgrading logic;
the valid packet unit is further configured to: calling a logic-upgraded group report module, and organizing the structured message into a first effective message;
the sending unit is further configured to: and sending the first effective message to a message queue of a target system corresponding to the environment parameter so that the target system tests the first effective message to generate a first test result.
9. The communication test system of claim 8, further comprising:
a logic updating unit, configured to, when the current packet logic state of the packet source system is that upgrading is completed, perform logic updating on the packet module according to the current packet logic of the packet source system;
the valid packet unit is further configured to: calling a logic-updated group report module to organize the structured message into a second effective message;
the sending unit is further configured to: and sending the second effective message to a message queue of a target system corresponding to the environment parameter, so that the target system tests the second effective message to generate a second test result.
10. The communication test system of claim 9, wherein:
the receiving unit is further configured to: receiving the first test result and the second test result from the target system;
the communication test system further comprises:
and the test report unit is used for generating a test report according to the comparison result of the first test result and the second test result.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the steps of the communication test method according to any of claims 1 to 5 are implemented when the computer program is executed by the processor.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the communication testing method according to any one of claims 1 to 5.
CN202011051967.4A 2020-09-29 2020-09-29 Communication test method and system Active CN112202636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011051967.4A CN112202636B (en) 2020-09-29 2020-09-29 Communication test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011051967.4A CN112202636B (en) 2020-09-29 2020-09-29 Communication test method and system

Publications (2)

Publication Number Publication Date
CN112202636A true CN112202636A (en) 2021-01-08
CN112202636B CN112202636B (en) 2022-06-17

Family

ID=74008091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011051967.4A Active CN112202636B (en) 2020-09-29 2020-09-29 Communication test method and system

Country Status (1)

Country Link
CN (1) CN112202636B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825869A (en) * 2012-11-19 2014-05-28 中兴通讯股份有限公司 Compression and decompression method for Ethernet message header, and compression and decompression device thereof
CN107239392A (en) * 2016-03-29 2017-10-10 腾讯科技(深圳)有限公司 A kind of method of testing, device and terminal
CN109150904A (en) * 2018-09-25 2019-01-04 深圳市佰仟金融服务有限公司 Interface service call method and terminal device
CN109710522A (en) * 2018-12-17 2019-05-03 平安普惠企业管理有限公司 Code test method, device, computer equipment and storage medium
CN110618881A (en) * 2019-09-19 2019-12-27 中国银行股份有限公司 Method and system for simulating message queue
US20200021513A1 (en) * 2018-07-13 2020-01-16 Nokia Technologies Oy Method and apparatus for increasing reliability of packet delivery by dynamic packet cloning and route selection
CN110881009A (en) * 2018-09-06 2020-03-13 迈普通信技术股份有限公司 Method, device, communication equipment and storage medium for receiving test message
CN111615072A (en) * 2020-06-04 2020-09-01 中国人民解放军95871部队 Beidou technology data transmission method, meteorological data transmission method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825869A (en) * 2012-11-19 2014-05-28 中兴通讯股份有限公司 Compression and decompression method for Ethernet message header, and compression and decompression device thereof
CN107239392A (en) * 2016-03-29 2017-10-10 腾讯科技(深圳)有限公司 A kind of method of testing, device and terminal
US20200021513A1 (en) * 2018-07-13 2020-01-16 Nokia Technologies Oy Method and apparatus for increasing reliability of packet delivery by dynamic packet cloning and route selection
CN110881009A (en) * 2018-09-06 2020-03-13 迈普通信技术股份有限公司 Method, device, communication equipment and storage medium for receiving test message
CN109150904A (en) * 2018-09-25 2019-01-04 深圳市佰仟金融服务有限公司 Interface service call method and terminal device
CN109710522A (en) * 2018-12-17 2019-05-03 平安普惠企业管理有限公司 Code test method, device, computer equipment and storage medium
CN110618881A (en) * 2019-09-19 2019-12-27 中国银行股份有限公司 Method and system for simulating message queue
CN111615072A (en) * 2020-06-04 2020-09-01 中国人民解放军95871部队 Beidou technology data transmission method, meteorological data transmission method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王晋等: "基于嗅探技术的智能变电站网络监测与分析系统的研究与设计", 《湖北电力》 *

Also Published As

Publication number Publication date
CN112202636B (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN109471653B (en) Application program updating method, electronic device, server and storage medium
CN108897691B (en) Data processing method, device, server and medium based on interface simulation service
CN108170612B (en) Automatic testing method and device and server
CN108984389B (en) Application program testing method and terminal equipment
CN110597595A (en) Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium
CN110989926B (en) Fault magnetic disc slot positioning method and device and electronic equipment
CN110674047B (en) Software testing method and device and electronic equipment
CN112636992B (en) Dynamic routing method, device, equipment and storage medium
CN108111364B (en) Service system testing method and device
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
CN111273870B (en) Method, equipment and storage medium for iterative migration of mass data among cloud storage systems
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN114189553A (en) Flow playback method, system and computing equipment
CN110569157B (en) Storage testing method, device, server and storage medium
CN116450184B (en) System upgrading method and device, electronic equipment and storage medium
CN112202636B (en) Communication test method and system
CN110134423B (en) Firmware updating method and device and computer readable storage medium
CN115048255A (en) Automatic test method, device, host and storage medium
CN109634636B (en) Application processing method, device, equipment and medium
CN112527276A (en) Data updating method and device in visual programming tool and terminal equipment
CN112948195A (en) Interface testing method and device, electronic equipment and storage medium
CN113283891A (en) Information processing method and device and electronic equipment
CN108616387B (en) Configuration method and device of virtual terminal based on AFDX (avionics full Duplex switched Ethernet) bus

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
GR01 Patent grant
GR01 Patent grant