CN112052171B - Test message processing method and device, computer equipment and storage medium - Google Patents
Test message processing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112052171B CN112052171B CN202010916118.4A CN202010916118A CN112052171B CN 112052171 B CN112052171 B CN 112052171B CN 202010916118 A CN202010916118 A CN 202010916118A CN 112052171 B CN112052171 B CN 112052171B
- Authority
- CN
- China
- Prior art keywords
- message
- label
- labels
- data
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 55
- 238000003672 processing method Methods 0.000 title claims description 18
- 238000012545 processing Methods 0.000 claims abstract description 25
- 238000000034 method Methods 0.000 claims abstract description 22
- 230000004044 response Effects 0.000 claims description 13
- 238000004891 communication Methods 0.000 claims description 10
- 238000004458 analytical method Methods 0.000 claims description 9
- 230000011218 segmentation Effects 0.000 claims description 8
- 238000013522 software testing Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 5
- 101100368725 Bacillus subtilis (strain 168) tagF gene Proteins 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012550 audit Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
- G06F40/216—Parsing using statistical methods
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Probability & Statistics with Applications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the field of software testing, and discloses a method and a device for processing a test message, computer equipment and a storage medium, wherein the method comprises the following steps: receiving an input instruction, and inputting a plurality of message labels according to the input instruction; acquiring message combination data matched with the message labels, wherein the message combination data comprise a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position; acquiring the occurrence frequency of message fields at message filling positions; determining a plurality of message field combinations according to the occurrence frequency; and generating message data according to the message field combination. The invention can reduce the test working time of preparing the interface message and improve the efficiency of message interface test.
Description
Technical Field
The present invention relates to the field of software testing, and in particular, to a method and an apparatus for processing a test packet, a computer device, and a storage medium.
Background
With the development of information technology, the informatization degree of the financial industry is higher and higher, and the complexity of the information system of the financial enterprise is higher and higher. The information interaction method comprises the steps that interaction can be carried out among different financial enterprises through relatively uniform information interfaces, and information among different system clusters is interacted among the system clusters in the enterprises through internal special interfaces in a micro-service mode.
With market and policy changes, financial enterprises' information systems need to be maintained and upgraded continuously. During the system upgrading process, the interaction interface between different system clusters is the center of gravity of the test work. However, the interface testing work is usually complicated, and the preparation of the interface message is cumbersome, which takes a lot of testing work time.
Disclosure of Invention
Therefore, it is necessary to provide a method, an apparatus, a computer device, and a storage medium for processing a test packet to reduce the test time for preparing an interface packet and improve the efficiency of packet interface testing.
A test message processing method comprises the following steps:
receiving an input instruction, and inputting a plurality of message labels according to the input instruction;
acquiring message combination data matched with the message labels, wherein the message combination data comprise a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position;
acquiring the occurrence frequency of the message field at the message filling position;
determining a plurality of message field combinations according to the occurrence frequency;
and generating message data according to the message field combination.
A test message processing apparatus, comprising:
the input module is used for receiving an input instruction and inputting a plurality of message labels according to the input instruction;
the combined data acquisition module is used for acquiring message combined data matched with the message labels, wherein the message combined data comprises a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position;
the acquisition frequency module is used for acquiring the frequency of the message fields at the message filling positions;
a field combination determining module for determining a plurality of message field combinations according to the occurrence frequency;
and the message generation module is used for generating message data according to the message field combination.
A computer device comprising a memory, a processor and computer readable instructions stored in the memory and executable on the processor, the processor implementing the test message processing method when executing the computer readable instructions.
A computer readable storage medium storing computer readable instructions, which when executed by a processor implement the above-mentioned test message processing method.
According to the test message processing method, the test message processing device, the computer equipment and the storage medium, the message labels are obtained by receiving the input instruction and inputting the message labels according to the input instruction. And acquiring message combination data matched with the message label, wherein the message combination data comprises a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position so as to obtain a group of data capable of being used for filling the message filling position. And acquiring the occurrence frequency of the message field at the message filling position, wherein the acquired occurrence frequency can be used for evaluating the filling rationality of the message field. And determining a plurality of message field combinations according to the occurrence frequency so as to obtain filling combinations with proper quantity. And generating message data according to the message field combination to automatically generate the message data, thereby reducing the workload of message data input and improving the test efficiency. The invention can reduce the test working time of preparing the interface message and improve the efficiency of message interface test.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention 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 according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of an application environment of a test packet processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a test packet processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a test packet processing method according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating a test packet processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a test packet processing method according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating a test packet processing method according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a test message processing apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a computer device according to an embodiment of the 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 some, not all, embodiments of the present invention. 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.
The method for processing a test packet according to this embodiment may be applied to an application environment as shown in fig. 1, where a client communicates with a server. The client includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server can be implemented by an independent server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a method for processing a test packet is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
and S10, receiving an input instruction, and inputting a plurality of message labels according to the input instruction.
Here, the input instruction may be generated by a worker operating on an input device. Input devices include, but are not limited to, a keyboard, a mouse, and a touch screen. The input instruction is used for inputting a message label. The number of the message labels may be one or more, and in an example, the input message label may be represented as: tag1, tag2, tag3, … ….
In one example, an optional tag list may be preset, and a user may select a number of message tags in the tag list.
S20, obtaining message combination data matched with the message label, wherein the message combination data comprises a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position.
In this embodiment, the packet combination data includes a specified number of packet groups. For example, the message composition data may be expressed as: { Z1、Z2、Z3、……、Zn}. Wherein Z isiThe message group with ordinal number i is shown, n is a designated number, i is a positive integer, and i is more than or equal to 1 and less than or equal to n.
The message fields contained in each message group have an association relationship with the input message label. If three message tags tag1, tag2 and tag3 are input, the 1 st message subgroup includes two message fields, field 1 and field 2, respectively, where the message tags tag1, tag2 and tag3 all have an association relationship with field 1, and the message tags tag1, tag2 and tag3 all have an association relationship with field 2. Here, the association refers to that the message field and the message label coexist in a history message field, for example, a history message field is represented as: XXXX field 1XXXX tag1 XXXX; then field 1 has an association with tag 1. It should be noted that the contents of the message label and the message field may be the same. Such as tag1 ═ credited; field 1 is "trusted audit".
The message data to be generated (the message data in step S50) has a specified number of message stuffing positions. In some cases, the specified number is determined by the type of message data. For example, type 1, the specified number is 3; type 2, the specified number is 4. The message fields at the message fill location constitute the body content of the message data.
S30, obtaining the frequency of occurrence of the message field at the message filling position.
In this embodiment, the frequency of occurrence of the message field at the message filling position refers to that, in all the message fields associated with a certain message label, the message is reportedThe probability that the text segment appears at a certain position where the message is filled. For example, in the first packet stuffing position, the frequency of occurrence of field 1 may be represented as { P }1,P2,P3}. Wherein, P1Is the frequency of occurrence, P, of field 1 relative to the message label tag12Is the frequency of occurrence, P, of field 1 relative to the message label tag23Is the frequency of occurrence of field 1 relative to the message label tag 3. Each message field has its corresponding frequency of occurrence.
And S40, determining a plurality of message field combinations according to the occurrence frequency.
In the message combination data, since there are a plurality of message groups, each of which includes a plurality of message fields, the number of combinations that can be formed is the total product of the number of message fields of each message group. If the number of the message groups is large and the number of the message fields is large, more combinations can be formed. Therefore, it is necessary to screen these combinations by the occurrence frequency, and eliminate unreasonable combinations to obtain a final number of message field combinations with a small number. For example, in one example, the original number of combinations is 2 × 3 × 5, and after the occurrence frequency screening, 3 message field combinations are obtained. Generally, the more message labels that are selected, the fewer the number of message field combinations that are determined.
And S50, generating message data according to the message field combination.
In this embodiment, corresponding message data is generated according to each message field combination. Such as: message field combination 1 → message data 1; packet field combination 2 → packet data 2. Here, if the message data is more than 1, the user may select one or more of them for the interface test according to the actual requirement.
In steps S10-S50, an input instruction is received, and a plurality of message labels are input according to the input instruction to obtain the message labels. And acquiring message combination data matched with the message label, wherein the message combination data comprises a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position so as to obtain a group of data capable of being used for filling the message filling position. And acquiring the occurrence frequency of the message field at the message filling position, wherein the acquired occurrence frequency can be used for evaluating the filling rationality of the message field. And determining a plurality of message field combinations according to the occurrence frequency so as to obtain filling combinations with proper quantity. And generating message data according to the message field combination to automatically generate the message data, thereby reducing the workload of message data input and improving the test efficiency.
Optionally, as shown in fig. 3, step S10, before the receiving the input instruction and inputting a plurality of message labels according to the input instruction, further includes:
s11, receiving a configuration instruction;
s12, configuring the message format of the message data according to the configuration instruction, wherein the message format is used for determining the specified number.
Here, the configuration instruction may be generated based on an input operation of a user at the configuration page. The user can set the message format of the message data on the configuration page. The message format may include a message type. The message data of the same type have the same number of message filling positions, and the number of the message filling positions is the designated number.
After the message format is configured, the value of the designated number is also determined. If the selected message format is a credit approval message, the number of the corresponding filling message positions is 4.
Optionally, as shown in fig. 4, before the step S20, that is, before the obtaining the packet combination data matched with the packet label, the method further includes:
s21, obtaining historical message data, wherein the historical message data comprises a plurality of message language sections;
s22, splitting the message word segment into a plurality of message words according to a preset word segmentation algorithm;
s23, receiving a label setting instruction, and setting one or more message labels according to the label setting instruction, wherein each message label is associated with all message labels in the message speech;
s24, acquiring an appointed associated label which is associated with the appointed message label and belongs to the same message type;
s25, counting the frequency of occurrence of each appointed associated label at the appointed speech segment position;
and S26, determining the frequency of occurrence of the specified associated tag at the specified speech segment position according to the frequency of occurrence.
In this embodiment, the historical message data may refer to case description information in the message log. A message field may refer to one or more sentence descriptions in case description information. In one example, a message fragment is represented as: and the crediting system passes through a normal message of 3 call.
The pre-set word segmentation algorithm may be based on existing word segmentation algorithms, such as dictionary-based algorithms, statistical-based algorithms, rule-based algorithms. In one example, the message segment with the content of "normal message of trusted audit system through 3 call" can be split into the following message words: letter, check, system, pass, 3call, normal, message.
The tag setting instruction is an instruction input by the user. In all message words, only a part of the message can reflect the content of the message, and the part of the message can be used as a message label. And the other part cannot reflect the content of the message and does not belong to the message label. For example, in the message, the letter, system, pass, 3call, normal, the system and the message need to be excluded, and other message words can be used as message labels. After the message tags are set, the association relationship exists among the message tags in the message speech segment.
Here, the term "assigned associated label associated with an assigned packet label and belonging to the same packet type" means that a packet field associated with an assigned packet label and belonging to the same packet type is obtained first, and then packet labels in each packet field are obtained, and these packet labels are the assigned associated labels.
In one example, specifying the associated tag may be expressed as:
{tag11、tag12、tag13、tag14};
{tag21、tag22、tag23、tag24};
{tag31、tag32、tag33、tag34};
……
{tagn1、tagn2、tagn3、tagn4}。
and counting the occurrence frequency of each specified associated tag at the specified speech segment position. For example, the assigned associated tags are respectively: message, 2call, 3call, … …. The frequency of occurrence of the "information" at the first message filling position is 33, the frequency of occurrence of the "2 call" at the first message filling position is 22, and the frequency of occurrence of the "3 call" at the first message filling position is 11. If the value of n is 100, the frequency of occurrence of "information" is 0.33, the frequency of occurrence of "2 call" is 0.22, and the frequency of occurrence of "3 call" is 0.11.
Optionally, as shown in fig. 5, step S10, that is, the receiving an input instruction, and inputting a plurality of message labels according to the input instruction, includes:
s101, receiving an input setting instruction;
s102, selecting a plurality of message labels from a preset label list according to the input setting instruction.
Here, the input setting instruction belongs to one of input instructions, and is also generated by user input. The input setting instruction is input on the message data generation page. A preset tag list is set on the page. The preset label list comprises a plurality of message labels. The user can select one or more message labels from the preset label list according to the current requirement.
Optionally, as shown in fig. 6, the method for processing a test packet further includes:
s61, receiving a communication message through a message interface;
s62, analyzing the communication message according to a preset rule to generate an analysis result;
and S63, generating response data according to the analysis result.
In this embodiment, a message interface may be further configured to receive a communication message. The number of message interfaces may be one or more. The communication message received by the specific interface can be analyzed through a preset rule. In some cases, the preset rule may be a rule for checking whether the communication packet meets the specification. Correspondingly, the analysis result is qualified and unqualified. Different analysis results correspond to different response data.
The response data may be generated based on preset response message rules. In one example, the reply message rule may be expressed as:
a message receiving port: XXX, yyyy/infterface
Response message field:
response field 1: a time stamp;
response field 2: a random number;
response field 3: answering as is;
……
response field t: md5 signature.
Where t is the total number of acknowledgement fields.
At this point, the generated response data may be returned to the sender of the communication message. By setting the automatic answer, a simple baffle tool is formed.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a test packet processing apparatus is provided, where the test packet processing apparatus corresponds to the test packet processing method in the above embodiment one to one. As shown in fig. 7, the test message processing apparatus includes an input module 10, a combined data obtaining module 20, an appearance frequency obtaining module 30, a field combination determining module 40, and a message generating module 50. The functional modules are explained in detail as follows:
the input module 10 is used for receiving an input instruction and inputting a plurality of message labels according to the input instruction;
the acquiring combination data module 20 is configured to acquire message combination data matched with the message tag, where the message combination data includes a specified number of message groups, each of the message groups includes a plurality of message fields, and each of the message groups corresponds to a message filling position;
an obtaining frequency module 30, configured to obtain a frequency of occurrence of the message field at the message filling position;
a field-determining combination module 40, configured to determine a plurality of message field combinations according to the occurrence frequency;
and a message generation module 50, configured to generate message data according to the message field combination.
Optionally, the test packet processing apparatus further includes:
the receiving configuration instruction module is used for receiving a configuration instruction;
and the configuration format module is used for configuring the message format of the message data according to the configuration instruction, wherein the message format is used for determining the specified number.
Optionally, the test packet processing apparatus further includes a matching relationship determining module, where the matching relationship determining module includes:
the history data acquisition unit is used for acquiring history message data which comprises a plurality of message language sections;
the word segmentation unit is used for splitting the message word segments into a plurality of message words according to a preset word segmentation algorithm;
the label setting unit is used for receiving a label setting instruction and setting one or more message labels according to the label setting instruction, wherein each message label is associated with all message labels in the message speech;
the device comprises an obtaining association label unit, a sending unit and a receiving unit, wherein the obtaining association label unit is used for obtaining an appointed association label which is associated with an appointed message label and belongs to the same message type;
the frequency counting unit is used for counting the occurrence frequency of each appointed associated label at the appointed speech section position;
and the frequency of occurrence determining unit is used for determining the frequency of occurrence of the specified associated tag at the specified speech segment position according to the frequency of occurrence.
Optionally, the input module 10 includes:
an input setting unit for receiving an input setting instruction;
and the label selecting unit is used for selecting a plurality of message labels from a preset label list according to the input setting instruction.
Optionally, the test packet processing apparatus further includes:
the message receiving module is used for receiving the communication message through the message interface;
the analysis module is used for analyzing the communication message according to a preset rule to generate an analysis result;
and the response data generating module is used for generating response data according to the analysis result.
For specific limitations of the test packet processing apparatus, reference may be made to the above limitations on the test packet processing method, which is not described herein again. All or part of each module in the test message processing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for the operating system and execution of computer-readable instructions in the non-volatile storage medium. The database of the computer device is used for storing the data related to the test message processing method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer readable instructions, when executed by a processor, implement a method of test message processing.
In one embodiment, a computer device is provided, comprising a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, the processor when executing the computer readable instructions implementing the steps of:
receiving an input instruction, and inputting a plurality of message labels according to the input instruction;
acquiring message combination data matched with the message labels, wherein the message combination data comprise a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position;
acquiring the occurrence frequency of the message field at the message filling position;
determining a plurality of message field combinations according to the occurrence frequency;
and generating message data according to the message field combination.
In one embodiment, one or more computer-readable storage media storing computer-readable instructions are provided, the readable storage media provided by the embodiments including non-volatile readable storage media and volatile readable storage media. The readable storage medium has stored thereon computer readable instructions which, when executed by one or more processors, perform the steps of:
receiving an input instruction, and inputting a plurality of message labels according to the input instruction;
acquiring message combination data matched with the message labels, wherein the message combination data comprise a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position;
acquiring the occurrence frequency of the message field at the message filling position;
determining a plurality of message field combinations according to the occurrence frequency;
and generating message data according to the message field combination.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a non-volatile computer readable storage medium, and when executed, can include processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A method for processing a test message is characterized by comprising the following steps:
receiving an input instruction, and inputting a plurality of message labels according to the input instruction;
acquiring message combination data matched with the message labels, wherein the message combination data comprise a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position;
acquiring the occurrence frequency of the message field at the message filling position;
determining a plurality of message field combinations according to the occurrence frequency;
and generating message data according to the message field combination.
2. The method of test message processing of claim 1, wherein the receiving an input command, prior to inputting a plurality of message labels according to the input command, further comprises:
receiving a configuration instruction;
and configuring the message format of the message data according to the configuration instruction, wherein the message format is used for determining the specified number.
3. The method of test message processing according to claim 1, wherein before the obtaining the message combination data matching the message label, further comprising:
obtaining historical message data, wherein the historical message data comprises a plurality of message language sections;
splitting the message word segment into a plurality of message words according to a preset word segmentation algorithm;
receiving a label setting instruction, and setting one or more message labels according to the label setting instruction, wherein each message label is associated with all message labels in the message speech;
acquiring a specified associated label which is associated with a specified message label and belongs to the same message type;
counting the occurrence frequency of each appointed associated label at the appointed speech section position;
and determining the occurrence frequency of the specified associated tag at the specified speech segment position according to the occurrence frequency.
4. The test message processing method of claim 1, wherein the receiving an input command and inputting a plurality of message labels based on the input command comprises:
receiving an input setting instruction;
and selecting a plurality of message labels from a preset label list according to the input setting instruction.
5. The method of test message processing according to claim 1, further comprising:
receiving a communication message through a message interface;
analyzing the communication message according to a preset rule to generate an analysis result;
and generating response data according to the analysis result.
6. A test packet processing apparatus, comprising:
the input module is used for receiving an input instruction and inputting a plurality of message labels according to the input instruction;
the combined data acquisition module is used for acquiring message combined data matched with the message labels, wherein the message combined data comprises a specified number of message groups, each message group comprises a plurality of message fields, and each message group corresponds to a message filling position;
the acquisition frequency module is used for acquiring the frequency of the message fields at the message filling positions;
a field combination determining module for determining a plurality of message field combinations according to the occurrence frequency;
and the message generation module is used for generating message data according to the message field combination.
7. The test message processing apparatus of claim 6, further comprising:
the receiving configuration instruction module is used for receiving a configuration instruction;
and the configuration format module is used for configuring the message format of the message data according to the configuration instruction, wherein the message format is used for determining the specified number.
8. The test message processing apparatus of claim 6, further comprising a determine match relationship module, the determine match relationship module comprising:
the history data acquisition unit is used for acquiring history message data which comprises a plurality of message language sections;
the word segmentation unit is used for splitting the message word segments into a plurality of message words according to a preset word segmentation algorithm;
the label setting unit is used for receiving a label setting instruction and setting one or more message labels according to the label setting instruction, wherein each message label is associated with all message labels in the message speech;
the device comprises an obtaining association label unit, a sending unit and a receiving unit, wherein the obtaining association label unit is used for obtaining an appointed association label which is associated with an appointed message label and belongs to the same message type;
the frequency counting unit is used for counting the occurrence frequency of each appointed associated label at the appointed speech section position;
and the frequency of occurrence determining unit is used for determining the frequency of occurrence of the specified associated tag at the specified speech segment position according to the frequency of occurrence.
9. A computer device comprising a memory, a processor and computer readable instructions stored in the memory and executable on the processor, wherein the processor when executing the computer readable instructions implements the test message processing method of any of claims 1 to 5.
10. One or more readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the test message processing method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010916118.4A CN112052171B (en) | 2020-09-03 | 2020-09-03 | Test message processing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010916118.4A CN112052171B (en) | 2020-09-03 | 2020-09-03 | Test message processing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112052171A CN112052171A (en) | 2020-12-08 |
CN112052171B true CN112052171B (en) | 2021-05-28 |
Family
ID=73606734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010916118.4A Active CN112052171B (en) | 2020-09-03 | 2020-09-03 | Test message processing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112052171B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113312260B (en) * | 2021-05-28 | 2022-12-02 | 建信金融科技有限责任公司 | Interface test method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103874059A (en) * | 2012-12-10 | 2014-06-18 | 华为终端有限公司 | Method, device and system for message processing |
CN106209830A (en) * | 2016-07-08 | 2016-12-07 | 中国人民解放军国防科学技术大学 | A kind of message building method represented based on XML procotol |
CN107786447A (en) * | 2017-11-09 | 2018-03-09 | 锐捷网络股份有限公司 | A kind of message forwarding method and equipment based on FPGA |
CN109948134A (en) * | 2019-03-21 | 2019-06-28 | 润电能源科学技术有限公司 | A kind of report automatic generation method, system and electronic equipment and storage medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014089583A (en) * | 2012-10-30 | 2014-05-15 | International Business Maschines Corporation | Method, computer/program and computer for estimating location based on basis of social media |
CN105024985B (en) * | 2014-04-30 | 2019-04-02 | 深圳市中兴微电子技术有限公司 | A kind of message processing method and device |
US9166936B1 (en) * | 2014-06-26 | 2015-10-20 | Parlant Technology, Inc. | Message customization |
CN108574632B (en) * | 2017-03-10 | 2020-06-02 | 华为技术有限公司 | Message processing method, device and system |
CN109768970B (en) * | 2018-12-24 | 2021-05-04 | 通号通信信息集团有限公司 | Configurable universal protocol generation method |
CN109871332A (en) * | 2019-03-05 | 2019-06-11 | 南方电网科学研究院有限责任公司 | Generation method, device and the equipment of multifunction electric meter communication protocol test case |
CN110381071B (en) * | 2019-07-24 | 2021-05-28 | 新华三技术有限公司合肥分公司 | Message transmission method and device and sender equipment |
CN110633214B (en) * | 2019-09-19 | 2023-12-08 | 中国银行股份有限公司 | Configuration method and device for internal test message |
CN111327679B (en) * | 2020-01-19 | 2022-06-17 | 苏宁云计算有限公司 | Rule analysis method and device |
-
2020
- 2020-09-03 CN CN202010916118.4A patent/CN112052171B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103874059A (en) * | 2012-12-10 | 2014-06-18 | 华为终端有限公司 | Method, device and system for message processing |
CN106209830A (en) * | 2016-07-08 | 2016-12-07 | 中国人民解放军国防科学技术大学 | A kind of message building method represented based on XML procotol |
CN107786447A (en) * | 2017-11-09 | 2018-03-09 | 锐捷网络股份有限公司 | A kind of message forwarding method and equipment based on FPGA |
CN109948134A (en) * | 2019-03-21 | 2019-06-28 | 润电能源科学技术有限公司 | A kind of report automatic generation method, system and electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
ADS-B Category 021报文解析软件的设计与实现;冯建锋 等;《计算技术与自动化》;20171215;第36卷(第4期);115-118 * |
Also Published As
Publication number | Publication date |
---|---|
CN112052171A (en) | 2020-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11263005B2 (en) | Techniques to deploy an application as a cloud computing service | |
US20200013070A1 (en) | Identifying clusters for service management operations | |
US20180365700A1 (en) | Identifying clusters for service management operations | |
CN109062925B (en) | Method, device, computer equipment and storage medium for automatically generating insert sentences | |
US11108871B2 (en) | Dynamic generation of network routing configuration with service requirements | |
CN110109750B (en) | Virtual resource acquisition method, device, computer equipment and storage medium | |
CN107862425B (en) | Wind control data acquisition method, device and system and readable storage medium | |
CN113159737B (en) | RPA service processing method, RPA management platform, device and medium | |
WO2020233081A1 (en) | Client plugin-ization implementation method, apparatus, computer device and storage medium | |
CN113435608A (en) | Method and device for generating federated learning model, computer equipment and storage medium | |
CN112052171B (en) | Test message processing method and device, computer equipment and storage medium | |
US7428486B1 (en) | System and method for generating process simulation parameters | |
CN115712422A (en) | Form page generation method and device, computer equipment and storage medium | |
CN112379913B (en) | Software optimization method, device, equipment and storage medium based on risk identification | |
US20220038351A1 (en) | Identification of incident required resolution time | |
US20200380386A1 (en) | Use machine learning to verify and modify a specification of an integration interface for a software module | |
CN110865943A (en) | Interface testing method and device, computer equipment and storage medium | |
CN106302125A (en) | A kind of solicited message is responded method, Apparatus and system | |
CN116151631A (en) | Service decision processing system, service decision processing method and device | |
CN115328484A (en) | Interface generation method and device, computer equipment and storage medium | |
CN115269431A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN111726390B (en) | Interface data interaction method, device, equipment and storage medium based on Teamcenter | |
CN113761858A (en) | Form data processing method and device, computer equipment and storage medium | |
CN109189370B (en) | Software component generation method, device, equipment and computer readable storage medium | |
CN117421313A (en) | Data verification method, device, computer 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Test message processing methods, devices, computer equipment, and storage media Effective date of registration: 20231225 Granted publication date: 20210528 Pledgee: SHANGHAI RURAL COMMERCIAL BANK Co.,Ltd. Pledgor: Shanghai Fu Shen Lan Software Co.,Ltd. Registration number: Y2023310000915 |