Terminal online test method and system

The test equipment is tested by generating a heartbeat message by terminal equipment, which solves the problems of high cost and poor efficiency of stress testing of traditional gateway equipment, and realizes a more efficient testing process.

CN119402398APending Publication Date: 2025-02-07WUHAN SIPU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411546042.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

Traditional gateway equipment stress testing requires a large number of terminal equipment, resulting in high testing costs and poor efficiency.

Method used

The terminal device generates a corresponding number of heartbeat messages and tests the test equipment to be tested, thereby obtaining its operating status and improving the test efficiency.

Benefits of technology

Reduces the number of terminal devices applied, reduces testing costs, and improves stress testing efficiency for gateway devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402398A_ABST
    Figure CN119402398A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of terminal equipment, and provides a terminal online test method and system.The terminal online test system comprises terminal equipment and equipment to be tested which are in communication connection with each other, and the method comprises the steps that in response to a test instruction received by the terminal equipment, terminal construction parameters are determined, the terminal construction parameters at least comprise the number of analog terminals; generating heartbeat messages corresponding to the number of the analog terminals based on the terminal construction parameters; and based on the heartbeat message, testing the to-be-tested equipment to obtain the running state of the to-be-tested equipment. Therefore, the heartbeat message can be generated according to the analog terminal, and the validity of the connection between the analog terminal and the to-be-tested equipment is verified through the heartbeat message, so that the specification and the operation stability of the to-be-tested equipment are tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] For a computer system or device used to provide data conversion services between multiple networks, such as a gateway device, after assembly, it is necessary to perform corresponding functional tests on it so that the gateway device can support data conversion services for multiple networks.

[0003] The test of the gateway device includes stress test for checking the performance, stability and reliability of the gateway device. However, the traditional stress test requires a large number of terminals that can access the network for testing. When a large number of terminals are stress tested at the same time, the concurrent performance of requests sent by different terminals is poor, which increases the cost of stress testing and reduces the efficiency of stress testing, which is not conducive to stress testing of gateway devices. Summary of the invention

[0004] The embodiments of the present application provide a terminal online testing method and system to solve the problem of high testing cost and poor testing efficiency when a gateway device performs stress testing by using an online terminal.

[0005] In the first aspect, the embodiment of the present application provides a terminal online test method, which is applied to a terminal online test system, wherein the terminal online test system includes a terminal device and a device to be tested that establish a communication connection with each other, and the method includes: in response to the terminal device receiving a test instruction, determining terminal construction parameters, the terminal construction parameters at least including the number of simulated terminals; based on the terminal construction parameters, generating a heartbeat message corresponding to the number of simulated terminals; based on the heartbeat message, performing a test on the device to be tested to obtain the operating status of the device to be tested. In this way, a heartbeat message can be generated according to the simulated terminal, and the validity of the connection between the simulated terminal and the device to be tested can be verified through the heartbeat message, thereby testing the specifications and operating stability of the device to be tested.

[0006] In a feasible implementation, based on the heartbeat message, the device to be tested is tested to obtain the operating status of the device to be tested, including: sending a heartbeat message to the device to be tested; obtaining the online status of the simulated terminal according to the heartbeat message; and determining the operating status of the device to be tested according to the online status of the simulated terminal. In this way, the connection status of the simulated terminal can be determined based on the heartbeat message, thereby determining the operating status of the device to be tested, thereby improving the test efficiency of the device to be tested.

[0007] In a feasible implementation, based on the terminal construction parameters, generating heartbeat messages corresponding to the number of simulated terminals includes: constructing simulated terminals corresponding to the number of simulated terminals; generating heartbeat messages corresponding to each simulated terminal. In this way, the simulated terminals can be used to test the devices to be tested, reducing the number of terminal devices used and reducing the testing cost.

[0008] In a feasible implementation, generating a heartbeat message corresponding to each simulated terminal includes: generating at least one IP address, the number of IP addresses is less than or equal to the number of simulated terminals; binding the simulated terminal to a first IP address, the first IP address being any one of the at least one IP address; generating a heartbeat message corresponding to each simulated terminal, the heartbeat message including information corresponding to the first IP address. In this way, the simulated terminal can be bound based on the IP address and the simulated terminal can be identified, so that the device to be tested can distinguish the source of the heartbeat message and optimize the test process.

[0009] In a feasible implementation, before binding the simulated terminal to the first IP address, the method further includes: generating a media access control MAC address corresponding to the number of simulated terminals, wherein the media access control MAC address corresponds to the simulated terminal one by one. In this way, the simulated terminal can be identified by the MAC address, thereby improving the recognition of the simulated terminal on the device to be tested.

[0010] In a feasible implementation, before binding the simulated terminal to the first IP address, the method further includes: generating a random machine code corresponding to the number of simulated terminals, wherein the random machine code corresponds to the simulated terminal one by one. In this way, the simulated terminal can be identified by the random machine code, thereby improving the recognition of the simulated terminal on the device to be tested.

[0011] In a feasible implementation, generating a heartbeat message corresponding to each simulated terminal also includes: generating a heartbeat message according to the media access control MAC address, random machine code and first IP address corresponding to the simulated terminal, wherein the heartbeat message includes information corresponding to the media access control MAC address, random machine code and first IP address. In this way, the simulated terminals can be distinguished by using a variety of information, thereby avoiding the problem of unclear correspondence between the simulated terminals and the heartbeat messages, and optimizing the test process.

[0012] In a feasible implementation, obtaining the terminal online status according to the heartbeat message includes: verifying the heartbeat message; if the heartbeat message is verified, generating the terminal online status of the simulated terminal corresponding to the heartbeat message. In this way, the device to be tested implements the verification process based on the heartbeat message, thereby improving the test efficiency.

[0013] In a feasible implementation, determining the operating state of the device to be tested according to the terminal online state includes: determining the number of online simulated terminals based on the terminal online state; and determining the operating state of the device to be tested according to the number of online terminals. In this way, the specification of the device to be tested, that is, the number of devices supported by the device to be tested for connection, can be determined based on the number of online terminals, thereby obtaining the stress test result of the device to be tested.

[0014] In the second aspect, an embodiment of the present application provides a terminal online testing system, including: a terminal device, the terminal device is configured to determine terminal construction parameters in response to receiving a test instruction, the terminal construction parameters include at least the number of simulated terminals, and, based on the terminal construction parameters, generate a heartbeat message corresponding to the number of simulated terminals; a device to be tested, there is a communication connection between the device to be tested and the terminal device, and the device to be tested is configured to generate an operating status of the device to be tested based on the heartbeat message.

[0015] It can be understood that the terminal online test system provided in the second aspect applies the terminal online test method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the terminal online test method provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0017] Figure 1 A flowchart of a terminal online testing method provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of an input interface for a test instruction provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of a process for generating a simulated terminal and a heartbeat message provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of a process for generating a heartbeat message provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a process for determining an operating state provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of displaying the online status of a simulated terminal provided in an embodiment of the present application;

[0023] Figure 7A schematic diagram of the structure of a terminal online testing system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solution of the embodiment of the present application will be clearly described below in conjunction with the drawings in the embodiment of the present application.

[0025] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

[0026] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0027] A gateway device is a computer system or device that provides data conversion services between multiple networks. In addition to providing the function of connecting networks, gateway devices can also install plug-ins to issue policies to online terminals and audit the behavior of online terminals, thereby ensuring smooth and secure network communications.

[0028] Because gateway devices play an important role in network communications, they need to be tested before they are officially used to determine their performance and reliability. Traditional testing methods usually require connecting multiple terminal devices with test clients to the gateway device to perform online testing to determine the specifications, reliability and other parameter information of the gateway device.

[0029] However, the use of multiple terminals for testing has the problems of high testing costs, cumbersome testing steps, and the problem of poor parallelism of messages sent by the terminals, which reduces the test effect. Therefore, a terminal online testing method is provided in an embodiment of the present application to test the gateway device, and a corresponding number of heartbeat messages are generated by one terminal to test the gateway device, thereby obtaining the running status of the gateway device and improving the testing efficiency of the gateway device.

[0030] Figure 1 A flowchart of a terminal online testing method provided in an embodiment of the present application.

[0031] like Figure 1 As shown, the terminal online test method provided in the embodiment of the present application can be applied to a corresponding terminal online test system, and the terminal online test system may include a terminal device and a device to be tested that establish a communication connection with each other. The implementation process of the test method may include the following steps:

[0032] S100: In response to the terminal device receiving a test instruction, determining terminal configuration parameters.

[0033] In the embodiment of the present application, the test instruction is an instruction input by a user into a terminal device. Taking the terminal device as a computer as an example, the test instruction may be an instruction input by a user into the terminal device using a keyboard connected to the terminal device.

[0034] After receiving the test instruction, the terminal device can determine the terminal configuration parameters used by the terminal device to construct the simulated terminal based on the content included in the test instruction. Exemplarily, the terminal configuration parameters may at least include the number of simulated terminals, that is, the number of simulated terminals generated by the terminal device.

[0035] It should be understood that the terminal construction parameters are parameter information used by the terminal device to construct a simulated terminal. Therefore, the terminal construction parameters may also include other parameters related to the simulated terminal, such as IP address, media access control MAC address, device code, etc. This application does not impose any other restrictions on the specific content included in the terminal construction parameters.

[0036] Figure 2 A schematic diagram of an input interface for a test instruction provided in an embodiment of the present application.

[0037] like Figure 2 As shown, in some embodiments of the present application, before the terminal device performs the test task of the device to be tested, the command input interface 10 may be displayed. The command input interface 10 may include a command input control 11 and a test control 12, wherein the command input control 11, when selected, may respond to the user's input operation and display the user's input content. The test control 12 may respond to the user's click operation and determine the terminal construction parameters based on the content in the command input control 11.

[0038] It should be understood that after the test control 12 is triggered, the terminal device receives the test instruction, and at this time the terminal device can verify the content in the instruction input control 11. When the terminal configuration parameters can be determined based on the content, the terminal device can determine the terminal configuration parameters based on the content. If the terminal configuration parameters cannot be determined based on the content in the instruction input control 11 after verification, the terminal device can display a prompt message to prompt the user to re-enter the information.

[0039] S200: Generate heartbeat messages corresponding to the number of simulated terminals based on the terminal construction parameters.

[0040] After obtaining the terminal configuration parameters, the terminal device can generate corresponding heartbeat messages based on the terminal configuration parameters to test the device to be tested. Specifically, the terminal device can generate heartbeat messages corresponding to the number of simulated terminals by reading the information in the terminal configuration parameters. For example, the number of simulated terminals is 100 as an example, and the number of heartbeat messages generated by the terminal device is also 100.

[0041] It should be noted that the terminal online test method provided by the embodiment of the present application is used to test the specifications and operational reliability of the device to be tested, and the heartbeat message is a message generated periodically based on the system. On this basis, the terminal device can construct a simulated terminal so that the generated heartbeat message can be sent in parallel to perform a stress test on the device to be tested.

[0042] It should be understood that the heartbeat message is a mechanism for maintaining connection activity in network communication, and is used to detect the validity of the connection between the terminal device and the gateway device. By sending the heartbeat message regularly, it can be confirmed whether the two parties of the connection are still online. In the embodiment of the present application, the heartbeat message is sent by the simulation terminal to confirm the connection between the gateway device and the simulation terminal, and the connection status between the gateway device and the simulation terminal is obtained, and then the test result of the gateway device can be obtained through factors such as the number of connections and connection stability in the connection status.

[0043] Figure 3 A schematic diagram of a process for generating a simulated terminal and a heartbeat message is provided in an embodiment of the present application.

[0044] In the embodiments of the present application, Figure 3 As shown, the process of generating a heartbeat message may include the following steps S210 and S220.

[0045] S210: Construct simulated terminals corresponding to the number of simulated terminals.

[0046] After obtaining the terminal construction parameters, the terminal device can construct simulated terminals corresponding to the number of simulated terminals based on the terminal construction parameters. For example, taking the number of simulated terminals as 100 as an example, the number of simulated terminals constructed by the terminal device is also 100.

[0047] It should be understood that the simulation terminal constructed by the terminal device can be used to send heartbeat messages to the device to be tested. Therefore, in some embodiments of the present application, the action of generating a heartbeat message can be implemented in the simulation terminal. That is, when the terminal device constructs the simulation terminal, it is necessary to allocate computing resources to each simulation terminal so that it can generate a heartbeat message corresponding to each simulation terminal.

[0048] In another part of the embodiments, the heartbeat message may also be directly generated by the terminal device and then distributed to each simulation terminal, so that the heartbeat message can be sent through the simulation terminal.

[0049] In the embodiment of the present application, after the simulation terminal is constructed, a connection between each simulation terminal and the device to be tested can be established through a preset process, so that the heartbeat message generated subsequently can detect the connection between the simulation terminal and the device to be tested to determine the specifications and operating stability of the device to be tested. Among them, the preset process for establishing the connection is related to the protocol for establishing the connection between the simulation terminal and the device to be tested. Taking the TCP / IP protocol as an example, the preset process can be a three-way handshake process.

[0050] S220: Generate a heartbeat message corresponding to each simulated terminal.

[0051] After the action of constructing the simulation terminal is completed and the connection between the simulation terminal and the device to be tested is established, the terminal device can generate a heartbeat message corresponding to each simulation terminal respectively, so as to verify the connection between the simulation terminal and the device to be tested through the heartbeat message, thereby realizing the test process of the device to be tested through the heartbeat message.

[0052] In an embodiment of the present application, a heartbeat message is generated based on information corresponding to each simulated terminal. When multiple heartbeat messages are sent to the device to be tested in parallel, identification information can be set in each heartbeat message so that the device to be tested can distinguish the heartbeat messages, and then distinguish different simulated terminals, so as to achieve the purpose of stress testing the device to be tested using multiple simulated terminals.

[0053] Figure 4 A schematic diagram of a process for generating a heartbeat message provided in an embodiment of the present application.

[0054] Exemplarily, the information used to distinguish different simulated terminals and their corresponding heartbeat messages may include any parameter such as IP address, media access control MAC address, device code, etc. Figure 4 As shown, the process of generating a heartbeat message corresponding to a simulated terminal may include the following steps:

[0055] S221: Generate at least one IP address.

[0056] In the embodiment of the present application, the IP address generated by the terminal device needs to conform to the format of the IP address and the corresponding value range. When generating an IP address, one IP address can be used as the starting point, and the number of generated IP addresses is less than or equal to the number of simulated terminals. Exemplarily, the starting IP address can be 1.1.1.1 or other IP addresses. The embodiment of the present application does not impose any other restrictions on the generation of IP addresses.

[0057] It should be understood that there can be a one-to-one relationship between the analog terminal and the IP address, that is, one analog terminal corresponds to one IP address, and there can be a one-to-many relationship between the IP address and the analog terminal, that is, one IP address can correspond to multiple analog terminals. The corresponding relationship between the analog terminal and the IP address is related to the number of analog terminals and IP addresses generated. If the number of analog terminals and IP addresses generated is the same, each analog terminal can correspond to one IP address.

[0058] S222: Generate media access control MAC addresses corresponding to the number of simulated terminals.

[0059] In the embodiment of the present application, the media access control MAC address corresponds to the analog terminal one-to-one. A MAC address (Media Access Control Address) is an address used to identify the location of a terminal device in a network. The MAC address corresponding to each terminal device is unique, that is, the terminal device and the MAC address are in a one-to-one correspondence.

[0060] It should be understood that the MAC address in the embodiment of the present application is randomly generated by the terminal device based on the simulated terminal, which is only used to indicate the identity of the simulated terminal and has no other functions. Exemplarily, the MAC address can be 6 bytes, a total of 48 bits of binary random number, or a 12-bit hexadecimal random number, with colons used to separate each two bits, for example, 00:14:22:0a:2c:49 can be used as an exemplary MAC address. This application does not impose any other restrictions on the format and specific content of the MAC address generated by the terminal device.

[0061] S223: Generate a random machine code corresponding to the number of simulated terminals.

[0062] Like the MAC address, the random machine code is also a parameter randomly generated by the terminal device, and the random machine code corresponds to the simulated terminal one by one, thus generating the terminal device. The random machine code is a string used to verify the identity of the simulated terminal and is used for the hardware configuration information of the virtual simulated terminal, so that during the test, the device registration and authorized connection can be completed on the side of the device to be tested.

[0063] It should be noted that the random machine code is a string used to identify the hardware configuration. Therefore, in the process of generating the random machine code, the terminal device can read its own hardware configuration and generate the random machine code according to the hardware configuration. Furthermore, the terminal device can also store a variety of different hardware configuration information. When generating the random machine code, the terminal device can read the stored hardware configuration information, select the hardware configuration information that meets the number of simulated terminals, and generate the random machine code based on the hardware configuration information.

[0064] It should be understood that the execution order in the embodiments of the present application is not fixed, that is, the generation order of the IP address, MAC address and random machine code is not fixed, the three parameters can be generated in any order, and the three parameters can also be generated at the same time. In some embodiments, steps S221 to S223 can also be executed before the simulation terminal is generated, that is, before step S210, so that the terminal binding is directly performed after the simulation terminal is generated.

[0065] S224: Bind the simulation terminal to the first IP address.

[0066] The first IP address is any one of the at least one IP address. After the IP address and the simulated terminal are generated, the first IP address can be selected for binding according to the corresponding relationship, that is, one simulated terminal corresponds to one IP address.

[0067] Exemplarily, taking the generation of three simulated terminals and the starting address of the IP address being 1.1.1.1 as an example, if the generated IP addresses include 1.1.1.1, 1.1.1.2, and 1.1.1.3, the IP addresses can be allocated and bound in sequence based on the generation order of the simulated terminals; if the number of generated IP addresses is less than the number of simulated terminals, for example, two IP addresses 1.1.1.1 and 1.1.1.2 are generated, matching can also be performed based on the generation order of the simulated terminals, that is, the first and third generated simulated terminals correspond to the IP address 1.1.1.1, and the second generated simulated terminal corresponds to the IP address 1.1.1.2.

[0068] It should be understood that the generation and binding of the above-mentioned IP address is only a feasible implementation method in the embodiment of the present application, and the present application does not limit the binding process of the simulation terminal and the IP address.

[0069] It should be noted that, when the terminal device generates a MAC address and / or a random machine code, the simulation terminal can also bind the MAC address and the random machine code respectively based on the above-mentioned IP address binding method.

[0070] S225: Generate a heartbeat message corresponding to each simulated terminal.

[0071] After the IP address binding is completed, a heartbeat message can be generated based on the IP address corresponding to each simulated terminal, and the heartbeat message can include information corresponding to the first IP address to identify the information of the simulated terminal.

[0072] In an embodiment of the present application, when a terminal device generates a heartbeat message, a corresponding heartbeat message can be generated based on the address information bound to the simulated terminal. For example, when the simulated terminal is bound to a MAC address and an IP address at the same time, a heartbeat message including information corresponding to the MAC address and the IP address can be generated. Further, when the simulated terminal is bound to a MAC address, a random machine code, and an IP address, a heartbeat message can be generated based on the MAC address, the random machine code, and the IP address corresponding to the simulated terminal. Accordingly, the generated heartbeat message can include information corresponding to the MAC address, the random machine code, and the IP address.

[0073] It should be noted that the information corresponding to the MAC address, random machine code and IP address in the heartbeat message are all address characters that identify the simulated terminal, which can be used to avoid the problem of incorrect identification of the device to be tested and improve the test efficiency of the device to be tested.

[0074] S300: Based on the heartbeat message, a test is performed on the device to be tested to obtain the operating status of the device to be tested.

[0075] After obtaining the heartbeat message, the device to be tested can be tested based on the heartbeat message. Specifically, after the terminal device constructs a simulation terminal, the simulation terminal can be used to periodically generate heartbeat messages to test the specifications and operating stability of the device to be tested, obtain the connection validity of different simulation terminals, and thus obtain the operating status of the device to be tested.

[0076] Figure 5 A schematic diagram of a process for determining an operating status provided in an embodiment of the present application.

[0077] like Figure 5 As shown, after receiving the heartbeat message, the terminal device can implement the test of the device to be tested based on the communication connection between the terminal device and the device to be tested. Specifically, determining the operating status of the device to be tested can be implemented based on the following steps:

[0078] S310: Send a heartbeat message to the device to be tested.

[0079] The terminal device can send a heartbeat message to the device under test based on the communication connection. When the device under test operates normally, it can respond to the heartbeat message. Through the response information, the online status of the simulated terminal can be obtained, thereby determining the operating status of the device under test.

[0080] S320: Obtain the online status of the simulated terminal according to the heartbeat message.

[0081] In this embodiment, the online status of the simulated terminal can be obtained based on the heartbeat message. Specifically, after receiving the heartbeat message, the device to be tested can verify the heartbeat message through the content included in the heartbeat message, thereby matching the heartbeat message with the corresponding simulated terminal, and then judging whether the connection of the corresponding simulated terminal is valid. When the heartbeat message verification passes and the connection between the corresponding simulated terminal and the device to be tested is valid, the terminal online status of the simulated terminal corresponding to the heartbeat message is generated.

[0082] Figure 6 A schematic diagram of displaying the online status of a simulated terminal provided in an embodiment of the present application.

[0083] like Figure 6 As shown, after the heartbeat message is verified, a confirmation message can be fed back to the terminal device, so that the terminal device can display the simulated terminal with normal connection, where the host name can be the name generated by the terminal device based on the IP address corresponding to the simulated terminal, and the IP address and MAC address are the parameters generated and bound to the simulated terminal in the aforementioned implementation, and the system version and system patch are the status of the operating system of the terminal device. The corresponding simulated terminal can be determined by the host name and its corresponding IP address and MAC address.

[0084] S330: Determine the operating status of the device to be tested according to the online status of the simulated terminal.

[0085] like Figure 6 As shown, the number of online simulated terminals can be determined based on the online status of the terminals displayed in the terminal device, and the number of online simulated terminals is the same as the number of online terminals displayed in the terminal device.

[0086] The operating status of the device to be tested can be determined based on the number of online devices. If the number of online devices is equal to the number of generated simulated terminals, it means that the operating specifications of the device to be tested are higher than the number of generated simulated terminals. If the number of online devices is less than the number of generated simulated terminals, the specifications of the device to be tested, that is, the number of devices that can be connected, are determined based on the number of online devices.

[0087] Furthermore, the terminal device can also generate heartbeat messages periodically to verify the online status of the terminal of the device to be tested under long-term conditions, and determine the operating stability of the device to be tested based on the number of online terminals in the long-term operating state.

[0088] Figure 7 A schematic diagram of the structure of a terminal online testing system provided in an embodiment of the present application.

[0089] Based on the above-mentioned terminal online testing method, the embodiment of the present application also provides a terminal online testing system, which is used to implement the testing method provided in any of the above-mentioned embodiments. Figure 7As shown, a terminal online testing system 100 in an embodiment of the present application includes:

[0090] The terminal device 110 is configured to determine terminal configuration parameters in response to receiving a test instruction, the terminal configuration parameters at least including the number of simulated terminals, and, based on the terminal configuration parameters, generate a heartbeat message corresponding to the number of simulated terminals. In an embodiment of the present application, the terminal device may be a personal computer.

[0091] The device under test 120 has a communication connection with the terminal device 110, and the device under test 120 is configured to generate the operation status of the device under test 120 based on the heartbeat message. In the embodiment of the present application, the device under test may be a gateway device.

[0092] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A terminal online testing method, characterized in that: Applied to a terminal online test system, the terminal online test system includes a terminal device and a device to be tested that establish a communication connection with each other, and the method includes: In response to the terminal device receiving the test instruction, determining terminal configuration parameters, the terminal configuration parameters at least including the number of simulated terminals; Based on the terminal configuration parameters, generating heartbeat messages corresponding to the number of simulated terminals; Based on the heartbeat message, a test is performed on the device to be tested to obtain the operating status of the device to be tested.

2. The terminal online testing method according to claim 1, characterized in that: The step of performing a test on the device to be tested based on the heartbeat message to obtain the operating status of the device to be tested includes: Sending the heartbeat message to the device to be tested; According to the heartbeat message, obtain the online status of the simulated terminal; The operating status of the device to be tested is determined according to the online status of the simulated terminal.

3. The terminal online testing method according to claim 2, characterized in that: The step of generating a heartbeat message corresponding to the number of simulated terminals based on the terminal construction parameters comprises: constructing simulated terminals corresponding to the number of simulated terminals; Generate a heartbeat message corresponding to each of the simulated terminals.

4. The terminal online testing method according to claim 3, characterized in that: The generating of the heartbeat message corresponding to each of the simulated terminals comprises: Generate at least one IP address, the number of the IP addresses being less than or equal to the number of the simulated terminals; Binding the simulation terminal to a first IP address, wherein the first IP address is any one of the at least one IP address; Generate a heartbeat message corresponding to each of the simulated terminals, wherein the heartbeat message includes information corresponding to the first IP address.

5. The terminal online testing method according to claim 4, characterized in that: Before binding the simulated terminal to the first IP address, the method further includes: A media access control MAC address corresponding to the number of the simulated terminals is generated, and the media access control MAC address corresponds to the simulated terminals one by one.

6. The terminal online testing method according to claim 5, characterized in that: Before binding the simulated terminal to the first IP address, the method further includes: A random machine code corresponding to the number of the simulated terminals is generated, wherein the random machine code corresponds to the simulated terminals one by one.

7. The terminal online testing method according to claim 6, characterized in that: The generating of the heartbeat message corresponding to each of the simulated terminals also includes: The heartbeat message is generated according to the media access control MAC address, the random machine code and the first IP address corresponding to the simulated terminal, and the heartbeat message includes information corresponding to the media access control MAC address, the random machine code and the first IP address.

8. The terminal online testing method according to claim 7, characterized in that: The obtaining the terminal online status according to the heartbeat message includes: Verifying the heartbeat message; If the heartbeat message is verified successfully, the terminal online status of the simulated terminal corresponding to the heartbeat message is generated.

9. The terminal online testing method according to claim 8, characterized in that: The step of determining the operating state of the device to be tested according to the online state of the terminal includes: Based on the online status of the terminal, determining the online number of the simulated terminal; The operating status of the device to be tested is determined according to the online quantity.

10. A terminal online testing system, characterized in that: include: A terminal device, the terminal device being configured to, in response to receiving a test instruction, determine terminal configuration parameters, the terminal configuration parameters including at least the number of simulated terminals, and, based on the terminal configuration parameters, generate a heartbeat message corresponding to the number of simulated terminals; The device to be tested has a communication connection with the terminal device, and the device to be tested is configured to generate a running status of the device to be tested based on the heartbeat message.