5G Message Simulation Test Method, Device, Electronic Device and Storage Medium

通过模拟网络运营商处理单元接收和解析5G消息数据,生成交互报文,解决了5G消息交互测试难度高的问题,实现了独立测试和成本降低。

CN114867054BActive Publication Date: 2025-07-11INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210649162.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-09
Publication Date
2025-07-11
Estimated Expiration
2042-06-09

AI Technical Summary

Technical Problem

In the prior art, 5G message interaction testing is difficult and costly, and it is necessary to rely on network operators and 5G message devices to complete the test independently.

Method used

The processing unit of the simulated network operator receives 5G message test data, parses the message identification and obtains the chat robot template and media files, assembles and generates interactive messages, sends them to the interactive unit to display, and generates return data based on the display results to realize the simulation test of 5G messages.

Benefits of technology

It reduces the difficulty and cost of 5G message interaction testing, improves testing efficiency, and can complete the test without relying on network operators and 5G message devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114867054B_ABST
    Figure CN114867054B_ABST
Patent Text Reader

Abstract

The present disclosure provides a 5G message simulation test method, apparatus, electronic device and storage medium, which can be applied to the fields of computer technology and 5G technology. The method includes: receiving 5G message test data from a message unit through a processing unit, where the processing unit is used to simulate a network operator, and the 5G message test data includes 5G message packets; parsing the 5G message packets to obtain packet identifiers; obtaining a chatbot template and a media file corresponding to the 5G message packets when the packet identifiers are legal; assembling the 5G message packets, the chatbot template and the media file to generate a 5G message interaction packet; sending the 5G message interaction packet to an interaction unit for display; generating first return data according to the display result so as to send the first return data to the message unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology and the field of 5G technology, and more particularly, to a 5G message simulation test method, apparatus, electronic device, and storage medium. Background Art

[0002] 5G messages enable users to complete experiences such as service search, discovery, and interaction within the message window. Service providers can present information or services in the form of rich media messages and interactive cards on the mobile terminal interface of users, making messages multimedia, lightweight, and interactive. When promoting the application of 5G messages, it is necessary to conduct interaction tests on 5G messages to ensure their normal use.

[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art: The test difficulty and cost are relatively high when conducting interaction tests on 5G messages. Summary of the Invention

[0004] In view of this, the present disclosure provides a 5G message simulation test method, apparatus, electronic device, and storage medium.

[0005] One aspect of the present disclosure provides a 5G message simulation test method, including:

[0006] Receiving 5G message test data from a message unit by a processing unit, where the processing unit is used to simulate a network operator, and the 5G message test data includes 5G message packets;

[0007] Parsing the 5G message packet to obtain a packet identifier;

[0008] When the packet identifier is legal, obtaining a chatbot template and a media file corresponding to the 5G message packet;

[0009] Assembling the 5G message packet, the chatbot template, and the media file to generate a 5G message interaction packet;

[0010] Sending the 5G message interaction packet to an interaction unit for display;

[0011] Generating first return data according to the display result for sending the first return data to the message unit.

[0012] According to an embodiment of the present disclosure, where sending the 5G message interaction packet to the interaction unit for display includes:

[0013] Obtaining the media file in the 5G message interaction packet;

[0014] When the media file is successfully obtained, display the 5G message session page according to the 5G message interaction message and the media file rendering display page.

[0015] According to an embodiment of the present disclosure, wherein, when the message identifier is legal, obtaining the chatbot template and the media file corresponding to the 5G message packet includes:

[0016] Parse the 5G message packet to determine the chatbot template;

[0017] Obtain the chatbot template, wherein the chatbot template is pre-uploaded to the processing unit; and

[0018] Obtain the media file, wherein the media file is pre-uploaded to the processing unit.

[0019] According to an embodiment of the present disclosure, when the message type of the 5G message packet is a media file change type, the above method further includes:

[0020] Determine the first routing path for sending the 5G message packet according to the media file change type;

[0021] Send the 5G message packet according to the first routing path;

[0022] Change the media file according to the media file change information in the 5G message packet;

[0023] Generate second return data according to the change result of the media file and send it to the message unit.

[0024] According to an embodiment of the present disclosure, when the message type of the 5G message packet is a chatbot change type, the above method further includes:

[0025] Determine the second routing path for sending the 5G message packet according to the chatbot change type;

[0026] Send the 5G message packet according to the second routing path;

[0027] Change the chatbot template according to the chatbot change information in the 5G message packet;

[0028] Generate third return data according to the change result of the chatbot and send it to the message unit.

[0029] According to an embodiment of the present disclosure, before parsing the 5G message packet to obtain the message identifier, the above method further includes:

[0030] Receive the identifier application packet through the processing unit;

[0031] Parse the identifier application packet; and

[0032] When it is determined that the identification application message is legal, a message identifier is generated.

[0033] According to an embodiment of the present disclosure, the above method further includes:

[0034] Analyze the interaction control information of the 5G message interaction message;

[0035] When the interaction switch is turned on, perform an interaction operation according to the interaction control information;

[0036] Generate fourth return data according to the result of the interaction operation and send it to the message unit.

[0037] Another aspect of the present disclosure provides a 5G message simulation test device, and the above device includes:

[0038] A receiving module, configured to receive 5G message test data from a message unit, wherein a processing unit is used to simulate a network operator, and the 5G message test data includes 5G message packets;

[0039] A first parsing module, configured to parse the 5G message packet to obtain a message identifier;

[0040] An obtaining module, configured to obtain a chatbot template and a media file corresponding to the 5G message packet when the message identifier is legal;

[0041] A first generating module, configured to assemble the 5G message packet, the chatbot template, and the media file to generate a 5G message interaction message;

[0042] A first sending module, configured to send the 5G message interaction message to an interaction unit for display;

[0043] A second generating module, configured to generate first return data according to the display result, so as to send the first return data to the message unit.

[0044] Another aspect of the present disclosure provides an electronic device, including: one or more processors; a memory, configured to store one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors are caused to implement the above 5G message simulation test method.

[0045] Another aspect of the present disclosure provides a computer-readable storage medium, storing computer-executable instructions, and the instructions are used to implement the above 5G message simulation test method when executed.

[0046] Another aspect of the present disclosure provides a computer program product, and the computer program product includes computer-executable instructions, and the instructions are used to implement the above 5G message simulation test method when executed.

[0047] According to an embodiment of the present disclosure, a processing unit simulates a network operator to receive 5G message test data from a message unit. The 5G message test data includes 5G message packets. The packet identifier in the 5G message packet is parsed. When the packet identifier is legal, the 5G message packet, a chatbot template, and a media file are assembled to generate a 5G message interaction packet. Then, the 5G message interaction packet is sent to an interaction unit for display, and the first return data generated according to the display result is sent to the message unit to complete the interaction test of the 5G message. By simulating the network operator and the mobile terminal to test the test data of the 5G message, the application service provider can complete the test work of the 5G message without relying on the network operator and 5G message devices. Therefore, at least partially, the technical problems of high test difficulty and high cost in the interaction test of the 5G message are overcome, the performance test problems caused by network operator restrictions are reduced, and the cost of the 5G message interaction test is lowered. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, the above and other objects, features, and advantages of the present disclosure will become clearer. In the drawings:

[0049] Figure 1 Schematically shows the system architecture for 5G message testing in the related art;

[0050] Figure 2 Schematically shows the flowchart of the 5G message simulation test method according to an embodiment of the present disclosure;

[0051] Figure 3A Schematically shows the flowchart of the identification application test of the 5G message simulation test method according to an embodiment of the present disclosure;

[0052] Figure 3B Schematically shows the flowchart of the media material change test of the 5G message simulation test method according to an embodiment of the present disclosure;

[0053] Figure 3C Schematically shows the flowchart of the chatbot change test of the 5G message simulation test method according to an embodiment of the present disclosure;

[0054] Figure 3D Schematically shows the flowchart of the 5G message sending test of the 5G message simulation test method according to an embodiment of the present disclosure;

[0055] Figure 3E Schematically shows the flowchart of the 5G message display and interaction of the 5G message simulation test method according to an embodiment of the present disclosure;

[0056] Figure 4Schematically shows a block diagram of a 5G message simulation test device according to an embodiment of the present disclosure; and

[0057] Figure 5 Schematically shows a block diagram of an electronic device for a 5G message simulation test method according to an embodiment of the present disclosure. Detailed implementation manners

[0058] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure. However, obviously, one or more embodiments may be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

[0059] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0060] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0061] In cases where expressions similar to "at least one of A, B, and C, etc." are used, generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). In cases where expressions similar to "at least one of A, B, or C, etc." are used, generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0062] The 5th-Generation (5G) mobile communication technology messaging is an enhanced information service based on the Rich Communication Suite (RCS) technology. Different from the traditional short message service, 5G messaging supports users to complete one-stop experiences such as service search, discovery, and interaction in the message window. Service providers can present information or services in the form of rich media messages and interactive cards on the user's message interface, making the messages multimedia, lightweight, and interactive.

[0063] Network service providers build a 5G messaging system by introducing the Messaging as a Platform (MaaP) technology to implement the message architecture between points and applications, that is, the interactive messages between individual users and Chatbot (an application form that provides services to individual users through session interaction) applications in the 5G messaging service, including Application to Person (A2P) messages and Person to Application (P2A) messages.

[0064] Figure 1 Schematically shows the system architecture 100 for 5G messaging simulation testing in the related art.

[0065] As Figure 1 shown, the 5G messaging simulation testing in the related art requires the joint completion of the application service party 110, the network operator 120, and the mobile terminals 131, 132, 133. The application service party 110 assembles 5G messaging packets according to the 5G messaging interface rules, and then calls the Chatbot service interface corresponding to the 5G messaging system of the network operator 120 to complete the corresponding packet content in the 5G messaging packets successively. The network operator 120 assembles media files and message content according to the preset Chatbot template and pushes them to the mobile terminals through 3G, 4G, 5G, or WLAN networks to complete the A2P message process. After receiving the push, individual users can perform feedback operations through the Chatbot service, and the network service provider feeds back the relevant operation information to the application service party to complete the P2A message process.

[0066] Therefore, in the 5G messaging interaction process, the network operator needs to assemble and customize 5G messages, and the mobile terminal needs to process, display, and interact with information other than text. And the application service party must rely on the network operator and terminal devices supporting 5G messaging during the 5G messaging interaction test and cannot independently complete the closed-loop test of the entire message link. This has led to a sharp increase in business communication costs, function development costs, joint test costs, and equipment procurement costs.

[0067] In view of this, embodiments of the present disclosure provide a method for simulating and testing 5G messages. The method includes: receiving 5G message test data from a message unit through a processing unit, where the processing unit is used to simulate a network operator, and the 5G message test data includes 5G message packets; parsing the 5G message packets to obtain a packet identifier; when the packet identifier is legal, obtaining a chatbot template and a media file corresponding to the 5G message packet; assembling the 5G message packet, the chatbot template, and the media file to generate a 5G message interaction packet; sending the 5G message interaction packet to an interaction unit for display; generating first return data according to the display result so as to send the first return data to the message unit.

[0068] Figure 2 Schematically shows a flowchart of a method for simulating and testing 5G messages according to an embodiment of the present disclosure.

[0069] As Figure 2 shown, the method includes operations S201 to S206.

[0070] In operation S201, receive 5G message test data from a message unit through a processing unit, where the processing unit is used to simulate a network operator, and the 5G message test data includes 5G message packets.

[0071] In operation S202, parse the 5G message packet to obtain a packet identifier.

[0072] In operation S203, when the packet identifier is legal, obtain a chatbot template and a media file corresponding to the 5G message packet.

[0073] In operation S204, assemble the 5G message packet, the chatbot template, and the media file to generate a 5G message interaction packet.

[0074] In operation S205, send the 5G message interaction packet to an interaction unit for display.

[0075] In operation S206, generate first return data according to the display result so as to send the first return data to the message unit.

[0076] According to an embodiment of the present disclosure, a 5G message interaction system can be used for testing 5G message interactions. During the test, a network operator can be simulated through a processing unit to process 5G messages, and an interaction unit can be used to simulate an interaction between a terminal and the processing unit.

[0077] According to an embodiment of the present disclosure, the processing unit can receive 5G message test data according to the interface rules of 5G messages.

[0078] According to an embodiment of the present disclosure, the 5G message test data may be identification application data, media material change data, chatbot change data, or 5G message interaction data, or may be other types of test data, which are not limited herein.

[0079] According to an embodiment of the present disclosure, the processing unit may parse the 5G message packet to obtain the packet identifier in the 5G message packet, that is, the token, and the token may be applied for by the processing unit.

[0080] According to an embodiment of the present disclosure, the chatbot template may be a template used by the processing unit to assemble 5G messages, and the media file may be rich text information such as videos, pictures, etc.

[0081] According to an embodiment of the present disclosure, the packet identifier may be authenticated. When the authentication result of the packet identifier is legal, the chatbot template and the media file corresponding to the 5G message packet are obtained. When the packet identifier is illegal, an error message is generated, the return message is encapsulated according to the error message, and then the return packet is sent to end the operation.

[0082] According to an embodiment of the present disclosure, the 5G message packet, the chatbot template, and the media file may be assembled according to the chatbot template by the processing unit to generate a 5G message interaction packet, and the 5G message interaction packet may be an interaction packet sent by the processing unit to the interaction unit.

[0083] According to an embodiment of the present disclosure, the 5G message interaction packet may be displayed in the interaction unit to simulate the scenario of 5G message display on a 5G terminal.

[0084] According to an embodiment of the present disclosure, after the display is completed, the first return data may be generated according to the display result. If the display is successful, the first return data is the data indicating that the 5G message is displayed successfully. If the display is not successful, an error message is generated, the first return data is generated according to the error message, and then it is sent to the message unit to end the operation.

[0085] According to an embodiment of the present disclosure, a processing unit simulates a network operator to receive 5G message test data from a message unit. The 5G message test data includes a 5G message packet. The packet identifier in the 5G message packet is parsed. When the packet identifier is legal, the 5G message packet, a chatbot template, and a media file are assembled to generate a 5G message interaction packet. Then, the 5G message interaction packet is sent to an interaction unit for display, and the first return data generated according to the display result is sent to the message unit to complete the interaction test of the 5G message. By simulating the network operator and the mobile terminal to test the test data of the 5G message, the application service provider can complete the test work of the 5G message without relying on the network operator and 5G message devices. Therefore, at least partially, the technical problems of high test difficulty and high cost in the interaction test of the 5G message are overcome, the performance test problems caused by network operator restrictions are reduced, and the cost of the 5G message interaction test is reduced.

[0086] According to an embodiment of the present disclosure, sending the 5G message interaction packet to the interaction unit for display may include:

[0087] Obtain the media file in the 5G message interaction packet;

[0088] When the media file is successfully obtained, render the display page according to the 5G message interaction packet and the media file to display the 5G message session page.

[0089] According to an embodiment of the present disclosure, in the process of sending the 5G message to the interaction unit for display, the interaction unit may obtain the media file, and then combine the 5G message interaction packet and the media file for page rendering. If the media file is not successfully obtained, the interaction unit may display an exception message to end the display process.

[0090] According to an embodiment of the present disclosure, the display process of the 5G message may be simulated in the page display subunit, so that the 5G message can more realistically simulate the state of the 5G message on the terminal during the simulation test.

[0091] According to an embodiment of the present disclosure, when the packet identifier is legal, obtaining the chatbot template and the media file corresponding to the 5G message packet includes:

[0092] Parse the 5G message packet to determine the chatbot template;

[0093] Obtain the chatbot template, where the chatbot template is pre-uploaded to the processing unit; and

[0094] Obtain the media file, where the media file is pre-uploaded to the processing unit.

[0095] According to an embodiment of the present disclosure, the processing unit can be used for chatbot template maintenance, chatbot information maintenance, and chatbot query. Among them, the chatbot template can be pre-uploaded to the processing unit so that it can be obtained during 5G message interaction. The processing unit can also be used for querying, maintaining, and downloading media files.

[0096] According to an embodiment of the present disclosure, through the processing unit, the process of uploading chatbots and media files to the processing unit and obtaining chatbots and media files from the processing unit can be simulated. Chatbot templates and media files can be obtained without relying on network operators, reducing the 5G message testing cost.

[0097] According to an embodiment of the present disclosure, when the message type of the 5G message packet is a media file change type, the above method further includes:

[0098] Determine a first routing path for sending the 5G message packet according to the media file change type;

[0099] Send the 5G message packet according to the first routing path;

[0100] Change the media file according to the media file change information in the 5G message packet;

[0101] Generate second return data according to the change result of the media file and send it to the message unit.

[0102] According to an embodiment of the present disclosure, the 5G message packet can include a media file change packet. The message type of the 5G message packet can be parsed and judged. When it is determined to be a media file change type, the path for sending the 5G message packet is determined as the first routing path. Then, the 5G message packet is sent through the first path.

[0103] According to an embodiment of the present disclosure, the media file change information can be operations such as deletion, change, and download. The corresponding changes are performed on the media file according to the media file change information. Before performing the change operation, it can be queried whether the media file exists. If it exists, the change is made. Then, according to the change result, second return data is generated and sent to the message unit to complete the complete interaction test.

[0104] According to an embodiment of the present disclosure, when performing a change test on a media file, it can be achieved without relying on network operators, reducing the test difficulty and test cost and improving the test efficiency of 5G messages.

[0105] According to an embodiment of the present disclosure, when the message type of the 5G message packet is a chatbot change type, the above method further includes:

[0106] Determine the second routing path for sending the 5G message packet according to the chatbot change type;

[0107] Send the 5G message packet according to the second routing path;

[0108] Change the chatbot according to the chatbot change information in the 5G message packet;

[0109] Generate the third return data according to the change result of the chatbot and send it to the message unit.

[0110] According to an embodiment of the present disclosure, the 5G message packet may include a chatbot change packet. When it is determined that the packet type of the 5G message packet is the chatbot change type, the path for sending the 5G message packet is determined as the second routing path. Then, the 5G message packet is sent through the second path.

[0111] According to an embodiment of the present disclosure, the chatbot change information may be operations such as deletion, change, download, etc. The chatbot change information performs corresponding changes to the chatbot. Before performing the change operation, it may be queried whether the chatbot exists. If it exists, the change is performed. Then, according to the change result, the third return data is generated and sent to the message unit to complete the complete interaction test.

[0112] According to an embodiment of the present disclosure, when performing a change test on the chatbot, it can be achieved without relying on a network operator, reducing the test difficulty and test cost, and improving the test efficiency of 5G messages.

[0113] According to an embodiment of the present disclosure, before operating S202 to parse the 5G message packet by the authentication subunit to obtain the packet identifier, the 5G message simulation test method further includes:

[0114] Receive the identity application packet through the processing unit;

[0115] Parse the identity application packet; and

[0116] Generate a packet identifier when it is determined that the identity application packet is legal.

[0117] According to an embodiment of the present disclosure, the identity application packet can be received through the processing unit, and then the identity application packet is parsed to generate a packet identifier, realizing the application test of the identifier without relying on a network operator, reducing the difficulty of 5G message testing, and improving the test efficiency of 5G messages.

[0118] According to an embodiment of the present disclosure, the above method further includes:

[0119] Parse the interaction control information of the 5G message interaction packet;

[0120] When the interaction switch is turned on, perform an interaction operation according to the interaction control information;

[0121] Generate fourth return data according to the result of the interaction operation and send it to the message unit.

[0122] According to an embodiment of the present disclosure, the interaction control information may be information simulating a user's interaction operation on a terminal. For example, after receiving a 5G message, the user can view product details through the content in the 5G message, etc. The interaction operation in the interaction control information can be simulated by the interaction unit.

[0123] According to an embodiment of the present disclosure, the interaction operation test of the 5G message interaction message can be completed through the interaction unit, and the test can be completed without relying on a 5G-enabled terminal, reducing the test difficulty and test cost, and improving the test efficiency of 5G messages.

[0124] Next, with reference to Figures 3A to 3E , in combination with specific embodiments, Figure 2 The method shown is further described.

[0125] Figure 3A Schematically shows the identification application test flow chart of the 5G message simulation test method according to an embodiment of the present disclosure.

[0126] As Figure 3A shown, the method includes steps S3101 - S3103.

[0127] In step S3101, send a token application message to the processing unit through the message unit.

[0128] In step S3102, parse the token application message and determine whether it is legal. If it is legal, generate token information and forward it to the routing subunit; if it is not legal, generate a first error message and forward it to the routing subunit.

[0129] In step S3103, intercept information through the routing subunit for determination, generate return data, and output a return message.

[0130] According to an embodiment of the present disclosure, the routing subunit may be a subunit in the processing unit for sending return data.

[0131] According to an embodiment of the present disclosure, it is possible to simulate a network operator to parse and judge a token application message, and it is not necessary to rely on a network operator to implement a 5G message simulation test, reducing the difficulty and test cost of the 5G message simulation test, and improving the test efficiency of 5G messages.

[0132] Figure 3BSchematically shows a media file change test flow chart of a 5G message simulation test method according to an embodiment of the present disclosure.

[0133] As Figure 3B shown, the method includes steps S3201 - S3215.

[0134] In step S3201, send a media file and a media file change message to a processing unit through a message unit.

[0135] In step S3202, parse the media file change message to obtain the token of the media file change message.

[0136] In step S3203, obtain parameter configuration information and determine whether the authentication switch is turned on. If yes, execute step S3204; if no, execute step S3205.

[0137] In step S3204, authenticate the token of the media file change message to determine whether it is legal. If yes, execute step S3205; if no, execute step S3207.

[0138] In step S3205, the routing subunit of the processing unit receives the media file and the media file change message.

[0139] In step S3206, the routing subunit parses the media file and the media file change message to determine whether the format and parameters are legal. If yes, execute step S3208; if no, execute step S3207.

[0140] In step S3207, the routing subunit intercepts the media file and the media file change message, generates an error message, and outputs a return message.

[0141] In step S3208, determine that the message type of the media file change message is a media file change type.

[0142] In step S3209, receive and parse the media file and the media file change message.

[0143] In step S3210, query whether the media file exists. If it exists, execute step S3211; if it does not exist, execute step S3212.

[0144] In step S3211, determine whether the change type of the media file change message is a download operation. If yes, execute step S3215; if not, execute step S3213.

[0145] In step S3212, determine whether the change type of the media file change message is an add operation. If yes, execute step S3213; if not, execute step S3214.

[0146] In step S3213, perform a change operation according to the change type of the media file change message, generate media file change operation information, and execute step S3215.

[0147] In step S3214, generate an error message and execute step S3215.

[0148] In step S3215, encapsulate the return information and output the return message.

[0149] According to an embodiment of the present disclosure, the routing subunit can also be used to discriminate the message type of the 5G message and determine the sending path of the 5G message according to the message type.

[0150] According to an embodiment of the present disclosure, it is possible to simulate a network operator to parse and judge a media file change message, without relying on the network operator to implement 5G message simulation testing, reducing the difficulty and testing cost of 5G message simulation testing and improving the testing efficiency of 5G messages.

[0151] Figure 3C Schematically shows a chatbot change test flow chart of the 5G message simulation test method according to an embodiment of the present disclosure.

[0152] As Figure 3C shown, the method includes steps S3301 - S3313.

[0153] In step S3301, send a chatbot change message to the processing unit through the message unit.

[0154] In step S3302, parse the chatbot change message to obtain the token of the chatbot change message.

[0155] In step S3303, obtain parameter configuration information and determine whether the authentication switch is turned on. If so, execute step S3304; if not, go to step S3305.

[0156] In step S3304, authenticate the token of the chatbot change message to determine whether it is legal. If so, execute step S3305; if not, execute step S3307.

[0157] In step S3305, the routing subunit of the processing unit receives the chatbot change message.

[0158] In step S3306, parse the chatbot change message to determine whether the format and parameters are legal. If so, execute step S3308; if not, execute step S3307.

[0159] In step S3307, the routing subunit intercepts the chatbot change message, generates an error message, and outputs a return message.

[0160] In step S3308, it is determined that the message type of the chatbot change message is the chatbot change type.

[0161] In step S3309, the chatbot change message is received and parsed.

[0162] In step S3310, it is queried whether the chatbot of the chatbot change message exists. If it exists, step S3311 is executed; if not, step S3312 is executed.

[0163] In step S3311, according to the change type of the chatbot change message, a change operation is performed, a chatbot change operation information is generated, and step S3313 is executed.

[0164] In step S3312, an error message is generated, and step S3313 is executed.

[0165] In step S3313, the return information is encapsulated and a return message is output.

[0166] According to the embodiments of the present disclosure, it is possible to simulate a network operator to parse a chatbot change message, without relying on the network operator to implement 5G message testing, reducing the difficulty and testing cost of 5G message testing and improving the testing efficiency of 5G messages.

[0167] Figure 3D Schematically shows a 5G message sending test flow chart of the 5G message simulation test method according to the embodiments of the present disclosure.

[0168] As Figure 3D shown, the method includes steps S3401 - S3415.

[0169] In step S3401, a 5G message sending message is sent to the processing unit through the message unit.

[0170] In step S3402, the 5G message sending message is parsed to obtain the token of the 5G message sending message.

[0171] In step S3403, parameter configuration information is obtained, and it is determined whether the authentication switch is turned on. If so, step S3404 is executed; if not, step S3405 is executed.

[0172] In step S3404, the token of the 5G message sending message is authenticated to determine whether it is legal. If so, step S3405 is executed; if not, step S3407 is executed.

[0173] In step S3405, the routing subunit of the processing unit receives the 5G message sending packet.

[0174] In step S3406, parse the 5G message sending packet and determine whether the format and parameters are legal. If so, execute step S3408; if not, execute step S3407.

[0175] In step S3407, intercept the 5G message sending packet, generate an error message, and output a return packet.

[0176] In step S3408, determine that the packet type of the 5G message sending packet is a 5G message type.

[0177] In step S3409, receive and parse the 5G message sending packet.

[0178] In step S3410, obtain the chatbot template information corresponding to the 5G message sending packet.

[0179] In step S3411, query whether the chatbot template corresponding to the 5G message sending packet exists. If it exists, execute step S3412; if not, go to step S3414.

[0180] In step S3412, obtain the rich text information corresponding to the 5G message sending packet and process it.

[0181] In step S3413, assemble the 5G message sending packet, the chatbot template, and the processed rich text information to generate a 5G message interaction packet, and send it to the page display subunit of the interaction unit, and execute step S3415.

[0182] In step S3414, generate an error message and execute step S3415.

[0183] In step S3415, encapsulate the return information and output a return packet.

[0184] According to the embodiments of the present disclosure, by simulating a network operator to parse and judge the 5G message sending packet, and then assembling and sending the 5G message sending packet to a simulated mobile terminal for interactive operations, it is possible to implement 5G message interaction testing without relying on network operators and mobile terminals, reducing the equipment purchase cost.

[0185] Figure 3E Schematically shows the 5G message display and interaction flowchart of the 5G message simulation test method according to the embodiments of the present disclosure.

[0186] As Figure 3E shown, the method includes steps S3501 - S3510.

[0187] In step S3501, receive a 5G message interaction packet through the interaction unit.

[0188] In step S3502, obtain parameter configuration information and determine whether the display switch is turned on. If so, execute step S3503; if not, execute step S3507.

[0189] In step S3503, parse the 5G message interaction packet and synchronously execute step S3504 and step S3508.

[0190] In step S3504, obtain the media file information corresponding to the 5G message interaction packet.

[0191] In step S3505, obtain the media file. If the acquisition is successful, execute step S3506; if the acquisition fails, execute step S3507.

[0192] In step S3506, combine the 5G message interaction packet and the media file, perform page rendering, display the 5G message session box page, and end the 5G message display process.

[0193] In step S3507, display the exception information and end the process.

[0194] In step S3508, receive the 5G message interaction packet and parse to query the corresponding interaction control configuration.

[0195] In step S3509, determine whether the interaction switch is turned on. If so, execute step S3510; if not, execute step S3507.

[0196] In step S3510, perform an interaction operation according to the interaction control information, return the interaction information, and end the process.

[0197] According to the embodiments of the present disclosure, it is possible to simulate a terminal to complete the interaction test of 5G messages, without relying on a 5G terminal, reducing the equipment purchase cost of 5G message testing, and realizing the automated test of 5G message interaction.

[0198] Figure 4 Schematically shows a block diagram of a 5G message simulation test device according to an embodiment of the present disclosure.

[0199] As Figure 4 shown, the 5G message simulation test device 400 includes a receiving module 410, a first parsing module 420, an obtaining module 430, a first generating module 440, a first sending module 450, and a second generating module 460.

[0200] The receiving module 410 is configured to receive 5G message test data from the message unit through the processing unit, where the processing unit is used to simulate a network operator, and the 5G message test data includes 5G message packets;

[0201] The first parsing module 420 is configured to parse the 5G message packet to obtain a packet identifier;

[0202] The obtaining module 430 is configured to obtain the chatbot template and the media file corresponding to the 5G message packet when the packet identifier is legal;

[0203] The first generating module 440 is configured to assemble the 5G message packet, the chatbot template, and the media file to generate a 5G message interaction packet;

[0204] The first sending module 450 is configured to send the 5G message interaction packet to the interaction unit for display;

[0205] The second generating module 460 is configured to generate first return data according to the display result, so as to send the first return data to the message unit.

[0206] According to an embodiment of the present disclosure, the processing unit simulates a network operator to receive 5G message test data from the message unit, where the 5G message test data includes a 5G message packet, parses the packet identifier in the 5G message packet, and when the packet identifier is legal, assembles the 5G message packet, the chatbot template, and the media file to generate a 5G message interaction packet, then sends the 5G message interaction packet to the interaction unit for display, and then sends the first return data generated according to the display result to the message unit to complete the interaction test of the 5G message. By simulating the network operator and the mobile terminal to test the 5G message test data, the application service provider can complete the 5G message test work without relying on the network operator and 5G message devices. Therefore, at least partially, the technical problems of high test difficulty and high cost in the interaction test of 5G messages are overcome, the performance test problems caused by network operator restrictions are reduced, and the cost of the 5G message interaction test is reduced.

[0207] According to an embodiment of the present disclosure, the first sending module 450 includes:

[0208] The first sending unit is configured to obtain the media file in the 5G message interaction packet;

[0209] The second sending unit is configured to render and display the page according to the 5G message interaction packet and the media file to display the 5G message session page when the media file is successfully obtained.

[0210] According to an embodiment of the present disclosure, the obtaining module 430 includes:

[0211] The first obtaining unit is configured to parse the 5G message packet to determine the chatbot template;

[0212] A second acquisition unit, configured to acquire a chatbot template, where the chatbot template is pre-uploaded to the processing unit; and

[0213] A third acquisition unit, configured to acquire a media file, where the media file is pre-uploaded to the processing unit.

[0214] According to an embodiment of the present disclosure, when the message type of the 5G message is a media file change type, the above-mentioned device 400 further includes:

[0215] A first determination module, configured to determine a first routing path for sending the 5G message according to the media file change type;

[0216] A second sending module, configured to send the 5G message according to the first routing path;

[0217] A first change module, configured to change the media file according to the media file change information in the 5G message;

[0218] A third sending module, configured to generate second return data according to the change result of the media file and send it to the message unit.

[0219] According to an embodiment of the present disclosure, when the message type of the 5G message is a chatbot change type, the above-mentioned device 400 further includes:

[0220] A second determination module, configured to determine a second routing path for sending the 5G message according to the chatbot change type;

[0221] A fourth sending module, configured to send the 5G message according to the second routing path;

[0222] A second change module, configured to change the chatbot template according to the chatbot change information in the 5G message;

[0223] A fifth sending module, configured to generate third return data according to the change result of the chatbot and send it to the message unit.

[0224] According to an embodiment of the present disclosure, the above-mentioned device 400 further includes:

[0225] An identification application message receiving module, configured to receive an identification application message through the processing unit;

[0226] An identification application message parsing module, configured to parse the identification application message; and

[0227] A message identification generation module, configured to generate a message identification when it is determined that the identification application message is legal.

[0228] According to an embodiment of the present disclosure, the above-mentioned device 400 further includes:

[0229] A second parsing module, configured to parse the interaction control information of the 5G message interaction message;

[0230] An execution module, configured to execute an interaction operation according to the interaction control information when the interaction switch is turned on;

[0231] A sixth sending module, configured to generate a fourth return data according to the result of the interaction operation and send it to the message unit.

[0232] According to embodiments of the present disclosure, any plurality of modules, sub-modules, units, and sub-units, or at least part of the functions of any of them can be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure can be split into multiple modules for implementation. Any one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by any other reasonable way of integrating or packaging circuits in hardware or firmware, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Alternatively, one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding functions can be executed.

[0233] For example, any combination of the receiving module 410, the first parsing module 420, the obtaining module 430, the first generating module 440, the first sending module 450, and the second generating module 460 may be combined and implemented in one module / unit / sub-unit, or any one of the modules / units / sub-units may be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units may be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the receiving module 410, the first parsing module 420, the obtaining module 430, the first generating module 440, the first sending module 450, and the second generating module 460 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or may be implemented by any other reasonable means such as hardware or firmware by integrating or packaging circuits, or may be implemented in any one of the three implementation manners of software, hardware, and firmware or in any suitable combination of several of them. Alternatively, at least one of the receiving module 410, the first parsing module 420, the obtaining module 430, the first generating module 440, the first sending module 450, and the second generating module 460 may be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding functions may be executed.

[0234] It should be noted that the 5G message simulation test device part in the embodiments of the present disclosure corresponds to the 5G message simulation test method part in the embodiments of the present disclosure. For the description of the 5G message simulation test device part, please refer to the 5G message simulation test method part specifically, and details are not described herein again.

[0235] Figure 5 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 5 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.

[0236] As Figure 5As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage section 508 into a random access memory (RAM) 503. The processor 501 can include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application-specific integrated circuit (ASIC)), and so on. The processor 501 can also include on-board memory for caching purposes. The processor 501 can include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0237] In the RAM 503, various programs and data required for the operation of the electronic device 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. The processor 501 performs various operations of the method flow according to an embodiment of the present disclosure by executing programs in the ROM 502 and / or the RAM 503. It should be noted that the program can also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 can also perform various operations of the method flow according to an embodiment of the present disclosure by executing programs stored in the one or more memories.

[0238] According to an embodiment of the present disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, and the input / output (I / O) interface 505 is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read from it can be installed into the storage section 508 as needed.

[0239] According to an embodiment of the present disclosure, the method flow according to the embodiments of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiments of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described systems, devices, apparatuses, modules, units, etc. can be implemented by computer program modules.

[0240] The present disclosure also provides a computer-readable storage medium, which may be included in the device / device / system described in the above embodiment; or may exist alone without being assembled into the device / device / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiments of the present disclosure is implemented.

[0241] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program can be used by or combined with an instruction execution system, device, or device.

[0242] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the above-described ROM 502 and / or RAM 503 and / or one or more memories other than ROM 502 and RAM 503.

[0243] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.

[0244] The embodiments of the present disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present disclosure.

Claims

1. A 5G message simulation test method, comprising: Receiving an identity application message by a processing unit; Parsing the identity application message; Generating a message identifier when determining that the identity application message is legal; Receiving 5G message test data from a message unit by the processing unit, wherein the processing unit is used to simulate a network operator, and the 5G message test data includes a 5G message packet; Parsing the 5G message packet to obtain a message identifier; Obtaining a chatbot template and a media file corresponding to the 5G message packet when the message identifier is legal; Assembling the 5G message packet, the chatbot template, and the media file to generate a 5G message interaction packet; Sending the 5G message interaction packet to an interaction unit for display, wherein the interaction unit is used to simulate a mobile terminal; Generating first return data according to the display result for sending the first return data to the message unit.

2. The method according to claim 1, wherein The sending the 5G message interaction packet to the interaction unit for display includes: Obtaining the media file in the 5G message interaction packet; Rendering a display page according to the 5G message interaction packet and the media file to display a 5G message session page when the media file is successfully obtained.

3. The method according to claim 1, wherein, The obtaining the chatbot template and the media file corresponding to the 5G message packet when the message identifier is legal includes: Parsing the 5G message packet to determine the chatbot template; Obtaining the chatbot template, wherein the chatbot template is pre-uploaded to the processing unit; and Obtaining the media file, wherein the media file is pre-uploaded to the processing unit.

4. The method according to claim 3, when the message type of the 5G message packet is a media file change type, further comprising: Determining a first routing path for sending the 5G message packet according to the media file change type; Sending the 5G message packet according to the first routing path; Changing the media file according to the media file change information in the 5G message packet; Generating second return data according to the change result of the media file and sending the second return data to the message unit.

5. The method according to claim 3, when the message type of the 5G message packet is a chatbot change type, further comprising: Determining a second routing path for sending the 5G message packet according to the chatbot change type; Sending the 5G message packet according to the second routing path; Changing the chatbot according to the chatbot change information in the 5G message packet; Generating third return data according to the change result of the chatbot and sending the third return data to the message unit.

6. The method according to any one of claims 1 to 5, further comprising: Parsing the interaction control information of the 5G message interaction packet; Performing an interaction operation according to the interaction control information when the interaction switch is turned on; Generating fourth return data according to the result of the interaction operation and sending the fourth return data to the message unit.

7. A 5G message simulation test device, the device comprising: An identification application message receiving module, configured to receive an identification application message through a processing unit; An identification application message parsing module, configured to parse the identification application message; A message identification generating module, configured to generate a message identification when it is determined that the identification application message is legal; A receiving module, configured to receive 5G message test data from a message unit through the processing unit, wherein the processing unit is used to simulate a network operator, and the 5G message test data includes 5G message packets; A first parsing module, configured to parse the 5G message packet to obtain a message identification; An obtaining module, configured to obtain a chatbot template and a media file corresponding to the 5G message packet when the message identification is legal; A first generating module, configured to assemble the 5G message packet, the chatbot template, and the media file to generate a 5G message interaction packet; A first sending module, configured to send the 5G message interaction packet to an interaction unit for display, wherein the interaction unit is used to simulate a mobile terminal; A second generating module, configured to generate first return data according to a display result, so as to send the first return data to the message unit.

8. An electronic device, comprising: One or more processors; A memory, configured to store one or more programs, wherein, when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, having stored thereon executable instructions, which when executed by a processor cause the processor to implement the method according to any one of claims 1 to 6.

10. A computer program product, comprising computer-executable instructions, the instructions being configured to implement the method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • 5G rich media message sending method and device, storage medium and product

    CN114339628A