Test method, device and system and computer equipment

By constructing a test instruction set and generating performance index data, the problem that existing tools cannot simulate the bidirectional information transmission performance test of a large number of home gateway devices on the Web application platform is solved, and efficient testing based on the TR069 communication protocol is achieved.

CN118827488AActive Publication Date: 2024-10-22CHINA MOBILE M2M +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311768829.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2024-10-22
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

Existing test tools cannot meet the requirements for simulating the two-way information transmission performance test of a large number of home gateway devices on the Web application platform, especially when the home gateway device acts as both a client and a server under the TR069 communication protocol.

Method used

By obtaining the test configuration data and the home gateway device supporting the TR-069 communication protocol, a test instruction set is constructed, including the first type of test instructions that respond to the Internet application platform connection request and the second type of test instructions that send data requests to the Internet application platform. Generate performance indicator data for Internet application platforms.

Benefits of technology

The controllable performance automated test process based on the TR069 communication protocol is realized, which lowers the test threshold, improves the test efficiency, and can simulate the two-way information transmission performance test of a large number of home gateway devices and Web application platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827488A_ABST
    Figure CN118827488A_ABST
Patent Text Reader

Abstract

The invention discloses a test method, device and system and computer equipment, and belongs to the technical field of communication. The method comprises the following steps: acquiring test configuration data and home gateway equipment which participates in a test and supports a TR-069 communication protocol; based on the test configuration data and the interaction data template, constructing a first type of test instruction for responding to a connection request of the Internet application platform participating in the test and a second type of test instruction for a data request sent to the Internet application platform; when a connection request sent by the Internet application platform is received, a first type of test instruction is sent to the Internet application platform; when the system is connected with the Internet application platform, a second type of test instruction is sent to the Internet application platform; and generating performance index data for testing the Internet application platform based on the connection request, the first type of test instruction and feedback data for the second type of test instruction. In this way, the performance test of the bidirectional information transmission of the Internet application platform by simulating a large number of home gateway devices based on the TR069 communication protocol can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a testing method, device, system and computer equipment. Background Art

[0002] An Internet application (Web App) is a computer program stored on a remote server and run by its users through a Web browser. For performance testing of Web applications, testing tools such as jmeter and loadRunner can usually be used. At this time, the testing tool acts as a pure client and unilaterally initiates a request for data to the Web application platform to obtain performance indicator data of the Web application platform.

[0003] However, in the interaction between the home gateway device and the Web application platform based on the TR069 communication protocol, for functions such as upgrading and parameter setting of the home gateway device, the Web application platform will first actively request to connect to the home gateway device. After receiving the response from the home gateway device, the home gateway device will then actively request to interact with the Web application platform for data. At this time, the WEB application platform and the home gateway device act as both the client and the server. As a result, the above test tool cannot meet the performance test of simulating the two-way information transmission of a large number of home gateway devices to the Web application platform. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a testing method, apparatus, system and computer equipment that can simulate the performance test of bidirectional information transmission of a large number of home gateway devices to a Web application platform based on the TR069 communication protocol.

[0005] In a first aspect, an embodiment of the present application provides a testing method, comprising:

[0006] Obtain test configuration data and the home gateway device involved in the test, where the home gateway device supports the TR-069 communication protocol;

[0007] Based on the test configuration data and the interactive data template, a test instruction set is constructed, wherein the test instruction set includes a first type of test instruction and a second type of test instruction, wherein the first type of test instruction is a test instruction for responding to a connection request of an Internet application platform participating in the test, and the second type of test instruction is an instruction for sending a data request to the Internet application platform;

[0008] In the case of receiving a connection request sent by the Internet application platform based on the device information of the home gateway device, sending a first type of test instruction to the Internet application platform; and, in the case of the home gateway device being connected to the Internet application platform, sending a second type of test instruction to the Internet application platform;

[0009] Based on the connection request, the first type of test instructions and the feedback data of the Internet application platform to the second type of test instructions, performance indicator data for testing the Internet application platform is generated.

[0010] In a second aspect, an embodiment of the present application provides a testing device, including:

[0011] An acquisition module is used to acquire test configuration data and a home gateway device involved in the test, where the home gateway device supports the TR-069 communication protocol;

[0012] A construction module, used to construct a test instruction set based on the test configuration data and the interactive data template, the test instruction set including a first type of test instruction and a second type of test instruction, the first type of test instruction being a test instruction for responding to a connection request of an Internet application platform participating in the test, and the second type of test instruction being an instruction for sending a data request to the Internet application platform;

[0013] A sending module, configured to send a first type of test instruction to the Internet application platform when receiving a connection request sent by the Internet application platform based on the device information of the home gateway device; and, when the home gateway device is connected to the Internet application platform, send a second type of test instruction to the Internet application platform;

[0014] The generation module is used to generate performance indicator data for testing the Internet application platform based on the connection request, the first type of test instructions and the feedback data of the Internet application platform to the second type of test instructions.

[0015] In a third aspect, an embodiment of the present application provides a testing system, including:

[0016] Initialization module, used to obtain test configuration data;

[0017] An environment deployment module is used to obtain a home gateway device participating in the test, where the home gateway device supports the TR-069 communication protocol; and, when the test configuration data also includes a test scenario initialization instruction, the test scenario initialization instruction includes a first test scenario initialization instruction and a second test scenario initialization instruction, and the first test scenario initialization instruction is used to instruct the home gateway device to adjust the operating state to a preset initial operating state, based on the first test scenario initialization instruction, the operating state is adjusted to the preset initial operating state; and, sending the second test scenario initialization instruction and indication information to the Internet application platform participating in the test, the second test scenario initialization instruction is used to instruct the Internet application platform to clean up the scheduled tasks, the indication information carries the device configuration information, and the indication information is used to instruct the Internet application platform to send a connection request to the home gateway device based on the device configuration information and establish a connection with the home gateway device;

[0018] A scenario management module, for constructing a test instruction set based on the test configuration data and the interactive data template, the test instruction set comprising a first type of test instruction and a second type of test instruction, the first type of test instruction being a test instruction for responding to a connection request of an Internet application platform participating in the test, and the second type of test instruction being an instruction for sending a data request to the Internet application platform;

[0019] The task management module is used to send a first type of test instruction to the Internet application platform when receiving a connection request sent by the Internet application platform based on the device information of the home gateway device; and send a second type of test instruction to the Internet application platform when the home gateway device is connected to the Internet application platform;

[0020] The monitoring management module generates performance index data for testing the Internet application platform based on the connection request, the first type of test instructions and the feedback data of the Internet application platform to the second type of test instructions; and displays the performance index data of the Internet application platform.

[0021] In a fourth aspect, an embodiment of the present application provides a computer device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the test method shown in the first aspect are implemented.

[0022] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the test method shown in the first aspect are implemented.

[0023] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the test method shown in the first aspect.

[0024] In a seventh aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the testing method shown in the first aspect.

[0025] In an embodiment of the present application, test configuration data and a home gateway device participating in the test and supporting the TR-069 communication protocol are obtained; based on the test configuration data and the interaction data template, a test instruction set is constructed, the test instruction set including a first type of test instructions and a second type of test instructions, the first type of test instructions are test instructions for responding to a connection request of an Internet application platform participating in the test, and the second type of test instructions are instructions for data requests sent to the Internet application platform; then, upon receiving a connection request sent by the Internet application platform based on device information of the home gateway device, the first type of test instructions are sent to the Internet application platform; and, when the home gateway device is connected to the Internet application platform, the second type of test instructions are sent to the Internet application platform; based on the connection request, the first type of test instructions and feedback data of the Internet application platform to the second type of test instructions, performance indicator data for testing the Internet application platform is generated. In this way, based on the TR069 communication protocol, the interaction between a large number of home gateway devices and the Internet application platform can be simulated, and the test configuration data, interaction data templates and test instruction sets associated with service deployment, the sending test instructions associated with performance test execution, and the performance indicator data of the test Internet application platform associated with performance monitoring can be connected in series to form a controllable performance automation test process, lower the test threshold, and effectively improve the test efficiency while realizing performance testing based on the TR069 communication protocol to simulate the two-way information transmission of a large number of home gateway devices to the Web application platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the structure of a test system provided in an embodiment of the present application;

[0027] Figure 2 A flow chart of a testing method provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the structure of a testing device provided in an embodiment of the present application;

[0029] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application;

[0030] Figure 5 A schematic diagram of the hardware structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0032] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0033] At present, for the performance test of WEB application platform, test tools such as jmeter and loadRunner can usually be used for testing. The test tool acts as a pure client to initiate a certain number of concurrent request data to the Web application platform, thereby obtaining the performance indicator data of the Web application platform. In the interaction between the home gateway device and the Web application platform based on the TR069 communication protocol, for the functions such as the upgrade and parameter setting of the home gateway device, the Web application platform will first actively request to connect to the home gateway device. After obtaining the response from the home gateway device, the home gateway device will actively request to connect to the Web application platform and perform a series of interactions. The Web application platform and the home gateway device need to act as both the client and the server, which cannot be met by the aforementioned test tools.

[0034] In order to solve the problems in the related art, the embodiments of the present application provide a testing method, device, equipment and storage medium. Figures 1 to 5 , the testing method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.

[0035] First, combine Figure 1 A testing system provided in an embodiment of the present application is described in detail.

[0036] like Figure 1As shown, the test system 10 uses a high-concurrency framework of the network programming framework (Netty) to receive batch connection requests issued by the WEB application platform, and enables the task management module to interact with the Internet platform to meet the performance requirements of batch and fast processing, and can expand the performance of the simulated home gateway service by adding limited hardware resources, which can be better used for testing the performance indicator data of the WEB platform. In addition, the test system is divided into an initialization module, an environment deployment module, a scenario management module, a task management module and a monitoring management module according to functional modules, wherein the initialization module includes presetting gateway-related data before testing and initializing the test environment. The environment deployment module is mainly used to deploy the simulated home gateway service and its configuration files to the test environment. The scenario management module is mainly used to select specific test scenarios and finally generate test tasks. The task management module is mainly used to configure task-related parameters and start test tasks. The monitoring management module is mainly used to collect and count performance data during the performance test and display it in real time, while monitoring resource usage. The following is combined with Figure 1 The test system 10 in the embodiment of the present application is described respectively.

[0037] The initialization module can be used to restore the test configuration data and the test environment that are preset before the test and related to the home gateway device. Specifically, the initialization module can be used to obtain the test configuration data. Among them, the test configuration data may include at least one of the following: the data transmission method between the home gateway device and the Internet application platform, the device configuration information of the home gateway device, the preset performance test requirement information, the test scenario initialization instruction, N test scenarios and M test tasks corresponding to the i-th test scenario in the N test scenarios, N and M are positive integers, i∈[1,N], the number of home gateway devices that send the first type of test instructions in each batch, the first preset time interval between receiving the connection request and sending the first type of test instructions, the number of threads that interact with the Internet application platform, the number of home gateway devices that send the second type of test instructions in each batch, the second preset time interval between sending the first type of test instructions and sending the second type of test instructions, and the number of threads that interact with the Internet application platform. Furthermore, the data transmission method includes at least one of the following: interface method, structured query import method; device configuration information includes the device address of the home gateway device and the time interval for sending connection requests in each batch; preset performance test requirement information includes the number of test instructions, such as 1 million test instructions and work order data corresponding to the test instructions, wherein the work order data can be a kind of attribute data associated with the home gateway device; the test scenario initialization instruction includes a first test scenario initialization instruction and a second test scenario initialization instruction, the first test scenario initialization instruction is used to instruct the home gateway device to adjust the operating state to the preset initial operating state, and the second test scenario initialization instruction is used to instruct the Internet application platform to clean up the scheduled tasks. In this way, the home gateway device and the Internet application platform can be instructed to perform initialization operations on the test environment through the test configuration data, including cleaning up the background scheduled tasks of the Internet application platform, restoring the configuration information of the home gateway device to the initial state, and resetting the test environment, so that the entire test environment is in a clean environment without interference.

[0038] An environment deployment module is used to select at least one server to be tested and deploy the simulated home gateway service to the test environment of the server. Specifically, the environment deployment module is specifically used to obtain the home gateway device participating in the test, and the home gateway device supports the TR-069 communication protocol. And, when the test configuration data also includes a test scenario initialization instruction, the test scenario initialization instruction includes a first test scenario initialization instruction and a second test scenario initialization instruction, and the first test scenario initialization instruction is used to instruct the home gateway device to adjust the operating state to a preset initial operating state, based on the first test scenario initialization instruction, the operating state is adjusted to a preset initial operating state; and, the second test scenario initialization instruction and indication information are sent to the Internet application platform participating in the test, the second test scenario initialization instruction is used to instruct the Internet application platform to clean up the scheduled task, the indication information carries the device configuration information, and the indication information is used to instruct the Internet application platform to send a connection request to the home gateway device based on the device configuration information, and establish a connection with the home gateway device. For example, pull the service package and the corresponding preset performance test requirement information from the baseline address, and the interaction data template corresponding to the test task, and select one or more servers to deploy the simulated home gateway service based on the preset performance test requirement information and the interaction data template corresponding to the test task. Here, it should be noted that the home gateway device in the embodiment of the present application can be a physical server or a node in the server that simulates the function of the home gateway device.

[0039] The scene management module is used to store the interactive data template corresponding to the test task, determine the test scenario, and generate the test instruction of the test task corresponding to the test scenario. Specifically, since the interactive data template corresponding to the test task is pre-stored in the scene management module, the interactive data template will be pre-loaded when the test scenario is determined, wherein the interactive data template includes preset fixed fields and variable fields, wherein the variable fields may include the media access control address of the home gateway device, the Internet platform address, the interactive instruction key, etc., so that the variable fields can be parameterized and replaced in real time based on the test configuration data such as the device timing information, the test scenario initialization instruction and other data. Based on this, the scene management module can be specifically used to construct a test instruction set based on the test configuration data and the interactive data template, and the test instruction set includes a first type of test instruction and a second type of test instruction, the first type of test instruction is a test instruction for responding to the connection request of the Internet application platform participating in the test, and the second type of test instruction is an instruction for sending a data request to the Internet application platform. Here, it should be noted that the test scenarios may include single scenarios and mixed scenarios. For a single scenario, a specific test task such as an upgrade task or a restart task is selected to be associated with the single scenario. For a mixed scenario, multiple test tasks such as an upgrade task and a restart task are selected and associated with the mixed scenario to generate a test scenario identifier (ID) and a test instruction set for the total test task (task) under the test scenario.

[0040] A task management module is used to start the test scenario and test task. In some embodiments of the present application, the task management module is used to configure the test task of the Internet application platform, wherein, based on the data transmission mode, an indication message is sent to the Internet application platform, the indication message carries the device configuration information, and the indication message is used to instruct the Internet application platform to send a connection request to the home gateway device based on the device configuration information, and establish a connection with the home gateway device. In addition, the task management module can also send trigger conditions related to the connection request to the Internet application platform, such as immediate triggering and timing triggering, and can also send the time interval for sending connection requests in each batch to the Internet application platform. In some other embodiments of the present application, the task management module can also be used to test and configure the home gateway device selected by the environment deployment module based on the test tasks, test scenarios, test instructions and test configuration data output by the scenario management module, for example, based on the test configuration data, configure the address of the Internet application platform, the test instructions, and the total number of test task threads for data interaction with the Internet application platform in the home gateway device. It should be noted that the total number of test task threads in the embodiment of the present application can be considered in combination with the amount of connection requests sent by the Internet application platform in each batch, the predetermined performance indicators, and the resource configuration of the server where the service is located. Furthermore, in some other embodiments of the present application, the task management module can also be used to use the Netty high-concurrency framework to receive a connection request sent by the Internet application platform based on the device information of the home gateway device, and send a first type of test instruction to the Internet application platform when the connection request is received; and, when the home gateway device is connected to the Internet application platform, send a second type of test instruction to the Internet application platform. For example, the test scenario and the test task can be started by receiving a connection request sent by the Internet application platform based on the device information of the home gateway device through the Netty high-concurrency framework. Then, based on the target test scenario corresponding to the connection request, the test instruction set of the test task is loaded into the memory, and the task thread pool is started. The home gateway device uniformly listens to the connection requests issued by the Internet application platform through a high-performance interface, and extracts the first type of test instructions from the test instruction set of the test task according to the task identifier of the test task carried by each connection request, and implants them into the task data template, and takes out a thread from the task thread pool, and the thread completes the data interaction with the platform. Then, based on the time point of sending the second test instruction in the test configuration data, the second type of test instruction is sent to the Internet application platform again.

[0041] The monitoring management module is used to collect and display the performance index data of the Internet application platform in the performance test process in real time; and collect the first resource usage data of each batch of connection requests under the target test scenario corresponding to the connection request, collect the second resource usage data of the first type of test instructions in response to the connection request, and collect the third resource usage data of the feedback data of the Internet application platform to the second type of test instructions; based on the target test scenario, the first resource usage data, the second resource usage data and the third resource usage data are counted to obtain the performance index data of the Internet application platform for testing based on the monitoring of resource usage during the test process. For example, the collection and monitoring of resource data and performance data can be carried out. In the automated performance test running phase, the processor, memory, and JVM stack of the server where the Internet application platform is located are collected in real time, and in the simulated home gateway device, performance index related data such as the number of completed interactions and the time consumed are collected, and the data is placed in the message queue, routed to the specified queue according to the test scenario, and the performance index data of the Internet application platform such as the success rate and rate are calculated in real time, and output to the interface for display.

[0042] Therefore, the embodiment of the present application provides a test system for the performance of an Internet application platform of a simulated home gateway device based on TR069 communication. By simulating a large number of home gateway devices such as a single 8-core 16G server, simulating the interaction of more than 500,000 home gateways with the WEB application platform, and connecting service deployment, parameter and scenario configuration, performance test execution, performance monitoring, etc. in series, a controllable performance automation test process is formed, the test threshold is lowered, and the test efficiency is effectively improved. At the same time, through flexible scenario configuration, the automated performance test of single and mixed scenarios can be realized, which is closer to the actual usage scenario, so that the test results, such as the performance indicator data of the Internet application platform, have a higher accuracy. In addition, there is no need to rewrite the script to simulate the interaction between the home gateway device and the Internet application platform, while reducing resource waste, to achieve the performance test of the two-way information transmission of a large number of home gateway devices to the Internet application platform based on the TR069 communication protocol.

[0043] It should be noted that the test method in the embodiment of the present application is based on the TR069 communication protocol, and uses the Netty high-concurrency framework to simulate the interaction between a large number of home smart gateways and the WEB application platform, and realizes the application scenario of the WEB application platform in the batch upgrade of home gateway terminal devices, batch parameter setting, batch backup gateway configuration and other functions. Among them, the TR-069 protocol is a standard protocol for remote management and configuration of devices. It provides a unified management and configuration mechanism, which can realize functions such as remote monitoring, troubleshooting, configuration and software upgrade of devices.

[0044] Secondly, based on the above test system, combined with Figure 2 A testing method provided in an embodiment of the present application is described in detail.

[0045] Figure 2 A flowchart of a testing method provided in an embodiment of the present application.

[0046] like Figure 2 As shown, the test method provided in the embodiment of the present application can be applied to a test system. Based on this, the test method can include the following steps:

[0047] Step 210, obtaining test configuration data and a home gateway device participating in the test, the home gateway device supporting the TR-069 communication protocol; Step 220, constructing a test instruction set based on the test configuration data and the interaction data template, the test instruction set including a first type of test instruction and a second type of test instruction, the first type of test instruction being a test instruction for responding to a connection request of an Internet application platform participating in the test, and the second type of test instruction being an instruction for a data request sent to the Internet application platform; Step 230, sending the first type of test instruction to the Internet application platform upon receiving a connection request sent by the Internet application platform based on device information of the home gateway device; and, sending the second type of test instruction to the Internet application platform upon connecting to the home gateway device; Step 240, generating performance indicator data for testing the Internet application platform based on the connection request, the first type of test instruction and feedback data of the Internet application platform to the second type of test instruction.

[0048] In this way, based on the TR069 communication protocol, the interaction between a large number of home gateway devices and the Internet application platform can be simulated, and the test configuration data, interaction data templates and test instruction sets associated with service deployment, the sending test instructions associated with performance test execution, and the performance indicator data of the test Internet application platform associated with performance monitoring can be connected in series to form a controllable performance automation test process, lower the test threshold, and effectively improve the test efficiency while realizing performance testing based on the TR069 communication protocol to simulate the information transmission between a large number of home gateway devices and the Web application platform.

[0049] The above steps are described in detail below, as shown below.

[0050] First, involving step 210, in one or more possible embodiments, the test configuration data includes preset performance test requirement information, and the preset performance test requirement information includes the number of test instructions. Based on this, before step 210, the test method may also include steps 2501 and 2502.

[0051] Step 2501: Based on the number of test instructions, an initial home gateway device that can carry the number of test instructions is selected from multiple gateway devices.

[0052] Step 2502: Filter out home gateway devices that support the TR-069 communication protocol from the initial home gateway devices.

[0053] Next, involving step 220, in one or more possible embodiments, the test configuration data also includes a test scenario initialization instruction, the test scenario initialization instruction includes a first test scenario initialization instruction and a second test scenario initialization instruction, the first test scenario initialization instruction is used to instruct the home gateway device to adjust the operating state to a preset initial operating state. Based on this, before step 220, the test method may also include steps 2601 and 2602.

[0054] Step 2601: Based on the first test scenario initialization instruction, adjust the operating state to a preset initial operating state.

[0055] Step 2602: Send a second test scenario initialization instruction to the Internet application platform, where the second test scenario initialization instruction is used to instruct the Internet application platform to clean up scheduled tasks.

[0056] Thus, the test environments of the home gateway device and the Internet platform can be initialized and the background scheduled tasks can be cleaned up respectively, so that the entire test environment is in a clean environment without interference, thereby improving the accuracy of the test results.

[0057] Based on this, the test configuration data includes N test scenarios and M test tasks corresponding to the i-th test scenario in the N test scenarios, the M test tasks correspond to at least one interactive data template, the interactive data template includes preset fixed fields and variable fields, N and M are positive integers, i∈[1,N], and the step 220 may specifically include:

[0058] Based on the task field of the test task, the variable field in the interactive data template corresponding to the test task is replaced to obtain a test instruction set corresponding to the test task; wherein the variable field includes at least one of the following: the media access control address of the home gateway device, the Internet platform address, and the interactive instruction key.

[0059] Exemplarily, N can be 1, that is, a single test scenario, such as a restart test scenario, in which three test tasks can correspond, and the three test tasks can correspond to at least one interactive data template, that is, three test tasks correspond to one interactive data template, or two of the three test tasks correspond to one interactive data template, and the other test task corresponds to another interactive data template. The interactive data template can include preset fixed fields and variable fields, and the variable fields can generate different test instructions as the media access control address, Internet platform address and other fields of the home gateway device change.

[0060] As a result, a large number of test instructions can be quickly generated without human intervention, thereby improving test efficiency.

[0061] Furthermore, relating to step 230, in one or more possible embodiments, the test configuration data includes a data transmission method and device configuration information between the home gateway device and the Internet application platform, the data transmission method includes at least one of the following: an interface method, a structured query import method, the device configuration information includes the device address of the home gateway device and the time interval for sending connection requests in each batch. Based on this, before receiving the connection request sent by the Internet application platform based on the device information of the home gateway device, the test method may also include step 270.

[0062] Step 270, based on the data transmission method, send an indication message to the Internet application platform, the indication message carries the device configuration information, and the indication message is used to instruct the Internet application platform to send a connection request to the home gateway device based on the device configuration information and establish a connection with the home gateway device.

[0063] Exemplarily, before receiving a connection request, an indication message is sent to the Internet application platform to instruct the Internet application platform to determine the home gateway device with which to establish contact. At this time, the device address of the home gateway device, the number of batches of connection requests to be sent, the time interval for sending connection requests in each batch, test tasks under different test scenarios, etc. can be sent to the Internet application platform so as to establish a connection with the home gateway device and execute the test process.

[0064] In this way, the device address of the simulated home gateway device, as well as the relevant configuration of each test task in the test scenario, the test task triggering method, the number of test instruction sets corresponding to the test task, the number of connection requests issued in each batch, and the time interval for sending connection requests in each batch can be configured on the Internet application platform side. In this way, two-way interaction between the Internet application platform and the home gateway device can be achieved.

[0065] In one or more other possible embodiments, the test configuration data includes a data transmission method between the home gateway device and the Internet application platform, and the data transmission method includes at least one of the following: an interface method, a structured query import method. Based on this, step 230 can specifically include step 2301 and step 2302.

[0066] Step 2301, upon receiving a connection request sent by the Internet application platform based on the device information of the home gateway device, a first type of test instruction is sent to the Internet application platform via data transmission.

[0067] Step 2302: When the home gateway device is connected to the Internet application platform, a second type of test instruction is sent to the Internet application platform via data transmission.

[0068] For example, different data transmission modes can be selected in different batches, that is, when transmitting the first type of test instructions in the first batch, the data transmission mode that can be selected is the interface mode, i.e., the application programming (Application Programming Interface) interface, at this time, the second type of test instructions can also be sent to the Internet application platform through the same data transmission mode. Then, when transmitting the first type of test instructions in the second batch, the data transmission mode that can be selected is the structured query import (Structured Query Language, SQL) mode, at this time, the second type of test instructions can also be sent to the Internet application platform through the same data transmission mode, i.e., the SQL import mode.

[0069] In this way, the test instructions can be transmitted by selecting different data transmission modes to test the resource usage data of different data transmission modes, thereby improving the richness of the tests in different scenarios.

[0070] In one or more possible embodiments, the test configuration data in the embodiments of the present application include the number of home gateway devices that send first-class test instructions in each batch, the first preset time interval between receiving a connection request and sending the first-class test instructions, and the number of threads interacting with the Internet application platform. The step of sending the first-class test instructions to the Internet application platform when a connection request sent by the Internet application platform based on the device information of the home gateway device is received in step 230 may specifically include steps 2303 to 2306.

[0071] Step 2303, when a connection request is received from the Internet application platform based on the device information of the home gateway device, obtain from the test configuration data the first number of threads interacting with the Internet application platform in the first target batch corresponding to the connection request, the second number of home gateway devices that send the first type of test instructions, and the first target time point for sending the first type of test instructions, the first target time point being determined by the time point of receiving the connection request and the first preset time interval.

[0072] Step 2304: based on the target test scenario corresponding to the connection request, store the target test instruction set of the target test task corresponding to the target test scenario into the memory.

[0073] Step 2305: extract a first target thread corresponding to the first quantity from the task thread pool.

[0074] Step 2306: Call the home gateway devices corresponding to the second quantity through the first target thread, and send the first type of test instructions to the Internet application platform at the first target time point.

[0075] Exemplarily, the target test instruction set of the target test task can be loaded into the memory, and the task thread pool can be started to simulate the home gateway device's connection request issued by the high-performance interface unified monitoring platform. According to the task identifier of the test task carried by each connection request, for example, when the task identifier is the task identifier of a restart task, the first type of test instruction in the target test instruction set is extracted, and the first target thread is taken out from the task thread pool. The first target thread completes the data interaction with the Internet application platform.

[0076] In one or more possible embodiments, the test configuration data in the embodiments of the present application include the number of home gateway devices that send second-type test instructions in each batch, the second preset time interval between sending first-type test instructions and sending second-type test instructions, and the number of threads interacting with the Internet application platform. The step involved in sending second-type test instructions to the Internet application platform when the home gateway device is connected to the Internet application platform can specifically include steps 2307 to 2310.

[0077] Step 2307, when the home gateway device is connected to the Internet application platform, obtain from the test configuration data the third number of threads interacting with the Internet application platform in the first target batch corresponding to the first type of test instructions, the fourth number of home gateway devices sending the second type of test instructions, and the second target time point for sending the second type of test instructions, the second target time point being determined by the time point for sending the first type of test instructions and the second preset time interval.

[0078] Step 2308: Based on the target test scenario corresponding to the connection request, the target test instruction set of the target test task corresponding to the target test scenario is stored in the memory.

[0079] Step 2309: extract second target threads corresponding to the third quantity from the task thread pool.

[0080] Step 2310: Call the home gateway device corresponding to the fourth quantity through the second target thread, and send the second type of test instructions to the Internet application platform at the second target time point.

[0081] Exemplarily, continuing with the example in steps 2303 to 2306 above, when it is indicated that the home gateway device has been connected to the Internet application platform, the target test instruction set for the restart test task can be obtained and stored in the memory. At this time, the target test instruction can specifically be a second type of test instruction. Similarly, the task thread pool is started, and the second target thread corresponding to the third number is taken out from the task thread pool, and the second target thread completes the data interaction with the Internet application platform.

[0082] Then, step 240 is involved. In one or more possible embodiments, step 240 may specifically include step 2401 and step 2402 .

[0083] Step 2401, collects first resource usage data of each batch of connection requests in the target test scenario corresponding to the connection requests, collects second resource usage data of the first type of test instructions in response to the connection requests, and collects third resource usage data of feedback data of the Internet application platform to the second type of test instructions.

[0084] Step 2402, based on the target test scenario, statistics are collected on the first resource usage data, the second resource usage data and the third resource usage data to obtain performance indicator data of the test Internet application platform.

[0085] Exemplarily, during the running phase of the automated performance test, resource usage data such as the processor, memory, and JVM stack of the server where the Internet application platform is located are collected and monitored in real time, and data related to the performance indicator data of the Internet application platform of the home gateway device, such as the number of completed interactions and the time consumed, are collected in real time. The data obtained from both the Internet application platform and the home gateway device are put into a message queue, and the target test tasks corresponding to the target test scenario are routed to the designated queue according to the target test scenario, and the performance indicator data of the Internet application platform under the test scenario, such as the success rate and rate, are calculated in real time.

[0086] In addition, the testing method provided in the embodiment of the present application may further include step 280.

[0087] Step 280, displaying the first resource usage data, the second resource usage data, the third resource usage data, and the performance indicator data of the Internet application platform.

[0088] For example, the resource usage data involved in step 240 and the performance indicator data of the Internet application platform in the test scenario, such as success rate, rate, etc., can be displayed. In this way, according to the set test scenario and task load conditions, the automated performance test is performed in the deployed test environment, and the performance indicator data of the Internet application platform in different test scenarios will be displayed in real time during the test, so that the tester can view and confirm the results.

[0089] Therefore, the test method provided in the embodiment of the present application can simulate a large number of home gateways using fewer hardware resources. On a single 16-core 8G memory server, 500,000-600,000 home gateway devices can be simulated, and the performance can be linearly increased by appropriately increasing the number of servers to meet the performance requirements of the test WEB application platform. In addition, the performance automation test of the platform is realized by simulating the home gateway device, and the service deployment, parameter configuration, test execution and test process monitoring are connected in series to form the entire performance automation test system, which improves the test efficiency. In addition, through flexible scenario configuration, it is possible to realize automated performance testing of single and mixed scenarios, which is closer to the actual usage scenario, and the test results have a greater reference value for the production environment.

[0090] It should be noted that each embodiment involved in the test system and test method provided in the present application can be used alone or in combination with each other. One embodiment and another embodiment are only used to distinguish their steps without limiting their association relationship.

[0091] The test method provided in the embodiment of the present application can be executed by a test device. In the embodiment of the present application, the test method is executed by a test device as an example to illustrate the device of the test method provided in the embodiment of the present application.

[0092] Based on the same inventive concept, the present application also provides a testing device. Figure 3 Provide detailed explanation.

[0093] Figure 3 A schematic diagram of the structure of a testing device provided in an embodiment of the present application.

[0094] like Figure 3 As shown, the test device 30 can be applied to a test system, and the test device 30 can specifically include:

[0095] An acquisition module 301 is used to acquire test configuration data and a home gateway device participating in the test, where the home gateway device supports the TR-069 communication protocol;

[0096] A construction module 302 is used to construct a test instruction set based on the test configuration data and the interactive data template, the test instruction set including a first type of test instruction and a second type of test instruction, the first type of test instruction is a test instruction for responding to a connection request of an Internet application platform participating in the test, and the second type of test instruction is an instruction for sending a data request to the Internet application platform;

[0097] The sending module 303 is used to send a first type of test instruction to the Internet application platform when receiving a connection request sent by the Internet application platform based on the device information of the home gateway device; and send a second type of test instruction to the Internet application platform when the home gateway device is connected to the Internet application platform;

[0098] The generating module 303 is used to generate performance indicator data for testing the Internet application platform based on the connection request, the first type of test instructions and the feedback data of the Internet application platform to the second type of test instructions.

[0099] The testing device 30 in the embodiment of the present application is described in detail below, as shown below.

[0100] In one or more possible embodiments, the sending module 303 in the embodiment of the present application can also be used to send indication information to the Internet application platform based on the data transmission method, when the test configuration data includes the data transmission method and device configuration information between the home gateway device and the Internet application platform, and the data transmission method includes at least one of the following: interface method, structured query import method, and the device configuration information includes the device address of the home gateway device and the time interval for sending connection requests in each batch. The indication information carries the device configuration information, and the indication information is used to instruct the Internet application platform to send a connection request to the home gateway device based on the device configuration information and establish a connection with the home gateway device.

[0101] In one or more possible embodiments, the sending module 303 in the embodiment of the present application may also be used to, when the test configuration data includes a data transmission mode between the home gateway device and the Internet application platform, and the data transmission mode includes at least one of the following: an interface mode and a structured query import mode, upon receiving a connection request sent by the Internet application platform based on the device information of the home gateway device, send a first type of test instruction to the Internet application platform through the data transmission mode;

[0102] And, when the home gateway device is connected to the Internet application platform, a second type of test instruction is sent to the Internet application platform through data transmission.

[0103] In one or more possible embodiments, the testing device 30 in the embodiment of the present application may further include a screening module; wherein,

[0104] A screening module, configured to screen, when the test configuration data includes preset performance test requirement information, and the preset performance test requirement information includes the number of test instructions, an initial home gateway device that can carry the number of test instructions from a plurality of gateway devices based on the number of test instructions;

[0105] And, screen out home gateway devices that support the TR-069 communication protocol from the initial home gateway devices.

[0106] In one or more possible embodiments, the testing device 30 in the embodiment of the present application may further include an adjustment module; wherein,

[0107] An adjustment module, configured to adjust the operating state to a preset initial operating state based on the first test scenario initialization instruction when the test configuration data further includes a test scenario initialization instruction, the test scenario initialization instruction includes a first test scenario initialization instruction and a second test scenario initialization instruction, and the first test scenario initialization instruction is used to instruct the home gateway device to adjust the operating state to a preset initial operating state;

[0108] The sending module 303 may also be used to send a second test scenario initialization instruction to the Internet application platform, where the second test scenario initialization instruction is used to instruct the Internet application platform to clean up scheduled tasks.

[0109] In one or more possible embodiments, the testing device 30 in the embodiment of the present application may further include a replacement module; wherein,

[0110] A replacement module is used to replace the variable fields in the interactive data template corresponding to the test task based on the task field of the test task when the test configuration data includes N test scenarios and M test tasks corresponding to the i-th test scenario among the N test scenarios, the M test tasks correspond to at least one interactive data template, the interactive data template includes preset fixed fields and variable fields, N and M are positive integers, i∈[1, N], so as to obtain a test instruction set corresponding to the test task; wherein the variable field includes at least one of the following: a media access control address of a home gateway device, an Internet platform address, and an interactive instruction key.

[0111] In one or more possible embodiments, the testing device 30 in the embodiment of the present application may further include a first storage module, a first extraction module and a first processing module; wherein,

[0112] The acquisition module 301 may also be used to, when the test configuration data includes the number of home gateway devices that send the first type of test instructions in each batch, the first preset time interval between receiving the connection request and sending the first type of test instructions, and the number of threads that interact with the Internet application platform, and a connection request sent by the Internet application platform based on the device information of the home gateway device is received, obtain from the test configuration data the first number of threads that interact with the Internet application platform in the first target batch corresponding to the connection request, the second number of home gateway devices that send the first type of test instructions, and the first target time point for sending the first type of test instructions, the first target time point being determined by the time point of receiving the connection request and the first preset time interval;

[0113] A first storage module, configured to store a target test instruction set of a target test task corresponding to the target test scenario into a memory based on the target test scenario corresponding to the connection request;

[0114] A first extraction module, used to extract first target threads corresponding to a first quantity from a task thread pool;

[0115] The first processing module is used to call the home gateway devices corresponding to the second quantity through the first target thread, and send the first type of test instructions to the Internet application platform at a first target time point.

[0116] In one or more possible embodiments, the testing device 30 in the embodiment of the present application may further include a second storage module, a second extraction module and a second processing module; wherein,

[0117] The acquisition module 301 may also be used to, when the test configuration data includes the number of home gateway devices that send the second type of test instructions in each batch, the second preset time interval between sending the first type of test instructions and sending the second type of test instructions, and the number of threads that interact with the Internet application platform, and when the home gateway device is connected to the Internet application platform, obtain from the test configuration data a third number of threads that interact with the Internet application platform in a first target batch corresponding to the first type of test instructions, a fourth number of home gateway devices that send the second type of test instructions, and a second target time point for sending the second type of test instructions, wherein the second target time point is determined by the time point for sending the first type of test instructions and the second preset time interval;

[0118] A second storage module, configured to store a target test instruction set of a target test task corresponding to the target test scenario into a memory based on the target test scenario corresponding to the connection request;

[0119] A second extraction module is used to extract second target threads corresponding to the third number from the task thread pool;

[0120] The second processing module is used to call the home gateway device corresponding to the fourth number through the second target thread, and send the second type of test instructions to the Internet application platform at a second target time point.

[0121] In one or more possible embodiments, the testing device 30 in the embodiment of the present application may further include a collection module and a statistics module; wherein,

[0122] A collection module, used to collect first resource usage data of each batch of connection requests in a target test scenario corresponding to the connection requests, collect second resource usage data of the first type of test instructions in response to the connection requests, and collect third resource usage data of feedback data of the Internet application platform to the second type of test instructions;

[0123] The statistics module is used to count the first resource usage data, the second resource usage data and the third resource usage data based on the target test scenario to obtain performance indicator data of the test Internet application platform.

[0124] In one or more possible embodiments, the testing device 30 in the embodiment of the present application may further include a display module for displaying the first resource usage data, the second resource usage data, the third resource usage data and the performance indicator data of the Internet application platform.

[0125] The test device in the embodiment of the present application can be a computer device, or a component in the computer device, such as an integrated circuit or a chip. The computer device can be a terminal, or other devices other than the terminal. Exemplary, the computer device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted computer device, a mobile Internet device (Mobile Internet Device, MID), augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) equipment, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobilepersonal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0126] The test device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0127] The device coordination device provided in the embodiment of the present application can achieve Figures 1 to 3 The various processes implemented in the test method embodiment shown achieve the same technical effect, and will not be described again here to avoid repetition.

[0128] Based on this, the test device provided in the embodiment of the present application obtains test configuration data and a home gateway device participating in the test and supporting the TR-069 communication protocol; based on the test configuration data and the interaction data template, a test instruction set is constructed, the test instruction set includes a first type of test instructions and a second type of test instructions, the first type of test instructions are test instructions for responding to a connection request of an Internet application platform participating in the test, and the second type of test instructions are instructions for data requests sent to the Internet application platform; then, upon receiving a connection request sent by the Internet application platform based on device information of the home gateway device, the first type of test instructions are sent to the Internet application platform; and, when the home gateway device is connected to the Internet application platform, the second type of test instructions are sent to the Internet application platform; based on the connection request, the first type of test instructions and the feedback data of the Internet application platform to the second type of test instructions, performance indicator data for testing the Internet application platform is generated. In this way, based on the TR069 communication protocol, the interaction between a large number of home gateway devices and the Internet application platform can be simulated, and the test configuration data, interaction data templates and test instruction sets associated with service deployment, the sending test instructions associated with performance test execution, and the performance indicator data of the test Internet application platform associated with performance monitoring can be connected in series to form a controllable performance automation test process, lower the test threshold, and effectively improve the test efficiency while realizing performance testing based on the TR069 communication protocol to simulate the information transmission between a large number of home gateway devices and the Web application platform.

[0129] Optional, such as Figure 4 As shown, an embodiment of the present application also provides a computer device 40, including a processor 401 and a memory 402, wherein the memory 402 stores programs or instructions that can be executed on the processor 401, and when the program or instructions are executed by the processor 401, the various steps of the above-mentioned test method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0130] Figure 5 A schematic diagram of the hardware structure of a computer device provided in an embodiment of the present application.

[0131] The computer device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510 and other components.

[0132] Those skilled in the art will appreciate that the computer device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The computer device structure shown in the figure does not constitute a limitation on the computer device. The computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0133] It should be understood that the input unit 504 may include a graphics processor (GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 506 may include a display panel, and the display panel may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and at least one of other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch display. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as a volume display button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0134] The memory 509 can be used to store software programs and various data. The memory 509 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 509 can include a volatile memory or a non-volatile memory, or the memory 509 can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0135] The processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless display signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 510.

[0136] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned test method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0137] The processor is the processor in the computer device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0138] In addition, an embodiment of the present application further provides a chip, which includes a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned test method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0139] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0140] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned test method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0141] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0142] In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0144] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A testing method, characterized in that: include: Acquire test configuration data and a home gateway device participating in the test, wherein the home gateway device supports the TR-069 communication protocol; Based on the test configuration data and the interactive data template, a test instruction set is constructed, wherein the test instruction set includes a first type of test instructions and a second type of test instructions, wherein the first type of test instructions are test instructions for responding to a connection request of an Internet application platform participating in the test, and the second type of test instructions are instructions for sending a data request to the Internet application platform; Upon receiving a connection request sent by the Internet application platform based on the device information of the home gateway device, sending the first type of test instruction to the Internet application platform; and, when the home gateway device is connected to the Internet application platform, sending the second type of test instruction to the Internet application platform; Based on the connection request, the first type of test instructions and the feedback data of the Internet application platform to the second type of test instructions, performance indicator data for testing the Internet application platform is generated.

2. The method according to claim 1, characterized in that The test configuration data includes a data transmission mode and device configuration information between the home gateway device and the Internet application platform, wherein the data transmission mode includes at least one of the following: an interface mode and a structured query import mode, and the device configuration information includes a device address of the home gateway device and a time interval for sending connection requests in each batch; the method further includes: Based on the data transmission method, an indication message is sent to the Internet application platform, the indication message carries the device configuration information, and the indication message is used to instruct the Internet application platform to send a connection request to the home gateway device based on the device configuration information and establish a connection with the home gateway device.

3. The method according to claim 1, characterized in that: The test configuration data includes a data transmission mode between the home gateway device and the Internet application platform, and the data transmission mode includes at least one of the following: an interface mode and a structured query import mode; sending the first type of test instruction to the Internet application platform upon receiving a connection request sent by the Internet application platform based on the device information of the home gateway device; And, when the home gateway device is connected to the Internet application platform, sending the second type of test instruction to the Internet application platform includes: Upon receiving a connection request sent by the Internet application platform based on the device information of the home gateway device, sending the first type of test instruction to the Internet application platform through the data transmission method; And, when the home gateway device is connected to the Internet application platform, the second type of test instructions are sent to the Internet application platform through the data transmission method.

4. The method according to claim 1, characterized in that The test configuration data includes preset performance test requirement information, and the preset performance test requirement information includes the number of test instructions; Before acquiring the test configuration data and the home gateway device participating in the test, the method further includes: Based on the number of the test instructions, selecting an initial home gateway device that can carry the number of test instructions from a plurality of gateway devices; A home gateway device supporting the TR-069 communication protocol is screened out from the initial home gateway devices.

5. The method according to claim 1, characterized in that The test configuration data includes a test scenario initialization instruction, the test scenario initialization instruction includes a first test scenario initialization instruction and a second test scenario initialization instruction, the first test scenario initialization instruction is used to instruct the home gateway device to adjust the operating state to a preset initial operating state; Before constructing the test instruction set based on the test configuration data and the interactive data template, the method further includes: Based on the first test scenario initialization instruction, adjusting the operating state to a preset initial operating state; And, sending the second test scenario initialization instruction to the Internet application platform, wherein the second test scenario initialization instruction is used to instruct the Internet application platform to clean up the scheduled tasks.

6. The method according to claim 1, characterized in that The test configuration data includes N test scenarios and M test tasks corresponding to the i-th test scenario in the N test scenarios, the M test tasks correspond to at least one interactive data template, the interactive data template includes preset fixed fields and variable fields, N and M are positive integers, i∈[1,N]; The step of constructing a test instruction set based on the test configuration data and the interactive data template includes: Based on the task field of the test task, the variable field in the interactive data template corresponding to the test task is replaced to obtain a test instruction set corresponding to the test task; wherein the variable field includes at least one of the following: a media access control address of a home gateway device, an Internet platform address, and an interactive instruction key.

7. The method according to claim 6, characterized in that The test configuration data includes the number of home gateway devices that send the first type of test instructions in each batch, a first preset time interval between receiving the connection request and sending the first type of test instructions, and the number of threads interacting with the Internet application platform; when receiving the connection request sent by the Internet application platform based on the device information of the home gateway device, sending the first type of test instructions to the Internet application platform includes: Upon receiving a connection request sent by the Internet application platform based on the device information of the home gateway device, obtaining from the test configuration data a first number of threads interacting with the Internet application platform in a first target batch corresponding to the connection request, a second number of home gateway devices that send the first type of test instructions, and a first target time point for sending the first type of test instructions, wherein the first target time point is determined by the time point of receiving the connection request and the first preset time interval; Based on the target test scenario corresponding to the connection request, storing a target test instruction set of the target test task corresponding to the target test scenario into a memory; Extracting a first target thread corresponding to the first number from the task thread pool; The home gateway devices corresponding to the second quantity are called through the first target thread, and the first type of test instructions are sent to the Internet application platform at the first target time point.

8. The method according to claim 6, characterized in that The test configuration data includes the number of home gateway devices that send the second type of test instructions in each batch, a second preset time interval between sending the first type of test instructions and sending the second type of test instructions, and the number of threads interacting with the Internet application platform; When the home gateway device is connected to the Internet application platform, sending the second type of test instruction to the Internet application platform includes: In a case where the home gateway device is connected to the Internet application platform, obtaining from the test configuration data a third number of threads interacting with the Internet application platform in a first target batch corresponding to the first type of test instructions, a fourth number of home gateway devices sending the second type of test instructions, and a second target time point for sending the second type of test instructions, wherein the second target time point is determined by the time point for sending the first type of test instructions and the second preset time interval; Based on the target test scenario corresponding to the connection request, storing a target test instruction set of the target test task corresponding to the target test scenario into a memory; Extracting a second target thread corresponding to the third number from the task thread pool; The home gateway device corresponding to the fourth number is called through the second target thread, and the second type of test instructions are sent to the Internet application platform at the second target time point.

9. The method according to claim 1, characterized in that: The generating performance indicator data for testing the Internet application platform based on the connection request, the first type of test instruction and the feedback data of the Internet application platform to the second type of test instruction comprises: Collecting first resource usage data of each batch of connection requests in a target test scenario corresponding to the connection request, collecting second resource usage data of a first type of test instructions in response to the connection request, and collecting third resource usage data of feedback data of the Internet application platform to the second type of test instructions; Based on the target test scenario, the first resource usage data, the second resource usage data and the third resource usage data are counted to obtain performance indicator data for testing the Internet application platform.

10. The method according to claim 9, characterized in that The method further comprises: The first resource usage data, the second resource usage data, the third resource usage data, and the performance indicator data of the Internet application platform are displayed.

11. A testing device, characterized in that: include: An acquisition module, used to acquire test configuration data and a home gateway device participating in the test, wherein the home gateway device supports the TR-069 communication protocol; A construction module, configured to construct a test instruction set based on the test configuration data and the interactive data template, wherein the test instruction set includes a first type of test instruction and a second type of test instruction, wherein the first type of test instruction is a test instruction for responding to a connection request of an Internet application platform participating in the test, and the second type of test instruction is an instruction for sending a data request to the Internet application platform; a sending module, configured to send the first type of test instruction to the Internet application platform when receiving a connection request sent by the Internet application platform based on the device information of the home gateway device; and, when the home gateway device is connected to the Internet application platform, send the second type of test instruction to the Internet application platform; A generation module is used to generate performance indicator data for testing the Internet application platform based on the connection request, the first type of test instructions and the feedback data of the Internet application platform to the second type of test instructions.

12. A testing system, characterized in that: include: Initialization module, used to obtain test configuration data; An environment deployment module is used to obtain a home gateway device participating in the test, wherein the home gateway device supports the TR-069 communication protocol; and, the test configuration data also includes a test scenario initialization instruction, wherein the test scenario initialization instruction includes a first test scenario initialization instruction and a second test scenario initialization instruction, wherein the first test scenario initialization instruction is used to instruct the home gateway device to adjust its operating state to a preset initial operating state, and based on the first test scenario initialization instruction, the operating state is adjusted to a preset initial operating state; and, the second test scenario initialization instruction and indication information are sent to an Internet application platform participating in the test, wherein the second test scenario initialization instruction is used to instruct the Internet application platform to clean up scheduled tasks, wherein the indication information carries device configuration information, and the indication information is used to instruct the Internet application platform to send a connection request to the home gateway device based on the device configuration information, and to establish a connection with the home gateway device; A scenario management module, configured to construct a test instruction set based on the test configuration data and the interactive data template, wherein the test instruction set includes a first type of test instruction and a second type of test instruction, wherein the first type of test instruction is a test instruction for responding to a connection request of an Internet application platform participating in the test, and the second type of test instruction is an instruction for sending a data request to the Internet application platform; A task management module, configured to use the Netty high concurrency framework to receive a connection request sent by the Internet application platform based on the device information of the home gateway device, and, upon receiving the connection request, send the first type of test instruction to the Internet application platform; and, when the home gateway device is connected to the Internet application platform, send the second type of test instruction to the Internet application platform; The monitoring and management module generates performance indicator data for testing the Internet application platform based on the connection request, the first type of test instructions and the feedback data of the Internet application platform to the second type of test instructions; and displays the performance indicator data of the Internet application platform.

13. A computer device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the test method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • System testing method, device and equipment and computer storage medium

    CN114205273A

  • Server cluster, test method and device of server cluster and electronic equipment

    CN115022328A

  • Performance test method and device, equipment and storage medium

    CN116938780A

  • Systems and Methods for Automated Testing of MoCA Networks

    US20200145301A1