Test method and system and electronic equipment

By generating simulated user data and virtual seats and simulating the behavior of WeChat customer service system, the high cost and difficulty problems of applications developed based on WeChat customer service are solved when simulating large-scale user access, and the efficient performance of target applications at low cost is achieved Test and evaluation.

CN119512929APending Publication Date: 2025-02-25MICRO INSURANCE AGENCY LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411416168.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

Applications developed based on WeChat customer service face the problems of high cost and high difficulty in concurrent access of large-scale users when conducting software testing, especially when simulating large-scale WeChat users' access.

Method used

By generating simulated user data and virtual agents, the behavior of the simulated WeChat customer service system is realized, the message interaction between the simulated user and the virtual agent is handled, and the performance of the target application is checksum based on the response results.

Benefits of technology

Simulate large-scale user concurrent access at relatively low costs, evaluate the performance of target applications under high load conditions, improve the controllability and repetition of tests, discover potential problems and optimize them in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512929A_ABST
    Figure CN119512929A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a test method and system and electronic equipment. The method comprises the steps of generating simulated user data corresponding to a target application according to a session scene; processing the simulated user data according to preset standard information of a WeChat customer service protocol to obtain processed simulated user data; based on the processed simulated user data, simulating behaviors of a WeChat customer service system so as to process message interaction between the simulated user and the virtual seat, and obtaining a response result corresponding to the message interaction; and checking and evaluating the performance of the target application according to the response result. According to the method, the problems of high-cost simulation user and large-scale user concurrent access are solved, and the effects of cost effectiveness, large-scale user concurrent access, real-time performance evaluation, controllability, repeatability and the like are achieved; the performance of the target application under different load conditions can be effectively evaluated, and powerful support is provided for optimization and improvement of the target application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a testing method, system and electronic equipment. Background Art

[0002] Applications developed based on WeChat customer service usually refer to applications that use the customer service interface and functions provided by WeChat to develop applications that can communicate with users in real time and provide service support. These applications can be corporate customer service systems, online shopping mall customer service functions, social platform customer service services, etc.

[0003] When conducting software testing, especially stress testing, applications developed based on WeChat customer service may encounter a series of challenges, especially when simulating large-scale WeChat user access, such as: building a large-scale WeChat user group requires a large number of mobile phones, mobile phone cards, and interface control for users to send messages, which will bring expensive costs; WeChat has a strong user registration and environment verification mechanism, which makes it more difficult to simulate large-scale WeChat user access; when conducting stress testing, simulating thousands or tens of thousands of users accessing the system at the same time may face huge challenges, because this requires a lot of resources and complex technical implementation. Therefore, when conducting software testing on applications developed based on WeChat customer service, it is of great significance to solve the problems of high-cost simulation of users and high difficulty of large-scale concurrent access by users. Summary of the invention

[0004] One purpose of the embodiments of the present application is to provide a testing method, system and electronic device to solve the technical problems of high cost of simulating users and high difficulty of concurrent access by large-scale users.

[0005] To solve the above technical problems, a technical solution adopted in the implementation mode of the present application is: providing a testing method, the method comprising: generating simulated user data corresponding to the target application according to the conversation scenario; processing the simulated user data according to the standard information of the preset WeChat customer service protocol to obtain the processed simulated user data; based on the processed simulated user data, simulating the behavior of the WeChat customer service system to process the message interaction between the simulated user and the virtual agent, and obtaining the response result corresponding to the message interaction; verifying and evaluating the performance of the target application according to the response result.

[0006] Optionally, generating simulated user data corresponding to the target application according to the conversation scenario includes: configuring the conversation scenario corresponding to the target application; generating simulated user data according to the configured conversation scenario, the simulated user data including user information, conversation flow, message content and trigger conditions.

[0007] Optionally, configuring the session scenario corresponding to the target application includes: defining a session lifecycle corresponding to the target application; defining a state transition experienced by a simulated user during the session lifecycle; determining a condition for triggering the state transition; and setting scenario parameters based on the session lifecycle, the state transition, and the condition for the state transition.

[0008] Optionally, the simulated user data is processed according to the standard information of the preset WeChat customer service protocol to obtain the processed simulated user data, including: defining the standard information of the WeChat customer service protocol, the standard information including message type, format requirements, session flow, user information and trigger conditions; generating unique user information for identifying the user identity, the session flow that complies with the standard information, the message content that complies with the standard information, and the trigger conditions that comply with the standard information according to the standard information.

[0009] Optionally, based on the processed simulated user data, the behavior of the simulated WeChat customer service system is simulated to process the message interaction between the simulated user and the virtual agent, and obtain the response result corresponding to the message interaction, including: based on the processed simulated user data, controlling the simulated user to send a message, the message including text, picture, voice, and video; receiving the message through the set virtual agent, and generating a response message to the message; recording the response result of each message interaction.

[0010] Optionally, the method also includes: configuring parameters of a multi-user stress test based on the processed simulated user data, the parameters including the number of simulated users, message sending frequency and message type; storing the simulated users corresponding to the configured number of simulated users into a preset user information table; determining a corresponding session scenario according to the number of simulated users and the message type; selecting a preset number of simulated users from the user information table, and controlling the preset number of simulated users to send messages based on the message sending frequency; triggering events in the session scenario through messages sent by the preset number of simulated users to realize message interaction between the simulated users and virtual agents; at the end of the message interaction between the simulated users and the virtual agents, detecting whether the current number of simulated users has reached the preset number of stress test users; if not, continuing to select the preset number of simulated users based on the user information table, and executing a new round of message interaction process until the preset number of stress test users is reached.

[0011] Optionally, the checking and evaluating the performance of the target application according to the response result includes: obtaining the session status according to the response result to determine whether all sessions have entered a final state; obtaining the total number of opened sessions and the number of seats undertaken according to the response result to detect whether the total number of sessions is the same as the number of seats; verifying the number of messages in a single session and the total number of messages processed according to the response result; and detecting whether there are abnormal errors.

[0012] To solve the above technical problems, a technical solution adopted in the implementation mode of the present application is: providing a test system, the system comprising: a data orchestration module, a WeChat customer service protocol agent module and a test verification module; the data orchestration module is used to generate simulated user data corresponding to the target application according to the session scenario; the WeChat customer service protocol agent module is used to obtain the simulated user data; the simulated user data is processed according to the standard information of the preset WeChat customer service protocol; based on the processed simulated user data, the behavior of the WeChat customer service system is simulated to process the message interaction between the simulated user and the virtual agent, and obtain the response result corresponding to the message interaction; the test verification module is used to verify and evaluate the performance of the target application according to the response result.

[0013] In order to solve the above technical problems, a technical solution adopted in the implementation mode of the present application is: to provide an electronic device, including: a memory and a processor, the memory is connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the electronic device implements a testing method applied to the electronic device.

[0014] In order to solve the above technical problems, a technical solution adopted in the implementation mode of the present application is: providing a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by an electronic device, the electronic device executes the test method as described above.

[0015] The embodiment of the present application provides a test method, system, electronic device and non-volatile computer-readable storage medium. By simulating user data and virtual seats, the high cost of actually recruiting and training a large number of real users and customer service personnel is avoided, so that performance testing and evaluation can be performed at a relatively low cost. Based on the processed simulated user data, a large number of simulated users and virtual seats can be used for message interaction, so that large-scale user concurrent access in real scenarios can be simulated, and the performance of the target application under high load conditions can be evaluated. By obtaining the response results corresponding to the message interaction in real time, the performance of the target application can be quickly verified and evaluated, potential problems can be found, and adjustments and optimizations can be made in a timely manner. In addition, by simulating user data and virtual seats, the test process is controllable and repeatable, and the same test case can be executed multiple times to ensure the accuracy and reliability of the test results. Therefore, the implementation of the present application solves the problem of high-cost simulated users and large-scale user concurrent access, and at the same time brings cost-effectiveness, large-scale user concurrent access, real-time performance evaluation, controllability and repeatability and other beneficial effects. It can also effectively evaluate the performance of the target application under different load conditions, providing strong support for the optimization and improvement of the target application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.

[0017] Figure 1 is a structural schematic diagram of a test system provided in an embodiment of the present application;

[0018] Figure 2 is a schematic diagram of a conversation scenario provided in an embodiment of the present application;

[0019] Figure 3 It is a schematic diagram of configuring the number of session scenario cycles provided in an embodiment of the present application;

[0020] Figure 4 is a flow chart of performing a multi-user stress simulation test provided by an embodiment of the present application;

[0021] Figure 5 It is an overall framework diagram of a test system provided in an embodiment of the present application;

[0022] Figure 6 It is an interaction diagram between the WeChat customer service conversation simulation device and the service to be evaluated provided in an embodiment of the present application;

[0023] Figure 7 is a flow chart of a testing method provided in an embodiment of the present application;

[0024] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0026] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in this application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0027] It should be noted that in the following embodiments, there is not necessarily a certain order between the following steps. A person skilled in the art can understand, based on the description of the embodiments of the present application, that in different embodiments, the following steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.

[0028] Applications developed based on WeChat customer service refer to applications or systems developed using the customer service interface and functions provided by WeChat. In this application, the customer service interface provided by WeChat is used to interact with users through messages, provide customer service support or solve user problems. For example, the application can receive user messages and make corresponding replies, or actively send messages to users; the application can simulate the behavior of customer service personnel, answer user questions, provide services or guidance; the application can set automatic reply rules and automatically reply according to the messages sent by users.

[0029] Applications developed based on WeChat customer service can achieve convenient interaction with users and improve user experience and service quality by utilizing the powerful ecosystem and user base of WeChat. However, such applications developed based on WeChat customer service cannot simulate an appropriate amount of WeChat users at low cost during testing, and thus cannot evaluate the system performance based on WeChat users. Therefore, an embodiment of the present application provides a testing system and method, which comprehensively tests and evaluates the functions and performance of a target application, which is an application developed based on WeChat customer service, by simulating user behavior, data processing, message interaction, and performance evaluation.

[0030] In the embodiment of the present application, multiple key steps are covered, such as simulated user data generation, WeChat customer service protocol specification processing, simulated user and virtual seat message interaction, and performance verification evaluation. First, simulated user data is generated, and simulated user data corresponding to the target application is generated according to the session scenario, including user information, session flow, message content, and trigger conditions; the session scenario is configured, and the session life cycle, state transition, and trigger conditions are defined to generate simulated user data. Then the WeChat customer service protocol is processed. This process processes the simulated user data according to the preset WeChat customer service protocol specification information to generate user information, session flow, message content, and trigger conditions that meet the specifications. Next, the simulated user interacts with the virtual seat for messages, including controlling the simulated user to send messages, which include text, pictures, voice, video, etc.; the virtual seat receives the message and generates a response, and records the response result of each message interaction. Finally, a performance verification evaluation is performed, including configuring multi-user stress test parameters, controlling the number of simulated users, message sending frequency and type; performing multi-user stress testing, monitoring session status, total number of sessions, number of seats, message processing volume, and detecting abnormal errors.

[0031] Through the system and method of the embodiments of the present application, the high cost of actually recruiting and training a large number of real users and customer service personnel is avoided; it is possible to simulate a large number of concurrent users to evaluate the performance of the application under high load; it is possible to quickly obtain response results, discover problems and optimize them; and the test process is controllable and can be repeated to ensure the accuracy of the results; it is possible to conduct a comprehensive evaluation and evaluate application performance based on multiple indicators, including session status, number of messages, anomaly detection, etc.

[0032] The system and method of the embodiments of the present application combine simulated user behavior and virtual system interaction, providing a comprehensive and effective solution for testing applications developed based on WeChat customer service, which can help the development team better evaluate the performance of the application and make timely adjustments.

[0033] Specifically, see Figure 1 , Figure 11 is a schematic diagram of a test system provided in an embodiment of the present application. The test system 10 comprises: a data arrangement module 11, a WeChat customer service protocol agent module 12 and a test verification module 13.

[0034] The data arrangement module 11 is used to generate simulated user data corresponding to the target application according to the conversation scenario. The conversation scenario refers to a specific life cycle stage or scenario in the conversation, which is used for testing the use of user case management. The conversation scenario can describe a specific stage from the beginning to the end of the conversation, including the user's behavior, the system's response, and the state transition and interaction process that may be involved. Among them, the conversation refers to a complete interactive life cycle between the user and the system or customer service, from the user starting to consult or interact to the end of the interaction. During this process, the user may experience different states, such as entering the intelligent assistant to undertake, queuing, etc., and may eventually be undertaken by manual customer service. Simulated user data is virtual user data generated according to pre-defined conversation scenarios and requirements, which is used to simulate the interaction between real users and applications developed based on WeChat customer service. Simulated user data may include user information (such as name, gender, age, occupation, etc.), conversation process (message content sent by the user, message content replied by the system), message content (such as specific information content such as request, reply, notification, etc., which is a specific form of expression in the conversation process), trigger conditions (such as users sending specific keywords or key phrases), etc.

[0035] Among them, generating simulated user data corresponding to the target application according to the conversation scenario specifically includes: configuring the conversation scenario corresponding to the target application; generating simulated user data according to the configured conversation scenario, the simulated user data including user information, conversation flow, message content and trigger conditions.

[0036] Configuring the session scenario corresponding to the target application includes: defining the session lifecycle corresponding to the target application; defining the state transitions experienced by the simulated user in the session lifecycle; determining the conditions for triggering the state transitions; and setting scenario parameters according to the session lifecycle, state transitions, and the conditions for the state transitions.

[0037] A user's completion of a conversation lifecycle is considered a conversation scenario. For example, a conversation scenario is when a user clicks on an incoming link, establishes a conversation, and detects whether the user is successfully assigned to an agent. If successful, the user and the agent send messages to each other, and the conversation is closed when the communication ends. When defining the conversation lifecycle corresponding to the target application, the entire lifecycle of the conversation from start to end is determined, including the user entering the consultation, the system processing the request, the user interacting with the system, and finally ending the conversation. The user can refer to a simulated user, that is, a virtual user entity used to simulate the behavior and feedback of a real user when interacting with the system. The target application can correspond to multiple different conversation lifecycles, each of which represents a specific simulated user interaction scenario or situation. These conversation lifecycles can be designed and defined according to different user needs, functional modules, or business processes.

[0038] Defining the state transitions that the simulated user experiences during the life cycle of the session means determining the different states that the simulated user may experience, such as entering the intelligent assistant acceptance state, queuing, etc., as well as the conversion relationship between states, such as the simulated user entering the queuing state from the intelligent assistant acceptance state. It is also necessary to determine the specific conditions that trigger the state transition. For example, when the behavior of the simulated user or the system conditions meet certain requirements, the state transition will be caused, such as when the simulated user sends a specific keyword, the waiting time exceeds a certain threshold, etc. The parameters of the session scenario are also configured in this system, including the definition of user information (name, gender, age, occupation, etc.), session flow (message content sent by the user, message content replied by the system), message content (specific information content such as request, reply, notification, etc.) and trigger conditions. Among them, when configuring the parameters of the session scenario in the system, it is necessary to define specific parameters, including user information, session flow, message content and trigger conditions. The definition of these parameters will help generate simulated user data. Among them, user information: includes basic information such as the user's name, gender, age, occupation, etc. This information can help simulate the identity and personality characteristics of the user during the session, thereby affecting the system's response and processing of the simulated user. Conversation process: The conversation process describes the different states and transitions between states experienced by the simulated user when interacting with the system or other simulated users. It is a dynamic behavior pattern. Message content: The message content is the specific content of the actual communication between the simulated user and the system or other simulated users, including specific information content such as requests, replies, and notifications. It is a specific manifestation in the conversation process. Among them, the conversation process reflects the dialogue and communication between the simulated user and the system; the message content is the specific information content, which will play an important role in the conversation process and affect the progress and results of the interaction. Trigger condition: Define the specific conditions that trigger the state transition, that is, when the simulated user behavior or system conditions meet certain requirements, it will cause the state transition. This condition can help simulate the user's interaction with the system in different situations and trigger the system to respond accordingly.

[0039] Configure the session scenario corresponding to the target application through the above steps, and then generate simulated user data according to the configured session scenario, including user information, session flow, message content and trigger conditions.

[0040] For example, the configured session scenario is as follows, where the user can be an impersonated user:

[0041] Conversation life cycle: start conversation -> user asks a question -> system responds intelligently -> user needs more help -> connects to human customer service -> ends conversation;

[0042] State transition: Users raise questions that trigger system responses. If users need more help, the system switches to manual customer service mode.

[0043] Trigger condition: The user sends a message containing the keyword "help", which triggers the system to connect to human customer service.

[0044] Based on the above configured session scenario, simulated user data is generated, wherein simulated user A, whose information includes: name: A, gender: female, age: 30, occupation: engineer, etc.

[0045] Session flow:

[0046] Simulated User A: Hello, I have a question that I need help with.

[0047] System: Hello, I can help you solve your problem. Please describe your problem.

[0048] Impersonator A: I need more help.

[0049] System: You are being transferred to manual customer service. Please wait.

[0050] Trigger condition: Simulate user A sending a message containing the keyword "help", triggering the system to transfer the conversation to manual customer service.

[0051] Through the above steps, a set of simulated user data is successfully generated according to the configured session scenario, including user information, session flow, message content, and trigger conditions. These simulated user data can be used to test the performance and functions of the target application in different scenarios to help evaluate the system performance and user experience.

[0052] In this embodiment, the data arrangement module 11 simulates the sending of messages by WeChat users and the reply of agents to messages, arranges the conversation scenarios according to the evaluation requirements and generates simulated user data, and also transmits the generated simulated user data to the WeChat customer service protocol agent module 12. The WeChat customer service protocol agent module 12 maintains the current status of the simulated user, such as intelligent assistant reception, queuing, manual reception, etc., responds to data that complies with the WeChat customer service protocol in real time, and communicates with the evaluated application (i.e., the target application) to transmit the message data generated by the simulated user.

[0053] Among them, the WeChat customer service protocol agent module 12 is used to obtain simulated user data; process the simulated user data according to the standard information of the preset WeChat customer service protocol; based on the processed simulated user data, realize the behavior of the simulated WeChat customer service system to process the message interaction between the simulated user and the virtual seat, and obtain the response result corresponding to the message interaction.

[0054] The standard information of the preset WeChat customer service protocol refers to a set of conventions and rules defined in the WeChat customer service system, which is used to guide the message interaction process between users and customer service in the WeChat customer service system to ensure the smoothness and efficiency of the interaction process. In this embodiment, the simulated user data is processed so that the processed simulated user data matches the standard information of the WeChat customer service protocol, so that the system can correctly simulate the behavior of the WeChat customer service system and process the message interaction between the simulated user and the virtual agent. Among them, the virtual agent is designed to handle the user's query, question or request, and provide corresponding solutions or replies, which can be used as a supplement or substitute for traditional manual customer service.

[0055] Among them, the simulated user data is processed according to the preset specification information of the WeChat customer service protocol, and the processed simulated user data is obtained, including: defining the specification information of the WeChat customer service protocol, the specification information includes message type, format requirements, session flow, user information and trigger conditions; generating unique user information for identifying the user identity, the session flow that conforms to the specification information, the message content that conforms to the specification information and the trigger conditions that conform to the specification information according to the specification information. For example, the message type specifies the format and processing method of different types of messages, such as text messages, picture messages, voice messages, video messages, etc. The format requirements define the format requirements of the message, including message length limit, supported media formats, message encoding, etc. The session flow is used to guide the session flow between the user and the customer service, including the response method of the customer service after the user sends a message, the order of message transmission, the session state transition conditions, etc. The user information specifies the user information that needs to be collected and used, such as name, gender, etc., so that the customer service system can better understand the user needs. The trigger condition defines the specific conditions for triggering the state transition, that is, when the user behavior or system conditions meet certain requirements, the session state will be changed. Generate processed simulated user data, that is, generate unique user information for identifying the user identity according to the specification information, such as user ID or other identifiers; generate a conversation process that complies with the specification information to ensure that the interaction process between the simulated user and the virtual agent complies with the process defined in the specification; generate message content that complies with the specification information to ensure that the message type, format and content comply with the specification; generate trigger conditions that comply with the specification information so that the system can respond accordingly based on the simulated user behavior or system conditions.

[0056] Among them, based on the processed simulated user data, the behavior of the simulated WeChat customer service system is realized to process the message interaction between the simulated user and the virtual agent, and obtain the response result corresponding to the message interaction, including: based on the processed simulated user data, control the simulated user to send a message, which includes text, pictures, voice, and video; receive the message through the set virtual agent, and generate a response message to the message; record the response result of each message interaction. This process aims to realize the behavior of the simulated WeChat customer service system, process the message interaction between the simulated user and the virtual agent, and record the response result of each message interaction. According to the processed simulated user data, control the simulated user to send different types of messages including text, pictures, voice, video, etc., to ensure that the sent message complies with the preset WeChat customer service protocol specification information, including format requirements, message type, etc.

[0057] The virtual agent receives the message sent by the simulated user, parses and processes it according to the preset specification information, and generates a corresponding response message according to the type and content of the received message, which can be in the form of text reply, picture, voice, etc. The response result of each message interaction is recorded, including the message content sent by the simulated user, the response content of the virtual agent, the timestamp of the interaction, the session status, the total number of opened sessions and the number of seats undertaken, the number of messages in a single session and the total number of messages processed, as well as abnormal error information, etc. Among them, the message content sent by the simulated user includes different types of message content such as text, picture, voice, video, etc. The response message content of the virtual agent includes the response to the simulated user message, which can be in the form of text reply, picture, voice, etc. The timestamp is used to record the time of each message interaction in order to determine the order and timing of the messages. The session status can be information such as whether the session has ended or entered the final state. The total number of opened sessions and the number of seats undertaken refer to recording the total number of opened sessions and the number of virtual agents undertaken, so as to detect whether the total number of sessions matches the number of virtual agents. The number of messages sent and received in each session is also recorded to verify the completeness and accuracy of message processing. In addition, if anomalies or errors occur, relevant information is recorded for subsequent analysis and processing. These records help evaluate the performance of the system, analyze the interaction between simulated users and virtual agents, and check whether the system works as expected.

[0058] In this embodiment, the WeChat customer service protocol proxy module 12 plays a key role. By processing simulated user data and simulating the behavior of the WeChat customer service system, the message interaction between the simulated user and the virtual agent is realized. At the same time, recording the response results of each message interaction helps to evaluate the system performance and handle abnormal situations. In this process, the WeChat customer service protocol proxy module 12 communicates with the evaluated application (i.e., the target application) to verify and evaluate the performance of the target application, including the session status, the total number of sessions, etc.

[0059] Verification and evaluation of the performance of the target application can be completed by the test verification module 13. The WeChat customer service protocol agent module 12 can provide simulated user data and interaction results to the test verification module 13. This data transmission can include information such as session status and total number of sessions, so that the test verification module 13 can evaluate the performance of the target application. Optionally, the test verification module 13 can feed back the results of the performance test to the WeChat customer service protocol agent module 12 so that the WeChat customer service protocol agent module 12 can make adjustments and improvements based on the test results. This feedback mechanism helps to optimize the message interaction process between the simulated user and the virtual agent, and improve the system performance and accuracy.

[0060] Among them, the test verification module 13 verifies and evaluates the performance of the target application according to the response result, which specifically includes: obtaining the session status according to the response result to determine whether all sessions have entered the final state; obtaining the total number of opened sessions and the number of seats undertaken according to the response result to detect whether the total number of sessions is the same as the number of seats; verifying the number of messages in a single session and the total number of messages processed according to the response result; and detecting whether there are abnormal errors. In this embodiment, the test verification module 13 first obtains the response result obtained after interacting with the target application, including information such as the session status, the total number of opened sessions, the number of seats undertaken, the number of messages in a single session, and the total number of messages processed. According to the session status in the response result, the test verification module 13 will check each session to determine whether all sessions have entered the final state, which helps to ensure that the session can be ended correctly and will not be closed abnormally. Then, by comparing the total number of opened sessions and the number of seats undertaken in the response result, the test verification module 13 can detect whether the total number of sessions is the same as the number of seats, which helps to verify the consistency and accuracy of the system when the seats process the session. The test verification module 13 will also verify the number of messages in a single session and the total number of messages processed to ensure that the message delivery and processing are in line with expectations, which helps to detect the accuracy and integrity of the system in terms of message interaction. Finally, the test verification module 13 will also detect whether there are abnormal errors, including system abnormalities, response errors, data abnormalities, etc. By detecting and processing abnormal situations, the stability and reliability of the system can be ensured.

[0061] Therefore, the test verification module 13 evaluates and ensures the performance and accuracy of the target application in the process of simulating the interaction between the user and the virtual agent by analyzing and verifying the response results and verifying the session status, the total number of sessions, the number of messages, etc.

[0062] The test system provided in this embodiment uses simulated user data and virtual agents for message interaction. The system can perform performance testing and evaluation without relying on the participation of real users, avoiding the costs of relying on real users to participate in the test, including time costs, labor costs, and resource costs. The use of simulated user data and virtual agents makes the test environment more controllable and repeatable, and the system can adjust the behavior and scenarios of simulated users as needed. The test verification module verifies and evaluates the performance of the target application based on the response results. By verifying the session status, total number of sessions, number of messages, etc., the system can promptly discover potential problems and make improvements to improve the performance and stability of the target application.

[0063] In some embodiments, the test system 10 can also implement multi-user stress testing. Multi-user stress testing refers to simulating multiple users accessing the target application at the same time, applying various loads (such as the number of concurrent users, request frequency, data volume, etc.) to the target application to evaluate the performance and stability of the target application under high load. In applications developed based on WeChat customer service, multi-user stress testing can be implemented to evaluate the performance and stability of the application system developed based on WeChat customer service under high load.

[0064] Specifically, based on the simulated user data processed above, the parameters of the multi-user stress test are configured, and the parameters include the number of simulated users, message sending frequency and message type; the simulated users corresponding to the configured number of simulated users are stored in a preset user information table; the corresponding session scenario is determined according to the number of simulated users and the message type; a preset number of simulated users are selected from the user information table, and based on the message sending frequency, a preset number of simulated users are controlled to send messages; events in the session scenario are triggered by messages sent by a preset number of simulated users to realize message interaction between simulated users and virtual agents; at the end of the message interaction between the simulated user and the virtual agent, it is detected whether the current number of simulated users has reached the preset number of stress test users; if not, a preset number of simulated users are continuously selected based on the user information table, and a new round of message interaction process is executed until the preset number of stress test users is reached. This embodiment simulates the number, behavior and interaction process of users in order to test the performance of the application system under high load. By continuously repeating the message interaction process of simulated users, the performance of the application system under different pressures can be evaluated, potential problems can be found and optimized.

[0065] In this embodiment, the data arrangement module 11 can prepare relevant simulated user data, including the number of simulated users, message sending frequency, message type and other information, and store these data in a preset user information table. According to the configured test parameters, the data arrangement module 11 is responsible for generating and managing simulated user data, and providing the required data support for the subsequent simulated user interaction process. The WeChat customer service protocol agent module 12 is mainly responsible for the actual execution of the multi-user stress test process, including the message interaction between the simulated user and the virtual seat, and monitoring various indicators during the test process. According to the simulated user data provided by the data arrangement module 11, the WeChat customer service protocol agent module 12 is responsible for selecting simulated users, controlling the message sending frequency, triggering events in the conversation scene, simulating the message interaction between the user and the virtual seat, and detecting whether the preset number of stress test users is reached. Based on the data arrangement module 11 and the WeChat customer service protocol agent module 12, multi-user stress testing can be performed more efficiently and the performance and stability of the application system under high load can be evaluated.

[0066] For example, Figure 2 As shown, it is a schematic diagram of a conversation scenario. The data arrangement module 11 can manage the conversation scenario. Figure 2 The conversation scenario shown includes the user clicking on the incoming link; establishing a conversation; whether the user is successfully assigned to an agent; if successful, the user and the agent send messages to each other; and closing the conversation when the communication ends. The incoming link refers to the process in which the user enters the online customer service system or chat service by clicking a specific link or button on the web page. The link can be used to trigger a real-time conversation with the customer service or agent. The data arrangement module 11 is based on Figure 2 The session scenario configuration shown generates a specific multi-user stress simulation scenario. First, Figure 3 As shown, the number of session scenario cycles is configured. The specific configuration data includes the pre-process configuration, the number of specific link cycles configuration, the data result collection point, and the stress test result generation. Before the session scenario cycle is performed, the pre-steps that may affect the session process need to be configured, which may include initializing data, preparing the system environment, and ensuring that various parameters are set correctly. The pre-process configuration ensures that the system is in a suitable state when simulating the session scenario. In each session scenario, there may be specific links or steps that need to be executed multiple times, such as a certain interaction process that needs to be repeated multiple times to simulate real user behavior. By configuring the number of cycles of specific links, the number of executions of these links can be controlled, thereby better simulating user behavior and system response. In the execution process of the session scenario, various data results need to be collected and recorded, such as performance indicators such as response time, error rate, and throughput, so as to analyze and evaluate the system performance later. Configuring the data result collection point can ensure that the required data is captured at key nodes. Among them, after each session scenario cycle is completed, the corresponding stress test results need to be generated for subsequent analysis and reporting, which can include output in the form of statistical data, charts, log files, etc. The process of configuring stress test result generation can automatically generate results and ensure the visualization and analyzability of test data.

[0067] Next, after configuring the relevant data through the above process, generate a session flow based on the user, such as Figure 4As shown in the figure, it is the process of multi-user stress simulation test, which includes: batch generation of users, simulating the scenarios of different users coming in for consultation, storing user information in the user information table, and polling users in the user configuration table to trigger incoming events and open session events when executing the test, calling different scenarios of the session scenario management module. This step will be used as the starting point of the test. And the number of data sent by the message is controlled as a configuration item, and the configuration value can be adjusted continuously to achieve the scenario of simulating different numbers of messages sent by users and customer service. Among them, the ratio of the number of user messages and the number of customer service messages can be set to 3:1, and multiple request body message parameters can be spliced ​​to achieve the simultaneous batch sending of combined messages, and the ratio of sending messages can be adjusted. When the user triggers the incoming session opening event of the starting link, the system logic assigns it to the customer service to undertake, generate a session, and trigger the next event state at the same time (the event state can be determined according to the life cycle of the session, and the execution order is open session-send message-end session process, etc.), and enter the message sending process of the user and customer service dialogue.

[0068] The above process of multi-user stress simulation testing specifically includes:

[0069] First, do some preparation work, including: determine the purpose and scope of the test; create a user information table and a user configuration table to store user information and configuration information; set the message sending ratio (for example, the number of user messages and customer service messages can be set to a ratio of 3:1) and the number of message configuration items; set the session process, including opening a session, sending messages, and ending a session. Then, batch generate user information and store it in the user information table. The user information includes user ID, user name, and other information. Then trigger the incoming line event: poll the user in the user configuration table, trigger the user incoming line event, start the session event, and then assign the user to the customer service to generate a session. In the message sending process: set the message sending ratio, splice multiple request body message parameters, and combine messages to send in batches at the same time; according to the message settings, the user and the customer service have a conversation and send messages in proportion.

[0070] During the execution of the stress test of the embodiment of the present application, it is ensured that the data of a request corresponds to the data of the user information table, and the user consistency of a request is maintained, which is conducive to accurately evaluating the performance of the system in real scenarios. The number of user information configuration tables is controlled to control the number of users who initiate sessions, so that the number of users who initiate sessions can be flexibly controlled, user scenarios of different scales can be simulated, and the performance of the system under different loads can be observed. By adjusting the configuration data of the number of messages, the performance and carrying capacity of the system under different load conditions are observed, which helps to determine the bottleneck and optimization direction of the system. And it includes exception handling, such as: if the session generation fails, the process ends, and the abnormal end branch situation is recorded, which helps to identify the problem and make subsequent improvements and repairs.

[0071] After executing the above multi-user stress simulation test process, the test results are also verified. The verification process includes: performing checks, and the sessions eventually enter the final state. This step ensures that all sessions eventually enter the final state, that is, the sessions end normally according to the set process, which helps to verify the integrity and correctness of session management. The total number of opened sessions is compared with the number of seats that have undertaken services to ensure that the total number of opened sessions is equal to the number of seats that have undertaken services. This can be used to verify the matching of session allocation and service seats. Calculate the number of messages in a session, where the number of messages in a session = (the number of messages sent by the agent + the number of messages sent by the user) * the number of polling messages; by calculating the number of messages in a session, the correctness of message sending can be verified, which includes considering the number of messages sent by the agent and the user and the number of polling messages. Calculate the total number of processed messages, where the total number of processed messages after the stress test ends = the number of messages sent in a session * the total number of opened sessions; this helps to verify whether the number of messages processed during the entire stress test meets expectations. Finally, the normality of service processing is checked. The expected stress test service processing is normal without abnormal errors. This is an important indicator to ensure that the system performs well during the stress test and can process requests normally.

[0072] The stress testing method of the embodiment of the present application observes the performance and carrying capacity of the system in different scenarios according to different configuration data, ensures that the user is the same throughout the entire conversation process, and opens multiple sessions to achieve the purpose of stress testing, which helps to simulate the real user experience and evaluate the performance of the system in actual usage scenarios. In addition, it is also possible to simulate third-party feedback information to process stress testing, exempt third-party restrictions, and draw stress testing conclusions for self-developed services, which provides a reference for system design and improvement. Through the stress testing method of the embodiment of the present application, the performance, stability and carrying capacity of the system can be comprehensively evaluated, potential problems can be found, and guidance can be provided for system optimization, ensuring that the system can provide stable and efficient services in actual use. In addition, the verification process helps to verify whether the performance of the system during the stress test meets expectations and ensure the stability and reliability of the system under high load conditions.

[0073] See also Figure 5 , Figure 5 This is an overall framework diagram of a test system provided by an embodiment of the present application. Among them, the data arrangement module is responsible for providing the required simulated user data and related configuration information for the test process, and passing these data to the WeChat customer service protocol proxy module. The WeChat customer service protocol proxy module implements three functions: user message management, user status management, and WeChat customer service protocol encapsulation.

[0074] User message management is responsible for storing user messages in local memory, managing and processing user messages. For example, the Redis cache middleware receives real-time user and agent information data simulated by the data orchestration module, including chat messages and events generated by them, so as to realize the orchestration and management of chat data and event data. The data orchestration module can simulate not only chat messages between users and agents, but also various event data, which are transmitted in real time through the Redis cache middleware. The data orchestration module can also send special messages, such as user status reset messages. When receiving such messages, the system can reset the user's status in the user status management module to the specified status, which helps to simulate various user behavior scenarios. The information sent by the data orchestration module can be temporarily stored in the Redis cache middleware, so as to achieve the purpose of fast access to data and improve the response speed and performance of the system.

[0075] User status management is used to manage the status lifecycle of WeChat users and track the status changes of users in the application. For example, the latest status of WeChat users is stored in real time through the Redis cache middleware, which can ensure the timely update and management of user status on the WeChat side. The AOP (Aspect-Oriented Programming) aspect technology of the Java Spring framework is also used to intercept requests sent to WeChat, so that the user status management layer is called during the request transmission process to achieve maintenance, reading and change operations of user status during stress testing.

[0076] The WeChat Customer Service Protocol Encapsulation includes the WeChat Status Lifecycle Agent and the WeChat Interface Agent, which are used to handle functions related to the WeChat Customer Service Protocol, such as managing the WeChat Status Lifecycle and communicating with the WeChat interface. The integration of these functions enables the WeChat Customer Service Protocol Agent module to effectively manage user messages, user status, and interact with WeChat Customer Service functions. Figure 6 , Figure 6It is an interaction diagram between a WeChat customer service conversation simulation device and a service to be evaluated provided by an embodiment of the present application, and the WeChat customer service conversation simulation device includes a data arrangement module and a WeChat customer service protocol proxy module, and the service to be evaluated can be a target application. Among them, the WeChat customer service protocol proxy module obtains data from the proxy layer of the service to be evaluated in real time based on the WeChat customer service standard protocol, and queries the latest status of the user from the proxy layer of the service to be evaluated in real time based on the WeChat customer service standard protocol. Among them, the WeChat customer service standard protocol stipulates the communication method, data format, message transmission agreement and other specifications between the customer and the customer service. The proxy layer refers to the middle layer in the service to be evaluated that is responsible for communicating and exchanging data with an external system or module. Here, the WeChat customer service protocol proxy module can obtain the required data from the proxy layer of the service to be evaluated in real time, and these data may include user messages, status information or other relevant data. In addition to obtaining data, the WeChat customer service protocol proxy module can also query the latest status of the user from the proxy layer of the service to be evaluated in real time based on the WeChat customer service standard protocol, which means that the module can send a query request to the service to be evaluated in a manner specified by the protocol to obtain the latest information about the user's current status. The WeChat customer service protocol proxy module uses the WeChat customer service standard protocol and the proxy layer of the service to be evaluated to perform real-time data acquisition and user status query to achieve functions such as user message management, user status management and WeChat customer service protocol encapsulation. This mechanism helps to maintain real-time synchronization and coordination between systems, ensuring accurate transmission and updating of user status and data between different modules.

[0077] The target application is the application to be tested, and can also refer to the service or system to be evaluated. It includes the entry layer, WeChat service and the basic layer. The entry layer, as the entrance to the application, refers to the first layer of interface or interface for users to interact with the system. The entry layer includes: the entrance of the application, which is where the user begins to experience the application. It can be a login page, homepage or navigation page. Users enter the functional area of ​​the application through these interfaces. WeChat customer service transfer page, which refers to the page or interface that users access to the application through the WeChat customer service system. On this page, users can start interacting with the application, ask questions to customer service or get help. B-end gateway, which refers to the gateway or access point for enterprise customers (Business-to-Business, B-end), used to connect enterprise customers and system services. WeChat customer service is used to process functions related to WeChat customer service, including message processing (such as entering session events, chat messages, etc.), processing implementation (such as session management, queue management, etc.) and callback message processing. The basic layer provides basic functions and service support for the application. This embodiment realizes comprehensive testing and evaluation of the target application through collaboration between the data orchestration module, the WeChat customer service protocol proxy module and the target application.

[0078] See also Figure 7 , Figure 7: is a flow chart of a test method provided in an embodiment of the present application. The method can be applied to the above-mentioned test system. The method includes:

[0079] S101, generating simulated user data corresponding to a target application according to a conversation scenario;

[0080] S102, processing the simulated user data according to the preset specification information of the WeChat customer service protocol to obtain processed simulated user data;

[0081] S103, based on the processed simulated user data, simulating the behavior of the WeChat customer service system to process the message interaction between the simulated user and the virtual agent, and obtaining a response result corresponding to the message interaction;

[0082] S104: Verify and evaluate the performance of the target application according to the response result.

[0083] Among them, S101, generating simulated user data corresponding to the target application according to the conversation scenario, includes: configuring the conversation scenario corresponding to the target application; generating simulated user data according to the configured conversation scenario, the simulated user data including user information, conversation flow, message content and trigger conditions.

[0084] The configuration of the session scenario corresponding to the target application includes: defining the session life cycle corresponding to the target application; defining the state transition experienced by the simulated user in the session life cycle; determining the conditions for triggering the state transition; and setting the scenario parameters according to the session life cycle, the state transition and the conditions for the state transition.

[0085] Among them, S102, the simulated user data is processed according to the standard information of the preset WeChat customer service protocol, and the processed simulated user data includes: defining the standard information of the WeChat customer service protocol, the standard information includes message type, format requirements, session flow, user information and trigger conditions; generating unique user information for identifying the user identity according to the standard information, the session flow that complies with the standard information, the message content that complies with the standard information, and the trigger conditions that comply with the standard information.

[0086] Among them, S103, based on the processed simulated user data, realizes the behavior of simulating the WeChat customer service system to process the message interaction between the simulated user and the virtual agent, and obtains the response result corresponding to the message interaction, including: based on the processed simulated user data, controls the simulated user to send a message, and the message includes text, picture, voice, and video; receives the message through the set virtual agent, and generates a response message to the message; records the response result of each message interaction.

[0087] In some embodiments, the method also includes: configuring parameters for multi-user stress testing based on the processed simulated user data, the parameters including the number of simulated users, message sending frequency and message type; storing the simulated users corresponding to the configured number of simulated users into a preset user information table; determining the corresponding session scenario according to the number of simulated users and the message type; selecting a preset number of simulated users from the user information table, and controlling the preset number of simulated users to send messages based on the message sending frequency; triggering events in the session scenario through messages sent by the preset number of simulated users to realize message interaction between the simulated users and the virtual agents; at the end of the message interaction between the simulated users and the virtual agents, detecting whether the current number of simulated users has reached the preset number of stress test users; if not, continuing to select the preset number of simulated users based on the user information table, and executing a new round of message interaction process until the preset number of stress test users is reached.

[0088] Wherein, S104, verifying and evaluating the performance of the target application according to the response result includes: obtaining the session status according to the response result to determine whether all the sessions have entered the final state; obtaining the total number of opened sessions and the number of seats undertaken according to the response result to detect whether the total number of sessions is the same as the number of seats; verifying the number of messages in a single session and the total number of messages processed according to the response result; and detecting whether there is an abnormal error. Wherein, verifying the number of messages in a single session according to the response result, that is, checking whether the number of messages in a single session is equal to the value obtained by (the number of messages sent by the seat + the number of messages sent by the user) * the number of polling messages. By calculating the number of messages in a single session, the correctness of message sending can be verified, which includes considering the number of messages sent by the seat and the user and the number of polling messages. If it is found during the verification process that the number of messages in a single session is not equal to the value obtained by (the number of messages sent by the seat + the number of messages sent by the user) * the number of polling messages, this may indicate that some problems or errors exist. The total number of messages processed is also verified based on the response result, that is, the total number of messages processed is calculated, where the total number of messages processed after the stress test is completed = the number of messages sent in one session * the total number of sessions opened. If this equation holds, it means that the number of messages processed during the entire stress test is in line with expectations, and thus, the accuracy of the system in processing messages during the entire stress test can be confirmed. If the above equation does not hold, it means that the total number of messages processed is not in line with expectations, and there may be problems such as data loss or duplication, system anomalies or performance issues, and calculation logic errors. Appropriate corrective measures can be taken to ensure the accuracy and consistency of the system in processing messages.

[0089] It should be noted that the above test method can be applied to the above test system provided in the embodiment of the present application, and has the corresponding functions and beneficial effects of the above system. For technical details not fully described in the embodiment of the method, please refer to the above test system provided in the embodiment of the present application.

[0090] See also Figure 8 , Figure 8 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device includes one or more processors and a memory. The memory is connected to the one or more processors, for example, connected to the processor via a bus.

[0091] The processor is configured to support the electronic device to perform the corresponding functions in the method in the above method embodiment. The processor can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0092] The memory is used to store program codes, etc. The memory may include volatile memory (VM), such as random access memory (RAM); the memory may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memory.

[0093] The memory can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the test method in the embodiment of the present application. The processor executes various functional applications and data processing of the test method and the test system by running the non-volatile software programs, instructions and modules stored in the memory, that is, realizes the functions of the test method and each module or unit of the test system provided by the above method embodiment.

[0094] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. The data storage area may store data created according to the use of the test system, etc. In some embodiments, the memory may include a memory remotely arranged relative to the processor, and these remote memories may be connected to the test system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0095] The one or more modules are stored in the memory, and when executed by the one or more processors, execute the test method in any of the above method embodiments, for example, execute the method steps described in the above method embodiments to realize the functions of the modules described in the above device embodiments.

[0096] The electronic device of the embodiment of the present application may specifically be an ultra-mobile personal computer device, a server or a server cluster, etc.

[0097] The embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as Figure 8 A processor 21 in the embodiment may enable the one or more processors to execute the test method in any of the above method embodiments.

[0098] An embodiment of the present application provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by the electronic device, the electronic device is enabled to execute the test method in any of the above method embodiments.

[0099] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0100] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A testing method, characterized in that: The method comprises: Generate simulated user data corresponding to the target application based on the session scenario; Processing the simulated user data according to the preset specification information of the WeChat customer service protocol to obtain processed simulated user data; Based on the processed simulated user data, the behavior of the WeChat customer service system is simulated to process the message interaction between the simulated user and the virtual agent, and obtain the response result corresponding to the message interaction; The performance of the target application is verified and evaluated according to the response result.

2. The method according to claim 1, characterized in that The generating of simulated user data corresponding to the target application according to the session scenario includes: Configuring a session scenario corresponding to the target application; According to the configured session scenario, simulated user data is generated, and the simulated user data includes user information, session flow, message content, and trigger conditions.

3. The method according to claim 2, characterized in that The configuring the session scenario corresponding to the target application includes: Defining a session lifecycle corresponding to the target application; Define the state transitions that a simulated user goes through during the lifecycle of the session; determining a condition triggering the state transition; Scenario parameters are set according to the session life cycle, the state transition, and the condition of the state transition.

4. The method according to claim 1, characterized in that: The processing of the simulated user data according to the preset specification information of the WeChat customer service protocol to obtain the processed simulated user data includes: Define the specification information of the WeChat customer service agreement, the specification information including message type, format requirements, session flow, user information and trigger conditions; Unique user information for identifying a user identity, a conversation flow that complies with the standard information, message content that complies with the standard information, and a trigger condition that complies with the standard information are generated according to the standard information.

5. The method according to any one of claims 1 to 4, characterized in that: Based on the processed simulated user data, the behavior of simulating the WeChat customer service system is realized to process the message interaction between the simulated user and the virtual agent, and obtain the response result corresponding to the message interaction, including: Based on the processed simulated user data, control the simulated user to send a message, wherein the message includes text, picture, voice, and video; Receiving the message through a set virtual agent and generating a response message to the message; Record the response result of each message interaction.

6. The method according to claim 5, characterized in that The method further comprises: Based on the processed simulated user data, configure parameters of the multi-user stress test, the parameters including the number of simulated users, message sending frequency and message type; The simulated users corresponding to the configured number of simulated users are stored in a preset user information table; Determining a corresponding session scenario according to the number of simulated users and the message type; Selecting a preset number of simulated users from the user information table, and controlling the preset number of simulated users to send messages based on the message sending frequency; Triggering events in the conversation scenario through messages sent by the preset number of simulated users, so as to realize message interaction between the simulated users and the virtual agents; When the message interaction between the simulated user and the virtual agent ends, detecting whether the number of current simulated users reaches a preset number of stress test users; If not reached, a preset number of simulated users is continuously selected based on the user information table, and a new round of message interaction process is executed until the preset number of stress test users is reached.

7. The method according to claim 5, characterized in that The verifying and evaluating the performance of the target application according to the response result includes: Obtaining the session status according to the response result to determine whether all sessions have entered a final state; Obtaining the total number of opened sessions and the number of seats taken according to the response result to detect whether the total number of sessions is the same as the number of seats; Verify the number of messages in a single session and the total number of messages processed according to the response result; Check whether there are any abnormal errors.

8. A testing system, characterized in that: The system includes: a data arrangement module, a WeChat customer service protocol agent module and a test verification module; The data arrangement module is used to generate simulated user data corresponding to the target application according to the session scenario; The WeChat customer service protocol proxy module is used to obtain the simulated user data; process the simulated user data according to the preset specification information of the WeChat customer service protocol; based on the processed simulated user data, realize the behavior of simulating the WeChat customer service system to process the message interaction between the simulated user and the virtual seat, and obtain the response result corresponding to the message interaction; The test verification module is used to verify and evaluate the performance of the target application according to the response result.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is connected to the processor, and the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the electronic device implements the test method as described in any one of claims 1 to 7.

10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by an electronic device, the electronic device executes the testing method according to any one of claims 1 to 7.