Data testing method, device, equipment, medium and product

By obtaining the performance indicator difference information of the service in the production environment and simulation environment, the problem of time-consuming and high cost of the existing testing method is solved, and more efficient service version testing and online stability are achieved.

CN118689758APending Publication Date: 2024-09-24SHENZHEN TENCENT COMP SYST CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310328063.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing service version testing methods require recording, storage, and playback, resulting in increased testing time and cost.

Method used

By deploying the benchmark service in the production environment and the tested service in the simulation environment, obtain data requests and forward them to both respectively, and obtain the performance indicator parameter difference information within the target time period for testing and adjustment.

Benefits of technology

It reduces test time, reduces test costs, and improves the stability of the service under test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689758A
    Figure CN118689758A
Patent Text Reader

Abstract

The embodiment of the invention discloses a data testing method and device, equipment, a medium and a product, and the method comprises the steps: obtaining a data request, forwarding the data request to a production environment, and forwarding the data request to a simulation environment; the data request is used for requesting to operate a benchmark service in the production environment and requesting to operate a tested service in the simulation environment, and the benchmark service is a service before the tested service is updated; obtaining a first index parameter obtained by operating the reference service in the production environment within a target time period; the first index parameter is used for reflecting the performance of the benchmark service in the production environment; obtaining a second index parameter obtained by running the tested service in the simulation environment within the target time period; and obtaining parameter difference information between the first index parameter and the second index parameter, and testing the tested service based on the parameter difference information. By adopting the embodiment of the invention, the test time consumption can be reduced, and the test cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data testing method, device, equipment, medium and product. Background Art

[0002] With the development of the network, the current service versions are updated and iterated rapidly. The previous service version is updated every once in a while to optimize or change the performance of the service. Before the new version of the service is launched, that is, before the tested service is launched, it is generally necessary to test the tested service to ensure the stability of the tested service.

[0003] At present, the test method for the tested service is generally the recording-storage-playback method, that is, the traffic generated by the historical version of the tested service in the live network environment during the test is recorded and stored, and the recorded files are played back. The data generated during the playback process is compared and analyzed with the data generated in the live network environment to determine the test results for the tested service. Since this test method requires recording, storage, and playback, it will increase the test time and cost. Summary of the invention

[0004] The embodiments of the present application provide a data testing method, device, equipment, medium and product, which can reduce testing time and lower testing costs.

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

[0006] Obtaining a data request, forwarding the data request to a production environment, and forwarding the data request to a simulation environment;

[0007] The data request is used to request to run a benchmark service in the production environment and to request to run a tested service in the simulation environment, wherein the benchmark service is a service before the tested service is updated;

[0008] Obtain a first indicator parameter obtained by running the benchmark service in the production environment within a target time period; the first indicator parameter is used to reflect the performance of the benchmark service in the production environment;

[0009] Obtain a second indicator parameter obtained by running the service under test in the simulation environment within the target time period; the second indicator parameter is used to reflect the performance of the service under test in the simulation environment;

[0010] Parameter difference information between the first indicator parameter and the second indicator parameter is obtained, and the service under test is tested based on the parameter difference information.

[0011] In a second aspect, the present application provides a data testing device, comprising:

[0012] A request acquisition unit, used to acquire a data request, forward the data request to a production environment, and forward the data request to a simulation environment;

[0013] The data request is used to run a benchmark service in the production environment and to run the tested service in the simulation environment, and the benchmark service is a service version prior to the tested service;

[0014] A first acquisition unit is used to acquire a first indicator parameter obtained by running the benchmark service in the production environment within a target time period; the first indicator parameter is used to reflect the performance of the benchmark service in the production environment;

[0015] A second acquisition unit is used to acquire a second indicator parameter obtained by running the service under test in the simulation environment within the target time period; the second indicator parameter is used to reflect the performance of the service under test in the simulation environment;

[0016] The difference acquisition unit is used to acquire parameter difference information between the first indicator parameter and the second indicator parameter, and test the service under test based on the parameter difference information.

[0017] In a third aspect, the present application provides a computer device, including a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the above-mentioned data testing method.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the above-mentioned data testing method.

[0019] In a fifth aspect, the present application provides a computer program product or a computer program, which includes computer instructions, and the computer instructions can implement the above-mentioned data testing method when executed by a processor.

[0020] In an embodiment of the present application, by deploying a benchmark service in a production environment and deploying a tested service in a simulation environment, when a data request is obtained, the data request can be forwarded to the production environment and the simulation environment respectively, and then the benchmark service can be run in the production environment and the tested service can be run in the simulation environment. Thus, the first indicator parameter obtained by running the benchmark service in the production environment within the target time period, and the second indicator parameter obtained by running the tested service in the simulation environment within the target time period can be obtained, and the tested service is tested based on the parameter difference information between the first indicator parameter and the second indicator parameter. When the tested service is subsequently launched, the stability of the service can be improved. Furthermore, by using a simulation environment, the indicator data obtained by running the tested service in the simulation environment and the indicator data obtained by running the benchmark service in the production environment can be obtained at the same time. There is no need to record, store, and replay the benchmark service in the production environment, which can reduce the test time and thus reduce the test cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 is a schematic diagram of a network architecture of a data testing system provided in an embodiment of the present application;

[0023] Figure 2 It is a flow chart of a data testing method provided in an embodiment of the present application;

[0024] Figure 3 It is a scenario schematic diagram of a data testing method provided in an embodiment of the present application;

[0025] Figure 4 It is a flowchart of another data testing method provided in an embodiment of the present application;

[0026] Figure 5 This is a schematic diagram for comparing the differences in index parameters provided in an embodiment of the present application;

[0027] Figure 6 It is a schematic diagram of the composition structure of a data testing device provided in an embodiment of the present application;

[0028] Figure 7 It is a schematic diagram of the composition structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0030] The technical solution of the present application can be applied to the scenario of testing the tested service to be launched, and adjusting the tested service to be launched online. By forwarding the data request to the production environment and the simulation environment, the index parameters obtained by running the service before the tested service is updated in the production environment, such as the benchmark service, and the index parameters obtained by running the tested service in the simulation environment are obtained respectively. By comparing the difference between the index parameters in the two environments, the tested service can be adjusted, and then the adjusted tested service can be tested and launched online, thereby improving the stability of the tested service online. The technical solution of the present application can also be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.

[0031] It should be noted that the embodiments of the present application involve data related to user information (e.g., first indicator parameters, second indicator parameters, etc.). When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. User can refer to the user of a terminal device or a computer device.

[0032] See also Figure 1 , Figure 1 is a schematic diagram of a network architecture of a data testing system provided in an embodiment of the present application, such as Figure 1 As shown, the computer device can exchange data with the terminal device, and the number of the terminal devices can be one or at least two. For example, when the number of the terminal devices is multiple, the terminal device may include Figure 1 The terminal device 101a, the terminal device 101b and the terminal device 101c, etc. Among them, taking the terminal device 101a as an example, the computer device 102 can obtain the data request and forward the data request to the production environment and the simulation environment respectively. Further, the computer device 102 can obtain the index parameters obtained by running the benchmark service in the production environment; and obtain the index parameters obtained by running the tested service in the simulation environment; so that the tested service can be tested based on the parameter difference information between the index parameters corresponding to the two environments. Optionally, the computer device 102 can also send the index parameters corresponding to the two environments and the parameter difference information between the two index parameters to the terminal device 101a, so as to display the differences on the terminal device 101a.

[0033] It is understandable that the computer device mentioned in the embodiments of the present application may refer to a server or a terminal device, or a system composed of a server and a terminal device. Among them, the terminal device mentioned above may be an electronic device, for example, it may include but is not limited to a mobile phone, a tablet computer, a desktop computer, a laptop computer, a PDA, a vehicle-mounted device, an intelligent voice interaction device, an augmented reality / virtual reality (AR / VR) device, a helmet display, a wearable device, a smart speaker, a smart home appliance, an aircraft, a digital camera, a camera and other mobile Internet devices (mobile internet device, MID) with network access capabilities. Among them, the server mentioned above may refer to an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, vehicle-road collaboration, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0034] For further information, see Figure 2 , Figure 2 is a flow chart of a data testing method provided in an embodiment of the present application; Figure 2 As shown, the data testing method can be applied to a computer device, and the data testing method includes but is not limited to the following steps:

[0035] S101, obtaining a data request, forwarding the data request to a production environment, and forwarding the data request to a simulation environment.

[0036] In an embodiment of the present application, the service under test can be tested before going online to test whether the service under test meets expectations. If the service under test does not meet expectations, the service under test needs to be adjusted before being put online in the production environment for use, thereby improving the stability of the service under test.

[0037] In the technical solution of the present application, the service before the tested service is updated, such as the benchmark service, can be run in the existing network environment, and the tested service can be run in the simulation environment. The indicator data obtained by running the benchmark service in the existing network environment and the indicator data obtained by running the tested service in the simulation environment can be used to find the difference between the benchmark service running in the existing network environment and the tested service running in the simulation environment, so that adjustments can be made according to the differences in the tested services so that the tested services meet expectations. Among them, the existing network environment can refer to the production environment. The simulation environment can refer to a simulated operating environment that is the same as the production environment. In the embodiment of the present application, the purpose is to ensure that the two services are in the same operating environment as much as possible, find the difference between the two services, and adjust the tested service and put it online.

[0038] Among them, the data request is used to request to run the benchmark service in the production environment, and the data request is also used to request to run the tested service in the simulation environment. The benchmark service may refer to the service before the tested service is updated. If there are multiple services before the tested service is updated, that is, there are multiple versions of the tested service, and the multiple versions of the service may refer to the services that have been launched in the production environment, then the benchmark service may be any one of the multiple versions of the service, for example, it may be the version of the service with the shortest time interval from the update of the tested service, or it may also be other versions of the service in the multiple versions. The tested service may refer to a business service that needs to be tested, that is, a business service that is not online. The tested service may refer to, for example, a program or code that needs to be tested.

[0039] Optionally, the tested service may be different in different application scenarios. For example, in advertising applications, the tested service may refer to an advertisement click service, an advertisement sorting service, etc.; in instant messaging applications, the tested service may be an information forwarding service, an emoticon sending service, etc.; in payment applications, the tested service may be a payment service, a transfer service, etc.; in video applications, the tested service may be a barrage sending service, a video sharing service, a video comment forwarding service, etc. Correspondingly, the benchmark version and the tested service are the same type of service. For example, if the tested service is an advertisement click service, the benchmark service is also an advertisement click service. Or if the tested service is other services, the benchmark service is also a service corresponding to the tested service. The embodiments of the present application do not limit the types of the tested service and the benchmark service.

[0040] In an embodiment of the present application, a benchmark service may refer to a service that has been deployed in a production environment, for example, the benchmark service has been put into use multiple times in a production environment before the service under test is generated. Then, when a data request is obtained, the benchmark service can be run in a production environment based on the data request. It is understandable that the number of data requests can be multiple, and an embodiment of the present application is to forward multiple data requests to the benchmark service in the production environment and the service under test in the simulation environment, thereby observing the operation of the benchmark service in the production environment and the service under test in the simulation environment under multiple data requests.

[0041] Among them, the data request in the production environment can be a request sent by the upstream service of the benchmark service in the production environment, and the upstream service can be deployed in the production environment. For example, in the production environment, the upstream service can send a data request to the benchmark service, and the benchmark service can perform corresponding operations based on the data request sent by the upstream service. For example, if the benchmark service is an ad click service, when the data request in the production environment is obtained, the ad click behavior can be reported, and the request result for the data request can be returned to the production environment. For example, the request result can be used to indicate that the ad click behavior is reported successfully or failed, or the request result can include the ad detail page data corresponding to the ad click behavior, etc. When the benchmark service is an ad click service, the upstream service can refer to an ad access service, for example. The service under test can refer to a service obtained after updating on the basis of the benchmark service. The service under test can be deployed in a simulation environment. When the simulation environment obtains the data request, the service under test can be run in the simulation environment. Among them, running the service under test in the simulation environment can mean that when the service under test in the simulation environment obtains the data request, the service under test can perform corresponding operations based on the data request.

[0042] Optionally, the simulation environment can be deployed on some devices, and the production environment can be deployed on other devices. The devices in the simulation environment can be called simulation devices, and the devices in the production environment can be called production devices. The production environment can include production devices, and the simulation environment can include simulation devices. Then forwarding data requests to the production environment can be forwarding data requests to production devices in the production environment, and forwarding data requests to the simulation environment can be forwarding data requests to simulation devices in the simulation environment. Optionally, data requests can be forwarded to both environments at the same time, and the data requests forwarded to the two environments are the same. Among them, the routing configuration in the simulation environment is the one used in the production environment, that is, the simulation environment can directly use the routing configuration in the production environment, then the data request obtained by the simulation environment is sent by the production environment, and when the simulation environment needs to read data when running the tested service, it can read the data in the database or cache layer in the production environment, so that the simulation environment can be guaranteed to be as consistent as possible with the production environment to a large extent, reducing the differences caused by inconsistent routing configurations of the two environments.

[0043] Optionally, the data request may be triggered by the client to trigger one or more data operations, such as clicking an advertisement or other operations. When the upstream service of the production environment, such as the advertisement access service, detects the data operation, it generates a data request, which may then be sent to the production environment and the simulation environment to run the benchmark service in the production environment and the service under test in the simulation environment.

[0044] In one implementation, a traffic proxy service can be used to obtain data requests, and the traffic proxy service can be used to forward data requests to the production environment and to the simulation environment. Specifically, the service under test can be deployed in the simulation environment, and then the route of the upstream service of the benchmark service in the production environment is pointed to the traffic proxy service. The traffic proxy service can be configured with two addresses, one address corresponding to the production device in the production environment, and the other address corresponding to the simulation device in the simulation environment. By pointing the route of the upstream service to the traffic proxy service, the traffic proxy service can obtain the data request sent by the upstream service. Since the traffic proxy service is configured with two addresses, the traffic proxy service can forward data requests to the two addresses, that is, forward the data request corresponding to the upstream service to the simulation environment and the production environment. The number of data requests corresponding to the upstream service can be multiple. By forwarding multiple data requests to the production environment and the simulation environment, the difference between the production environment and the simulation environment can be obtained, that is, the difference between the benchmark service running in the production environment and the service under test running in the simulation environment, and then the service under test can be adjusted.

[0045] In an optional implementation, the traffic proxy service can also initiate a diversion instruction before forwarding the data request. The initiation of the diversion instruction can, for example, refer to starting the main switch of the data test system. The traffic proxy service can obtain the data request sent by the upstream service and forward the data request to the simulation environment and the production environment respectively, thereby obtaining the difference caused by running the tested service in the two environments, and then determining whether the tested service needs to be adjusted based on the difference. If the tested service does not need to be adjusted anymore, indicating that the test of the tested service has passed, the diversion instruction can be stopped, that is, the main switch of the data test system is turned off.

[0046] Optionally, the traffic proxy service in the embodiment of the present application can be used to obtain data requests and forward the obtained data requests. The traffic proxy service may, for example, refer to a piece of program code, or a component, or a plug-in, or a functional service, etc. The embodiment of the present application does not limit the form of the traffic proxy service.

[0047] Optionally, the traffic proxy service in the embodiment of the present application may refer to, for example, a traffic proxy service (traffic_proxy_service) or other traffic proxy services. Exemplarily, a comparison table between a traffic proxy service (traffic_proxy_service) and a current application request copy tool (tcpcopy) is provided in the embodiment of the present application, and the comparison table may be shown in Table 1:

[0048] Table 1

[0049]

[0050] As can be seen from Table 1, tcpcopy needs to be deployed on the corresponding service in the production environment to perform its corresponding functions. For example, it needs to be deployed on the benchmark service in the production environment to obtain the data sent by the upstream service to the benchmark service. And it is necessary to deploy an auxiliary service separately to parse, store, and send the traffic sent by the upstream service to the simulation environment. The traffic here can refer to the data request sent by the upstream service. In this solution, Traffic_proxy_service does not need to be deployed on the benchmark service in the production environment. It can be deployed on any device or a separate environment can be built. It only needs to modify the service address and traffic of Traffic_proxy_service to obtain the data request of the upstream service in the production environment, and forward it to the target service corresponding to the address through the target service address. The target service can refer to the benchmark service in the production environment and the tested service in the simulation environment. In addition, tcpcopy does not support multi-layer forwarding. It can only obtain the traffic of the service it deploys and forward it to the corresponding service through the auxiliary service. Traffic_proxy_service can support multi-layer forwarding, that is, it supports forwarding multiple services. You only need to add a traffic proxy service between the upstream service of the service that needs to be forwarded and the service that needs to be forwarded, and modify the address of the service that needs to be forwarded. You can then obtain the traffic of the upstream service and forward it to the service that needs to be forwarded.

[0051] S102: Obtain a first indicator parameter obtained by running a benchmark service in a production environment within a target time period.

[0052] In an embodiment of the present application, running the benchmark service in a production environment will obtain an operation result, and a first indicator parameter will be obtained in the process of running the benchmark service. For example, the first indicator parameter can be obtained by running the benchmark service based on a data request in a production environment. The first indicator parameter can be used to reflect the performance of the benchmark service during the operation of the production environment. Among them, the operation result may include but is not limited to the result of successful operation or failed operation, and may also include the operation page data returned by running the benchmark service. The first indicator parameter may include but is not limited to data such as device change indicator data generated by running the benchmark service in a production environment, business indicator data generated by running the benchmark service, etc. For example, the benchmark service is an ad click service. When a trigger instruction for the ad click service is detected by the client, the ad click behavior can be reported to obtain a reporting result, that is, an operation result. For example, the operation result may include but is not limited to results such as successful reporting or failed reporting. The operation result may also include the ad details page data corresponding to the ad click behavior, and the operation result can be returned to the client.

[0053] Optionally, in the process of running the benchmark service to obtain the running result, the resource consumption of the physical environment will be caused, and the first device indicator data can be obtained; and in the process of running the benchmark service to obtain the running result, the business indicator will be generated, and the first business indicator data can be obtained; and in the process of running the benchmark service to obtain the running result, the count of the dotting indicator in the program corresponding to the benchmark service will change, and the first dotting data can be obtained, etc. Among them, the first indicator parameter can include at least one of the first device indicator data, the first business indicator data, and the first dotting data corresponding to the production environment, the first device indicator data is used to reflect the device performance in the production environment, the first business indicator data is used to reflect the business operation in the production environment, and the first dotting data is used to reflect the operation of the dotting indicator in the production environment.

[0054] Optionally, the first device indicator data may include, for example, but not limited to, the central processing unit (CPU), memory, disk space, load, query rate per second (QPS), fan-in and fan-out data of the production equipment in the production environment. The first business indicator data may include, but not limited to, advertising CPM (Cost Per Mille, a type of paid-for-display advertisement, which is charged by the exposure rate of the displayed advertisement, thereby obtaining advertising revenue), CPC (Cost Per Click, cost per click), exposure, click-through rate, advertising revenue and other data. The first dotting data may include, but not limited to, the number of abnormal executions of the benchmark service, the time consumed for executing data requests, and the indicators of the program itself corresponding to the benchmark service, as well as other dotting data that developers are concerned about. For example, when the execution is abnormal, dotting is performed. Optionally, the first dotting data may refer to information collected through embedding, for example, by inserting code unrelated to the tested service to collect some specific information, and determine the use status of the tested service through the collected specific information, which is subsequently used to further optimize the service or provide data support for operations. In an optional implementation, tracking can be performed in advance in the code of the benchmark service, and when the corresponding situation of tracking is met during the operation of the benchmark service, tracking will be performed to obtain the first tracking data. It is understandable that the embodiment of the present application can also include other customized indicator data, and combine other customized indicator data to determine the difference between the benchmark service running in the production environment and the tested service running in the simulation environment, and the embodiment of the present application is not limited to this.

[0055] In the embodiment of the present application, since the first indicator parameter obtained by running the benchmark service in the production environment within the target time period is obtained, for the first device indicator data, there will be data changes within the target time period, and multiple first device indicator data will correspond to the target time period. For example, if the first device indicator data is memory, multiple memory data can be obtained within the target time period, thereby obtaining the memory changes caused by running the benchmark service within the target time period. Correspondingly, the CPU changes, disk space changes, load changes, QPS changes, fan-in and fan-out changes, etc. of running the benchmark service within the target time period can be obtained. For the first business indicator data, the business indicator data within the target time period can be obtained. For example, if the first business indicator data is advertising CPM, the advertising CPM within the target time period can be obtained. Correspondingly, data such as CPC, exposure, click-through rate, and advertising revenue within the target time period can be obtained. For the first dotting data, the changes in the dotting data within the target time period can be obtained. For example, if the first business indicator data is the number of execution exceptions, the number of each execution exception and the time of the execution exception can be obtained, thereby obtaining the changes corresponding to the execution exception, and so on.

[0056] S103: Obtain a second indicator parameter obtained by running the tested service in a simulation environment within a target time period.

[0057] In an embodiment of the present application, running the tested service in a simulation environment will obtain an operation result, and a second indicator parameter will be obtained during the operation of the tested service. For example, the second indicator parameter can be obtained by running the tested service based on a data request in a simulation environment. The second indicator parameter can be used to reflect the performance of the tested service during the operation of the simulation environment. Among them, the operation result may include but is not limited to the result of successful operation or failed operation, and may also include the operation data returned by running the tested service. The second indicator parameter may include but is not limited to data such as device change indicator data generated by running the tested service in a simulation environment, business indicator data generated by running the tested service, etc. For example, the tested service is an ad click service. When a trigger instruction for the ad click service is detected by the client, the ad click behavior can be reported to obtain a reporting result, that is, an operation result. For example, the operation result may include but is not limited to results such as successful reporting or failed reporting. The operation result may also include ad detail page data corresponding to the ad click behavior, and so on.

[0058] Optionally, in the process of running the tested service in the simulation environment to obtain the running result, it will cause the consumption of resources in the physical environment, and the second device indicator data can be obtained; and in the process of running the tested service to obtain the running result, business indicators will be generated, and the second business indicator data can be obtained; and in the process of running the tested service to obtain the running result, the dot data in the program corresponding to the tested service will change, and the second dot data can be obtained, etc. Among them, the second indicator parameter can include at least one of the second device indicator data, the second business indicator data, and the second dot data corresponding to the simulation environment, the second device indicator data is used to reflect the device performance in the simulation environment, the second business indicator data is used to reflect the business operation in the simulation environment, and the second dot data is used to reflect the operation of the dotted indicators in the simulation environment.

[0059] Optionally, the second device indicator data may include, but is not limited to, the CPU, memory, disk space, load, QPS, fan-in and fan-out data of the simulated device in the simulation environment. The second business indicator data may include, but is not limited to, advertising CPM, CPC, exposure, click-through rate, advertising revenue and other data. The second dotting data may include, but is not limited to, the number of times the tested service is executed abnormally, the time taken to execute data requests, and the indicators of the program itself corresponding to the tested service, as well as other dotting data that developers are concerned about. For example, when the execution is abnormal, dotting is performed. In an optional implementation method, dotting can be performed in advance in the code of the tested service. When the corresponding situation of the dotting is met during the operation of the tested service, dotting will be performed to obtain the second dotting data. It can be understood that the dotting in the tested service is the same as the dotting in the benchmark service, that is, the number and type of the dotting in the two services are the same, so that the difference comparison can be performed based on the data generated by the dotting of the two services.

[0060] In the embodiment of the present application, since the second indicator parameter obtained by running the tested service in the simulation environment within the target time period is obtained, for the second device indicator data, there will be data changes within the target time period, and multiple second device indicator data will correspond to the target time period. For example, if the second device indicator data is memory, multiple memory data can be obtained within the target time period, thereby obtaining the memory changes caused by running the tested service within the target time period. Correspondingly, the CPU changes, disk space changes, load changes, QPS changes, fan-in and fan-out changes, etc. of running the tested service within the target time period can be obtained. For the second business indicator data, the business indicator data within the target time period can be obtained. For example, if the second business indicator data is advertising CPM, the advertising CPM within the target time period can be obtained. Correspondingly, data such as CPC, exposure, click-through rate, and advertising revenue within the target time period can be obtained. For the second dotting data, the changes in the dotting data within the target time period can be obtained. For example, if the second business indicator data is the number of execution exceptions, the number of each execution exception and the time of the execution exception can be obtained, thereby obtaining the changes corresponding to the execution exception, and so on.

[0061] S104: Obtain parameter difference information between the first indicator parameter and the second indicator parameter, and test the service under test based on the parameter difference information.

[0062] In an embodiment of the present application, by obtaining parameter difference information between the first indicator parameter and the second indicator parameter, the difference between the benchmark service in the production environment and the service under test in the simulation environment can be determined, so that the service under test can be tested based on the parameter difference information. Testing the service under test may refer to: adjusting the service under test according to the difference between the production environment and the simulation environment, running the adjusted service under test in the simulation environment to obtain indicator parameters, and obtaining the indicator parameters of the benchmark service running in the production environment, comparing the indicator parameters of the two environments, and determining the difference between the benchmark service in the production environment and the service under test in the simulation environment again. If the difference is less than or equal to the difference threshold, indicating that the test of the service under test has passed, the service under test is put online and runs in the production environment.

[0063] It is understandable that the parameter difference information can be used to indicate in which aspects the production environment and the simulation environment differ and the difference threshold corresponding to the difference. When the difference is greater than the difference threshold, it can be indicated that there is a difference in the corresponding aspect. For example, if a difference is found in which indicator, it can be checked whether the code changes in the process of updating the version of the benchmark service to obtain the tested service affect this indicator, and determine whether the code needs to be modified, such as fixing a vulnerability.

[0064] In one embodiment, by deploying the service under test in a simulation environment, the simulation environment can receive data requests, which can be forwarded by a traffic proxy service, so that the service under test can be run in the simulation environment based on the data request within the target time period to obtain a second indicator parameter. The simulation environment can also return the second indicator parameter to the computer device. The second indicator parameter is obtained by running the service under test in the simulation environment, and then it can be compared with the first indicator parameter obtained by running the benchmark service in the production environment within the target time period to determine in which indicators the service under test differs from the benchmark service, and then targeted adjustments can be made, and the adjusted service under test can be tested to improve the stability of the subsequent launch of the service under test.

[0065] Optionally, if the first indicator parameter within the target time period can reflect the change of the indicator within the target time period, a parameter curve corresponding to the indicator can be generated based on multiple indicator data of the indicator within the target time period, that is, a parameter curve corresponding to the production environment can be obtained. Correspondingly, if the second indicator parameter within the target time period can reflect the change of the indicator within the target time period, a parameter curve corresponding to the indicator can be generated based on multiple indicator data of the indicator within the target time period, that is, a parameter curve corresponding to the simulation environment can be obtained, so as to compare the parameter curves of the two environments to determine the difference between the two environments.

[0066] Since the first indicator parameter is an indicator parameter obtained by running the benchmark service in the production environment within the target time period, a first parameter curve corresponding to the first indicator parameter of the target time period can be drawn. Since the second indicator parameter is an indicator parameter obtained by running the tested service in the simulation environment within the target time period, a second parameter curve corresponding to the second indicator parameter of the target time period can be drawn. If there are multiple first indicator parameters and multiple second indicator parameters, a corresponding first parameter curve can be drawn for each first indicator parameter, and a corresponding second parameter curve can be drawn for each second indicator parameter, so as to determine the difference between the two environments based on the comparison of each first parameter curve and the corresponding second parameter curve. It can be understood that the type of the first indicator parameter is the same as the type of the second indicator parameter. When comparing the first parameter curve and the second parameter curve, the first parameter curve and the second parameter curve corresponding to the same type of indicator can be obtained for comparison, and a comparison result corresponding to each type of indicator can be obtained.

[0067] In one embodiment, when calculating the difference between two parameter curves, the fluctuation interval corresponding to the first parameter curve and the fluctuation interval corresponding to the second parameter curve can be obtained respectively, and it is determined whether the fluctuation interval corresponding to the first parameter curve and the fluctuation interval corresponding to the second parameter curve exceed the interval threshold, so as to determine the parameter difference information between the first parameter curve and the second parameter curve.

[0068] Among them, if the fluctuation interval corresponding to the first parameter curve exceeds the interval threshold, it means that the fluctuation interval of the first parameter curve exceeds the standard, and the second parameter curve corresponding to the indicator can be obtained. If the second parameter curve does not exceed the standard, it can be determined that the parameter difference information between the first parameter curve and the second parameter curve is greater than the difference threshold, that is, the first indicator parameter and the second indicator parameter are greater than the parameter threshold. Alternatively, if the fluctuation interval corresponding to the second parameter curve exceeds the interval threshold, it means that the fluctuation interval of the second parameter curve exceeds the standard, and the first parameter curve corresponding to the indicator can be obtained. If the first parameter curve does not exceed the standard, it can be determined that the parameter difference information between the first parameter curve and the second parameter curve is greater than the difference threshold, that is, the first indicator parameter and the second indicator parameter are greater than the parameter threshold. If the fluctuation interval corresponding to the second parameter curve exceeds the interval threshold, and the fluctuation interval corresponding to the first parameter curve exceeds the interval threshold, the prompt information corresponding to the first parameter curve and the second parameter curve can be output, prompting the developer to further determine whether the indicator items indicated by the first parameter curve and the second parameter curve are abnormal. If the fluctuation interval corresponding to the second parameter curve does not exceed the interval threshold, and the fluctuation interval corresponding to the first parameter curve does not exceed the interval threshold, the similarity between the first parameter curve and the second parameter curve can be further compared to determine whether there is a difference. By using the fluctuation interval of the parameter curve for judgment, the efficiency of difference judgment can be improved.

[0069] Optionally, the first parameter curve corresponding to the production environment in the historical time period and the second parameter curve corresponding to the simulation environment in the current time period may also be obtained to determine whether the fluctuation interval of the first parameter curve and the second parameter curve exceeds the interval threshold. It is thus determined that the parameter difference information between the first parameter curve and the second parameter curve is greater than the difference threshold, that is, the first indicator parameter and the second indicator parameter are greater than the parameter threshold. The historical time period may be the time period of the previous day, and the current time period may refer to the time period corresponding to the current date (for example, the date on which the tested service is tested). Alternatively, the first parameter curve corresponding to the current production environment and the second parameter curve corresponding to the current simulation environment may also be obtained to determine whether the fluctuation interval of the first parameter curve and the second parameter curve exceeds the interval threshold, and it is determined that the parameter difference information between the first parameter curve and the second parameter curve is greater than the difference threshold, that is, the first indicator parameter and the second indicator parameter are greater than the parameter threshold.

[0070] In one embodiment, when calculating the difference between two parameter curves, the difference can be calculated based on the similarity between the parameter curves. Specifically, the curve similarity between the first parameter curve and the second parameter curve can be calculated; if the curve similarity between the first parameter curve and the second parameter curve is less than or equal to a similarity threshold, the parameter difference information between the first indicator parameter and the second indicator parameter is determined based on the first parameter curve and the second parameter curve.

[0071] Wherein, determining the parameter difference information between the first indicator parameter and the second indicator parameter based on the first parameter curve and the second parameter curve may refer to: determining the abnormal indicator item indicated by the first parameter curve and the second parameter curve as the parameter difference information between the first indicator parameter and the second indicator parameter. That is, the parameter difference information may include the abnormal indicator item, and may also include the parameter difference value corresponding to the abnormal indicator item, and the parameter difference value may be equal to the curve similarity between the first parameter curve and the second parameter curve.

[0072] In one embodiment, if the curve similarity between the first parameter curve and the second parameter curve is greater than the similarity threshold, the first curve data on the first parameter curve and the second curve data on the second parameter curve are respectively obtained; based on the first curve data and the second curve data, the parameter difference information between the first indicator parameter and the second indicator parameter is determined. Among them, the first curve data may include any one or more data on the first parameter curve, and the second curve data may include any one or more data on the second parameter curve. For example, the parameter difference information between the first indicator parameter and the second indicator parameter may be determined by calculating the distance between the curve data on the first parameter curve and the corresponding curve data on the second parameter curve. The distance calculation method between the curve data may include, but is not limited to, distance calculation methods such as cosine distance, Euclidean distance, and edit distance. By calculating the distance between the curve data on different parameter curves, the difference between the two curves can be further determined, and the accuracy of difference determination can be improved.

[0073] In an optional implementation, when calculating the curve similarity between the first parameter curve and the second parameter curve, the method provided by the open source computer vision library (opencv) can be used to obtain the histogram data of the parameter curve, and then normalized, and then the similarity method of opencv is used to calculate the curve similarity between the first parameter curve and the second parameter curve. If the similarity is greater than the similarity threshold, it means that the difference between the first parameter curve and the second parameter curve is small, then the curve data on the parameter curve can be further obtained for calculation, and the difference between the indicators indicated by the first parameter curve and the second parameter curve in two environments can be further determined. Optionally, if the similarity is less than or equal to the similarity threshold, it can be indicated that the difference between the first parameter curve and the second parameter curve is large, then the difference between the abnormal index items indicated by the first parameter curve and the second parameter curve in two environments can be determined to be too large, and there is no need to perform the next step of calculation, and the abnormal index items of the tested service are adjusted. Optionally, the similarity calculation method in the embodiment of the present application can also include but is not limited to the calculation methods such as cosine similarity, Euclidean distance, and Pearson correlation coefficient.

[0074] In one embodiment, parameter difference information between the first indicator parameter and the second indicator parameter may also be determined based on the first curve data in the first parameter curve and the second curve data in the second parameter curve. Specifically, the first initial data may be deleted from the first curve data to obtain the first undetermined curve data, and the second initial data may be deleted from the second curve data to obtain the second undetermined curve data; and the parameter difference information may be determined based on the first undetermined curve data and the second undetermined curve data.

[0075] Among them, the first initial data in the first curve data may refer to abnormal data in the first curve data, for example, the abnormal data may include but is not limited to data obtained when the data test system is just started, data reporting errors, or data caused by other abnormalities. If the abnormal data refers to data obtained when the data test system is just started, since the service operation is unstable when the system is just started, the data obtained a few seconds or tens of seconds before the system starts can be deleted, so the data can be deleted before comparing the difference between the first parameter curve and the second parameter curve. The second initial data in the second curve data may refer to abnormal data in the second curve data, for example, the abnormal data may include but is not limited to data obtained when the data test system is just started, data reporting errors, or data caused by other abnormalities. By deleting the initial data in the reference curve to obtain the pending curve data, and then comparing the difference between the first parameter curve and the second parameter curve through the pending curve data, the accuracy of the difference determination can be improved.

[0076] Optionally, when determining the parameter difference information between the first to be determined curve data and the second to be determined curve data, the data types of the first to be determined curve data and the second to be determined curve data can be determined respectively, and the distance between the first to be determined curve data and the second to be determined curve data can be calculated in combination with the data types, thereby determining the parameter difference information between the first indicator parameter and the second indicator parameter.

[0077] In an optional embodiment, if the data type of the first undetermined curve data and the data type of the second undetermined curve data are both string types, the edit distance between the first undetermined curve data and the second undetermined curve data is calculated, and the edit distance is determined as parameter difference information.

[0078] The edit distance may be the minimum number of edit operations required to convert one character string into another character string. The edit operation may include, for example, replacing one character with another character, inserting a character, and deleting a character. The smaller the edit distance between the first undetermined curve data and the second undetermined curve data, the smaller the parameter difference information between the first undetermined curve data and the second undetermined curve data. The larger the edit distance between the first undetermined curve data and the second undetermined curve data, the larger the parameter difference information between the first undetermined curve data and the second undetermined curve data.

[0079] In an optional embodiment, if the data type of the first undetermined curve data and the data type of the second undetermined curve data are both array types, the overlap between the first undetermined curve data and the second undetermined curve data is calculated, and the overlap between the data is determined as parameter difference information.

[0080] The overlap between the arrays may include at least one of the intersection and the union between the arrays. For example, the overlap between the first undetermined curve data and the second undetermined curve data may be the intersection between the arrays, or the overlap between the first undetermined curve data and the second undetermined curve data may be the ratio between the intersection between the arrays and the union between the arrays. The greater the overlap between the first undetermined curve data and the second undetermined curve data, the smaller the parameter difference information between the first undetermined curve data and the second undetermined curve data. The smaller the overlap between the first undetermined curve data and the second undetermined curve data, the greater the parameter difference information between the first undetermined curve data and the second undetermined curve data.

[0081] In an optional embodiment, if the data type of the first undetermined curve data and the data type of the second undetermined curve data are both composite data types, when the first undetermined curve data and the second undetermined curve data are the same, the first parameter threshold is determined as parameter difference information; the composite data type includes at least one of a digital type, an enumeration type, and a Boolean type. Further optionally, when the first undetermined curve data and the second undetermined curve data are different, the second parameter threshold is determined as parameter difference information.

[0082] The first parameter threshold may be less than the second parameter threshold. For example, the first parameter threshold may be 0, and the second parameter threshold may be 1. The digital type may refer to a numerical value. When the first undetermined curve data and the second undetermined curve data are the same, it may refer to that the numerical values ​​of the first undetermined curve data and the second undetermined curve data are equal. When the numerical values ​​of the first undetermined curve data and the second undetermined curve data are equal, the first parameter threshold is determined as parameter difference information, for example, the parameter difference information is 0. When the numerical values ​​of the first undetermined curve data and the second undetermined curve data are not equal, the second parameter threshold is determined as parameter difference information, for example, the parameter difference information is 1. The enumeration type may refer to several set categories. If the set category corresponding to the first undetermined curve data and the set category corresponding to the second undetermined curve data are the same, the first parameter threshold is determined as parameter difference information, for example, the parameter difference information is 0. If the category corresponding to the first undetermined curve data is different from the category corresponding to the second undetermined curve data, the second parameter threshold is determined as parameter difference information, for example, the parameter difference information is 1. The Boolean type may include false and true. If the first undetermined curve data is false and the second undetermined curve data is false, indicating that the first undetermined curve data and the second undetermined curve data are equal, the first parameter threshold is determined as parameter difference information, for example, the parameter difference information is 0. If the first undetermined curve data is true and the second undetermined curve data is false, indicating that the first undetermined curve data and the second undetermined curve data are not equal, the second parameter threshold is determined as parameter difference information, for example, the parameter difference information is 1.

[0083] In the embodiment of the present application, since different data types can be calculated using different distance calculation methods, the accuracy of distance calculation can be improved. By combining the data type of the first undetermined curve data and the data type of the second undetermined curve data, the parameter difference information between the first undetermined curve data and the second undetermined curve data can be determined, and it can be determined whether there is a difference in the indicators indicated by the first undetermined curve data and the second undetermined curve data. In this way, it can be determined whether there is a difference in multiple indicators in the two environments, and then it can be determined whether there is a difference between the benchmark service in the production environment and the service under test in the simulation environment, so as to determine whether to adjust the service under test and conduct subsequent tests.

[0084] Optionally, the difference intervals corresponding to the indicators with differences can also be counted, and the difference intervals can include parameter difference values, difference indicator items, and first indicator data and second indicator data corresponding to the difference indicator items, and the difference intervals can be output. By outputting the difference intervals, developers can further judge the difference indicator items in the difference intervals to determine whether there are differences. If there are no differences, the indicator of the tested service can be left unchanged.

[0085] In the embodiment of the present application, due to the large number of index items of the tested service and the internal dotting data of the program, two-level calculations are performed, and the two-level calculations may include rough comparison and precise comparison. Rough comparison may refer to calculating the similarity of parameter curves of the production environment and the simulation environment. The smaller the similarity between the parameter curves, the greater the difference between the curves. The index items indicated by the parameter curves with larger differences are determined as index items with obvious differences, i.e., difference index items. Precise comparison may refer to performing precise comparison calculations on the data in the parameter curves corresponding to the same index to determine the difference interval corresponding to the index. The two-level calculations may improve the speed of calculation to a certain extent, thereby improving the test efficiency. Further, a difference report may be generated based on the difference. The difference report may include index items with differences, parameter difference values, and index data corresponding to the index items with differences, etc., so that relevant personnel can quickly locate specific differences.

[0086] In one embodiment, the parameter difference information includes one or more parameter difference values, each first indicator parameter corresponds to a second indicator parameter, and each first indicator parameter corresponds to a difference threshold, that is, each first indicator parameter and the associated second indicator parameter correspond to the same difference threshold. When there are multiple first indicator parameters, if the parameter difference values ​​between each first indicator parameter and the corresponding second indicator parameter are less than or equal to the difference threshold corresponding to each first indicator parameter, it can be determined that the test of the tested service has passed. Furthermore, the tested service can also be put online and run in a production environment.

[0087] That is, when the first indicator parameter and the second indicator parameter include multiple types, each first indicator parameter corresponds to a difference threshold with the corresponding second indicator parameter. If the parameter difference information between each first indicator parameter and the corresponding second indicator parameter is less than the corresponding difference threshold, it means that the test of the tested service has passed, and there is no need to adjust the tested service. The tested service can be put online and run in the production environment. By comparing the parameters corresponding to each indicator, the accuracy of difference determination can be improved.

[0088] In one embodiment, the parameter difference information includes one or more parameter difference values, each first indicator parameter corresponds to a second indicator parameter, and each first indicator parameter corresponds to a difference threshold, that is, each first indicator parameter and the associated second indicator parameter correspond to the same difference threshold. When there are multiple first indicator parameters, if the parameter difference values ​​between each first indicator parameter and the corresponding second indicator parameter are greater than the difference threshold corresponding to each first indicator parameter, then the difference indicator item indicated by each first indicator parameter and the second indicator parameter is determined to obtain multiple difference indicator items; each of the multiple difference indicator items of the tested service can be adjusted, and the adjusted tested service can be tested.

[0089] In one embodiment, when there are multiple first indicator parameters, if there are N first indicator parameters and the parameter difference values ​​between the corresponding second indicator parameters are greater than the difference thresholds corresponding to the N first indicator parameters, then the difference indicator items indicated by the N first indicator parameters and the second indicator parameters are determined to obtain N difference indicator items, and the tested services are adjusted based on the N difference indicator items. That is to say, when there are multiple indicator parameters, each indicator parameter corresponds to a difference threshold, and the indicator items indicated by the indicator parameters whose parameter difference threshold is greater than the corresponding difference threshold are determined as difference indicator items, and these difference indicator items of the tested services are adjusted. For the indicator items indicated by the indicator parameters whose parameter difference threshold is less than or equal to the corresponding difference threshold, these indicator items of the tested services may not be processed, which can improve the test efficiency.

[0090] For example, the difference index item indicated by the first index parameter and the second index parameter may refer to dotting data such as service execution abnormality, and the service execution abnormality of the tested service may be adjusted, for example, checking whether the code change affects the service execution, so as to determine whether to modify the code to adjust the service execution. Among them, testing the adjusted tested service may refer to deploying the adjusted tested service in a simulation environment, obtaining data requests in the production environment, forwarding data requests to the production environment, and forwarding data requests to the simulation environment; respectively obtaining the index parameters obtained by running the benchmark service in the production environment for a period of time and the index parameters obtained by running the adjusted tested service in the simulation environment during the period of time, and determining whether the parameter difference value between the two index parameters is less than or equal to the corresponding difference threshold. If the parameter difference value is less than or equal to the corresponding difference threshold, it means that the test of the tested service has passed, and the adjusted tested service is put online, and the adjusted tested service is run in the production environment. If the parameter difference value is greater than the corresponding difference threshold, it means that the test of the tested service has not passed, and the difference index item can be determined again, the difference index item of the tested service is adjusted, and the adjusted tested service is tested. By continuously determining whether there are differences in various indicators of the service under test and making adjustments, the difference between the functions of the service under test before the update and the functions in the benchmark service can be reduced, thereby ensuring that the update of the service under test will not affect the original functions, so that the service under test meets expectations, and then the service under test can be launched online to improve the stability of service operation.

[0091] Optionally, the parameter difference information between the first undetermined curve data and the second undetermined curve data may include a parameter difference value. If the parameter difference value between the first undetermined curve data and the second undetermined curve data is greater than a difference threshold, the indicator item indicated by the first undetermined curve data and the second undetermined curve data is determined to be a difference indicator item, the difference indicator item of the tested service is adjusted, and the adjusted tested service is tested. If the parameter difference value between the first undetermined curve data and the second undetermined curve data is less than or equal to the difference threshold, the indicator item indicated by the first undetermined curve data and the second undetermined curve data of the tested service may not be processed.

[0092] Alternatively, if Figure 3 As shown, Figure 3It is a scenario diagram of a data testing method provided by an embodiment of the present application. When the traffic proxy service obtains a data request, the traffic proxy service forwards the data request to the simulation environment and the production environment respectively, so as to run the tested service in the simulation environment and the benchmark service in the production environment. Furthermore, based on the data collection service, the first indicator parameter obtained by running the benchmark service in the production environment within the target time period and the second indicator parameter obtained by running the tested service in the simulation environment within the target time period can be obtained respectively. Furthermore, based on the data comparison service, the first indicator parameter and the second indicator parameter can be compared and analyzed to determine the parameter difference information between the first indicator parameter and the second indicator parameter. In addition, when a certain indicator parameter exceeds the indicator threshold, the indicator can be alarmed through the alarm service, prompting the developer to check the indicator. Optionally, the indicator parameters can be further visualized through the kanban service for easy viewing and data analysis.

[0093] Optionally, the overall architecture of the present solution can be, for example, a microservice architecture. The system of the microservice architecture can be, for example, a distributed system, which is divided into independent service modules according to the functions in the architecture, so as to solve the shortcomings of the single system and also meet increasingly complex business needs. Each microservice can focus on completing a task and complete the task well. In other words, each module in the architecture (such as traffic proxy service, production environment, simulation environment, data collection service, data comparison service, dashboard service, alarm service and other modules) is independent. When an abnormality occurs in the system, the module where the abnormality occurs can be quickly found, which can improve the efficiency of exception handling. In addition, this kind of service architecture can facilitate dynamic expansion and management, and can improve the user experience.

[0094] In an embodiment of the present application, by deploying a traffic proxy service, the traffic proxy service can be responsible for forwarding the traffic sent by the upstream service of the production environment to the simulation environment and the production environment in real time. It is also possible to display the parameter curve of each test, whether the fluctuation range exceeds the standard, and the physical resource consumption data generated by running the respective services in the two environments on the client, that is, the first device indicator data such as memory, CPU, disk, etc. By running the data comparison service, a comparison report containing data such as the first indicator parameter, the second indicator parameter, and parameter difference information can be further output, so that relevant personnel such as developers can further check.

[0095] In the embodiment of the present application, since there is no need to modify the address in the business code, but to modify the address in the architecture of the bottom layer of the simulation environment, the business code is imperceptible, so it is not invasive and can ensure the normal operation of the business. In addition, since the data request obtained by the simulation environment is sent from the production environment, which is equivalent to the routing configuration of the production environment used when the tested service in the simulation environment is running, the data in the production environment can be read when the tested service is running in the simulation environment. The routing configuration of the two environments can be kept consistent as much as possible to ensure data accuracy. Since the scheme forwards multiple data requests sent by the upstream service to the simulation environment and the production environment, the indicator parameters corresponding to the tested service corresponding to the multiple data requests can be analyzed, so that the problems existing in the tested service can be reflected macroscopically. Since the scheme sends data requests to the production environment and the simulation environment at the same time through the traffic proxy service, that is, real-time sampling, there is no need to record and replay each version of the service before the tested service, so as to avoid the recorded file not being the service of the previous version of the tested service, and the timeliness problem can be avoided, thereby saving investment costs and improving the feasibility of landing in the business. In addition, the comparative analysis of the tested services in this solution is more comprehensive, including analysis of business indicators, physical resources, difference distribution statistics and other aspects, which can reflect the problems of the tested services in a more macro sense. After the tested services are launched, their performance in various scenarios such as anomalies and physical resources can be more in line with expectations.

[0096] Furthermore, the tested service in the technical solution of the present application is not limited to the services in the advertising scenario, but can also be applied to many business scenarios to efficiently discover possible problems in the online launch of the tested service in advance, so this solution is more general and has a wider test scope. And the test dimensions include multiple dimensions such as curve differences, fluctuation range exceeding the standard, physical resources, etc., which are more versatile. In addition, in the embodiment of the present application, point embedding can be performed in the code corresponding to the tested service, and point embedding can be performed for the scenarios that the developers are concerned about, so as to obtain the point data, thereby providing test verification points, and this part of the point data can be used as a basic verification item to verify whether there is a problem with the tested service. In addition, this solution can reuse the alarm service and physical resource alarm capabilities of the operation and maintenance system without the need for separate development, and the physical resource information of the equipment generally has ready-made data, and data comparison services can be performed on this basis.

[0097] In an embodiment of the present application, by deploying a benchmark service in a production environment and deploying a tested service in a simulation environment, when a data request is obtained, the data request can be forwarded to the production environment and the simulation environment respectively, and then the benchmark service can be run in the production environment and the tested service can be run in the simulation environment. Thus, the first indicator parameter obtained by running the benchmark service in the production environment within the target time period, and the second indicator parameter obtained by running the tested service in the simulation environment within the target time period can be obtained, and the tested service is tested based on the parameter difference information between the first indicator parameter and the second indicator parameter. When the tested service is subsequently launched, the stability of the service can be improved. Furthermore, by using a simulation environment, the indicator data obtained by running the tested service in the simulation environment and the indicator data obtained by running the benchmark service in the production environment can be obtained at the same time. There is no need to record, store, and replay the benchmark service in the production environment, which can reduce the test time and thus reduce the test cost.

[0098] Optional, see Figure 4 , Figure 4 is a flow chart of another data testing method provided in an embodiment of the present application. The data testing method can be applied to computer equipment; Figure 4 As shown, the data testing method includes but is not limited to the following steps:

[0099] S201, obtaining a data request, forwarding the data request to a production environment, and forwarding the data request to a simulation environment.

[0100] S202: Obtain a first indicator parameter obtained by running a benchmark service in a production environment within a target time period.

[0101] S203: Obtain a second indicator parameter obtained by running the service under test in a simulation environment within a target time period.

[0102] S204: Obtain parameter difference information between the first indicator parameter and the second indicator parameter, and test the service under test based on the parameter difference information.

[0103] In the embodiment of the present application, the specific implementation of steps S201 to S204 can refer to the implementation of the above-mentioned steps S101 to S104, which will not be repeated here.

[0104] S205, obtaining the operation result.

[0105] In an embodiment of the present application, since data requests are sent to the production environment and the simulation environment, the benchmark service can be run in the production environment, and the tested service can be run in the tested environment. The two environments can then return the running results for their respective running services. Among them, the running results can be used to indicate the running status of the tested service or the running status of the benchmark service. For example, when the benchmark service is an ad click service, when a data request is obtained, the ad click behavior can be reported, and the running results for the data request can be returned to the production environment. For example, the running results can be used to indicate whether the ad click behavior is reported successfully or failed, or the running results can include the ad details page data corresponding to the ad click behavior, and so on. The content of the running results returned by the two environments may be the same or different.

[0106] Optionally, the running result and the indicator data may be different. Then, when the benchmark service is run in a production environment, the first indicator data may be returned, and the running result for the benchmark service may be returned. The first indicator data and the running result may be returned at different times or at the same time. Correspondingly, when the tested service is run in a simulation environment, the second indicator data may be returned, and the running result for the tested service may be returned. The second indicator data and the running result may be returned at different times or at the same time. Optionally, the running result may also include the indicator data.

[0107] In one embodiment, when the operation result is different from the indicator parameter, running the benchmark service in a production environment can return the operation result, and can also obtain the first indicator parameter generated by running the benchmark service, such as the device resource consumption caused by running the benchmark service to obtain the first device indicator data, or the business indicator generated by running the benchmark service to obtain the first business indicator data, or the first dotting data generated by the change of the embedded point data in the code caused by running the benchmark service. Running the tested service in a simulation environment can return the operation result, and can also obtain the second indicator parameter generated by running the tested service, such as the device resource consumption caused by running the tested service to obtain the second device indicator data, or the business indicator generated by running the tested service to obtain the second business indicator data, or the count of the dotting indicator in the code caused by running the tested service will change to generate the second dotting data.

[0108] S206, identifying the environment type corresponding to the operation result.

[0109] Wherein, the environment type includes a production environment type and a simulation environment type. In the embodiment of the present application, since the data request in the production environment is sent to the simulation environment and the production environment at the same time, the simulation environment can control security to avoid the request sent by the simulation environment to the production environment from polluting the data in the production environment. Then, an environment identifier for indicating the source of the operation result can be configured in the operation result sent by the simulation environment. When it is determined that the environment identifier corresponding to the operation result indicates that the environment type is the production environment, the operation result can be sent to the production environment. When it is determined that the environment identifier corresponding to the operation result indicates that the environment type is the simulation environment, the operation result may not be sent to the production environment to avoid the operation result of the simulation environment from polluting the data in the production environment.

[0110] S207: If the environment type corresponding to the running result is a simulation environment, the running result is obtained through a hook function, and the running result is sent to the test environment.

[0111] If the environment type corresponding to the running result is a simulation environment, which means that the running result is obtained by running the tested service in the simulation environment, the running result can be obtained and sent to the test environment.

[0112] Since sending the running results of the simulation environment to the production environment will cause pollution to the production environment, a hook function can be deployed. For example, the running results can be obtained through the hook function and sent to the test environment. That is to say, when the service under test is started, by identifying the environment type corresponding to the running result, if the environment type is a simulation environment, the request result is obtained through the hook function, and the running result is sent to the test environment. The test environment can refer to a separately deployed environment that is isolated from the production environment, so sending the running results to the test environment will not affect the data in the production environment.

[0113] S208: If the environment type corresponding to the running result is a production environment, the running result is sent to the production environment.

[0114] If the environment type corresponding to the running result is a production environment, it means that the running result is obtained by executing the benchmark service in the production environment, so the running result can be sent to the production environment.

[0115] Optionally, if the operation result indicates writing data, that is, when a write request corresponding to the write data is obtained, after the write request is sent to the production environment, the production environment needs to write or report the data corresponding to the write request to the database or cache layer of the production environment. Since running the benchmark service in the production environment will produce an operation result, the data corresponding to the operation result has been written once in the production environment. If the operation result of the simulation environment is written to the production environment again, it will cause data write duplication, resulting in data insecurity. Therefore, when the operation result is obtained, the source of the data can be determined by identifying the environment type corresponding to the operation result, ensuring that the operation result of the simulation environment is not sent to the production environment, which can ensure the security of the data in the production environment and eliminate the write risks in the production environment.

[0116] Optionally, the return of the running result for the simulation environment will not be actually returned to the client to avoid redundant returns. When the environment type corresponding to the running result is identified as a simulation environment, the return of the running result can be shielded. Optionally, the code of the Remote Procedure Call Protocol (RPC) framework can be modified, and when the framework identifies that the environment type corresponding to the running result is a simulation environment, the return of the running result can be shielded.

[0117] It is understandable that the simulation environment in the embodiment of the present application can be limited to use in other test scenarios and used in the indicator distribution test scenario. That is, the simulation environment is used in the scenario of indicator comparison such as in the present application, and is generally not used as a test environment.

[0118] For example, Figure 5 As shown, Figure 5 is a schematic diagram of the difference comparison of an indicator parameter provided in an embodiment of the present application, Figure 5 It can be a schematic diagram of an example of the landing effect. Figure 5 The difference between a certain dot data in the tested service and the benchmark service can be quickly found. The indicator parameter may refer to the first dot data, for example, and the first dot data may refer to a schematic diagram of advertisement low ecpc (enhanced cpc) filtering (an advertisement filtering strategy). Figure 5 The 5a in the figure can refer to the dot data corresponding to the production environment. Figure 5 5b in the figure may refer to the dot data corresponding to the simulation environment. It can be seen that there is a difference between the low ecpc filtering of advertisements in the production environment and the low ecpc filtering of advertisements in the simulation environment. Then the service under test can be adjusted according to this indicator, for example, the code in the service under test can be adjusted.

[0119] In the embodiment of the present application, the regression is performed more than 300 times in the simulation environment, that is, the service under test has been tested many times in the simulation environment, and the service under test has been modified many times. Without releasing the service under test online, that is, without running the service under test in the production environment, the comparison of many indicators (such as physical environment resource indicators, business indicators, program internal execution indicators, etc.) of the service under test is quickly and automatically verified. Compared with other solutions, this solution can more quickly and comprehensively discover the impact of current changes such as version updates on the service under test. Traditional methods usually require storage traffic and then offline recovery, and related storage resources, traffic updates, etc. require a lot of manpower to maintain, so this solution also reduces the investment cost of automated testing.

[0120] In an embodiment of the present application, by deploying a benchmark service in a production environment and deploying a tested service in a simulation environment, when a data request is obtained, the data request can be forwarded to the production environment and the simulation environment respectively, and then the benchmark service can be run in the production environment and the tested service can be run in the simulation environment. Thus, the first index parameter obtained by running the benchmark service in the production environment within the target time period can be obtained, and the second index parameter obtained by running the tested service in the simulation environment within the target time period can be obtained, and the tested service can be tested based on the parameter difference information between the first index parameter and the second index parameter, so that the tested service can be adjusted based on the parameter difference information, and the stability of the service can be improved when the tested service is subsequently launched. Furthermore, by using a simulation environment, the index data obtained by running the tested service in the simulation environment and the index data obtained by running the benchmark service in the production environment can be obtained at the same time, and there is no need to record, store, and replay the benchmark service in the production environment, which can reduce the test time and thus reduce the test cost.

[0121] The method of the embodiment of the present application is introduced above, and the device of the embodiment of the present application is introduced below.

[0122] See also Figure 6 , Figure 6 1 is a schematic diagram of the structure of a data testing device provided in an embodiment of the present application. The data testing device can be deployed on a computer device; the data testing device can be used to execute the corresponding steps in the data testing method provided in an embodiment of the present application. The data testing device 60 includes:

[0123] The request acquisition unit 601 is used to acquire a data request, forward the data request to the production environment, and forward the data request to the simulation environment; the data request is used to run a benchmark service in the production environment and to run a service under test in the simulation environment, and the benchmark service is a service version before the service under test;

[0124] A first acquisition unit 602 is used to acquire a first indicator parameter obtained by running the benchmark service in the production environment within a target time period; the first indicator parameter is used to reflect the performance of the benchmark service in the production environment;

[0125] The second acquisition unit 603 is used to acquire a second indicator parameter obtained by running the service under test in the simulation environment within the target time period; the second indicator parameter is used to reflect the performance of the service under test in the simulation environment;

[0126] The difference obtaining unit 604 is used to obtain parameter difference information between the first indicator parameter and the second indicator parameter, and test the service under test based on the parameter difference information.

[0127] Optionally, the first indicator parameter includes at least one of first equipment indicator data, first business indicator data, and first dotting data corresponding to the production environment, the first equipment indicator data is used to reflect equipment performance in the production environment, the first business indicator data is used to reflect business operation in the production environment, and the first dotting data is used to reflect the operation of the dotting indicator in the production environment;

[0128] The second indicator parameter includes at least one of the second equipment indicator data, second business indicator data, and second dotting data corresponding to the simulation environment. The second equipment indicator data is used to reflect the equipment performance in the simulation environment, the second business indicator data is used to reflect the business operation in the simulation environment, and the second dotting data is used to reflect the operation of the dotting indicators in the simulation environment.

[0129] Optionally, the difference obtaining unit 604 is further configured to:

[0130] generating a first parameter curve based on the first indicator parameter, and generating a second parameter curve based on the second indicator parameter;

[0131] The difference acquisition unit 604 is specifically used for:

[0132] Calculating a curve similarity between the first parameter curve and the second parameter curve;

[0133] If the curve similarity between the first parameter curve and the second parameter curve is less than or equal to a similarity threshold, parameter difference information between the first indicator parameter and the second indicator parameter is determined based on the first parameter curve and the second parameter curve.

[0134] Optionally, the difference obtaining unit 604 is further configured to:

[0135] If the curve similarity between the first parameter curve and the second parameter curve is greater than the similarity threshold, first curve data on the first parameter curve and second curve data on the second parameter curve are respectively acquired;

[0136] Based on the first curve data and the second curve data, parameter difference information between the first indicator parameter and the second indicator parameter is determined.

[0137] Optionally, the difference obtaining unit 604 is specifically configured to:

[0138] Deleting the first initial data from the first curve data to obtain the first undetermined curve data, and deleting the second initial data from the second curve data to obtain the second undetermined curve data;

[0139] If the data type of the first undetermined curve data and the data type of the second undetermined curve data are both character string types, calculating an edit distance between the first undetermined curve data and the second undetermined curve data, and determining the edit distance as the parameter difference information;

[0140] If the data type of the first undetermined curve data and the data type of the second undetermined curve data are both array types, calculating the overlap between the first undetermined curve data and the second undetermined curve data, and determining the overlap between the data as the parameter difference information;

[0141] If the data type of the first undetermined curve data and the data type of the second undetermined curve data are both composite data types, then when the first undetermined curve data and the second undetermined curve data are the same, the first parameter threshold is determined as the parameter difference information; the composite data type includes at least one of a digital type, an enumeration type, and a Boolean type.

[0142] Optionally, the parameter difference information includes a parameter difference value; the difference obtaining unit 604 is specifically used to:

[0143] If the parameter difference value between the first indicator parameter and the second indicator parameter is less than or equal to the corresponding difference threshold, it is determined that the test of the tested service has passed.

[0144] Optionally, the parameter difference information includes a parameter difference value; the difference obtaining unit 604 is specifically used to:

[0145] If the parameter difference value between the first indicator parameter and the second indicator parameter is greater than the corresponding difference threshold, determining the difference indicator item indicated by the first indicator parameter and the second indicator parameter;

[0146] The difference indicator items of the tested service are adjusted, and the adjusted tested service is tested.

[0147] Optionally, the data testing device 60 further includes a result returning unit 605, which is used to:

[0148] Obtaining an operation result; the operation result is used to indicate the operation status of the tested service or the operation status of the benchmark service;

[0149] Identify the environment type corresponding to the running result;

[0150] If the environment type corresponding to the running result is the simulation environment, the running result is obtained through the hook function, and the running result is sent to the test environment;

[0151] If the environment type corresponding to the running result is the production environment, the running result is sent to the production environment.

[0152] It should be noted that Figure 6 For the contents not mentioned in the corresponding embodiments, please refer to the description of the method embodiments, which will not be repeated here.

[0153] In an embodiment of the present application, by deploying a benchmark service in a production environment and deploying a tested service in a simulation environment, when a data request is obtained, the data request can be forwarded to the production environment and the simulation environment respectively, and then the benchmark service can be run in the production environment and the tested service can be run in the simulation environment. Thus, the first indicator parameter obtained by running the benchmark service in the production environment within the target time period, and the second indicator parameter obtained by running the tested service in the simulation environment within the target time period can be obtained, and the tested service is tested based on the parameter difference information between the first indicator parameter and the second indicator parameter. When the tested service is subsequently launched, the stability of the service can be improved. Furthermore, by using a simulation environment, the indicator data obtained by running the tested service in the simulation environment and the indicator data obtained by running the benchmark service in the production environment can be obtained at the same time. There is no need to record, store, and replay the benchmark service in the production environment, which can reduce the test time and thus reduce the test cost.

[0154] See also Figure 7 , Figure 7 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 7 As shown, the computer device may include: a processor 701 and a memory 702. Optionally, the computer device may also include a network interface or a power supply module. The processor 701 and the memory 702 may exchange data.

[0155] The processor 701 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0156] The above-mentioned network interface may include an input device and / or an output device. For example, the input device may be a control panel, a microphone, a receiver, etc., and the output device may be a display screen, a transmitter, etc., which are not listed here one by one.

[0157] The memory 702 may include a read-only memory and a random access memory, and provide program instructions and data to the processor 701. A portion of the memory 702 may also include a non-volatile random access memory. When the processor 701 calls the program instruction, it is used to execute:

[0158] Obtaining a data request, forwarding the data request to a production environment, and forwarding the data request to a simulation environment; the data request is used to request to run a benchmark service in the production environment, and to request to run a tested service in the simulation environment, the benchmark service being a service before the tested service is updated;

[0159] Obtain a first indicator parameter obtained by running the benchmark service in the production environment within a target time period; the first indicator parameter is used to reflect the performance of the benchmark service in the production environment;

[0160] Obtain a second indicator parameter obtained by running the service under test in the simulation environment within the target time period; the second indicator parameter is used to reflect the performance of the service under test in the simulation environment;

[0161] Parameter difference information between the first indicator parameter and the second indicator parameter is obtained, and the service under test is tested based on the parameter difference information.

[0162] Optionally, when the program instructions are executed by the processor, other steps of the method in the above embodiment may also be implemented, which will not be repeated here.

[0163] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, which includes program instructions, which, when executed by a computer, cause the computer to execute the method of the aforementioned embodiment, and the computer may be part of the computer device mentioned above. As an example, the program instructions may be deployed on a computer device for execution, or deployed on multiple computer devices located at one location for execution, or, executed on multiple computer devices distributed at multiple locations and interconnected by a communication network, and multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain network.

[0164] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction, and when the computer instruction is executed by a processor, some or all of the steps in the above method can be implemented. For example, the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the steps performed in the embodiments of the above methods.

[0165] Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0166] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data testing method, characterized in that: The method comprises: Obtaining a data request, forwarding the data request to a production environment, and forwarding the data request to a simulation environment; the data request is used to request to run a benchmark service in the production environment, and to request to run a tested service in the simulation environment, wherein the benchmark service is a service before the tested service is updated; Acquire a first indicator parameter obtained by running the benchmark service in the production environment within a target time period; the first indicator parameter is used to reflect the performance of the benchmark service in the production environment; Acquire a second indicator parameter obtained by running the service under test in the simulation environment within the target time period; the second indicator parameter is used to reflect the performance of the service under test in the simulation environment; Parameter difference information between the first indicator parameter and the second indicator parameter is obtained, and the service under test is tested based on the parameter difference information.

2. The method according to claim 1, characterized in that The first indicator parameter includes at least one of first equipment indicator data, first business indicator data, and first dotting data corresponding to the production environment, the first equipment indicator data is used to reflect the equipment performance in the production environment, the first business indicator data is used to reflect the business operation in the production environment, and the first dotting data is used to reflect the operation of the dotting indicator in the production environment; The second indicator parameter includes at least one of second device indicator data, second business indicator data, and second dotting data corresponding to the simulation environment. The second device indicator data is used to reflect the device performance in the simulation environment, the second business indicator data is used to reflect the business operation in the simulation environment, and the second dotting data is used to reflect the operation of the dotting indicators in the simulation environment.

3. The method according to claim 2, characterized in that The method further comprises: generating a first parameter curve based on the first indicator parameter, and generating a second parameter curve based on the second indicator parameter; The obtaining parameter difference information between the first indicator parameter and the second indicator parameter includes: calculating a curve similarity between the first parameter curve and the second parameter curve; If the curve similarity between the first parameter curve and the second parameter curve is less than or equal to a similarity threshold, parameter difference information between the first indicator parameter and the second indicator parameter is determined based on the first parameter curve and the second parameter curve.

4. The method according to claim 3, characterized in that The method further comprises: If the curve similarity between the first parameter curve and the second parameter curve is greater than the similarity threshold, first curve data on the first parameter curve and second curve data on the second parameter curve are respectively acquired; Parameter difference information between the first index parameter and the second index parameter is determined based on the first curve data and the second curve data.

5. The method according to claim 4, characterized in that The determining, based on the first curve data and the second curve data, parameter difference information between the first indicator parameter and the second indicator parameter includes: Deleting first initial data from the first curve data to obtain first undetermined curve data, and deleting second initial data from the second curve data to obtain second undetermined curve data; If the data type of the first undetermined curve data and the data type of the second undetermined curve data are both string types, calculating an edit distance between the first undetermined curve data and the second undetermined curve data, and determining the edit distance as the parameter difference information; If the data type of the first undetermined curve data and the data type of the second undetermined curve data are both array types, calculating the overlap between the first undetermined curve data and the second undetermined curve data, and determining the overlap between the data as the parameter difference information; If the data type of the first undetermined curve data and the data type of the second undetermined curve data are both composite data types, then when the first undetermined curve data and the second undetermined curve data are the same, the first parameter threshold is determined as the parameter difference information; the composite data type includes at least one of a digital type, an enumeration type, and a Boolean type.

6. The method according to any one of claims 1 to 5, characterized in that: The parameter difference information includes a parameter difference value; and the testing the tested service based on the parameter difference information includes: If the parameter difference value between the first indicator parameter and the second indicator parameter is less than or equal to the corresponding difference threshold, it is determined that the test of the tested service has passed.

7. The method according to any one of claims 1 to 5, characterized in that: The parameter difference information includes a parameter difference value; and the testing the tested service based on the parameter difference information includes: If the parameter difference value between the first indicator parameter and the second indicator parameter is greater than the corresponding difference threshold, determining the difference indicator item indicated by the first indicator parameter and the second indicator parameter; The difference index items of the tested service are adjusted, and the adjusted tested service is tested.

8. The method according to claim 1, characterized in that The method further comprises: Obtaining an operation result; the operation result is used to indicate the operation status of the tested service or the operation status of the benchmark service; Identify the environment type corresponding to the operation result; If the environment type corresponding to the operation result is the simulation environment, the operation result is obtained through a hook function, and the operation result is sent to the test environment; If the environment type corresponding to the operation result is the production environment, the operation result is sent to the production environment.

9. A data testing device, characterized in that: The device comprises: A request acquisition unit, used to acquire a data request, forward the data request to a production environment, and forward the data request to a simulation environment; the data request is used to run a benchmark service in the production environment and to run a tested service in the simulation environment, the benchmark service being a service version prior to the tested service; A first acquisition unit is used to acquire a first indicator parameter obtained by running the benchmark service in the production environment within a target time period; the first indicator parameter is used to reflect the performance of the benchmark service in the production environment; A second acquisition unit is used to acquire a second indicator parameter obtained by running the service under test in the simulation environment within the target time period; the second indicator parameter is used to reflect the performance of the service under test in the simulation environment; The difference obtaining unit is used to obtain parameter difference information between the first indicator parameter and the second indicator parameter, and test the service under test based on the parameter difference information.

10. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having a processor executes the method according to any one of claims 1 to 8.

12. A computer program product, characterized in that The computer program product comprises computer instructions, which implement the method according to any one of claims 1 to 8 when executed by a processor.

Citation Information

Cited By

  • Service testing method and system based on simulation environment, computing equipment and medium

    CN119807065A