CN115567624A - Message processing method and device, electronic equipment and medium - Google Patents

Message processing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN115567624A
CN115567624A CN202211376162.6A CN202211376162A CN115567624A CN 115567624 A CN115567624 A CN 115567624A CN 202211376162 A CN202211376162 A CN 202211376162A CN 115567624 A CN115567624 A CN 115567624A
Authority
CN
China
Prior art keywords
message
identifier
processed
parameter
variation parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211376162.6A
Other languages
Chinese (zh)
Inventor
于夕涵
王欣
李佩刚
章倩
常立志
周永恒
周丹
曹雅丽
赵睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211376162.6A priority Critical patent/CN115567624A/en
Publication of CN115567624A publication Critical patent/CN115567624A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a message processing method, a message processing device, electronic equipment and a medium, wherein the method comprises the following steps: determining a message body and a variation parameter in a message to be processed; acquiring a first identifier of the message main body and a second identifier of the change parameter; and splicing the first identification and the second identification to obtain a target message. By using the method, the target message is obtained by splicing the first identifier and the second identifier, the problem of the current message jamming can be solved, and the message processing efficiency is improved.

Description

Message processing method and device, electronic equipment and medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a packet, an electronic device, and a medium.
Background
The message is a data unit exchanged and transmitted in the network, and contains data information to be sent.
In the existing message processing scheme, when a message string with a long length (such as more than 10 ten thousand) is edited, an obvious pause phenomenon occurs, and the message string with the long length of more than one million cannot be used at all. Meanwhile, for testers, it is relatively difficult to debug the overlong messages, and the efficiency is low.
Disclosure of Invention
The invention provides a message processing method, a message processing device, electronic equipment and a message processing medium, which are used for solving the problem of the blockage of the existing message and improving the message processing efficiency.
According to an aspect of the present invention, a method for processing a packet is provided, including:
determining a message body and a variation parameter in a message to be processed;
acquiring a first identifier of the message main body and a second identifier of the change parameter;
and splicing the first identifier and the second identifier to obtain a target message.
According to another aspect of the present invention, there is provided a message processing apparatus, including:
the determining module is used for determining a message body and a variation parameter in the message to be processed;
an obtaining module, configured to obtain a first identifier of the packet body and a second identifier of the change parameter;
and the splicing module is used for splicing the first identifier and the second identifier to obtain a target message.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the message processing method according to any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement a message processing method according to any one of the embodiments of the present invention when the computer instructions are executed.
The embodiment of the invention provides a message processing method, a message processing device, electronic equipment and a medium, wherein the method comprises the following steps: determining a message body and a variation parameter in a message to be processed; acquiring a first identifier of the message main body and a second identifier of the change parameter; and splicing the first identifier and the second identifier to obtain a target message. By the technical scheme, the target message is obtained by splicing the first identifier and the second identifier, the problem of blockage of the existing message can be solved, and the message processing efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be 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 to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a message processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a message processing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a testing method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a message processing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, 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 obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a message processing method according to an embodiment of the present invention, where the method is applicable to a message processing situation, and the method may be executed by a message processing apparatus, where the message processing apparatus may be implemented in a form of hardware and/or software, and the message processing apparatus may be configured in an electronic device.
It can be understood that the existing message sending tools include a meter and Postman, and the meter can generate an obvious pause phenomenon when editing message strings with a length of 10 million or more, and the message sending tools cannot be used when the message sending tools have a length of more than million. For a complex transaction scenario, for example, a packet (packet) contains a plurality of packets, so that when an ultra-long message with more than ten thousand characters is formed, the existing interface tool cannot meet the test condition, and meanwhile, the error elimination of the ultra-long message for testers is relatively difficult, and the efficiency is low.
Based on this, the embodiment of the present invention provides a message processing method, so as to solve the problem that the message editing is limited by the performance of the tool itself. As shown in fig. 1, the method includes:
s110, determining a message body and a variation parameter in the message to be processed.
In this embodiment, the message to be processed may refer to a message that needs to be processed, where the message to be processed may include a message body and a variation parameter, the message body may be regarded as an invariant portion in the message to be processed, and the variation parameter may be regarded as a parameter that needs to be circulated in the message to be processed, for example, the variation parameter may be a time parameter and/or a serial number.
In this step, the message body and the variation parameter in the message to be processed may be determined first, so as to determine the subsequent target message. The method for determining the message body and the variation parameter is not limited, and if the determination is performed according to the specific content in the message to be processed, the determination is not further performed here.
S120, acquiring the first identification of the message body and the second identification of the change parameter.
In this step, the first identifier may be used to identify the message main body, and the second identifier may be used to identify the variation parameter, for example, when the length of the message main body or the variation parameter is long, the first identifier may be used to represent the message main body, or the second identifier may be used to represent the variation parameter, so as to perform concatenation and debugging of the message.
In an embodiment, the step of obtaining the first identifier of the message body and the second identifier of the change parameter is not limited, and the obtaining may be performed according to an actual situation.
S130, splicing the first identification and the second identification to obtain a target message.
The target message can be understood as a message obtained by processing a message to be processed.
Specifically, after the first identifier of the message main body and the second identifier of the variation parameter are obtained, the first identifier and the second identifier may be spliced to obtain the target message, where a process of obtaining the target message by specifically splicing is not limited, and different target messages may correspond to different processes.
The message processing method provided by the embodiment of the invention determines a message main body and a variation parameter in a message to be processed; acquiring a first identifier of the message main body and a second identifier of the change parameter; and splicing the first identification and the second identification to obtain a target message. By using the method, the target message is obtained by splicing the first identifier and the second identifier, the problem of the current message jamming can be solved, and the message processing efficiency is improved.
In an embodiment, the determining a packet body and a variation parameter in a packet to be processed includes:
determining a variation parameter in the message to be processed;
and segmenting the message to be processed according to the change parameters to obtain a message main body in the message to be processed.
In this step, the variation parameter in the message to be processed may be determined first, and then the message to be processed may be segmented according to the determined variation parameter, so as to obtain the message body in the message to be processed. For example, after the message to be processed is obtained, a parameter (i.e., a variation parameter) of a cyclic variation in the message to be processed may be determined according to the content of the message to be processed, and then a part between the two variation parameters is used as a message body of the message to be processed, so that the message body in the message to be processed is obtained by dividing the message to be processed.
In an embodiment, after the splicing the first identifier and the second identifier to obtain the target packet, the method further includes:
and generating a test message according to the target message, and sending the test message to a server to be tested.
The test message can be a message for performing a pressure test on the server to be tested so as to evaluate the performance of the server to be tested; the server to be tested can be understood as the server to be tested.
After the target message is obtained, it is considered that a corresponding test message may be generated according to the target message, and the test message is sent to the server to be tested, so as to perform a pressure test on the server to be tested. The specific means for generating the test message is not limited, for example, the message body corresponding to the first identifier may be directly substituted for the first identifier in the target message, and the variation parameter corresponding to the second identifier may be substituted for the second identifier in the target message, so as to generate the corresponding test message.
Example two
Fig. 2 is a flowchart of a message processing method according to a second embodiment of the present invention, and the second embodiment is optimized based on the foregoing embodiments. In this embodiment, the following situation after determining the message body and the variation parameter in the message to be processed is further embodied as: correspondingly storing the message main body and the first identifier of the message main body to a first document according to a first arrangement sequence, and correspondingly storing the variation parameter and the second identifier of the variation parameter to a second document according to a second arrangement sequence, wherein the first arrangement sequence is the arrangement sequence of the message main body in the message to be processed, and the second arrangement sequence is the arrangement sequence of the variation parameter in the message to be processed.
Please refer to the first embodiment for a detailed description of the present embodiment.
As shown in fig. 2, the method includes:
s210, determining a message body and a variation parameter in the message to be processed.
S220, correspondingly storing the message body and the first identifier of the message body to a first document according to a first arrangement sequence, and correspondingly storing the change parameter and the second identifier of the change parameter to a second document according to a second arrangement sequence.
The first arrangement order is an arrangement order of the message main bodies in the messages to be processed, and the second arrangement order is an arrangement order of the variation parameters in the messages to be processed.
The first document may be considered as a document storing a message body, the type of the first document is not limited, and the first document may be determined according to specific content of the message body, for example, the first document may be a txt document, an excel document, or the like; the second document is used to store the variation parameters in the message to be processed, and the type of the second document may be the same as or different from that of the first document, which is not limited in this embodiment.
Specifically, after determining the message body and the variation parameter in the message to be processed, the message body and the first identifier of the message body may be correspondingly stored in the first document according to the first arrangement order, and the variation parameter and the second identifier of the variation parameter may be correspondingly stored in the second document according to the second arrangement order. The specific storage manner is not limited, for example, each change parameter and the second identifier corresponding to the change parameter may be directly stored in the second document, or the second identifier corresponding to the change parameter may be stored in the second document in a unified manner, for example, when the change parameter is time, the second identifier corresponding to the change parameter may be generated in a self-increment manner and stored in the second document.
S230, acquiring a first identifier of the message body and a second identifier of the change parameter.
S240, splicing the first identification and the second identification to obtain a target message.
In the message processing method provided by the second embodiment of the present invention, the message body and the first identifier of the message body are correspondingly stored in the first document according to the first arrangement order, and the change parameter and the second identifier of the change parameter are correspondingly stored in the second document according to the second arrangement order, so that convenience is provided for subsequently acquiring and splicing the first identifier and the second identifier, and the accuracy of the target message is further improved.
In an embodiment, the obtaining the first identifier of the message body and the second identifier of the change parameter includes:
and acquiring the first identifier from the first document according to the first arrangement order, and acquiring the second identifier from the second document according to the second arrangement order.
It can be considered that, after the message body and the first identifier of the message body are correspondingly stored in the first document according to the first arrangement order, and the variation parameter and the second identifier of the variation parameter are correspondingly stored in the second document according to the second arrangement order, in the process of obtaining the first identifier of the message body and the second identifier of the variation parameter, the first identifier may be obtained from the first document according to the first arrangement order, and the second identifier may be obtained from the second document according to the second arrangement order, so that the first identifier and the second identifier may be obtained in order, and the target message may be better obtained by splicing.
In an embodiment, the splicing the first identifier and the second identifier to obtain the target packet includes:
and splicing the first identifier and the second identifier according to a third arrangement order to obtain a target message, wherein the third arrangement order is the arrangement order of the message main body and the variation parameter in the message to be processed.
The third arrangement order may be considered as an arrangement order of the message body and the variation parameter in the message to be processed.
After the first identifier and the second identifier are obtained, the first identifier and the second identifier may be spliced according to a third arrangement order to obtain a final target packet.
In an embodiment, before the correspondingly saving the variation parameter and the second identifier of the variation parameter to the second document according to the second arrangement order, the method further includes:
and generating second identifiers of the variable parameters according to a preset identifier generation mode, wherein the preset identifier generation mode comprises self-increment and/or random number acquisition.
In this step, the preset identifier generation manner may be a preset generation manner, and is used to generate the second identifier. For example, the preset identifier generation manner may include self-increment and/or random number fetching. Before the change parameters and the second identifiers of the change parameters are correspondingly stored in the second document according to the second arrangement sequence, the second identifiers of the change parameters can be generated according to a preset identifier generation mode so as to carry out subsequent operation.
In one embodiment, the generating a test packet according to the target packet includes:
replacing a corresponding first identifier in a target message by using a message main body corresponding to the first identifier in the first document; and determining a parameter value corresponding to the second identifier when the test message is generated according to the second document, and replacing the corresponding second identifier in the target message with the parameter value to generate the test message.
In an embodiment, a message body corresponding to a first identifier in a first document may replace a corresponding first identifier in a target message, and meanwhile, a parameter value corresponding to a second identifier when a test message is generated this time may be determined according to a second document, and then the determined parameter value is replaced with the corresponding second identifier in the target message, so as to generate the test message.
The following describes an exemplary message processing method provided in the embodiment of the present invention:
fig. 3 is a schematic flowchart of a testing method according to a second embodiment of the present invention, and as shown in fig. 3, a message may be processed first, that is, a message body is fragmented, a variable parameter document is stored, and the document is assembled and combined. Specifically, a long message (i.e., a message to be processed) may be cut into a plurality of modules, and a part between two variable parameters (i.e., variation parameters) in the message is used as a fragment of a message body and written into a "message body" table (i.e., a first document); the parameters which need to be replaced when being sent each time are put into a 'parameter text' table (namely a second document), wherein the parameters can be saved by adopting a method of self-increment and random number acquisition (namely, second identifications of all the variable parameters are generated according to a preset identification generation mode, and the variable parameters and the second identifications of the variable parameters are correspondingly saved to the second document according to a second arrangement sequence). Setting an arrangement sequence (namely a first arrangement sequence) of message bodies, taking a plurality of sections of parameterized text files according to the sequence (namely obtaining the first identifier from the first document according to the first arrangement sequence, and obtaining the second identifier from the second document according to the second arrangement sequence), and arranging in a preset arrangement mode (namely splicing the first identifier and the second identifier according to a third arrangement sequence to obtain a target message).
After the messages are assembled in the preprocessing stage, the messages are operated on a JVM virtual machine in a multithreading mode to support massive concurrency, a plurality of threads are driven to send the messages to initiate load to a tested server (namely, the test messages are generated according to the target messages and sent to the tested server), and result analysis is carried out.
Therefore, the embodiment of the invention solves the problem of sending a plurality of long messages in a convenient and light operation mode, and is mainly applied to messages with complex content formats such as XML, JSON and the like. Meanwhile, when the message is sent, the message content can be replaced, parameters can be changed or the message content can be rearranged and combined at any time, so that the time for editing the long message is shortened, and the method has the advantages of easy extensibility and high reusability.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a message processing apparatus according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes:
the determining module 310 is configured to determine a message body and a variation parameter in the message to be processed.
The obtaining module 320 is configured to obtain the first identifier of the message body and the second identifier of the change parameter.
And the splicing module 330 is configured to splice the first identifier and the second identifier to obtain a target packet.
In the message processing apparatus provided in the third embodiment of the present invention, the determining module 310 determines the message body and the variation parameter in the message to be processed; acquiring a first identifier of the message body and a second identifier of the variation parameter through an acquisition module 320; and splicing the first identifier and the second identifier through a splicing module 330 to obtain a target message. By utilizing the device, the target message is obtained by splicing the first identifier and the second identifier, the problem of the current message blocking can be solved, and the message processing efficiency is improved.
Optionally, the determining module 310 includes:
determining a variation parameter in the message to be processed;
and segmenting the message to be processed according to the change parameters to obtain a message main body in the message to be processed.
Optionally, the message processing apparatus provided in this embodiment further includes:
a storage module, configured to, after determining a message main body and a change parameter in a message to be processed, correspondingly store the message main body and a first identifier of the message main body to a first document according to a first arrangement order, and correspondingly store the change parameter and a second identifier of the change parameter to a second document according to a second arrangement order, where the first arrangement order is an arrangement order of the message main body in the message to be processed, and the second arrangement order is an arrangement order of the change parameter in the message to be processed.
Optionally, the obtaining module 320 includes:
and acquiring the first identifier from the first document according to the first arrangement sequence, and acquiring the second identifier from the second document according to the second arrangement sequence.
Optionally, the splicing module 330 includes:
and splicing the first identifier and the second identifier according to a third arrangement sequence to obtain a target message, wherein the third arrangement sequence is the arrangement sequence of the message main body and the variation parameter in the message to be processed.
Optionally, the message processing apparatus provided in this embodiment further includes:
and the generation module is used for generating the second identifier of each variable parameter according to a preset identifier generation mode before correspondingly storing the variable parameters and the second identifiers of the variable parameters to a second document according to a second arrangement sequence, wherein the preset identifier generation mode comprises self-increment and/or random number acquisition.
Optionally, the message processing apparatus provided in this embodiment further includes:
and the sending module is used for generating a test message according to the target message after the first identifier and the second identifier are spliced to obtain the target message, and sending the test message to a server to be tested.
The message processing device provided by the embodiment of the invention can execute the message processing method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method.
Example four
FIG. 4 illustrates a block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 may also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. Processor 11 performs the various methods and processes described above, such as method message processing.
In some embodiments, the method message processing may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When loaded into RAM 13 and executed by processor 11, may perform one or more of the steps of the method message processing described above. Alternatively, in other embodiments, the processor 11 may be configured to perform method message processing by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A message processing method is characterized by comprising the following steps:
determining a message body and a variation parameter in a message to be processed;
acquiring a first identifier of the message main body and a second identifier of the change parameter;
and splicing the first identifier and the second identifier to obtain a target message.
2. The method of claim 1, wherein determining the message body and the variation parameters in the message to be processed comprises:
determining a variation parameter in the message to be processed;
and segmenting the message to be processed according to the change parameters to obtain a message main body in the message to be processed.
3. The method according to claim 1, wherein after determining the message body and the variation parameter in the message to be processed, further comprising:
correspondingly storing the message main body and the first identifier of the message main body to a first document according to a first arrangement sequence, and correspondingly storing the variation parameter and the second identifier of the variation parameter to a second document according to a second arrangement sequence, wherein the first arrangement sequence is the arrangement sequence of the message main body in the message to be processed, and the second arrangement sequence is the arrangement sequence of the variation parameter in the message to be processed.
4. The method according to claim 3, wherein the obtaining the first identifier of the message body and the second identifier of the change parameter includes:
and acquiring the first identifier from the first document according to the first arrangement order, and acquiring the second identifier from the second document according to the second arrangement order.
5. The method according to claim 4, wherein the splicing the first identifier and the second identifier to obtain the target packet comprises:
and splicing the first identifier and the second identifier according to a third arrangement order to obtain a target message, wherein the third arrangement order is the arrangement order of the message main body and the variation parameter in the message to be processed.
6. The method of claim 3, further comprising, before saving the variation parameter and the second identifier of the variation parameter in the second rank order to a second document, respectively:
and generating second identifiers of the variable parameters according to a preset identifier generation mode, wherein the preset identifier generation mode comprises self-increment and/or random number acquisition.
7. The method according to claim 1, wherein after the splicing the first identifier and the second identifier to obtain the target packet, the method further comprises:
and generating a test message according to the target message, and sending the test message to a server to be tested.
8. A message processing apparatus, comprising:
the determining module is used for determining a message body and a variation parameter in a message to be processed;
an obtaining module, configured to obtain a first identifier of the packet body and a second identifier of the change parameter;
and the splicing module is used for splicing the first identifier and the second identifier to obtain a target message.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the message processing method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon computer instructions for causing a processor to execute a message processing method according to any one of claims 1-7.
CN202211376162.6A 2022-11-04 2022-11-04 Message processing method and device, electronic equipment and medium Pending CN115567624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211376162.6A CN115567624A (en) 2022-11-04 2022-11-04 Message processing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211376162.6A CN115567624A (en) 2022-11-04 2022-11-04 Message processing method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115567624A true CN115567624A (en) 2023-01-03

Family

ID=84768157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211376162.6A Pending CN115567624A (en) 2022-11-04 2022-11-04 Message processing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115567624A (en)

Similar Documents

Publication Publication Date Title
CN113778849A (en) Method, apparatus, device and storage medium for testing code
CN115598505A (en) Chip detection method, device, equipment and storage medium
CN117724980A (en) Method and device for testing software framework performance, electronic equipment and storage medium
CN116303013A (en) Source code analysis method, device, electronic equipment and storage medium
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN115934550A (en) Test method, test device, electronic equipment and storage medium
CN115203158A (en) Data comparison method, device, equipment and storage medium
CN115757304A (en) Log storage method, device and system, electronic equipment and storage medium
CN115328736A (en) Probe deployment method, device, equipment and storage medium
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN115269431A (en) Interface testing method and device, electronic equipment and storage medium
CN114741998A (en) Chip verification system, method, electronic equipment and storage medium
CN115017047A (en) Test method, system, equipment and medium based on B/S architecture
CN115567624A (en) Message processing method and device, electronic equipment and medium
CN114611155B (en) Data management node verification method, device, equipment and medium
CN115098405B (en) Software product evaluation method and device, electronic equipment and storage medium
CN118055051B (en) Interface communication rate detection control method, device, equipment and medium
CN115495380A (en) Test case generation method and device, electronic equipment and storage medium
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN118535643A (en) Database synchronization method and device, electronic equipment and storage medium
CN117493203A (en) Method, device, equipment and storage medium for testing server software
CN118012936A (en) Data extraction method, device, equipment and storage medium
CN115455060A (en) Data processing method, device, equipment and medium
CN116303019A (en) Test tracing method, device, equipment and medium
CN117056222A (en) Interface test file generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination