Performance test method, device and equipment of business system and storage medium
The service mesh agent acquires and preprocesses the image access data, and determines the target test data in combination with the test scenarios of the business system, solving the problems of high construction cost and poor authenticity of performance test data in the prior art, and achieving lower cost and higher accuracy performance testing.
Patent Information
- Application Number
- CN202411614362.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, the business system performance test data has high construction costs, poor authenticity and incomplete coverage.
The service mesh agent obtains the mirror access data generated by the client to access various services of the system, performs preset data processing, including desensitization of encrypted data, determines the target test data based on the test scenario, and performs performance testing.
It reduces the cost of business system performance testing, improves the accuracy of testing, and solves the problems of high data construction costs and poor authenticity.
Smart Images

Figure CN119537224A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of performance testing technology, and in particular to a performance testing method, apparatus, device and storage medium for a business system. Background Art
[0002] During performance testing of business systems, the test data must maintain the same volume as the generated data. Existing technologies can manually create or dynamically simulate data for performance testing, but this data may have discrepancies in its authenticity, validity, volume, and distribution.
[0003] Constructing data for business system performance testing requires understanding of the business, database, and other related information, which requires a large investment of manpower, material resources, and time, resulting in a high cost of data construction. Data generated through manual creation or dynamic simulation often suffers from high data duplication, poor authenticity, and incomplete coverage. Summary of the Invention
[0004] The present invention provides a performance testing method, apparatus, device and storage medium for a business system to solve the problem of high cost in constructing performance testing data.
[0005] According to one aspect of the present invention, a performance testing method for a business system is provided. The business system includes multiple services, each of which is configured with a service grid agent. The method includes:
[0006] The service grid proxy obtains the mirror access data generated by the client's access to each service in the system. The mirror access data includes encrypted data and unencrypted data.
[0007] Performing preset data processing on the mirror access data to obtain intermediate data, wherein the preset processing includes desensitizing the encrypted data;
[0008] Based on the test scenarios of the business system, determine the target test data that meets the test scenarios in the intermediate data;
[0009] Perform performance testing on the business system based on the target test data and obtain test results.
[0010] According to another aspect of the present invention, a performance testing device for a business system is provided, the device comprising:
[0011] The image access data acquisition module is used to obtain the image access data generated by the client's access to each service in the system based on the service grid proxy. The image access data includes encrypted data and unencrypted data.
[0012] An intermediate data acquisition module is used to perform preset data processing on the mirror access data to obtain intermediate data, wherein the preset processing includes desensitizing the encrypted data;
[0013] The target test data determination module is used to determine the target test data that meets the test scenario in the intermediate data based on the test scenario of the business system;
[0014] The performance testing module is used to perform performance testing on the business system based on the target test data and obtain test results.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the performance testing method of the business system of any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for enabling a processor to implement the performance testing method of a business system according to any embodiment of the present invention when the computer instructions are executed.
[0020] The technical solution of the embodiment of the present invention obtains mirror access data generated by a client accessing various services in the system through a service grid proxy, the mirror access data including encrypted and unencrypted data; performs preset data processing on the mirror access data to obtain intermediate data, wherein the preset processing includes desensitizing the encrypted data; determines target test data that meets the test scenario in the intermediate data based on the test scenario, and performs performance testing on the business system based on the target test data to obtain test results. This solves the problems of high data construction cost and poor authenticity during business system performance testing, reduces the performance testing cost of the business system, and improves the accuracy of the business system performance testing.
[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 This is a flow chart of a performance testing method for a business system provided in Example 1 of the present invention;
[0024] Figure 2 This is a flow chart of a performance testing method for a business system provided by an embodiment of the present invention;
[0025] Figure 3 This is a schematic diagram of the structure of a performance testing device for a business system provided in a second embodiment of the present invention;
[0026] Figure 4 This is a structural diagram of an electronic device provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Example 1
[0030] Figure 1This is a flowchart of a performance testing method for a business system provided by the first embodiment of the present invention. This embodiment is applicable to automatically obtaining comprehensive target test data to implement performance testing of the business system. The method can be executed by a performance testing device for the business system. The performance testing device for the business system can be implemented in the form of hardware and / or software. The performance testing device for the business system can be configured in an electronic device, such as a mobile terminal such as a mobile phone or tablet computer, a computer or a server. Figure 1 As shown, the method includes:
[0031] S110 , obtaining, based on the service grid proxy, mirror access data generated during the client's access process to each service in the business system, where the mirror access data includes encrypted data and unencrypted data.
[0032] In this embodiment, the business system includes multiple services, including, for example, but not limited to, query services, order acceptance services, and settlement services. It is understood that the services included in different business systems may vary and are configured based on the needs of the business system. Business systems herein include, but are not limited to, logistics systems. Each service is configured with a service grid agent, which obtains mirrored access data for the corresponding service. A business system can be a system used to manage and process access data, such as a system used to receive orders. A business system includes corresponding servers, which store access data generated by various services in the business system. Access data can be data generated by the various services in the business system responding to service requests issued by a user on a client. A client can be software or a device that manages and processes access data, including, but not limited to, mobile terminals and self-service terminals. Mobile terminals include, but are not limited to, smart devices such as mobile phones and tablets. For example, a client can send requests to a server to access data on the server. Services can manage and process access data based on the business system. A business system can include multiple services, each responsible for managing and processing different access data.
[0033] A service mesh proxy is a lightweight network proxy that handles inter-service communication, separating the core functionality of a business system from auxiliary functions. In a service architecture, each microservice includes auxiliary functions such as logging, monitoring, configuration management, and troubleshooting, and each service shares the same lifecycle and network space. The service mesh proxy is configured with authentication information and sends it to the server. Upon successful authentication, the service mesh proxy receives mirror access data from the server for the corresponding service. This authentication information can be a mechanism for ensuring secure inter-service communication. During the service mesh proxy configuration process for each service, the server configures the authentication information with the corresponding service mesh proxy. Different service mesh proxies have different authentication information, including but not limited to strings, images, and signatures. The authentication information configured for different service mesh proxies can be the same or different, depending on requirements and is not limited here. The mirror access data can be access data sent by the server for the corresponding service, obtained by the service mesh proxy. The mirror access data and the access data for the corresponding service have the same data and content. Mirror access data includes encrypted data and unencrypted data. Encrypted data can be mirror access data converted into a non-original form using an encryption algorithm and a key to prevent information leakage. For example, this can be mirror access data transmitted via the HTTPS protocol. It can also include sensitive information within the mirror access data, including but not limited to ID card numbers, mobile phone numbers, and bank account information. Unencrypted data can be mirror access data that has not been encrypted and exists in its original form. For example, this can be mirror access data transmitted via the HTTP protocol. It can also include mirror access data such as news articles.
[0034] Optionally, in response to the image service startup request, each service grid agent is triggered to obtain image access data from the server; and the image access data in each service grid agent is read.
[0035] A mirror service is a service that provides access data backup and synchronizes access data by creating copies of the access data. Optionally, the business system receives a performance test instruction and sends a startup signal to each service grid agent to start each service grid agent. Each service grid agent has the function of a mirror service, and after a service grid agent starts, the corresponding mirror service also starts. Optionally, a mirror service switch is configured in the business system. In response to a trigger operation on the mirror service switch, a startup signal is sent to each service grid agent to start each service grid agent. When the mirror service is started, each service grid agent sends verification information to the server. The server receives and verifies each service grid agent. If the verification information is successfully verified, each service grid agent receives the mirror access data of the corresponding service sent by the server and can read the mirror access data in each service grid agent through the communication protocol.
[0036] Optionally, the method further includes: determining the data volume of the mirror access data; when the data volume of the mirror access data meets the test requirements, shutting down the mirror service so that the service grid agent stops obtaining the mirror access data from the server.
[0037] A test requirement can be a quantity condition for mirror access data in a business system performance test scenario. When the amount of mirror access data reaches a preset number, the acquired mirror access data indicates that it can support the business system performance test and the service grid agent no longer needs to obtain mirror access data from the server. The business system sends a signal to each service grid agent to stop obtaining mirror access data, shutting down the mirror service. For example, a test requirement could be that the amount of mirror access data must reach 100,000. When the amount reaches 90,000, the mirror access data continues to be obtained; when the amount reaches 100,000, the mirror service is shut down and no more mirror access data is obtained. Test requirements can be customized according to needs. During the performance testing of a business system, different test requirements can be set to perform performance testing on the business system. By setting test requirements, the amount of mirror access data can be accurately controlled, facilitating performance testing of the business system under different mirror access data volume conditions, thereby improving the accuracy of business system performance testing.
[0038] In some embodiments, mirrored access data is obtained during the actual client access to the business system. In some embodiments, to obtain mirrored access data under different test scenarios, clients with certain data can be controlled to access the business system to simulate the access process to the business system and obtain mirrored access data. For example, to obtain mirrored access data under three different test scenarios, namely, test scenario one, test scenario two, and test scenario three, multiple clients are controlled to access the business system under different test scenarios, and the mirrored access data generated by the multiple clients during the business system access process is collected. When multiple clients terminate their access to the business system, the business system receives an instruction to stop obtaining mirrored access data, and each service grid agent shuts down the mirroring service, causing the service grid agent to stop obtaining mirrored access data from the server.
[0039] S120 , performing preset data processing on the mirror access data to obtain intermediate data, wherein the preset processing includes desensitizing the encrypted data.
[0040] Since the mirror access data includes encrypted data and unencrypted data, and the encrypted data includes the data required for performance testing, in order to obtain the content of the encrypted data, make the mirror access data more comprehensive, and at the same time not leak sensitive information in the encrypted data, the mirror access data can be pre-set data processing without affecting the performance testing of the business system.
[0041] In this embodiment, the intermediate data may be mirror access data that has undergone preset data processing. The preset data processing may be a pre-set data processing method, including a processing method for encrypted data, for example, the encrypted data may be desensitized so that the encrypted data can be applied to the performance test of the business system. Desensitization processing is a technology for protecting the security of sensitive information. Without leaking the original data, the encrypted data is processed so that the encrypted data cannot be identified during the performance test, but does not affect the performance test of the business system. Desensitization processing includes but is not limited to data replacement and data masking. For example, if the encrypted data is an ID card number and a mobile phone number, data masking of the ID card number may be replacing the information indicating the date of birth in the ID card number with mask characters, and data replacement of the mobile phone number may be replacing the fourth to seventh digits of the mobile phone number with ****.
[0042] In order to further improve the quality of the mirror access data and the accuracy of the performance test of the business system, the mirror access data can also be classified.
[0043] The preset data processing further includes: performing classification processing on the mirror access data to obtain a classification result of the mirror access data; and setting a label for the mirror access data based on the classification result of the mirror access data.
[0044] Specifically, the classification processing can be to divide the mirror access data, and divide the mirror access data into different types according to different classification standards. The mirror access data includes multiple different types of fields, including but not limited to the service type field, the scenario field and the address field. For example, the mirror access data includes N different fields, and the mirror access data can be divided according to each field to divide the mirror access data into N different types. It is also possible to divide the mirror access data by combining multiple fields. For example, the mirror access data can be divided according to the service type field, and the mirror access data can be divided into mirror access data of three different service types, such as service A, service B and service C. For example, the mirror access data can also be divided according to the scenario, and the mirror access data can be divided into mirror access data of three different scenarios, such as scenario one, scenario two and scenario three; for example, the mirror access data can also be divided according to the Internet Protocol (IP) address, and the mirror access data can be divided into mirror access data of three different IP addresses, such as the first IP address, the second IP address and the third IP address. For example, the service type field and the scenario field may be combined to divide the mirror access data into three types of mirror access data: service A and scenario one, service B and scenario two, and service C and scenario three.
[0045] The classification result may be the corresponding result obtained by classifying the mirror access data, and may include the category to which each mirror access data belongs, and a label for the mirror access data is set based on the category to which the mirror access data belongs. For example, when the mirror access data is divided according to the service type, the category to which the first mirror access data belongs may be service type 1, and the category to which the second mirror access data belongs may be service type 2. The label may be an identifier corresponding to the category, which may indicate the classification result of the mirror access data, and different categories may correspond to different labels. Different classification results of the mirror access data may be set with different types of labels, and the same mirror access data may be set with multiple labels. For example, if a mirror access data is classified as mirror access data of scenario one according to the test scenario, the label of the mirror access data may be set as the scenario one label; if the mirror access data is classified as the first IP address according to the IP address, the label of the mirror access data may be set as the first address label.
[0046] In some embodiments, in the process of classifying and processing the mirror access data, a regular replacement method is used to query the content of the mirror access data. Among them, regular replacement is a data processing technology, which can be to replace the content adjacent to the content to be queried in the mirror access data with a corresponding string. For example, in order to query the four-character content starting with "service" in the mirror access data, a regular replacement method is used, which can be to replace the content after "service" with ".*". Enter "service.*" to query all four-character contents starting with "service". By querying the content of the mirror access data through the regular replacement method, the efficiency of the mirror access data query is improved. S130, based on the test scenario of the business system, determine the target test data that meets the test scenario in the intermediate data.
[0047] Different business system test scenarios require intermediate data of different test scenarios for testing. In order to obtain target test data corresponding to the business system test scenario, the intermediate data can be filtered to select the intermediate data that meets the business system test scenario, namely the target test data, to improve the accuracy of the business system performance test.
[0048] In this embodiment, the test scenario may be a scenario required for performance testing of a business system. The target test data may be data in the intermediate data that is determined to satisfy the test scenario of the business system. By selecting the intermediate data corresponding to the test scenario of the business system based on the test scenario of the business system, the target test data satisfying the test scenario can be obtained.
[0049] Optionally, the method further includes: selecting data from the mirror access data based on a label corresponding to the test scenario and a label of the mirror access data to obtain target test data that meets the test scenario.
[0050] Specifically, to obtain target test data corresponding to the business system's test scenario, the required tags for the test scenario can be pre-set. Image access data that meets the required tags for the test scenario can be selected to obtain target test data that matches the test scenario. For example, if the required tag for the test scenario is Scenario 1, and the image access data has three different tags: Scenario 1, Scenario 2, and Scenario 3, the image access data tagged with Scenario 1 will be selected as the target test data.
[0051] Optionally, the method further includes: determining a test requirement field based on a test scenario, and removing other field data except the test requirement field in the mirror access data.
[0052] Specifically, the test requirement fields may be fields required by the test scenario. Other field data may be data corresponding to fields unrelated to the test scenario. Different test scenarios have different test requirement fields. By setting a test scenario, the test requirement fields for that test scenario are determined. Other field data other than the test requirement fields are removed from the mirror access data to obtain the mirror access data that includes the test requirement fields for that test scenario.
[0053] Optionally, the method also includes: selecting data from the mirror access data based on the label corresponding to the test scenario and the label of the mirror access data, and determining the test requirement field based on the test scenario, removing other field data in the mirror access data except the test requirement field, and obtaining target test data that meets the test scenario and the test requirement field.
[0054] Specifically, the test scenario is tagged, and image access data with the same tag as the test scenario is selected. The test requirement field for the test scenario is set. Other fields other than the test requirement field are removed from the image access data with the same tag as the test scenario, resulting in image access data with the same tag and test requirement field as the test scenario. This improves the matching between the image access data and the test scenario, thereby enhancing the accuracy of the performance test of the business system.
[0055] S140: Perform performance testing on the business system based on the target test data to obtain test results.
[0056] In this embodiment, the test result can represent the performance of the business system, and can be a result obtained based on a certain amount of target test data. For example, the test result can be that the business system performance is good when there are 50,000 target test data.
[0057] In order to ensure that the performance test of the business system proceeds smoothly and that the target test data matches the performance testing tool, the target test data needs to be formatted.
[0058] Optionally, the method further includes: converting the format of the target test data, performing a performance test on the business system based on the target test data after the format conversion, and obtaining a test result, wherein the format of the converted data is determined based on a performance testing tool.
[0059] Specifically, a performance testing tool can be a software tool used to perform performance testing on a business system, such as JMeter. Format conversion involves converting the target test data into the format required by the performance testing tool to meet the performance testing requirements of the business system. For example, if the performance testing tool is JMeter, the target test data needs to be converted into a jmx file format. The converted target test data is then used to perform performance testing on the business system to obtain test results.
[0060] For example, see Figure 2 . Figure 2 This is a flow chart of a performance testing method for a business system provided by an embodiment of the present invention. A client sends a business request to each service in the business system. Each service in the business system is configured with a service grid proxy. After the mirror service is started, the service grid proxy obtains mirror access data generated by the client's access to each service in the business system. Predefined data processing is performed on the mirror access data to obtain intermediate data. Based on the test scenario of the business system, the intermediate data that meets the test scenario is selected as target test data. The target test data is converted into a jmx file format that matches the performance testing tool Jmeter. The performance testing tool Jmeter then sends a performance test request to perform a performance test on the business system and obtain test results.
[0061] The technical solution of this embodiment obtains the mirror access data generated by the client's access process to each service in the business system through the service grid proxy, desensitizes and classifies the encrypted data, selects data from the mirror access data based on the label corresponding to the test scenario and the label of the mirror access data, and / or determines the test requirement field based on the test scenario, removes other field data except the test requirement field in the mirror access data, obtains target test data that meets the test scenario and / or test requirement field, converts the format of the target test data according to the performance testing tool, performs performance testing on the business system with the target test data after format conversion, and obtains test results, thereby ensuring the authenticity of the target test data required for performance testing and improving the accuracy of business system performance testing.
[0062] Example 2
[0063] Figure 3 This is a schematic diagram of the structure of a performance testing device for a business system provided by the second embodiment of the present invention. Figure 3 As shown, the device includes:
[0064] The image access data acquisition module 210 is used to acquire the image access data generated by the client's access process to each service in the system based on the service grid proxy. The image access data includes encrypted data and unencrypted data.
[0065] The intermediate data acquisition module 220 is used to perform preset data processing on the mirror access data to obtain intermediate data, wherein the preset processing includes desensitizing the encrypted data;
[0066] A target test data determination module 230 is configured to determine target test data that satisfies the test scenario in the intermediate data based on the test scenario of the business system;
[0067] The performance testing module 240 is used to perform performance testing on the business system based on target test data to obtain test results.
[0068] Based on the above embodiment, optionally, the image access data acquisition module 210 is further configured to trigger each service grid agent to obtain image access data from the server in response to an image service startup request; and read the image access data in each service grid agent.
[0069] Optionally, the image access data acquisition module 210 is further used to determine the data volume of the image access data; when the data volume of the image access data meets the test requirements, the image service is shut down so that the service grid agent stops obtaining the image access data from the server.
[0070] Optionally, the intermediate data acquisition module 220 is further configured to perform classification processing on the mirror access data to obtain a classification result of the mirror access data; and set a label for the mirror access data based on the classification result of the mirror access data.
[0071] Optionally, the target test data determination module 230 is further configured to select the mirror access data based on the label corresponding to the test scenario and the label of the mirror access data to obtain target test data that meets the test scenario.
[0072] Optionally, the target test data determination module 230 is further configured to determine a test requirement field based on a test scenario; and remove other field data except the test requirement field from the mirror access data.
[0073] Optionally, the target test data determination module 230 is also used to select data from the mirror access data based on the label corresponding to the test scenario and the label of the mirror access data, and to determine the test requirement field based on the test scenario, remove other field data in the mirror access data except the test requirement field, and obtain target test data that meets the test scenario and requirement field.
[0074] Optionally, the device also includes a format conversion module for converting the format of a target test data set, performing a performance test on the business system based on the target test data after format conversion, and obtaining a test result, wherein the format of the converted data is determined based on a performance testing tool.
[0075] The performance testing device for a business system provided by an embodiment of the present invention can execute the performance testing method for a business system provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0076] Example 3
[0077] Figure 4 1 is a structural diagram of an electronic device provided in Example 3 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0078] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0079] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0080] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the performance testing method for the business system.
[0081] In some embodiments, the performance testing method for a business system may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the performance testing method for a business system described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the performance testing method for a business system in any other appropriate manner (e.g., by means of firmware).
[0082] Various embodiments of the systems and techniques described herein 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), system-on-chip systems (SOCs), 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 that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0083] The computer programs used to implement the performance testing methods for business systems of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a standalone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0084] Example 4
[0085] A fourth embodiment of the present invention further provides a computer-readable storage medium storing computer instructions, the computer instructions being used to cause a processor to execute a performance testing method for a business system, wherein the business system includes multiple services, each of which is configured with a service grid agent, and the method includes:
[0086] Based on the service grid proxy, the mirror access data generated by the client's access process to each service in the system is obtained, and the mirror access data includes encrypted data and unencrypted data; preset data processing is performed on the mirror access data to obtain intermediate data, wherein the preset processing includes desensitizing the encrypted data; based on the test scenario of the business system, the target test data that meets the test scenario is determined in the intermediate data; based on the target test data, the performance test of the business system is performed to obtain the test results.
[0087] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0088] To provide interaction with a user, the systems and techniques described herein can 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0089] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0090] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0091] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed 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. This is not limited herein.
[0092] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A performance testing method for a business system, characterized in that: The business system includes multiple services, each of which is configured with a service grid agent, including: Acquiring, based on the service grid proxy, mirror access data generated by a client's access process to each of the services in the business system, wherein the mirror access data includes encrypted data and unencrypted data; Performing preset data processing on the mirror access data to obtain intermediate data, wherein the preset processing includes desensitizing the encrypted data; Based on a test scenario of the business system, determining target test data that meets the test scenario in the intermediate data; A performance test is performed on the business system based on the target test data to obtain a test result.
2. The method according to claim 1, characterized in that The server corresponding to the business system stores access data generated by each of the services in the business system; The service grid proxy is configured with verification information, and the service grid proxy sends the verification information to the server. When the verification information is successfully verified, the service grid proxy receives the image access data of the service corresponding to the service grid proxy sent by the server; The obtaining, based on the service grid proxy, the mirror access data generated by the client's access process to each of the services in the system includes: In response to the image service startup request, trigger each of the service grid agents to obtain image access data from the server; Read the image access data in each of the service grid agents.
3. The method according to claim 2, characterized in that The method further comprises: Determine the data volume of the mirror access data; When the amount of the mirror access data meets the test requirement, the mirror service is closed so that the service grid agent stops obtaining the mirror access data from the server.
4. The method according to claim 1, characterized in that: The preset data processing further includes: Classifying the mirror access data to obtain a classification result of the mirror access data; The mirror access data is labeled based on the classification result of the mirror access data.
5. The method according to claim 4, characterized in that The step of determining target test data satisfying the test scenario in the intermediate data based on the test scenario of the business system includes: Based on the label corresponding to the test scenario and the label of the mirror access data, data selection is performed on the mirror access data to obtain target test data that meets the test scenario.
6. The method according to claim 1 or 5, characterized in that: The step of determining target test data satisfying the test scenario in the intermediate data based on the test scenario of the business system includes: Determine test requirement fields based on the test scenario; The other field data except the test requirement field in the mirror access data is removed.
7. The method according to claim 1, characterized in that The method further comprises: The target test data is formatted, and a performance test is performed on the business system based on the target test data after the format conversion to obtain a test result, wherein the format of the converted data is determined based on a performance testing tool.
8. A performance testing device for a business system, characterized in that: The business system includes multiple services, each of which is configured with a service grid agent, including: An image access data acquisition module, used to acquire, based on a service grid agent, image access data generated during a client's access to each of the services in the system, wherein the image access data includes encrypted data and unencrypted data; An intermediate data acquisition module, used for performing preset data processing on the mirror access data to obtain intermediate data, wherein the preset processing includes desensitizing the encrypted data; A target test data determination module, configured to determine, based on a test scenario of the business system, target test data that satisfies the test scenario in the intermediate data; The performance testing module is used to perform a performance test on the business system based on the target test data to obtain a test result.
9. An electronic device, characterized in that: The electronic device comprises: 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 performance testing method for the business system according to any one of claims 1 to 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 enable a processor to implement the performance testing method of the business system according to any one of claims 1 to 7 when executed.
Citation Information
Cited By
Service grid test flow generation method and device for large-scale data center network
CN119766708A