Cloud service testing method, device and system, and container testing method and device
Through the cloud service stress testing method of serverless architecture, cloud platform testing is automatically processed, which solves the problems of complexity of existing testing methods and waste of resources, and realizes simple and easy-to-use cloud service and application container testing.
Patent Information
- Application Number
- CN202010597688.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-06-28
AI Technical Summary
Existing cloud platform testing methods are complex and require testers to be very familiar with cloud service networks and testing tools, and users need to build their own testing environments and maintenance tools, resulting in inconvenient operations and waste of resources.
Adopting a cloud service stress testing method based on serverless architecture, by receiving the stress testing requirements and network information input by users, it automatically creates stress testing scenarios, allocates and configures presses, performs stress testing tasks, and provides a simple configuration interface for users No need to understand complex network topologies and tools.
It realizes cloud service stress testing with simple operation and low requirements on testers, saving resource costs and reducing test complexity. Anyone can easily conduct stress testing and service testing.
Smart Images

Figure CN113300900B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a cloud platform in the Internet field, and in particular to a cloud service testing solution and an application container testing solution. Background Art
[0002] With the rapid development of cloud computing, more and more users have built a wide range of microservice applications based on cloud services, such as ECS, ACK, EDAS, and ECI.
[0003] For some such applications, especially those in complex network environments such as ACK cascaded networks, stress testing is required to evaluate the performance of microservice applications, and service testing is required to test the logical correctness of the service.
[0004] On the other hand, many applications have been deployed in containers. As infrastructure, containers carry a large number of applications, and technical solutions are frequently upgraded. Once performance degradation occurs during a solution upgrade, the performance loss of upper-layer applications will be even greater. For example, if the container performance degrades by 1S, the upper-layer application may degrade by 10S. Therefore, it is necessary to evaluate the performance of the container's technical upgrade solution.
[0005] In traditional testing methods, users need to purchase cloud resources and build a test environment. They also need to install test engines and test tools, such as Jmeter, a tool for stress testing, and tools for testing DUBBO (an open source distributed service framework) and SpringCloud services. Then they need to perform tests themselves and collect test results.
[0006] However, due to the complex network topology on the cloud, it is difficult to connect the cloud resource network. Users need to be familiar with the microservice DUBBO and SpringCloud frameworks. This places high demands on service testers, who must be very familiar with cloud service networks to be competent.
[0007] In addition, users need to be familiar with the testing tools in order to write the testing tools when setting up the testing environment.
[0008] Therefore, there is still a need for a test solution that is simple to operate and has low requirements on testers. Summary of the invention
[0009] A technical problem to be solved by the present disclosure is to provide a cloud platform-related testing solution that is easy to operate and has low skill requirements for testers.
[0010] According to the first aspect of the present disclosure, a cloud service stress test control method based on a serverless architecture is provided, including: receiving stress test demand information and stress test object network information input by a user, and creating a stress test scenario for the stress test object; determining a stress machine allocation strategy based on the stress test demand information and the stress test object network information; allocating stress machines according to the stress machine allocation strategy; and receiving stress test results reported by the allocated stress machines.
[0011] Optionally, the method may also include: generating a stress testing task in response to a stress testing scenario start instruction; and associating the stress testing object network information of the started stress testing scenario with the stress testing task so that the stress machine executing the stress testing task obtains the stress testing object network information, thereby configuring the network based on the stress testing object network information.
[0012] Optionally, the step of allocating stress machines according to the stress machine allocation policy may include: associating the stress machine allocation policy with the stress testing task so that the stress machine is allocated according to the stress testing task when executing the stress testing task; dividing the stress testing task into multiple stress testing sub-tasks; and allocating the stress testing sub-tasks to the multiple stress machines allocated according to the stress machine allocation policy.
[0013] Optionally, the method may further include: storing the stress testing object network information in association with the stress testing task ID in a database or memory accessible to the stress machine, so that the stress machine assigned the stress testing subtask obtains the stress testing object network information corresponding to the stress testing task to which the stress testing subtask belongs.
[0014] Optionally, the method may further include: in response to the stress testing task for the stress testing scenario being stopped, releasing the stress machine allocated for the stress testing scenario.
[0015] Optionally, the method may further include: counting the number of used presses and the duration of use of the presses to calculate resources consumed by the stress testing service.
[0016] Optionally, the method may also include: providing a stress testing scenario configuration interface so that the user can configure the stress testing scenario; and / or presenting the configured stress testing scenario to the user; and / or receiving a user's modification instruction for the configured stress testing scenario and making corresponding modifications to the stress testing scenario.
[0017] Optionally, the method may also include: outputting the determined press allocation strategy to the user; and / or receiving the user's modification instruction for the press allocation strategy, and modifying the press allocation strategy accordingly; and / or storing the press allocation strategy in a database or memory in association with the stress testing task ID, so as to obtain the corresponding press allocation strategy when executing the stress testing task; and / or storing the press allocation strategy in a database or memory, so as to obtain the press allocation strategy when executing other stress testing tasks as an alternative press allocation strategy.
[0018] Optionally, the method may further include: comprehensively processing stress test results from multiple presses to obtain a stress test report; and outputting the stress test report to a user.
[0019] According to a second aspect of the present disclosure, a cloud service stress testing method based on a serverless architecture is provided, including: receiving a stress testing subtask for a stress testing object; obtaining network information of the stress testing object corresponding to the stress testing task to which the stress testing subtask belongs; configuring a stress machine network based on the stress testing object network information; interacting with the stress testing object to execute the stress testing subtask; and uploading the stress testing results.
[0020] Optionally, the step of configuring the stress machine network based on the stress test object network information may include: creating a virtual network card based on the stress test object network information; and / or configuring routing based on the stress test object network information.
[0021] According to a third aspect of the present disclosure, a cloud service stress testing system based on a serverless architecture is provided, including a control platform and multiple stress machines, wherein the control platform receives stress testing demand information and stress testing object network information input by a user, creates a stress testing scenario for the stress testing object, and determines a stress machine allocation strategy based on the stress testing demand information and the stress testing object network information, and allocates stress machines based on the stress machine allocation strategy; the stress machine obtains the stress testing object network information, and configures the network based on the stress testing object network information, thereby interacting with the stress testing object to perform stress testing subtasks, and uploading the stress testing results to the control platform.
[0022] According to a fourth aspect of the present disclosure, a cloud service stress test control device based on a serverless architecture is provided, including: a scenario creation device, used to receive stress test demand information and stress test object network information input by a user, and create a stress test scenario for the stress test object; a strategy determination device, used to determine a stress machine allocation strategy based on the stress test demand information and the stress test object network information; a stress machine allocation device, used to allocate stress machines according to the stress machine allocation strategy; and a result receiving device, used to receive the stress test results reported by the allocated stress machines.
[0023] Optionally, the device may also include: a task generating device for generating a stress testing task in response to a stress testing scenario start instruction; and a network information associating device for associating the stress testing object network information of the started stress testing scenario with the stress testing task, so that the stress machine executing the stress testing task obtains the stress testing object network information, thereby configuring the network based on the stress testing object network information.
[0024] Optionally, the device may further include: a stress machine releasing device, configured to release the stress machine allocated to the stress testing scenario in response to the stress testing task for the stress testing scenario being stopped.
[0025] According to a fifth aspect of the present disclosure, a cloud service stress testing device based on a serverless architecture is provided, including: a task receiving device for receiving a stress testing subtask for a stress testing object; a network information acquisition device for acquiring network information of the stress testing object corresponding to the stress testing task to which the stress testing subtask belongs; a network configuration device for configuring a stress machine network based on the stress testing object network information; a stress testing execution device for interacting with the stress testing object to execute the stress testing subtask; and a result uploading device for uploading the stress testing result.
[0026] According to the sixth aspect of the present disclosure, a cloud service test control method based on a serverless architecture is provided, including: receiving test scenario information input by a user; applying for a test machine according to the test scenario; receiving and storing test parameters set for the test scenario; sending the stored test parameters set for the test scenario to the test machine in response to a test parameter acquisition request from the test machine; and receiving test results obtained by the test machine by executing the test.
[0027] Optionally, the method may further include: in response to a duration of no new test parameters being received since the last time the test parameters were received exceeding a predetermined time threshold, releasing the applied test machine.
[0028] Optionally, the method may further include: providing a test scenario configuration interface so that the user can configure the test scenario; and / or presenting the configured test scenario to the user; and / or receiving a user's modification instruction for the configured test scenario, and modifying the test scenario accordingly.
[0029] Optionally, the method may further include: obtaining a service performance score based on the test result; and outputting the service performance score to a user.
[0030] According to the seventh aspect of the present disclosure, a cloud service testing method based on a serverless architecture is provided, including: starting a test engine in response to receiving a service test task for a test object; periodically sending a test parameter acquisition request to obtain test parameters; testing the test object based on the test parameters; and uploading the test results.
[0031] According to an eighth aspect of the present disclosure, a cloud service testing system based on a serverless architecture is provided, including a control platform and a test machine, wherein the control platform receives test scenario information input by a user, and applies for a test machine according to the test scenario; the applied test machine starts a test engine in response to receiving a service test task for a test object; the control platform receives and stores test parameters set for the test scenario; the test machine periodically sends a test parameter acquisition request to acquire test parameters; the control platform responds to the test parameter acquisition request from the test machine, and sends the stored test parameters set for the test scenario to the test machine; the test machine tests the test object based on the test parameters, and uploads the test results.
[0032] According to the ninth aspect of the present disclosure, a cloud service test control device based on a serverless architecture is provided, including: a scenario information input device for receiving test scenario information input by a user; a test machine application device for applying for a test machine according to the test scenario; a test parameter input device for receiving and storing test parameters set for the test scenario; a test parameter sending device for sending the stored test parameters set for the test scenario to the test machine in response to a test parameter acquisition request from the test machine; and a test result receiving device for receiving the test result obtained by the test machine by executing the test.
[0033] Optionally, the service test control device may further include: a test machine releasing device, configured to release the applied test machine in response to a duration of time exceeding a predetermined time threshold for not receiving new test parameters since the last time the test parameters were received.
[0034] According to the tenth aspect of the present disclosure, a cloud service testing device based on a serverless architecture is provided, including: an engine starting device, used to start a test engine in response to receiving a service test task for a test object; a parameter acquisition device, used to periodically send a test parameter acquisition request to obtain test parameters; a test execution device, used to test the test object based on the test parameters; and a result uploading device, used to upload the test results.
[0035] According to an eleventh aspect of the present disclosure, an application container testing method is provided, including: providing multiple simulated upper-layer applications for user selection; providing multiple standardized scenarios for user selection; deploying the simulated upper-layer application selected by the user in an application container; and testing the application container based on the selected standardized scenario and the simulated upper-layer application deployed in the application container.
[0036] Optionally, the method may further include: in response to user settings, constructing a scene based on a simulated upper-layer application selected by the user.
[0037] Optionally, the method may further include: initializing an environment for deploying a simulated upper-layer application based on a Kubernetes standard application programming interface.
[0038] Optionally, the method may further include: providing an environment setting interface to the user so that the user can set environment parameters; and setting the environment based on the environment parameters set by the user.
[0039] Optionally, the method may further include: after the test is completed, destroying the environment.
[0040] Optionally, the method may further include: providing a test control interface to the user so that the user can set test parameters.
[0041] Optionally, the method may further include: providing a scene start input module and / or a scene stop input module on the test control interface; starting the scene in response to a user's operation on the scene start input module, and / or stopping the scene in response to a user's operation on the scene stop input module.
[0042] Optionally, the method may further include: collecting test results; presenting a test report and / or performing performance scoring and / or performing performance comparison based on the test results.
[0043] According to the twelfth aspect of the present disclosure, an application container testing device is provided, including: an application selection device for providing multiple simulated upper-layer applications for user selection; a scenario selection device for providing multiple standardized scenarios for user selection; an application deployment device for deploying the simulated upper-layer application selected by the user in an application container; and a testing device for testing the application container based on the selected standardized scenario and the simulated upper-layer application deployed to the application container.
[0044] Optionally, the device may also include an environment setting device, which is used to: initialize the environment for deploying the simulated upper-layer application based on the Kubernetes standard application program interface; and / or provide an environment setting interface to the user so that the user can set the environment parameters, and set the environment based on the environment parameters set by the user; and / or destroy the environment after the test is completed.
[0045] Optionally, the device may also include a test control device, which is used to: provide a test control interface to the user so that the user can set test parameters; and / or provide a scene start input module and / or a scene stop input module on the test control interface, start the scene in response to the user's operation on the scene start input module, and / or, stop the scene in response to the user's operation on the scene stop input module; and / or collect test results, display a test report based on the test results and / or perform performance scoring and / or perform performance comparison. According to the thirteenth aspect of the present disclosure, a computing device is provided, including: a processor; and a memory, on which executable code is stored, and when the executable code is executed by the processor, the processor executes the method described in the first, second, sixth, seventh, and eleventh aspects above.
[0046] According to the fourteenth aspect of the present disclosure, a non-temporary machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the methods described in the first, second, sixth, seventh, and eleventh aspects above.
[0047] Therefore, users only need to configure stress testing scenarios or service testing scenarios, and the test system can implement the corresponding stress testing or service testing, which enables convenient testing. Users no longer need to be familiar with the network topology on the cloud, nor do they need to understand complex stress testing or service testing tools.
[0048] According to the test solutions of some embodiments of the present disclosure, users do not need to maintain stress testing and testing tools, and the tools can be used out of the box. In this way, people with low professional level can also perform testing work.
[0049] In addition, the testing solutions according to some embodiments of the present disclosure are based on the Serverless architecture, which can also save resource costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.
[0051] Figure 1 is a schematic diagram of a testing system according to the present disclosure.
[0052] Figure 2 is a schematic flow chart of a pressure testing method according to the present disclosure.
[0053] Figure 3 is a schematic block diagram of a pressure test control device according to the present disclosure.
[0054] Figure 4is a schematic block diagram of a pressure testing device according to the present disclosure.
[0055] Figure 5 is a schematic flow chart of a service testing method according to the present disclosure.
[0056] Figure 6 is a schematic block diagram of a service test control device according to the present disclosure.
[0057] Figure 7 is a schematic block diagram of a service testing device according to the present disclosure.
[0058] Figure 8 is a schematic flow chart of an application container testing method according to the present disclosure.
[0059] Fig. 9 It is a schematic flowchart of the environment setting process in the application container testing method according to the present disclosure.
[0060] Fig.10 is a schematic block diagram of an application container testing device according to the present disclosure.
[0061] Fig.11 is a schematic block diagram of an application container testing system architecture according to the present disclosure.
[0062] Fig.12 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned testing method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0063] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0064] Figure 1 The diagram schematically shows a cloud service testing system according to the present disclosure.
[0065] like Figure 1 As shown, the test system includes a control platform 100 and a plurality of test machines 200 .
[0066] There may be various services on the cloud platform 300, such as "Service ON EDAS (Enterprise Distributed Application Service)", "Service ON ACK (Container Service Kubernetes Edition)", "Service ON ECS (Cloud Server, Elastic Compute Service)", "Service ON ECI (Elastic Container Instance)", etc. Users can build applications based on these services to achieve the desired services.
[0067] The test system can be based on a serverless architecture. In this way, users only need to configure the scenario and set the test parameters, and do not need to be responsible for the operation and maintenance of the machines that perform stress testing and service testing. It can be used out of the box.
[0068] The control platform 100 allocates or selects a test machine 200 according to the test requirements. The allocated or selected test machine 200 interacts with the user to perform relevant tests on the service that the user desires to test.
[0069] When used as a pressure testing system, the testing machine 200 may be a press machine or a pressure testing machine.
[0070] The control platform 100 can receive stress testing requirement information and stress testing object network information input by the user, and create a stress testing scenario for the stress testing object (service or application) on the cloud platform 300.
[0071] Then, the control platform 100 may determine a stress machine allocation strategy according to the stress test requirement information and the stress test object network information, and allocate stress machines according to the stress machine allocation strategy.
[0072] The stress machine can obtain the network information of the stress test object accordingly, and configure the network based on the network information of the stress test object, so as to interact with the stress test object on the cloud platform 300 to perform stress test (sub)tasks, and upload the stress test results to the control platform 100.
[0073] When used as a service test system, the test machine 200 may be a service test machine, or may be simply referred to as a test machine.
[0074] The control platform 100 receives the test scenario information input by the user, and applies for the test machine 200 according to the test scenario.
[0075] In response to receiving a service test task for a test object on the cloud platform 300 , the applied or correspondingly allocated test machine 200 starts a test engine.
[0076] The control platform 100 receives and stores the test parameters set for the test scenario.
[0077] The test machine 200 periodically sends a test parameter acquisition request to acquire the test parameters.
[0078] In response to the test parameter acquisition request from the test machine, the control platform 100 sends the stored test parameters set for the test scenario to the test machine 200 .
[0079] The testing machine 200 tests the test object based on the test parameters and uploads the test results.
[0080]
Cloud service stress test
[0081] Reference below Figures 2 to 4 Describe the cloud service stress testing solution according to the present disclosure.
[0082] Figure 2 It is a schematic flowchart of the cloud service stress testing method according to the present disclosure.
[0083] Figure 3 It is a schematic block diagram of a cloud service stress test control device according to the present disclosure.
[0084] Figure 4 It is a schematic block diagram of a cloud service stress testing device according to the present disclosure.
[0085] Figure 3 The cloud service stress test control device shown can be used to execute the corresponding operation steps of the control platform 100. Figure 4 The cloud service pressure testing device shown can be used to execute each corresponding operation step of the press.
[0086] like Figure 2 As shown, in step S110, the control platform 100 may provide a stress testing scenario configuration interface to the user so that the user can configure the stress testing scenario.
[0087] In step S10, the user configures stress testing scenario information on the stress testing scenario configuration interface. The stress testing scenario information may include stress testing object (cloud service expected to be stress tested) information, stress testing requirement information, and stress testing object network information.
[0088] Users can fill in stress testing requirement information, such as stress testing duration, stress mode, etc., based on the services released on the cloud.
[0089] Users can fill in network information such as VPC (private network or virtual private cloud), switch, security group, etc. according to the network topology of the cloud service (stress test object) where the desired stress test is located. If it is ACK, you can also fill in POD information.
[0090] In step S112 , the control platform 100 , for example, may receive stress testing requirement information and stress testing object network information input by a user through the scenario creation device 110 , and create a stress testing scenario for the stress testing object.
[0091] In addition, the control platform 100 can also present the configured stress testing scenario to the user for the user to view.
[0092] The control platform 100 may present the configured stress testing scenario to the user after creating the stress testing scenario in step S112. Alternatively, the control platform 100 may present the configured stress testing scenario to the user in response to a viewing instruction of the user.
[0093] The control platform 100 may present the configured stress testing scenario to the user before starting the stress testing scenario. Alternatively, the control platform 100 may present the configured stress testing scenario to the user after the stress testing scenario has been started, for example, in response to a user's viewing instruction. Alternatively, the configured stress testing scenario may be presented to the user all the time during the stress testing process.
[0094] When the user sees the configured stress testing scenario and wants to modify it, he can issue the corresponding modification command.
[0095] The control platform 100 may receive a user's instruction to modify the configured stress testing scenario, and modify the stress testing scenario accordingly.
[0096] The modification instruction can be issued before starting the stress test scenario. Alternatively, it can be issued after the stress test scenario (stress test task) is executed to initiate a new stress test scenario (stress test task). Alternatively, it can be issued during the execution of the stress test scenario to adjust the stress test scenario being executed, such as the stress machine allocation strategy, stress machine network configuration, etc.
[0097] In step S20, the user issues an instruction to start the stress testing scenario.
[0098] Therefore, in step S120, the control platform 100 may generate a stress testing task in response to the stress testing scenario start instruction, for example, through the task generating device 120. The stress testing task may be assigned a task ID to facilitate subsequent task execution, information association, and the like.
[0099] In step S122 , the control platform 100 , for example, may associate the network information of the stress testing object of the activated stress testing scenario with the stress testing task through the network information association device 130 .
[0100] For example, the network information of the stress test object can be associated with the ID of the stress test task and stored in a database or memory accessible to the stress test machine. The database or memory here can be set up by the control platform 100 itself, or it can be a third-party database or memory. The database or memory can be used as a shared database or shared database for access by various services, functions or functions in the network architecture, storing data required by various services, functions or functions, and realizing data transfer between different services, functions or functions based on access rights, for example.
[0101] In this way, the stress testing machine or stress machine 210 assigned to execute the stress testing task (or stress testing subtask) can obtain the stress testing object network information based on the stress testing task ID, and thus configure the network based on the stress testing object network information.
[0102] In step S124, the control platform 100, for example, may determine the stress machine allocation strategy through the strategy determination device 140 according to the stress testing scenario information, especially the stress testing requirement information and the stress testing object network information.
[0103] The press allocation strategy may include, for example, the number, type, network mode, etc. of presses.
[0104] For example, if the number of concurrent tasks required is 100 and one press can execute 50 concurrent tasks, 200 presses need to be allocated. In addition, the press allocation strategy can also be set according to the network mode such as 3G, 4G, 5G, Wi-Fi, etc.
[0105] In step S125 , the control platform 100 may associate the stress machine allocation strategy with the stress testing task, for example, through the strategy association device 150 , for example, the stress machine allocation measurement may be stored in association with the stress testing task ID.
[0106] For example, the stress machine allocation strategy may be associated with the stress testing task ID and stored in a database or memory. The database or memory may also be the shared database or shared memory storing the stress testing object network information described above.
[0107] In this way, when executing a stress testing task, the stress machine 210 can be allocated according to the stress machine allocation strategy corresponding to the stress testing task.
[0108] In step S126 , the control platform 100 , for example, may allocate the press 210 through the press allocation device 160 according to the press allocation strategy corresponding to the stress testing task to be performed.
[0109] For example, the control platform 100 may divide the stress testing task into multiple parallel stress testing subtasks, and then allocate these stress testing subtasks to multiple presses allocated according to the press allocation strategy.
[0110] In step S210 , the stress machine 210 assigned with the stress testing task may receive a stress testing subtask for the stress testing object from the control platform 100 through the task receiving device 211 , for example.
[0111] In step S220, the stress machine 210 may, for example, obtain the stress test object network information corresponding to the stress test task to which the stress test subtask belongs through the network information acquisition device 212. For example, the stress machine 210 may request the stress test object network information from the control platform 100 based on the stress test task ID. Alternatively, the stress machine 210 may obtain the corresponding stress test object network information from a database or storage that stores the stress test task ID and the stress test object network information in an associated manner.
[0112] In step S230, the stress machine 210, for example, can configure the stress machine network based on the stress test object network information through the network configuration device 213, and set the network interconnection strategy to interact with the cloud platform 300 to test the stress test object (service / application) expected by the user.
[0113] Here, the stress machine 210 may create a virtual network card based on the stress test object network information, and / or the stress machine 210 may also configure routing based on the stress test object network information.
[0114] The stress machine 210 may prepare startup parameters and start the stress testing engine based on the stress testing requirement information.
[0115] In step S240 , the stress machine 210 , for example, may interact with the stress testing object through the stress testing execution device 214 to execute the stress testing subtask.
[0116] In step S250, the press machine 210 may collect the stress test result data, for example, through the result collection device 215. The stress test result data may include measured data of various stress test indicators.
[0117] In step S260 , the press machine 210 may upload the stress test result to the control platform 100 , for example, via the result uploading device 216 .
[0118] In step S128, the control platform 100 may receive the stress test results reported by the assigned press machine 210, for example, through the result receiving device 170. The control platform 100 may store the received stress test results in a database or memory for comprehensive analysis and statistical processing.
[0119] In step S130, the control platform 100, for example, may perform comprehensive analysis and statistical processing on the stress testing results from multiple stress machines 210 for the same stress testing task (stress testing scenario) through the result processing device 180, obtain a stress testing report, and output the stress testing report to the user.
[0120] Then, in step S30, the user can view the stress test result (stress test report).
[0121] In this way, users only need to configure the stress test scenario on the stress-side scenario configuration interface, enter the stress test object information, stress test requirement information, and stress test object network information, and then start the stress test scenario. The test system can automatically perform stress tests on the stress test object (service) and feedback the stress test results for users to view.
[0122] The test system can set the stress machine allocation according to the stress test demand information and the stress test object network information, thereby realizing the stress machine allocation. Furthermore, the test system can also pass the stress test object network information input by the user to the stress machine 210 by associating it with the test task, so that the stress machine can configure the stress machine's network according to the stress test object network information, so as to interact with the object to be tested (cloud service / application) and perform stress testing.
[0123] Therefore, based on the serverless architecture, a convenient stress testing solution is implemented. Users no longer need to be familiar with the network topology on the cloud, nor do they need to understand complex stress testing tools. They can perform stress testing on cloud services with simple page operations.
[0124] Next, the automatic release mechanism of the press is described.
[0125] You can set the conditions for automatically stopping the stress test, such as the duration of the stress test. You can also stop the stress test in response to the user's stress test scenario stop instruction.
[0126] In step S40, the user sets the automatic stop condition of the scene, such as the stress test duration.
[0127] In step S140, the control platform 100 determines whether the stop condition is met, for example, by calculating the stress test duration and determining whether the stress test duration reaches a predetermined stress test duration threshold. When the stop condition is met, the stress test task stops.
[0128] Alternatively, in step S50, the user issues an instruction to stop the stress testing scenario, and then stops the stress testing task.
[0129] In step S150 , the control platform 100 may instruct the press machine 210 (in step S270 ) to stop reporting the results.
[0130] In step S152 , the control platform 100 , for example, may release the stress machine 210 allocated to the stress testing scenario in response to the stress testing task for the stress testing scenario being stopped, through the stress machine releasing device 190 .
[0131] In step S280, the press 210 is released so that other press testing tasks can be performed.
[0132] By achieving automatic release of the press, waste of resources is further avoided.
[0133]
Cloud service test
[0134] Reference below Figures 5 to 7 Describe the cloud service testing solution according to the present disclosure.
[0135] Figure 5 It is a schematic flowchart of the cloud service testing method according to the present disclosure.
[0136] Figure 6 It is a schematic block diagram of a cloud service test control device according to the present disclosure.
[0137] Figure 7 It is a schematic block diagram of a cloud service testing device according to the present disclosure.
[0138] Figure 6 The cloud service test control device shown can be used to execute each corresponding operation step of the control platform 100. Figure 7 The cloud service testing device shown can be used to execute the corresponding operation steps of the service testing machine (testing machine) 220.
[0139] like Figure 5 As shown, in step S1110, the control platform 100 provides a service test configuration interface to the user so that the user can configure a test scenario.
[0140] In step S1010, the user configures the test scenario according to the network information of the cloud service (test object) to be tested, such as VPC (proprietary network or virtual private cloud), switch, security group, etc.
[0141] In step S1112, the control platform 100 may receive the test scene information input by the user, for example, through the scene information input device 1110, to enable the user to configure the test scene.
[0142] In addition, the control platform 100 can also present the configured test scenario to the user for the user to review.
[0143] The control platform 100 may present the configured test scenario to the user after configuring the test scenario in step S1112. Alternatively, the control platform 100 may present the configured test scenario to the user in response to a viewing instruction of the user.
[0144] The control platform 100 may present the configured test scenario to the user before starting the test scenario. Alternatively, the control platform 100 may present the configured test scenario to the user after the test scenario has been started, for example, in response to a user's viewing instruction. Alternatively, the configured test scenario may be presented to the user all the time during the test process.
[0145] When the user sees the configured test scenario and wishes to modify it, he can issue a corresponding modification instruction.
[0146] The control platform 100 may receive a user's modification instruction for a configured test scenario, and modify the test scenario accordingly.
[0147] The modification instruction may be issued before starting the test scenario. Alternatively, it may be issued after the test scenario (test task) is executed to initiate a new test scenario (test task). Alternatively, it may be issued during the execution of the test scenario to adjust the test scenario being executed to adjust the test process, such as adjusting the test machine.
[0148] In step S1114, the control platform 100, for example, may apply for the test machine 220 through the test machine application device 1120 according to the test scenario.
[0149] In step S1210 , the test machine 220 may start the test engine in response to receiving the service test task for the test object, for example, through the engine starting device 1211 . In addition, a Netty connection may also be established to the control platform 100 .
[0150] In step S1122 , the control platform 100 may provide a test interface to the user.
[0151] In step S1020, the user may fill in test parameters on the test interface.
[0152] In step S1124 , the control platform 100 , for example, may receive and store the test parameters set for the test scenario through the test parameter input device 1130 .
[0153] The control platform 100 may store the test parameters in, for example, a database or storage established by the control platform 100 itself or by a third party.
[0154] In step S1220, the test machine 220 may, for example, periodically send a test parameter acquisition request through the parameter acquisition device 1212. Here, the test machine 220 may periodically request the test parameters, and the query period may be, for example, 100 milliseconds.
[0155] In step S1126, the control platform 100, for example, through the test parameter sending device 1140, in response to a test parameter acquisition request from the test machine, searches for the test parameters set for the test scenario in the database or memory, and in step S1128, sends the found test parameters set for the test scenario to the test machine.
[0156] In step S1230 , the test machine 220 , for example, may receive the test parameters from the test platform 100 via the parameter acquisition device 1212 .
[0157] In step S1240 , the test machine 220 , for example, may call a service (test object) on the cloud through the test execution device 1213 to test the test object (service / application) on the cloud platform 300 based on the test parameters.
[0158] In step S1250 , the testing machine 220 may collect the test results, for example, through the result collecting device 1214 .
[0159] In step S1260 , the testing machine 220 may upload the test results to the control platform 100 , for example, via the result uploading device 1215 .
[0160] In step S1130 , the control platform 100 , for example, may receive the test result obtained by the test machine 220 by executing the service test through the test result receiving device 1150 , and store the test result in step S1132 .
[0161] The control platform 100 may also store the test results in a database or storage established by the control platform 100 or a third party, for example.
[0162] In step S1030, the user views the test results.
[0163] In step S1134, the control platform 100, for example, may periodically poll the test results through the test result presenting device 1160, and provide the test results to the user for the user to view.
[0164] The control platform 100 can also obtain a service performance score based on the test result. Thus, in step S1134, the control platform 100 can output the service performance score to the user.
[0165] In this way, the user only needs to configure the test scenario on the test scenario configuration interface, enter the test object information and test object network information, and then fill in the test parameters on the test interface. The test system can automatically perform service testing on the test object (service) and feedback the test results for the user to view.
[0166] The test system can apply for a test machine based on the test scenario information, such as the network information of the stress test object. Furthermore, the test system can also respond to the parameter acquisition request of the test machine 220 and provide the corresponding test parameters to the test machine 220 so that the test machine 220 can call the cloud service, interact with the object to be tested (cloud service / application), and perform service testing.
[0167] Therefore, based on the serverless architecture, a convenient service testing solution is implemented. Users no longer need to be familiar with the network topology on the cloud, nor do they need to understand complex service testing tools. They can test cloud services with simple page operations.
[0168] Next, the automatic release mechanism of the test machine is described.
[0169] In step S1150, the control platform 100 may monitor the service test and check whether the user has input new test parameters in the test interface.
[0170] In step S1152 , in response to the duration of not receiving new test parameters since the last test parameters were received exceeding a predetermined time threshold, such as 5 minutes, the control platform 100 may release the requested test machine 220 , for example, through the test machine release device 1170 .
[0171] In step S1280 , the test machine 220 is released so that it can receive other test tasks.
[0172] By realizing the automatic release of the test machine, waste of resources is further avoided.
[0173]
Application container testing
[0174] Reference below Figures 8 to 11 An application container testing scheme according to the present disclosure is described.
[0175] As an infrastructure, containers carry a large number of applications, and technical solutions are frequently upgraded. Once performance degradation occurs during a solution upgrade, the performance loss to upper-layer applications will be even greater. For example, if container performance degrades by 1S, the upper-layer application may degrade by 10S. Therefore, it is necessary to perform a performance evaluation of the container's technical upgrade solution based on the upper-layer application.
[0176] Traditional evaluation solutions require users to build their own evaluation environment, create upper-layer applications, build a stress testing platform, design stress testing scenarios, execute stress testing tasks, collect stress testing results, and compare performance results.
[0177] Such traditional stress testing methods have the following disadvantages:
[0178] 1. Manually building an evaluation environment is time-consuming and labor-intensive;
[0179] 2. Designing simulation applications requires a certain technical foundation and time cost;
[0180] 3. To build a stress testing platform, you need to be familiar with stress testing tools, such as Jmeter and other tools;
[0181] 4. Designing stress testing scenarios requires a certain technical foundation and time cost;
[0182] 5. It is not possible to automatically compare performance results and generate performance reports. Performance test reports can only be written manually.
[0183] The present disclosure provides a container performance evaluation method based on upper-layer applications, which solves the problems existing in traditional stress testing methods, such as high requirements for evaluators, long cycles, and unprofessional evaluation.
[0184] Figure 8 is a schematic flow chart of an application container testing method according to the present disclosure.
[0185] like Figure 8 As shown, in step S810, multiple simulated upper layer applications may be provided for user selection.
[0186] Fig.11 is a schematic block diagram of an application container testing system architecture according to the present disclosure.
[0187] like Fig.11 As shown, the application container test system architecture includes three modules: upper application module, standardized scenario module and performance evaluation platform. The performance evaluation platform can include a basic environment module and a pressure platform (test control module).
[0188] like Fig.11 As shown, the simulated upper-layer applications provided may include upper-layer applications involving CPU, upper-layer applications involving memory, upper-layer applications involving logs, upper-layer applications involving hard disks, upper-layer applications involving networks, upper-layer applications involving Redis reading and writing, and the like.
[0189] In this way, the user does not need to redesign the simulation application and can reuse the provided simulation upper-layer application.
[0190] In step S820, a plurality of standardized scenarios may be provided for user selection.
[0191] like Fig.11 As shown, the provided standardized scenarios may include computationally intensive, IO intensive, memory consuming, constant pressure, step pressure, pulse pressure, etc. In this way, the user does not need to design the scenario again.
[0192] In addition, if the provided standardized scenarios do not include the scenarios desired by the user, a scenario may be constructed based on a simulated upper-layer application selected by the user in response to the user's settings.
[0193] In this way, if the user needs to design a scene, the required scene can be quickly constructed according to the simulated upper-layer application provided in step S810.
[0194] In step S830, the simulated upper-layer application selected by the user may be deployed in the application container.
[0195] Thus, in step S840, the application container may be tested based on the selected standardized scenario and the simulated upper-layer application deployed in the application container.
[0196] Before deploying the application in step S830, the environment may also be set.
[0197] Fig. 9 It is a schematic flowchart of the environment setting process in the application container testing method according to the present disclosure.
[0198] like Fig.11 As shown, the basic environment module may include three modules: environment setting, environment startup, and environment destruction. Each function of the basic environment module may be implemented based on the Kubernetes standard application program interface, for example.
[0199] In step S910, an environment setting interface is provided to the user so that the user can set environment parameters.
[0200] In step S920, the environment is set based on the environment parameters set by the user.
[0201] In step S930, based on the Kubernetes standard application program interface, the environment to be deployed to simulate the upper-layer application is initialized (pulled up).
[0202] In step S940, after the test is completed, the environment is destroyed.
[0203] In this way, users only need to initialize the required evaluation environment through the interface.
[0204] In addition, if Fig.11 As shown, a pressure platform (also referred to as a "test control module") may also be provided.
[0205] The test control module can provide a test control interface to the user so that the user can set test parameters.
[0206] In addition, a scene start input module and / or a scene stop input module may be provided on the test control interface. Thus, in response to the user's operation on the scene start input module, the scene may be started; and in response to the user's operation on the scene stop input module, the scene may be stopped.
[0207] In addition, for example, the test results can also be collected and presented on the test control interface. For example, the test results can be collected, and a test report can be obtained and presented based on the test results, performance scoring can be performed, performance comparison can be performed, and the like.
[0208] In this way, the present disclosure provides a container performance evaluation method based on upper-layer applications, and users can implement container testing only through interface operations, which solves the problems existing in traditional evaluation methods, such as high requirements for evaluators, long cycles, and unprofessional evaluation.
[0209] Fig.10 The present invention is a schematic block diagram of an application container testing device that can be used to implement the application container testing method according to the present invention.
[0210] like Fig.10 As shown, the container testing device may include an application selection device 1010 , a scenario selection device 1020 , an application deployment device 1030 , and a testing device 1040 .
[0211] The application selection device 1010 provides a plurality of simulated upper layer applications for the user to select.
[0212] The scene selection device 1020 provides a plurality of standardized scenes for the user to select.
[0213] The application deployment device 1030 deploys the simulated upper-layer application selected by the user in the application container.
[0214] The testing device 1040 tests the application container based on the selected standardized scenario and the simulated upper-layer application deployed in the application container.
[0215] In some embodiments, the application container testing device may further include an environment setting device 1050. The environment setting device 1050 may implement its functions based on a Kubernetes standard application program interface.
[0216] The environment setting device 1050 may provide an environment setting interface to the user so that the user can set environment parameters, and set the environment based on the environment parameters set by the user.
[0217] The environment setting device 1050 can initialize the environment for deploying the simulated upper-layer application based on the Kubernetes standard application program interface.
[0218] After the test is finished, the environment setting device 1050 destroys the environment.
[0219] In some embodiments, the application container testing device may further include a test control device 1060 .
[0220] The test control device 1060 may provide a test control interface to the user so that the user can set test parameters.
[0221] The test control device 1060 may provide a scenario start input module and / or a scenario stop input module on the test control interface. In response to the user's operation on the scenario start input module, the scenario may be started; in response to the user's operation on the scenario stop input module, the scenario may be stopped.
[0222] The test control device 1060 can collect test results so as to present a test report based on the test results, perform performance scoring, perform performance comparison, etc.
[0223] Fig.12 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned testing method according to an embodiment of the present invention is shown.
[0224] See also Fig.12 , the computing device 1300 includes a memory 1310 and a processor 1320 .
[0225] The processor 1320 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 1320 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 1320 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0226] The memory 1310 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1320 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at runtime. In addition, the memory 1310 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1310 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0227] The memory 1310 stores executable codes, and when the executable codes are processed by the processor 1320 , the processor 1320 can execute the test method mentioned above.
[0228] The testing scheme according to the present invention has been described above in detail with reference to the accompanying drawings.
[0229] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.
[0230] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.
[0231] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.
[0232] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0233] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A cloud service stress test control method based on serverless architecture, include: Receive stress test requirement information and stress test object network information input by the user, and create a stress test scenario for the stress test object; wherein the stress test requirement information includes stress test duration and stress mode; the stress test object network information is the network information filled in by the user according to the network topology structure where the stress test object is located; the network information includes a private network or a virtual private cloud VPC, a switch, and a security group; Determine the stress machine allocation strategy based on stress testing demand information and stress testing object network information; Allocating presses according to a press allocation strategy; and Receive the stress test results reported by the assigned stress machine.
2. The method according to claim 1, further comprising: include: In response to the stress testing scenario start instruction, a stress testing task is generated; as well as The network information of the stress testing object of the activated stress testing scenario is associated with the stress testing task, so that the stress machine executing the stress testing task obtains the network information of the stress testing object, thereby configuring the network based on the network information of the stress testing object.
3. The method according to claim 2, wherein the step of allocating presses according to the press allocation strategy include: Associating the press allocation strategy with the stress testing task, so that when the stress testing task is executed, a press is allocated according to the press allocation strategy; Divide the stress testing task into multiple stress testing subtasks; as well as Assign stress testing subtasks to multiple presses assigned according to the press assignment policy.
4. The method according to claim 3, further comprising: include: The stress testing object network information is stored in association with the stress testing task ID in a database or memory accessible to the stress machine, so that the stress machine assigned with the stress testing subtask can obtain the stress testing object network information corresponding to the stress testing task to which the stress testing subtask belongs.
5. The method according to claim 1, further comprising: include: In response to the stress testing task for the stress testing scenario being stopped, releasing the stress machine allocated to the stress testing scenario.
6. The method according to claim 5, further comprising: include: Statistics are collected on the number of used stress machines and the duration of stress machine usage to calculate the resources consumed by the stress testing service.
7. The method according to claim 1, further comprising: include: Provides a stress testing scenario configuration interface so that users can configure stress testing scenarios; And / or present the configured stress testing scenario to the user; and / or Receive a user's modification instruction for the configured stress testing scenario, and modify the stress testing scenario accordingly.
8. The method according to claim 1, further comprising: include: outputting the determined press machine allocation strategy to a user; and / or Receive a user's instruction to modify the press allocation strategy and modify the press allocation strategy accordingly; and / or The pressure machine allocation strategy is stored in association with the pressure testing task ID in a database or a memory, so as to obtain the corresponding pressure machine allocation strategy when executing the pressure testing task; and / or The press allocation strategy is stored in a database or a memory so that the press allocation strategy can be obtained when other stress testing tasks are performed as an alternative press allocation strategy.
9. The method according to claim 1, further comprising: include: Comprehensively process the pressure test results from multiple presses to obtain a pressure test report; as well as Output the stress test report to the user.
10. A cloud service stress testing method based on serverless architecture. include: Receive a stress test subtask for a stress test object; wherein the stress test subtask is started based on the stress test scenario of the stress test object; the stress test scenario of the stress test object is determined based on stress test requirement information and stress test object network information; wherein the stress test requirement information includes stress test duration and stress mode; the stress test object network information is network information filled in by the user according to the network topology structure where the stress test object is located; the network information includes a proprietary network or a virtual private cloud VPC, a switch, and a security group; Obtain network information of the stress testing object corresponding to the stress testing task to which the stress testing subtask belongs; Configure the pressure machine network based on the pressure test object network information; interacting with the stress testing object to execute the stress testing subtask; and Upload the stress test results.
11. The method according to claim 10, in, The step of configuring the press network based on the stress test object network information includes: Create a virtual network card based on the network information of the stress test object; and / or Configure routing based on the network information of the stress test object.
12. A cloud service stress testing system based on a serverless architecture, comprising a control platform and multiple presses, in, The control platform receives the stress test demand information and stress test object network information input by the user, creates a stress test scenario for the stress test object, and determines the stress machine allocation strategy based on the stress test demand information and the stress test object network information, and allocates the stress machine according to the stress machine allocation strategy; wherein, the stress test demand information includes the stress test duration and stress mode; the stress test object network information is the network information filled in by the user according to the network topology structure where the stress test object is located; the network information includes a proprietary network or a virtual private cloud VPC, a switch, and a security group; The stress machine obtains network information of the stress test object, and configures the network based on the network information of the stress test object, so as to interact with the stress test object to perform stress test subtasks, and upload the stress test results to the control platform.
13. A cloud service stress test control device based on serverless architecture, include: A scenario creation device, used to receive stress test requirement information and stress test object network information input by a user, and create a stress test scenario for the stress test object; wherein the stress test requirement information includes stress test duration and stress mode; the stress test object network information is network information filled in by the user according to the network topology structure where the stress test object is located; the network information includes a proprietary network or a virtual private cloud VPC, a switch, and a security group; A strategy determination device, used to determine a stress machine allocation strategy according to stress test demand information and stress test object network information; a press allocating device for allocating presses according to a press allocating strategy; and The result receiving device is used to receive the pressure test result reported by the assigned pressure machine.
14. The device according to claim 13, further comprising: include: A task generating device, used to generate a stress testing task in response to a stress testing scenario starting instruction; as well as The network information associating device is used to associate the network information of the stress testing object of the activated stress testing scenario with the stress testing task, so that the stress machine executing the stress testing task obtains the network information of the stress testing object, thereby configuring the network based on the network information of the stress testing object.
15. The device according to claim 13, further comprising: include: The stress machine releasing device is used to release the stress machine allocated to the stress testing scenario in response to the stress testing task for the stress testing scenario being stopped.
16. A cloud service stress testing device based on serverless architecture, include: A task receiving device, used for receiving a stress test subtask for a stress test object; wherein the stress test subtask is started based on the stress test scenario of the stress test object; the stress test scenario of the stress test object is determined based on stress test requirement information and stress test object network information; wherein the stress test requirement information includes stress test duration and stress mode; the stress test object network information is network information filled in by the user according to the network topology structure where the stress test object is located; the network information includes a proprietary network or a virtual private cloud VPC, a switch, and a security group; A network information acquisition device, used to acquire network information of a stress testing object corresponding to the stress testing task to which the stress testing subtask belongs; A network configuration device, used for configuring a press network based on the network information of the pressure test object; A stress testing execution device, configured to interact with the stress testing object to execute the stress testing subtask; and Result upload device, used to upload stress test results.
17. A cloud service test control method based on serverless architecture, include: Receive test scenario information input by the user; The information of the test scenario includes network information where the test object is located; The network information includes a private network or a virtual private cloud VPC, a switch, and a security group; Apply for a test machine based on the test scenario; receiving and storing test parameters set for the test scenario; the test parameters are test parameters filled in by the user on the test interface, and the test interface is displayed to the user by the control platform after the test machine responds to receiving the service test task for the test object and starts the test engine; In response to a test parameter acquisition request from the test machine, the stored test parameters set for the test scenario are sent to the test machine; the test parameter acquisition request of the test machine is periodically sent by the test machine after starting the test engine in response to receiving a service test task for the test object; as well as The test results obtained by the receiving tester through the test execution.
18. The method according to claim 17, further comprising: include: In response to a duration of no new test parameters being received since the last test parameters were received exceeding a predetermined time threshold, the applied test machine is released.
19. The method according to claim 17, further comprising: include: Provide a test scenario configuration interface so that users can configure test scenarios; and / or presenting the configured test scenario to the user; and / or Receive user modification instructions for the configured test scenario and modify the test scenario accordingly.
20. The method according to claim 17, further comprising: include: Obtaining a service performance score based on the test results; as well as The service performance score is output to the user.
21. A cloud service testing method based on serverless architecture. include: In response to receiving a service test task for a test object, starting a test engine; Periodically sending a test parameter acquisition request to acquire test parameters; wherein the test parameters are test parameters for a test scenario, and the test parameters are test parameters filled in by a user on a test interface, and the test interface is displayed to the user by the control platform after the test engine is started as described above; the test scenario includes network information where the test object is located; the network information includes a private network or a virtual private cloud VPC, a switch, and a security group; performing a test on the test object based on the test parameters; and Upload the test results.
22. A cloud service testing system based on a serverless architecture, comprising a control platform and a testing machine. in, The control platform receives the information of the test scenario input by the user, and applies for a test machine according to the test scenario; the information of the test scenario includes the network information where the test object is located; the network information includes a private network or a virtual private cloud VPC, a switch, and a security group; The test machine of the application starts the test engine in response to receiving the service test task for the test object; The control platform displays a test interface to the user, and receives and stores the test parameters set by the user on the test interface for the test scenario; The test machine periodically sends a test parameter acquisition request to obtain the test parameters; The control platform sends the stored test parameters set for the test scenario to the test machine in response to the test parameter acquisition request from the test machine; The testing machine tests the test object based on the test parameters and uploads the test results.
23. A cloud service test control device based on serverless architecture, include: A scene information input device, used to receive the test scene information input by the user; The information of the test scenario includes network information where the test object is located; The network information includes a private network or a virtual private cloud VPC, a switch, and a security group; A test machine application device, used to apply for a test machine according to the test scenario; A test parameter input device, used for receiving and storing test parameters set for the test scenario; The test parameters are test parameters filled in by the user on the test interface, and the test interface is displayed to the user by the control platform after the test machine responds to receiving the service test task for the test object and starts the test engine; a test parameter sending device, configured to send the stored test parameters set for the test scenario to the test machine in response to a test parameter acquisition request from the test machine; the test parameter acquisition request of the test machine is periodically sent by the test machine after starting the test engine in response to receiving a service test task for the test object; and The test result receiving device is used to receive the test result obtained by the test machine through executing the test.
24. The device according to claim 23, further comprising: include: The test machine releasing device is used to release the applied test machine in response to the duration of not receiving new test parameters since the last test parameters were received exceeding a predetermined time threshold.
25. A cloud service testing device based on serverless architecture, include: an engine starting device for starting a test engine in response to receiving a service test task for a test object; A parameter acquisition device, used to periodically send a test parameter acquisition request to acquire a test parameter; wherein the test parameter is a test parameter for a test scenario, and the test parameter is a test parameter filled in by a user on a test interface, and the test interface is displayed to the user by a control platform after the test engine is started as described above; the test scenario includes network information where the test object is located; the network information includes a proprietary network or a virtual private cloud VPC, a switch, and a security group; A test execution device, configured to test the test object based on the test parameters; and The result uploading device is used to upload the test results.
26. A computing device, include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to perform the method according to any one of claims 1 to 11 and 17 to 21.
27. A non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method as claimed in any one of claims 1 to 11 and 17 to 21.
Citation Information
Patent Citations
Automatic testing method for reliability of data equipment and system
CN102508751A
Performance test method, device and system based on cloud computing platform
CN104461856A
Method and apparatus for testing application performance
CN105095089A
Method for testing server stability and system thereof
CN105207844A
Cloud platform-based test method and system
CN106933729A
