Business performance test method and device, electronic equipment and storage medium
The method addresses the challenge of diverse performance requirements in electric power grid algorithmic business scenarios by executing scenario scripts and using data processing models for intelligent performance evaluation, enabling efficient and unified testing across different types.
Patent Information
- Application Number
- CN202510408691.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-02
- Publication Date
- 2025-07-15
AI Technical Summary
The existing technology cannot effectively and uniformly test multiple types of power grid computing power services, resulting in inefficient performance testing.
By obtaining use case scripts, executing and collecting test data, and using the data processing model to match the corresponding test methods, the performance indicators of power grid computing power services are obtained.
It realizes unified testing of various types of power grid computing power services, improves testing efficiency, and completes intelligent testing of computing power services performance.
Smart Images

Figure CN120316007A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to a service performance testing method, apparatus, electronic device, and storage medium. Background Art
[0002] With the advancement of the transformation of the power system towards digitalization and intelligence, the application scenarios of grid computing power services have been continuously expanding, including grid load forecasting, intelligent distribution automation, power drone inspection, grid digital twin, etc.
[0003] There are many types of grid computing power services, and the required performance indicators are different, making it difficult to conduct unified testing. Moreover, grid computing power services have put forward different requirements for the performance indicators of the power communication network. Currently, there is still a lack of a test solution that can support the testing of multiple types of grid computing power services. Summary of the Invention
[0004] The present invention provides a service performance testing method, apparatus, electronic device, and storage medium to achieve comprehensive and intelligent testing of the performance of grid computing power services.
[0005] According to one aspect of the present invention, there is provided a service performance testing method, including:
[0006] Obtaining a use case script, where the use case script is related to at least one type of computing power service;
[0007] Executing the use case script and collecting test data during the execution of the use case script, where the test data includes data indicating the performance indicators of the computing power service;
[0008] According to the type of the computing power service, matching the test method corresponding to the test data through a data processing model;
[0009] Testing the test data using the test method to obtain a test conclusion, where the test conclusion indicates the quality of the performance indicators of the computing power service.
[0010] According to another aspect of the present invention, there is provided a service performance testing apparatus, including:
[0011] An obtaining module, configured to obtain a use case script, where the use case script is related to at least one type of computing power service;
[0012] An execution module, configured to execute the use case script and collect test data during the execution of the use case script, where the test data includes data indicating the performance indicators of the computing power service;
[0013] A matching module, configured to match the test method corresponding to the test data through a data processing model according to the type of the computing power service;
[0014] A test module for testing the test data by using the test method to obtain a test conclusion, where the test conclusion indicates the pros and cons of the performance indicators of the computing power service.
[0015] According to another aspect of the present invention, there is provided an electronic device, which includes:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the service performance test method according to any embodiment of the present invention.
[0019] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the service performance test method according to any embodiment of the present invention when executed.
[0020] The technical solution of the embodiment of the present invention first obtains a use case script, which is related to at least one type of computing power service, then executes the use case script, and collects test data during the execution of the use case script. The test data includes data indicating the performance indicators of the computing power service. Then, according to the type of the computing power service, a test method corresponding to the test data is matched through a data processing model. Finally, the test data is tested by using the test method to obtain a test conclusion, and the test conclusion indicates the pros and cons of the performance indicators of the computing power service. By executing the use case script related to the computing power service, it is possible to support the testing of multiple types of computing power services and achieve the unified testing of the computing power service. While executing the use case script, the test data is collected, which solves the problem of low efficiency in service performance testing caused by the diversity of the performance indicators of the computing power service. The test data is tested by using the test method matched by the data processing model, and the intelligent testing of the performance of the computing power service is completed.
[0021] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Description of the Drawings
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0023] Figure 1 is a flowchart of a service performance testing method provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a system architecture diagram of a power grid computing power service performance testing process provided according to Embodiment 1 of the present invention;
[0025] Figure 3 is a flowchart of a use case script execution method provided according to Embodiment 2 of the present invention;
[0026] Figure 4 is a structural schematic diagram of a service performance testing device provided according to Embodiment 3 of the present invention;
[0027] Figure 5 is a block diagram of an electronic device provided according to Embodiment 4 of the present invention. Detailed implementation manners
[0028] In order to enable those skilled in the art of the present technology to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above accompanying drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order different from those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily need to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1The following is a flowchart of a service performance testing method provided in the first embodiment of the present invention. This embodiment is applicable to the situation of testing the performance of computing power services. This method can be executed by a service performance testing device, which can be implemented in the form of hardware and / or software. The service performance testing device can be configured in an electronic device, and the electronic device can include a power grid terminal, a data network analyzer, etc. As Figure 1 shown, the method includes:
[0032] S110. Obtain a use case script, where the use case script is related to at least one type of computing power service.
[0033] In this embodiment, the use case script can be understood as a tool in the process of testing the performance of the power grid computing power service, and can be used to store data or information related to the performance testing of the power grid computing power service. The power grid computing power service can be understood as a kind of computing power resource based on the power grid. The power grid computing power service can provide calculations and services for the operation of the power system, and can integrate and optimize the allocation of various computing resources in the power grid to meet the large number of complex computing requirements in the power system. And the application scenarios of the power grid computing power service are constantly expanding, including power grid load forecasting, intelligent distribution automation, power drone inspection, power grid digital twin, etc.
[0034] Specifically, according to the different application scenarios of the power grid computing power service, the power grid computing power service can include multiple types. For a use case script, it can be related to at least one type of power grid computing power service, and the use case script can include data displayed in instrument devices or power grid terminal devices. Among them, the instrument device can be a device connected to the electronic device that executes the service performance testing process, and the instrument device can be uniformly managed and controlled through the standard interface of the electronic device. Similarly, the power grid terminal device can also be managed and controlled by this electronic device, and the power grid terminal device can be used to directly execute the power grid computing power service.
[0035] Exemplarily, Table 1 is a related information table of a power grid computing power service provided in the first embodiment of the present invention.
[0036] Table 1 Related Information Table of Power Grid Computing Power Service
[0037]
[0038] S120. Execute the use case script and collect the test data during the execution of the use case script, where the test data includes data indicating the performance indicators of the computing power service.
[0039] In this embodiment, the test data can be understood as the data generated when the grid computing power service is executed in the power communication network, and this data is related to the performance indicators of the grid computing power service. The performance indicators can measure parameters such as the specific performance and performance of the grid computing power service, and the performance indicators can include: bandwidth, delay, jitter, reliability, etc.
[0040] Specifically, for at least one use case script, the at least one use case script can be executed sequentially according to the determined execution order. During the execution of the use case script, test data related to the performance indicators of the grid computing power service is collected to test the performance of the grid computing power service.
[0041] Exemplarily, Figure 2 is a system architecture diagram of a grid computing power service performance test process provided according to Embodiment 1 of the present invention. As Figure 2 shown, at least one use case script can be orchestrated through a large model combined with a local knowledge base, and then the use case script is executed while storing the test data in the system database. Among them, the format of the test data can include various formats such as pictures, texts, and tables. Among them, the local knowledge base can store documents or data related to the grid computing power service, etc., and can include codes of mainstream automation languages (such as Python, TCL, etc.).
[0042] S130. According to the type of the computing power service, match the test method corresponding to the test data through a data processing model.
[0043] In this embodiment, the data processing model can be understood as a model used in the business performance test process, and can be a fine-tuned large model. The data processing model can be used to match the corresponding test method for the test data, can also be used to orchestrate the execution order of at least one use case script, and can also be used to generate use case scripts.
[0044] Exemplarily, according to different types of grid computing power services, the test data is input into the data processing model to obtain the characteristics of the test data, and then the data processing model can match the corresponding test method for the test data according to the characteristics of the test data. For example, the characteristics of the test data can be the format of the test data, and the data processing model can match different test methods for the test data according to the format of the test data.
[0045] S140. Use the test method to test the test data to obtain a test conclusion, and the test conclusion indicates the quality of the performance indicators of the computing power service.
[0046] In this embodiment, the test conclusion can be understood as the result of analyzing the test data, and can indicate the quality of the performance indicators of the grid computing power service.
[0047] Specifically, the test data can be tested according to the corresponding test method. The test process can be based on the judgment criteria corresponding to the test method, comparing the test data with the judgment criteria to obtain a test conclusion. After obtaining the test conclusion, a standardized test report can also be generated according to a predetermined template.
[0048] Exemplarily, as Figure 2 shown, in the test data analysis module, the test data is tested according to the test method. The judgment criteria can be obtained from the local knowledge base, and the judgment criteria can be related to the type of grid computing power service.
[0049] The technical solution of the embodiment of the present invention first obtains a use case script, the use case script is related to at least one type of computing power service, then executes the use case script, and collects the test data during the execution of the use case script. The test data includes data indicating the performance indicators of the computing power service. Then, according to the type of the computing power service, the test method corresponding to the test data is matched through a data processing model. Finally, the test data is tested using the test method to obtain a test conclusion, and the test conclusion indicates the pros and cons of the performance indicators of the computing power service. By executing the use case script related to the computing power service, it is possible to support the testing of multiple types of computing power services and achieve unified testing of the computing power service. While executing the use case script, the test data is collected, which solves the problem of low efficiency in business performance testing caused by the diversity of the performance indicators of the computing power service. The test data is tested using the test method matched by the data processing model, completing the intelligent testing of the performance of the computing power service.
[0050] Based on the above embodiments, variant embodiments of the above embodiments are proposed. Here, it should be noted that for the sake of brevity of description, only the differences from the above embodiments are described in the variant embodiments.
[0051] In one embodiment, the obtaining of the use case script includes:
[0052] Obtaining the device parameter information of the instrument device;
[0053] In response to an input operation in the input interface, obtaining user requirement information;
[0054] Determining the first computing power service characteristic data displayed in the instrument device;
[0055] Determining the first mapping relationship between the computing power service and the instrument device;
[0056] Inputting the user requirement information, the device parameter information, the first computing power service characteristic data, and the first mapping relationship into the data processing model to generate a use case script.
[0057] In this embodiment, the device parameter information can be understood as information related to the instrument device, which may include the function definitions of the automation semantics of the instrument device stored in the local knowledge base. The user demand information can be understood as the user's demand for the data stored in the use case script, which can be input through the input interface of the electronic device. The first computing power service feature data can be understood as the computing power service feature data displayed in the instrument device, which may be simulation data related to the power grid computing power service. The first mapping relationship can be understood as the mapping relationship between the power grid computing power service and the instrument device.
[0058] Specifically, the device parameter information of the instrument device can be obtained from the local knowledge base, and the user demand information can be obtained from the input interface. The first computing power service feature data related to the power grid computing power service displayed in the instrument device can be obtained, where the first computing power service feature data may be data of the simulation computing power service feature, and the mapping relationship between the power grid computing power service and the instrument device can be determined as the first mapping relationship. Finally, the user demand information, the device parameter information, the first computing power service feature data, and the first mapping relationship are input into the data processing model for processing to generate a use case script, which is a use case script related to the user demand information and the instrument device, and the use case script may be a simulated use case script.
[0059] Exemplarily, as Figure 2 shown, based on the user's natural language input, the user demand information is obtained and transmitted to the use case script generation module. In the instrument management module, the first mapping relationship is determined according to the mapping relationship between the power grid computing power service and the instrument device. Among them, the instrument device can cover various types, for example: acquisition and decision-making types, such as accurate prediction and regulation of power grid load (minute-level), etc.; control types, such as intelligent distributed distribution automation, etc.; AI vision processing types, such as video transmission quality testing of power drones for inspection, etc. Then, the device parameter information of the instrument device and the first computing power service feature data are input into the use case script generation module. Finally, based on the data processing model, combining the user demand information, the device parameter information, the first computing power service feature data, and the first mapping relationship stored in the use case script generation module, a use case script is generated.
[0060] In one embodiment, the obtaining of the use case script includes:
[0061] Obtain the protocol of the power grid terminal device;
[0062] Determine the second computing power service feature data displayed by the power grid terminal device;
[0063] Determine the second mapping relationship between the computing power service and the power grid terminal device;
[0064] Input the protocol of the grid terminal device, the second computing power service characteristic data, and the second mapping relationship into the data processing model to generate a use case script.
[0065] In this embodiment, the protocol can be understood as information related to the grid terminal device, which can be the rules and standards followed by the grid terminal device during data communication. The second computing power service characteristic data can be understood as the computing power service characteristic data displayed in the grid terminal device, which can be real data related to the grid computing power service. Both the first computing power service characteristic data and the second computing power service characteristic data are computing power service characteristic data related to the grid computing power service. The second mapping relationship can be understood as the mapping relationship between the grid computing power service and the grid terminal device, and there is no necessary connection between the first mapping relationship and the second mapping relationship.
[0066] Specifically, the protocol of the grid terminal device can be obtained from the local knowledge base, and the second computing power service characteristic data related to the grid computing power service displayed in the grid terminal device can be obtained. Among them, the second computing power service characteristic data can be the data of the actually existing computing power service characteristic, and the mapping relationship between the grid computing power service and the grid terminal device can be determined as the second mapping relationship. Finally, the protocol of the grid terminal device, the second computing power service characteristic data, and the second mapping relationship are input into the data processing model for processing to generate a use case script. The use case script is a use case script related to the grid terminal device, and the use case script can be a use case script generated from real data related to the grid computing power service.
[0067] Exemplarily, as Figure 2 shown, in the grid terminal management module, according to the mapping relationship between the grid computing power service and the grid terminal device, the second mapping relationship is determined, and the second computing power service characteristic data displayed in the grid terminal device is determined. Then, the protocol of the grid terminal device, the second computing power service characteristic data, and the second mapping relationship are input into the data processing model to generate a use case script.
[0068] In one embodiment, the step of matching the test method corresponding to the test data through the data processing model according to the type of the computing power service includes:
[0069] Determine the data format of the test data;
[0070] According to the type of the computing power service, match a corresponding test method for the data format through the data processing model;
[0071] Determine the test method corresponding to the data format as the test method corresponding to the test data.
[0072] Exemplarily, as Figure 2As shown, the test data collected during the execution of the use case script is stored in the test data storage module. Determine the data format of the test data in the test data storage module. The data format can include various formats such as pictures, texts, tables, etc. According to different types of grid computing power services, based on the data processing model, match corresponding test methods for test data of different data formats. Finally, transmit the test methods, test data, etc. to the test data analysis module for analysis.
[0073] In one embodiment, testing the test data using the test method to obtain a test conclusion includes:
[0074] Obtain the performance index threshold corresponding to the computing power service and the judgment criterion corresponding to the performance index threshold;
[0075] According to the judgment criterion, compare the test data with the performance index threshold to obtain a test conclusion.
[0076] In this embodiment, the performance index threshold can be understood as the requirement for the performance index of the power communication network during the execution of the grid computing power service. The performance index threshold can be the standard value set for different performance indexes. The judgment criterion can be the judgment criterion set according to the performance index threshold for different performance indexes, and can be set according to the relevant specifications of the power communication network and actual operation experience.
[0077] Specifically, configure thresholds for the performance indexes corresponding to different types of grid computing power services as the performance index thresholds, and determine the judgment criteria corresponding to the performance index thresholds. According to the indication of the judgment criterion, compare the performance index threshold with the test data to obtain a test conclusion.
[0078] Exemplarily, for a grid computing power service, such as intelligent distributed distribution automation, the performance indexes corresponding to this grid computing power service can include bandwidth. The performance index threshold corresponding to the bandwidth can be set to 2 Mbps, and the judgment criterion can be based on 2 Mbps as the standard.
[0079] Embodiment Two
[0080] Figure 3 The flowchart of a use case script execution method provided by the second embodiment of the present invention. This embodiment expands on the method of executing the use case script in the above embodiment. The number of use case scripts is at least one. This embodiment is applicable when the number of use case scripts is at least two. As Figure 3 shown, the method includes:
[0081] S210. Obtain a use case script, where the use case script is related to at least one type of computing power service.
[0082] S220. Based on the data processing model, arrange the execution order of each use case script in combination with the user requirement information to obtain the execution order of each use case script.
[0083] In this embodiment, the execution order may be the execution order set for the use case script, and the execution order may include serial, parallel, serial + parallel, etc.
[0084] Exemplarily, as Figure 2 shown, in the use case arrangement management module, the user requirement information can be obtained according to the user's natural language input. Then, the data processing model arranges the execution order of each use case script in combination with the user requirement information, including serial, parallel, serial + parallel, etc. arrangement methods of the use case scripts, to obtain the execution order of each use case script.
[0085] S230. Execute each use case script according to the execution order.
[0086] Exemplarily, as Figure 2 shown, in the use case script execution module, each use case script is executed according to the execution order of each use case script. Executing the use case script according to the execution order may include executing the use case script in the test task of the instrument device according to the execution order.
[0087] Optionally, the step of executing each use case script according to the execution order includes:
[0088] Call the computing power service characteristic data in the use case script according to the execution order of the use case script;
[0089] Execute the corresponding computing power service characteristic data according to the execution order of the call of the computing power service characteristic data in the use case script.
[0090] Specifically, according to the execution order of the use case script, sequentially call and execute the computing power service characteristic data stored in the use case script.
[0091] Exemplarily, as Figure 2 shown, in the use case script execution module, according to the execution order of each use case script, call the computing power service characteristic data stored in the use case script and execute the computing power service characteristic data. If the use case script is related to the instrument device, call the instrument device to execute the computing power service characteristic data. Similarly, if the use case script is related to the grid terminal device, call the grid terminal device to execute the computing power service characteristic data.
[0092] S240. During the execution of each use case script, collect the performance index data of the computing power service.
[0093] In this embodiment, the performance index data can be understood as the performance index information when the grid computing power service is executed in the power communication network.
[0094] Exemplarily, as Figure 2 shown, in the use case script execution module, during the execution of each use case script, the performance index data of the corresponding grid computing power service is collected and stored in the test data storage module. The performance index data can include various formats of data such as pictures, texts, and tables, and the performance index data can include data related to bandwidth, latency, jitter, reliability, etc.
[0095] S250. Determine the performance index data as test data.
[0096] Exemplarily, as Figure 2 shown, in the test data storage module, the performance index data corresponding to various types of grid computing power services can be stored, and the stored performance index data can be used as the test data corresponding to different types of grid computing power services.
[0097] S260. According to the type of the computing power service, match the test method corresponding to the test data through the data processing model.
[0098] S270. Test the test data using the test method to obtain a test conclusion, where the test conclusion indicates the quality of the performance index of the computing power service.
[0099] The technical solution of the embodiment of the present invention arranges the execution order of each use case script based on the data processing model in combination with the user requirement information to obtain the execution order of each use case script, and executes each use case script according to the execution order. During the execution of each use case script, the performance index data of the computing power service is collected, and the performance index data is determined as test data. The method of executing use case scripts is refined, and the number of use case scripts is at least one. It is applicable to the case where the number of use case scripts is at least two. Based on the data processing model, the automatic arrangement of use case scripts is realized, and test data is collected while executing use case scripts, improving the comprehensiveness of the business performance test process and the test efficiency.
[0100] Embodiment Three
[0101] Figure 4 It is a schematic structural diagram of a business performance test device provided in Embodiment Three of the present invention.
[0102] As Figure 4 shown, the device includes:
[0103] An acquisition module 310, configured to acquire a use case script, where the use case script is related to at least one type of computing power service;
[0104] An execution module 320, configured to execute the use case script and collect test data during the execution of the use case script, where the test data includes data indicating performance indicators of the computing power service;
[0105] A matching module 330, configured to match a test method corresponding to the test data through a data processing model according to the type of the computing power service;
[0106] A testing module 340, configured to test the test data by using the test method to obtain a test conclusion, where the test conclusion indicates the quality of the performance indicators of the computing power service.
[0107] The service performance testing device provided by an embodiment of the present invention first acquires a use case script through an acquisition module, where the use case script is related to at least one type of computing power service, then executes the use case script through an execution module and collects test data during the execution of the use case script, where the test data includes data indicating performance indicators of the computing power service, then matches a test method corresponding to the test data through a data processing model according to the type of the computing power service through a matching module, and finally tests the test data by using the test method through a testing module to obtain a test conclusion, where the test conclusion indicates the quality of the performance indicators of the computing power service. Through the mutual cooperation among the modules, executing a use case script related to a computing power service can support the testing of multiple types of computing power services and realize the unified testing of computing power services. While executing the use case script, test data is collected, solving the problem of low efficiency in service performance testing caused by the diversity of performance indicators of computing power services, and using a test method matched by a data processing model to test the test data, completing the intelligent testing of the performance of computing power services.
[0108] In one embodiment, the number of the use case scripts is at least one. When the number of the use case scripts is at least two, the execution module 320 includes:
[0109] An orchestration unit, configured to orchestrate the execution order of each use case script based on the data processing model and in combination with user requirement information to obtain the execution order of each use case script;
[0110] An execution unit, configured to execute each use case script according to the execution order;
[0111] An acquisition unit, configured to collect performance indicator data of the computing power service during the execution of each use case script;
[0112] A determination unit for determining the performance index data as test data.
[0113] In one embodiment, an execution unit is specifically configured to:
[0114] Call the computing power service characteristic data in the use case script according to the execution order of the use case script;
[0115] Execute the corresponding computing power service characteristic data according to the execution order of the call of the computing power service characteristic data in the use case script.
[0116] In one embodiment, an acquisition module 310 is specifically configured to:
[0117] Acquire the device parameter information of the instrument device;
[0118] In response to an input operation in the input interface, acquire user requirement information;
[0119] Determine the first computing power service characteristic data displayed in the instrument device;
[0120] Determine the first mapping relationship between the computing power service and the instrument device;
[0121] Input the user requirement information, the device parameter information, the first computing power service characteristic data, and the first mapping relationship into the data processing model to generate a use case script.
[0122] In one embodiment, an acquisition module 310 is specifically configured to:
[0123] Acquire the protocol of the power grid terminal device;
[0124] Determine the second computing power service characteristic data displayed by the power grid terminal device;
[0125] Determine the second mapping relationship between the computing power service and the power grid terminal device;
[0126] Input the protocol of the power grid terminal device, the second computing power service characteristic data, and the second mapping relationship into the data processing model to generate a use case script.
[0127] In one embodiment, a matching module 330 is specifically configured to:
[0128] Determine the data format of the test data;
[0129] According to the type of the computing power service, match a corresponding test method for the data format through the data processing model;
[0130] Determine the test method corresponding to the data format as the test method corresponding to the test data.
[0131] In one embodiment, the test module 340 is specifically configured to:
[0132] Obtain the performance index threshold corresponding to the computing power service and the judgment criterion corresponding to the performance index threshold;
[0133] Compare the test data with the performance index threshold according to the judgment criterion to obtain a test conclusion.
[0134] The service performance test device provided by the embodiments of the present invention can execute the service performance test method provided by any embodiment of the present invention. Through the mutual cooperation and collaborative work among the modules, the test of the service performance is completed, and it has the functional modules and beneficial effects corresponding to the execution method.
[0135] Embodiment IV
[0136] According to an embodiment of the present invention, the present invention also provides an electronic device and a computer-readable storage medium.
[0137] Figure 5 is a block diagram of an electronic device provided according to Embodiment IV of the present invention. The electronic device can implement the service performance test method described in the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0138] As Figure 5 shown, the electronic device 410 includes at least one processor 411 and a memory communicatively connected to at least one processor 411, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc. Among them, the memory stores a computer program executable by at least one processor. The processor 411 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 into the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other through a bus 414. The input / output (I / O) interface 415 is also connected to the bus 414.
[0139] Multiple components in the electronic device are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a magnetic disk, an optical disc, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0140] The processor 411 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 411 executes the various methods and processes described above, such as the service performance testing method.
[0141] In some embodiments, the service performance testing method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 418. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the service performance testing method described above can be executed. Alternatively, in other embodiments, the processor 411 can be configured to execute the service performance testing method by any other suitable means (e.g., by means of firmware).
[0142] The various embodiments of the systems and technologies described above in this article can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, the programmable processor can be a special or general programmable processor, can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0143] A computer program for implementing the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer program may be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.
[0144] In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0145] In order to provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, speech input, or tactile input).
[0146] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0147] A computing system can include a client and a server. The client and the server are generally far from each other and usually interact through a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0148] The technical solution of the embodiment of the present invention is through a service performance testing method, device, electronic device, and storage medium. First, obtain a use case script, where the use case script is related to at least one type of computing power service. Then, execute the use case script and collect test data during the execution of the use case script. The test data includes data indicating performance indicators of the computing power service. Then, according to the type of the computing power service, match the test method corresponding to the test data through a data processing model. Finally, use the test method to test the test data to obtain a test conclusion, where the test conclusion indicates the quality of the performance indicators of the computing power service. By executing a use case script related to the computing power service, it is possible to support the testing of multiple types of computing power services and achieve unified testing of the computing power service. While executing the use case script, collect test data, solving the problem of low efficiency in service performance testing caused by the diversity of performance indicators of the computing power service. Use the test method matched by the data processing model to test the test data, completing the intelligent testing of the performance of the computing power service.
[0149] It should be understood that various forms of the processes shown above can be used, reordering, adding, or deleting steps. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.
[0150] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A service performance testing method, characterized in that, Including: Obtain a use case script, where the use case script is related to at least one type of computing power service; Execute the use case script and collect test data during the execution of the use case script, where the test data includes data indicating performance indicators of the computing power service; According to the type of the computing power service, match the test method corresponding to the test data through a data processing model; Use the test method to test the test data to obtain a test conclusion, where the test conclusion indicates the quality of the performance indicators of the computing power service.
2. The method according to claim 1, wherein The number of the use case scripts is at least one. When the number of the use case scripts is at least two, the step of executing the use case script and collecting test data during the execution of the use case script includes: Based on the data processing model, arrange the execution order of each use case script in combination with user requirement information to obtain the execution order of each use case script; Execute each use case script according to the execution order; During the execution of each use case script, collect performance indicator data of the computing power service; Determine the performance indicator data as test data.
3. The method according to claim 2, wherein The step of executing each use case script according to the execution order includes: According to the execution order of the use case script, call the computing power service feature data in the use case script; Execute the corresponding computing power service feature data according to the execution order of the call of the computing power service feature data in the use case script.
4. The method according to claim 1, characterized in that, The step of obtaining the use case script includes: Obtain the device parameter information of the instrument device; In response to an input operation in the input interface, obtain user requirement information; Determine the first computing power service feature data displayed in the instrument device; Determine the first mapping relationship between the computing power service and the instrument device; Input the user requirement information, the device parameter information, the first computing power service feature data, and the first mapping relationship into the data processing model to generate a use case script.
5. The method according to claim 1, characterized in that, The step of obtaining the use case script includes: Obtain the protocol of the power grid terminal device; Determine the second computing power service feature data displayed by the power grid terminal device; Determine the second mapping relationship between the computing power service and the power grid terminal device; Input the protocol of the power grid terminal device, the second computing power service feature data, and the second mapping relationship into the data processing model to generate a use case script.
6. The method according to claim 1, wherein The step of matching the test method corresponding to the test data through the data processing model according to the type of the computing power service includes: Determine the data format of the test data; According to the type of the computing power service, match a corresponding test method for the data format through the data processing model; Determine the test method corresponding to the data format as the test method corresponding to the test data.
7. The method according to claim 1, characterized in that, The step of using the test method to test the test data to obtain a test conclusion includes: Obtain the performance indicator threshold corresponding to the computing power service and the judgment criterion corresponding to the performance indicator threshold; According to the judgment criterion, compare the test data with the performance indicator threshold to obtain a test conclusion.
8. A service performance testing device, characterized in that Including: An acquisition module, configured to acquire a use case script, where the use case script is related to at least one type of computing power service; An execution module, configured to execute the use case script and collect test data during the execution of the use case script, where the test data includes data indicating performance metrics of the computing power service; A matching module, configured to match a test method corresponding to the test data through a data processing model according to the type of the computing power service; A testing module, configured to test the test data using the test method to obtain a test conclusion, where the test conclusion indicates the quality of the performance metrics of the computing power service.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service performance testing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the service performance testing method according to any one of claims 1-7 when executed by a processor.