Operation test method and device, electronic device and storage medium

By detecting trigger operations on the visual interface in the real-time computing platform, replacing the data source with target test data and processing it, the problem of low efficiency in complex job logic testing is solved, simplifying the testing process and improving user experience.

CN112965711BActive Publication Date: 2024-09-13BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110240733.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-04
Publication Date
2024-09-13
Estimated Expiration
2041-03-04

AI Technical Summary

Technical Problem

In real-time computing platforms, complex job logic developed by users requires multiple adjustments and tests, resulting in complex testing processes, low efficiency, and poor user experience.

Method used

By detecting the trigger operation on the target visualization interface, select the target test data to replace the data source, send the identification information of the job process and test data to the server, use processing operators to process the test data, obtain the test results, and display them on the terminal on the device.

Benefits of technology

The job testing process is simplified, job running speed and testing efficiency are improved, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112965711B
    Figure CN112965711B
Patent Text Reader

Abstract

The present application provides a method and device for job testing, an electronic device and a storage medium, wherein the method includes: detecting a trigger operation performed on a target visualization interface, wherein the trigger operation is used to trigger a test on a target job corresponding to a target job flow in the target visualization interface, wherein the target job is a job that processes a target data source using a target processing operator; in response to the trigger operation, selecting target test data corresponding to the target data source, wherein the target test data is used to replace the target data source; sending target identification information of the target job flow and the target test data to a target server, so that the target server processes the target test data using a target processing operator to obtain a target test result for the target job. Through the present application, the problems of low test efficiency and poor user experience due to the complexity of the test process in the job testing method in the related art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to an operation testing method and device, an electronic device and a storage medium. Background Art

[0002] In the real-time computing platform, users can drag and drop operators to develop jobs. There are three types of operators: source (input, indicating where to read data from), processing operator (indicating how to process the data after reading it), and sink (output, indicating where to write the processed data).

[0003] When users develop jobs, for some particularly complex and possibly incorrectly written logic, it is generally necessary to adjust the processing operators multiple times to implement them. Therefore, such particularly complex processing logic generally requires multiple test runs, that is, reading real data from the source multiple times, passing through the processing operators, and finally writing the data to the sink, and then querying the data source to see if the data meets expectations.

[0004] During each test run, the real-time computing platform needs to obtain the physical address information of the source and sink from the data management, and then connect to the corresponding source and sink. If the data source is unavailable, the test cannot be performed. In addition, users need to operate the source and sink data sources to verify whether their processing logic meets expectations, which is not user-friendly.

[0005] It can be seen that the operation testing method in the related art has the problems of low testing efficiency and poor user experience due to the complicated testing process. Summary of the invention

[0006] The present application provides a job testing method and device, an electronic device and a storage medium, so as to at least solve the problems of low testing efficiency and poor user experience caused by the complex testing process in the job testing method in the related art.

[0007] According to one aspect of an embodiment of the present application, a job testing method is provided, comprising: detecting a trigger operation performed on a target visualization interface, wherein the trigger operation is used to trigger a test of a target job corresponding to a target job flow in the target visualization interface, the target job being a job that processes a target data source using a target processing operator; in response to the trigger operation, selecting target test data corresponding to the target data source, wherein the target test data is used to replace the target data source; and sending target identification information of the target job flow and the target test data to a target server, so that the target server processes the target test data using the target processing operator to obtain a target test result of the target job.

[0008] Optionally, selecting the target test data corresponding to the target data source includes: selecting the target test data for replacing the target data source through a target configuration page, wherein the target configuration page is a page that pops up after the trigger operation is detected and is used to configure test parameters of the target job.

[0009] Optionally, after detecting the trigger operation performed on the target visualization interface, the method further includes: configuring target test parameters of the target job through the target configuration page, wherein the target test parameters include at least one of the following: a reading rate of the target test data, and computing resources for running the target job.

[0010] Optionally, after sending the target identification information of the target job process and the target test data to the target server, the method further includes: receiving target display information sent by the target server, wherein the target display information is used to describe the target test result; displaying the target display information through a target display page to display the target test result on the target display page.

[0011] According to another aspect of an embodiment of the present application, a job testing method is also provided, including: obtaining a target job process and target identification information of target test data of a target job, wherein the target job is a job that processes a first data source using a target processing operator, and the target test data is used to replace the first data source; using the target job process and the target identification information to construct the target job, wherein the first data source in the target job is replaced with the target test data; testing the target job through a target computing engine to obtain a target test result of the target job, wherein the target test result is a result obtained after processing the target test data using the target processing operator.

[0012] Optionally, after testing the target job through the target computing engine to obtain the target test result of the target job, the method further includes: receiving the target test result input by the target computing engine through the target link through a target input interface; and storing the target test result.

[0013] Optionally, before using the target job process and the target identification information to construct the target job, the method also includes: replacing the data source information of the first data source in the target job process with the target identification information; when the second data source of the target job is not associated with a registered data source, replacing the data source information of the second data source in the target job process with target output information to obtain an updated target job process; wherein the second data source is the data source into which the test results of the target job are written, and the target output information is used to indicate that the test results of the target job are output to the target input interface through the target link.

[0014] Optionally, after testing the target job through the target computing engine to obtain the target test result of the target job, the method further includes: sending target display information describing the target test result to the target terminal device to display the target test result on the target terminal device.

[0015] According to another aspect of an embodiment of the present application, a job testing device is also provided, including: a detection unit, used to detect a trigger operation performed on a target visualization interface, wherein the trigger operation is used to trigger a test of a target job corresponding to a target job flow in the target visualization interface, and the target job is a job that processes a target data source using a target processing operator; a selection unit, used to respond to the trigger operation and select target test data corresponding to the target data source, wherein the target test data is used to replace the target data source; a first sending unit, used to send target identification information of the target job flow and the target test data to a target server, so that the target server uses the target processing operator to process the target test data to obtain a target test result of the target job.

[0016] Optionally, the selection unit includes: a selection module, used to select the target test data used to replace the target data source through a target configuration page, wherein the target configuration page is a page that pops up after the trigger operation is detected and is used to configure the test parameters of the target job.

[0017] Optionally, the device also includes: a configuration unit, used to configure the target test parameters of the target job through the target configuration page after detecting the trigger operation performed on the target visualization interface, wherein the target test parameters include at least one of the following: the reading rate of the target test data, and the computing resources for running the target job.

[0018] Optionally, the device also includes: a first receiving unit, used to receive target display information sent by the target server after sending the target identification information of the target operation process and the target test data to the target server, wherein the target display information is used to describe the target test result; and a display unit, used to display the target display information through a target display page so as to display the target test result on the target display page.

[0019] According to another aspect of an embodiment of the present application, a job testing device is also provided, including: an acquisition unit, used to acquire a target job process of a target job and target identification information of target test data, wherein the target job is a job that uses a target processing operator to process a first data source, and the target test data is used to replace the first data source; a construction unit, used to construct the target job using the target job process and the target identification information, wherein the first data source in the target job is replaced with the target test data; a testing unit, used to test the target job through a target computing engine to obtain a target test result of the target job, wherein the target test result is a result obtained after processing the target test data using the target processing operator.

[0020] Optionally, the device also includes: a second receiving unit, used to receive the target test result input by the target computing engine through the target link through the target input interface after testing the target job through the target computing engine to obtain the target test result of the target job; and a storage unit, used to store the target test result.

[0021] Optionally, the device also includes: a first replacement unit, used to replace the data source information of the first data source in the target job process with the target identification information before constructing the target job using the target job process and the target identification information; a second replacement unit, used to replace the data source information of the second data source in the target job process with target output information when the second data source of the target job is not associated with a registered data source, so as to obtain an updated target job process; wherein the second data source is the data source into which the test results of the target job are written, and the target output information is used to indicate that the test results of the target job are output to the target input interface through the target link.

[0022] Optionally, the device also includes: a second sending unit, which is used to send target display information describing the target test result to the target terminal device after testing the target job through the target computing engine and obtaining the target test result of the target job, so as to display the target test result on the target terminal device.

[0023] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein the memory is used to store a computer program; and the processor is used to execute the method steps in any of the above embodiments by running the computer program stored in the memory.

[0024] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the method steps in any of the above embodiments when executed.

[0025] In an embodiment of the present application, a data file (for example, a text file) is used to replace a source data source. A trigger operation performed on a target visualization interface is detected, wherein the trigger operation is used to trigger a test on a target job corresponding to a target job flow in the target visualization interface, and the target job is a job that processes a target data source using a target processing operator. In response to the trigger operation, target test data corresponding to the target data source is selected, wherein the target test data is used to replace the target data source. The target identification information of the target job flow and the target test data is sent to a target server, so that the target server processes the target test data using a target processing operator to obtain a target test result of the target job. Since a data file is used to replace a source data source, the source data source connection process can be shielded, thereby achieving the purpose of simplifying the job test process, and achieving the technical effect of improving the speed of job operation, improving job test efficiency, and improving user experience, thereby solving the problem of low test efficiency and poor user experience due to a complex test process in a job test method in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0028] Figure 1 is a schematic diagram of a hardware environment of an optional operation testing method according to an embodiment of the present application;

[0029] Figure 2 is a flow chart of an optional operation test method according to an embodiment of the present application;

[0030] Figure 3 is a schematic diagram of an optional operation testing method according to an embodiment of the present application;

[0031] Figure 4 is a flowchart of another optional operation test method according to an embodiment of the present application;

[0032] Figure 5 is a flowchart of another optional operation test method according to an embodiment of the present application;

[0033] Figure 6is a schematic diagram of an optional operation testing method according to an embodiment of the present application;

[0034] Figure 7 is a structural block diagram of an optional operation test device according to an embodiment of the present application;

[0035] Figure 8 is a structural block diagram of another optional operation testing device according to an embodiment of the present application;

[0036] Fig. 9 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present application.

[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0039] According to one aspect of the embodiment of the present application, a method for operating test is provided. Optionally, in this embodiment, the above-mentioned method for operating test can be applied to Figure 1 In the hardware environment composed of the terminal 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal 102 via a network and can be used to provide services (such as game services, application services, etc.) to the terminal or the client installed on the terminal. When applied, a database can be set on the server or independently of the server to provide data storage services for the server 104.

[0040] The network may include but is not limited to at least one of the following: a wired network, a wireless network. The wired network may include but is not limited to at least one of the following: a wide area network, a metropolitan area network, a local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal 102 may not be limited to a PC, a mobile phone, a tablet computer, etc.

[0041] The operation test method of the embodiment of the present application can be executed by the server 104, or by the terminal 102, or by both the server 104 and the terminal 102. The operation test method of the embodiment of the present application can be executed by the terminal 102 or by a client installed thereon.

[0042] Taking the operation test method in this embodiment executed by the terminal 102 as an example, Figure 2 is a flow chart of an optional operation test method according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:

[0043] Step S202, detecting a trigger operation performed on a target visualization interface, wherein the trigger operation is used to trigger a test of a target job corresponding to a target job flow in the target visualization interface, wherein the target job is a job that processes a target data source using a target processing operator.

[0044] The job testing method in this embodiment can be applied to a network architecture with a job testing function, such as a real-time computing network architecture, in which the processing logic of the job developed by the user can be unit tested. When developing a job, it is only assumed that the processing logic of the job developed by the user will produce corresponding results under the output defined by the user. In order to verify the correctness of the processing logic of the job, the unit test can be used to test the job developed by the user.

[0045] Taking the real-time computing network architecture as an example, the real-time computing network architecture may include a real-time computing platform, a real-time computing service and a real-time computing engine, wherein the real-time computing platform may run on the terminal device side, the real-time computing service may run on the server side, and the real-time computing engine may run on both the terminal device side and the server side.

[0046] The real-time computing platform can be a user operation platform that provides users with the ability to build real-time computing jobs. The real-time computing platform can have many forms, for example, it can be a big data platform. For users, users can only perceive the real-time computing platform. The real-time computing service is a background service that is not perceived by users. It can refer to a device that provides related operations to maintain the life cycle of real-time computing jobs. The real-time computing engine is an engine that provides real-time computing services, for example, flink (a distributed streaming data flow engine), which can test the created jobs and obtain test results.

[0047] It should be noted that the real-time computing service is an example of a target server, and the operations performed by the real-time computing service in each embodiment of the present application can all be performed by the target server. The target server can have multiple functions, for example, performing maintenance operations of the life cycle of a job (for example, a real-time computing job), and for example, converting a job flow into an implementation diagram of a job, and the implementation diagram of a job is a job processing logic (job processing flow) recognizable by a computing engine. The target server is not limited in this embodiment.

[0048] The job testing method in this embodiment can be executed by a terminal device on the real-time computing platform side, and the terminal device can run a Linux system (an operating system). A visual interface can be displayed on the terminal device, and the interface can be a user development page. The user can drag and drop operators on the visual interface to develop jobs. There are many types of operators, which can include but are not limited to: source data source, processing operator, sink data source.

[0049] For the target user (corresponding to the target object), the target user's target terminal device can display a target visualization interface. According to the processing logic of the target job, the target user can drag the source data source, processing operator, and sink data source operators into the target area of ​​the visualization interface and connect them. The connection between the operators represents the flow of data. After the connection, a data flow diagram is formed, that is, the target job process.

[0050] The job processing flow indicated by the target job flow is: read data from the target data source (i.e., source data source, input data source), use the target processing operator to process the read data, and the result of the target processing operator will be stored in the output data source (sink data source). Correspondingly, the target job is a job that processes the target data source using the target processing operator. According to different processing logics, different jobs can use any data source. For a target job, the number of target data sources can be one or more, and the number of output data sources can also be one or more.

[0051] After building the target job flow of the target job, the target user can perform a trigger operation on the target visualization interface, and the trigger operation can be a single operation or a combination of multiple operations, such as a click operation, a double-click operation, a drag operation, etc. For example, click a target button on the target visualization interface, such as a "unit test" button, to trigger testing of the target job.

[0052] The target terminal device can detect the trigger operation performed by the target object (corresponding to the target user, which can be identified by the target account, terminal device number, etc.) on the target visual interface. In response to the trigger operation, the target terminal device can trigger the process of testing the target job.

[0053] Step S204 , in response to the triggering operation, selecting target test data corresponding to the target data source, wherein the target test data is used to replace the target data source.

[0054] In response to the trigger operation, the target terminal device can obtain the operation process information of the target operation process. The obtained operation process information can include multiple, for example, attribute information of the target data source (for example, identification information of the target data source), attribute information of the target processing operator, and attribute information of the output data source.

[0055] In related technologies, source data sources or sink data sources can be associated with registered data sources, and registered data sources can be provided by users. First, users register data sources within the platform, and fill in relevant information about the data source, such as physical address information, table structure, etc.; then, in a job, users can drag and drop source and sink operators, and select which data source to use for this source or sink. When selecting a data source, you can select it according to the data source name, so that the real-time computing platform can query the physical address, table structure, etc. of the corresponding data source according to the registered data source information.

[0056] The above data sources may include but are not limited to at least one of the following: kafka (a high-throughput distributed publish-subscribe messaging system) message queue, MySQL (a relational database management system), hbase (a distributed, column-oriented open source database), hive (a data warehouse tool).

[0057] For example, Figure 3As shown, for a job process, it can read data from a physical data source (for example, a kafka message queue), and after complex SQL (Structured Query Language) processing, obtain the test results of the job, and the test results can be written to a physical data source (for example, MySQL, HBase, Hive, etc.).

[0058] In addition, in general user scenarios, the user's processing logic may be: split a piece of data into multiple pieces according to different logics, and then store them in different data sources for different business scenarios. Then, the following may occur: Figure 3 The processing flow shown in the figure is that the data is first split into two parts through a SQL process, and then the two parts of data are processed by different SQL processes and output to the same or different data sources.

[0059] The above operation testing method has at least the following problems:

[0060] It is not user-friendly enough. Users need to operate the source and sink data sources to verify whether their processing logic meets expectations.

[0061] For the real-time computing platform, the platform needs to obtain the physical address information of the source and sink from the data management to connect to the corresponding source and sink. If the data source is not available, testing cannot be performed.

[0062] Optionally, in this embodiment, using target test data instead of target data source can shield the problems in the target data source connection process, making the job run faster and convenient for testing, thereby at least partially solving the above problems. The target test data can be data in a text file, that is, the target test data is text test data, or other types of data, which is not limited in this embodiment. In this embodiment, text test data is used as an example for description.

[0063] Text test data can be uploaded to the platform as a resource, for example, as a text file. When performing unit testing, users can choose which text test data to use to replace which source data source.

[0064] For the target terminal device, the target user can select text test data corresponding to the target data source based on the target user's operation or default configuration, that is, target test data, and the selected target test data can be used to replace the target data source.

[0065] Step S206, sending the target identification information of the target operation process and the target test data to the target server, so that the target server processes the target test data using the target processing operator to obtain the target test result of the target operation.

[0066] The target terminal device can send the target identification information of the target operation process and the target test data to the target server, such as the target computing service. The target server can integrate the target operation according to the target operation process and the target identification information of the target test data, for example, replace the target data source with the target test data, and integrate the target operation process into an implementation diagram of the target operation.

[0067] The integrated target job can be tested by the real-time computing engine. The real-time computing engine can use the target processing operator to process the target test data to obtain the test result output by the target processing operator, that is, the target test result of the target job.

[0068] Through the above steps S202 to S206, a trigger operation performed on the target visualization interface is detected, wherein the trigger operation is used to trigger a test on a target job corresponding to a target job flow in the target visualization interface, wherein the target job is a job that processes a target data source using a target processing operator; in response to the trigger operation, target test data corresponding to the target data source is selected, wherein the target test data is used to replace the target data source; target identification information of the target job flow and the target test data is sent to a target server, so that the target server processes the target test data using a target processing operator to obtain a target test result of the target job, thereby solving the problem of low test efficiency and poor user experience due to a complex test process in a job testing method in the related art, thereby improving the speed of job running, improving job testing efficiency, and improving user experience.

[0069] As an optional embodiment, selecting target test data corresponding to the target data source includes:

[0070] S11, selecting target test data for replacing a target data source through a target configuration page, wherein the target configuration page is a page that pops up after a trigger operation is detected and is used to configure test parameters of a target job.

[0071] In order to improve the convenience of user operation, the test parameters of the target job can be configured through the configuration page. After detecting the above trigger operation, the target terminal device can pop up a target configuration page on the target visualization interface, which can be a page for configuring the test parameters of the target job, for example, a unit test page.

[0072] The target user can fill in which text test data replaces which source data source on the target configuration page. The target terminal device can detect the selection operation performed by the target object on the target configuration page, and the selection operation is used to select the text test data that replaces the target data source. In response to the selection operation, the target terminal device can determine the target test data used to replace the target data source.

[0073] Through this embodiment, the test data for replacing the source data source is selected through the configuration page, which can improve the convenience of user operation and enhance the user experience.

[0074] As an optional embodiment, after detecting a trigger operation performed on the target visual interface, the method further includes:

[0075] S21, configuring target test parameters of the target job through a target configuration page, wherein the target test parameters include at least one of the following: a reading rate of target test data, and computing resources for running the target job.

[0076] In addition to selecting test data for replacing the target data source, the target user can also configure other test parameters of the target job through the target configuration page, such as target test parameters. There can be one or more target test parameters, which can include but are not limited to at least one of the following: the reading rate of the target test data, and the computing resources for running the target job.

[0077] The target terminal device can detect a configuration operation performed by the target object on the target configuration page, where the configuration operation is used to configure a target test parameter of the target job. In response to the configuration operation, the target terminal device can determine the target test parameter of the target job.

[0078] For example, on the unit test page, users can also make some special configurations for unit tests (for example, select the rate at which data is read), and select running resources, etc. Running resources can be understood as computing resources, which can be seen as memory and CPU (Central Processing Unit) in Linux, for example, 1 core 4G.

[0079] Through this embodiment, the test parameters of the unit test are configured through the configuration page, which can improve the convenience and flexibility of the unit test configuration.

[0080] As an optional embodiment, after sending the target identification information of the target operation process and the target test data to the target server, the method further includes:

[0081] S31, receiving target display information sent by a target server, wherein the target display information is used to describe a target test result;

[0082] S32, displaying the target display information through the target display page, so as to display the target test result on the target display page.

[0083] After obtaining the target test result, the target server can send the target display information to the target terminal device. The target display information can be used to describe the target test result, which can be the target test result itself, or information obtained after a certain processing of the target test result. There can be many kinds of processing, such as adding a summary description, etc., which is not limited in this embodiment.

[0084] After receiving the target display information sent by the target server, the target terminal device can display the target display information through a target display page to display the target test result on the target display page. The target display page can be a text box or other display pages.

[0085] Through this embodiment, the test results are displayed through the display page, which can facilitate users to view the test results of the job and improve the convenience of information acquisition.

[0086] The above job testing method is explained below with optional examples. When the user performs unit testing, from the user's perspective, after the user clicks the unit test button on the visual interface, a page will pop up (with the same function as the aforementioned target configuration page). This page will guide the user to fill in the following content: which file test data to use to replace the source data source; some special configurations of the unit test (for example, text reading rate); select the running resources, etc. After the user clicks the "Run" button on this page, the job test can be successfully run. After the job test is completed, a text box (target display page) will appear on the user interface to display the results of the job in real time, that is, the data output by the processing operator.

[0087] According to another aspect of the embodiment of the present application, a method for operating test is also provided. Optionally, in this embodiment, the above-mentioned method for operating test can be applied to Figure 1 The hardware environment shown is composed of the terminal 102 and the server 104. What has been explained will not be repeated here.

[0088] The operation test method of the embodiment of the present application can be executed by the server 104, or by the terminal 102, or by both the server 104 and the terminal 102. The operation test method of the embodiment of the present application can be executed by the terminal 102 or by a client installed thereon.

[0089] Taking the operation test method in this embodiment executed by the server 104 as an example, Figure 4is a flow chart of another optional operation test method according to an embodiment of the present application, such as Figure 4 As shown, the process of the method may include the following steps:

[0090] Step S402 , obtaining a target job flow of a target job and target identification information of target test data, wherein the target job is a job that processes a first data source using a target processing operator, and the target test data is used to replace the first data source.

[0091] The job test method in this embodiment can be applied to the aforementioned network architecture with job test function, for example, the real-time computing network architecture. It has been described and will not be repeated here. The job test method in this embodiment can be executed by the aforementioned target terminal device or by the above-mentioned real-time computing service. In this embodiment, the execution by the real-time computing service is used as an example for explanation.

[0092] The real-time computing service can obtain the target operation process and target identification information of the target test data of the target operation, for example, by receiving the target operation process and target identification information transmitted by the target terminal device through the communication connection between the real-time computing service and the target terminal device. The first data source (that is, the aforementioned target data source), the target operation, the target operation process and the target test data are similar to the aforementioned ones and are not described in detail here.

[0093] Step S404: construct a target job using the target job process and the target identification information, wherein the first data source in the target job is replaced with target test data.

[0094] The real-time computing service may construct a target job using the target job flow and the target identification information, that is, convert the target job flow into an implementation graph of the target job executable by a target computing engine, which may be a real-time computing engine.

[0095] Before constructing the target operation using the target operation flow and the target identification information, the data source information of the first data source in the target operation flow can be replaced with the target identification information to obtain an updated target operation flow. Through the above steps, the first data source can be replaced with the target test data.

[0096] Step S406, testing the target job through the target computing engine to obtain a target test result of the target job, wherein the target test result is a result obtained by processing the target test data using the target processing operator.

[0097] For the constructed target job, the real-time computing service can test the target job through the target computing engine. If the real-time computing service and the target computing engine are located on the same device (such as a target server), the device can directly control the target computing engine to test the target job.

[0098] Optionally, if the real-time computing service and the target computing engine are located on different devices (for example, the real-time computing service is located on the target server, and the target computing engine is located on another server or a target terminal device), the real-time computing service can send the constructed target job to the device where the target computing engine is located, and the device controls the target computing engine to test the target job.

[0099] The target computing engine can read the target test data according to the target identification information, and use the target processing operator to process the target test data to obtain the result output by the target processing operator, that is, the target test result of the target job.

[0100] It should be noted that the target test data can be used as a local data source, and correspondingly, the target job can be run in local mode, so that the test process of the target job can be started more quickly. The target terminal device may not execute step S206, but directly execute steps S402 to S406, or execute step S206 and then step S406, that is, the target terminal device uses the target computing engine to test the target job and obtain the target test result of the target job.

[0101] Through the above steps S402 to S406, the target job process of the target job and the target identification information of the target test data are obtained, wherein the target job is a job that uses the target processing operator to process the first data source, and the target test data is used to replace the first data source; the target job process and the target identification information are used to construct the target job, wherein the first data source in the target job is replaced by the target test data; the target job is tested by the target computing engine to obtain the target test result of the target job, wherein the target test result is the result obtained by processing the target test data using the target processing operator, which solves the problems of low testing efficiency and poor user experience caused by the complex testing process in the job testing method in the related art, improves the speed of job running, improves the job testing efficiency, and improves the user experience.

[0102] As an optional embodiment, after testing the target job through the target computing engine to obtain the target test result of the target job, the method further includes:

[0103] S41, receiving, through a target input interface, a target test result input by a target computing engine through a target link;

[0104] S42, storing the target test result.

[0105] The output data source of the target job can be pre-defined by the user. For example, by configuring a registered data source associated with the second data source (ie, the output data source of the target job) through the target configuration page, the target test results can be written to the registered data source.

[0106] Optionally, if the second data source of the target job is not associated with a registered data source, the write location of the target test result can be determined according to the default configuration information. For example, the target test result can be saved in the real-time computing service via httpsink.

[0107] Here, httpsink is a way of outputting the flink computing engine, which is output to a certain interface through an http (HyperText Transfer Protocol) link. This interface can be fixed, and different test results can be output to different interfaces.

[0108] For the target test result, the target computing engine can output the target test result to the target input interface through the target link (http link). The real-time computing service can receive the target test result input by the target computing engine through the target link through the target input interface and store the target test result.

[0109] Through this embodiment, the test results input through the target link are received and stored through a specific interface, which can simplify user operations and improve user experience.

[0110] As an optional embodiment, before constructing the target operation using the target operation process and the target identification information, the method further includes:

[0111] S51, replacing the data source information of the first data source in the target operation process with the target identification information;

[0112] S52, when the second data source of the target job is not associated with the registered data source, replacing the data source information of the second data source in the target job flow with the target output information to obtain an updated target job flow;

[0113] The second data source is a data source into which the test result of the target job is written, and the target output information is used to indicate that the test result of the target job is output to the target input interface through the target link.

[0114] Before building the target job, in addition to replacing the data source information of the first data source in the target job flow with the target identification information, if the second data source of the target job is not associated with the registered data source, the data source information of the second data source in the target job flow can be replaced with the default configuration information, thereby obtaining an updated target job flow. Here, the second data source is the data source where the test results of the target job are written, that is, the output data source of the target job.

[0115] The default configuration information may be target output information, which is used to indicate that the test result of the target job is output to the target input interface through the target link. For example, the target output information may be the aforementioned httpsink.

[0116] For example, in a unit test, the real-time computing service can replace the source data source with file test data, replace the sink data source with httpsink, and save the data to the real-time computing service through httpsink.

[0117] Through this embodiment, the data source information of the output data source in the standard operation process is replaced by the default output information, so that the accuracy of writing the test results can be guaranteed.

[0118] As an optional embodiment, after testing the target job through the target computing engine to obtain the target test result of the target job, the method further includes:

[0119] S71, sending target display information for describing a target test result to a target terminal device, so as to display the target test result on the target terminal device.

[0120] After obtaining the target test result, the real-time computing service can send the target display information to the target terminal device to display the target test result on the target terminal device. This has been described in the above embodiments and will not be repeated here.

[0121] Through this embodiment, the test results are displayed through the display page, which can facilitate users to view the test results of the job and improve the convenience of information acquisition.

[0122] The following is an explanation of the above job testing method with optional examples. Considering that users are generally only concerned with the processing logic in the middle of the job, in this example, a text file is used instead of the source data source (same as the target data source, the first data source) to send the results of the processing operator to the real-time computing service via http, store them, and finally display the results to the user.

[0123] like Figure 5 As shown, the process of the job testing method in this optional example may include the following steps:

[0124] In step S502, the user drags and connects operators in the visual interface of the real-time computing platform to build the operation logic, clicks on the unit test, and a unit test page pops up.

[0125] Step S504: On the unit test page, the user fills in which file test data to replace which source data source, and selects the data reading rate, operating resources, etc.

[0126] Step S506: the user clicks the "Run" button in the unit test page to trigger the job to run.

[0127] Step S508: The real-time computing service replaces the source data source with the file test data, replaces the sink data source with httpsink, and saves the data to the real-time computing service through httpsink.

[0128] After replacing the source data source with file test data and the sink data source with httpsink, the real-time computing service can obtain the following Figure 6 The job implementation diagram shown. Figure 6 In the example, the job input is text test data provided by the user. The job processing logic includes multiple responsible SQL processing, and the test results of the job are saved to the real-time computing service through httpsink.

[0129] Step S510: The real-time computing service displays the test result of the job to the user through the user's development interface (which has the same function as the target display page, for example, the user debugging page).

[0130] Through this example, users only need to provide a sample data to intuitively see the results of the job, which makes it easier to verify the logic of the processing operator.

[0131] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

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

[0133] According to another aspect of the embodiments of the present application, a work test device for implementing the above-mentioned work test method is also provided. Figure 7 is a structural block diagram of an optional operation test device according to an embodiment of the present application, such as Figure 7 As shown, the device may include:

[0134] A detection unit 702 is used to detect a trigger operation performed on a target visualization interface, wherein the trigger operation is used to trigger a test of a target job corresponding to a target job flow in the target visualization interface, and the target job is a job that processes a target data source using a target processing operator;

[0135] The selection unit 704 is connected to the detection unit 702 and is used to select target test data corresponding to the target data source in response to the trigger operation, wherein the target test data is used to replace the target data source;

[0136] The first sending unit 706 is connected to the selecting unit 704, and is used to send the target identification information of the target operation process and the target test data to the target server, so that the target server uses the target processing operator to process the target test data to obtain the target test result of the target operation.

[0137] It should be noted that the detection unit 702 in this embodiment can be used to execute the above step S202, the selection unit 704 in this embodiment can be used to execute the above step S204, and the first sending unit 706 in this embodiment can be used to execute the above step S206.

[0138] Through the above module, a trigger operation performed on the target visualization interface is detected, wherein the trigger operation is used to trigger a test on a target job corresponding to a target job flow in the target visualization interface, wherein the target job is a job that processes a target data source using a target processing operator; in response to the trigger operation, target test data corresponding to the target data source is selected, wherein the target test data is used to replace the target data source; target identification information of the target job flow and the target test data is sent to a target server, so that the target server processes the target test data using a target processing operator to obtain a target test result of the target job, thereby solving the problem of low test efficiency and poor user experience due to a complex test process in a job testing method in the related art, thereby improving the speed of job operation, improving job testing efficiency, and improving user experience.

[0139] As an optional embodiment, the selection unit 704 includes:

[0140] The selection module is used to select target test data for replacing the target data source through a target configuration page, wherein the target configuration page is a page that pops up after a trigger operation is detected and is used to configure test parameters of a target job.

[0141] As an optional embodiment, the above device also includes:

[0142] A configuration unit is used to select target test parameters of a target job through a target configuration page after detecting a trigger operation performed on a target visualization interface, wherein the target test parameters include at least one of the following: a reading rate of target test data, and computing resources for running the target job.

[0143] As an optional embodiment, the above device also includes:

[0144] A first receiving unit is used to receive target display information sent by the target server after sending target identification information of the target operation process and the target test data to the target server, wherein the target display information is used to describe the target test result;

[0145] The display unit is used to display the target display information through the target display page, so as to display the target test result on the target display page.

[0146] According to another aspect of the embodiments of the present application, a work test device for implementing the above-mentioned work test method is also provided. Figure 8 is a structural block diagram of another optional operation test device according to an embodiment of the present application, such as Figure 8 As shown, the device may include:

[0147] An acquisition unit 802 is used to acquire a target job flow and target identification information of target test data of a target job, wherein the target job is a job that processes the first data source using a target processing operator, and the target test data is used to replace the first data source;

[0148] A construction unit 804, connected to the acquisition unit 802, is used to construct a target job using the target job process and the target identification information, wherein the first data source in the target job is replaced with the target test data;

[0149] The testing unit 806 is connected to the building unit 804 and is used to test the target job through the target computing engine to obtain a target test result of the target job, wherein the target test result is a result obtained by processing the target test data using the target processing operator.

[0150] It should be noted that the acquisition unit 802 in this embodiment can be used to execute the above step S402, the construction unit 804 in this embodiment can be used to execute the above step S404, and the testing unit 806 in this embodiment can be used to execute the above step S406.

[0151] Through the above modules, the target job process of the target job and the target identification information of the target test data are obtained, wherein the target job is a job that uses a target processing operator to process the first data source, and the target test data is used to replace the first data source; the target job process and the target identification information are used to construct a target job, wherein the first data source in the target job is replaced by the target test data; the target job is tested through the target computing engine to obtain the target test result of the target job, wherein the target test result is the result obtained after processing the target test data using the target processing operator, which solves the problems of low testing efficiency and poor user experience caused by the complex testing process in the job testing method in the related art, improves the speed of job operation, improves the job testing efficiency, and also improves the user experience.

[0152] As an optional embodiment, the above device also includes:

[0153] A second receiving unit is used to receive the target test result input by the target computing engine through the target link through the target input interface after testing the target job through the target computing engine to obtain the target test result of the target job;

[0154] The storage unit is used to store the target test result.

[0155] As an optional embodiment, the above device also includes:

[0156] A first replacement unit is used to replace the data source information of the first data source in the target operation flow with the target identification information before constructing the target operation using the target operation flow and the target identification information;

[0157] A second replacement unit is used to replace the data source information of the second data source in the target job flow with the target output information to obtain an updated target job flow when the second data source of the target job is not associated with the registered data source;

[0158] The second data source is a data source into which the test result of the target job is written, and the target output information is used to indicate that the test result of the target job is output to the target input interface through the target link.

[0159] As an optional embodiment, the above device also includes:

[0160] The second sending unit is used to send target display information describing the target test result to the target terminal device after testing the target job through the target computing engine and obtaining the target test result of the target job, so as to display the target test result on the target terminal device.

[0161] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0162] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned operation testing method is also provided. The electronic device may be a server, a terminal, or a combination thereof.

[0163] Fig. 9 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Fig. 9 As shown, it includes a processor 902, a communication interface 904, a memory 906 and a communication bus 908, wherein the processor 902, the communication interface 904 and the memory 906 communicate with each other through the communication bus 908, wherein,

[0164] Memory 906, used to store computer programs;

[0165] The processor 902 is used to implement the following steps when executing the computer program stored in the memory 906:

[0166] S1, detecting a trigger operation performed on a target visualization interface, wherein the trigger operation is used to trigger a test of a target job corresponding to a target job flow in the target visualization interface, where the target job is a job that processes a target data source using a target processing operator;

[0167] S2, in response to the trigger operation, selecting target test data corresponding to the target data source, wherein the target test data is used to replace the target data source;

[0168] S3, sending the target operation process and the target identification information of the target test data to the target server, so that the target server processes the target test data using the target processing operator to obtain the target test result of the target operation.

[0169] Optionally, the processor 902 is configured to implement the following steps when executing the computer program stored in the memory 906:

[0170] S1, obtaining a target job flow and target identification information of target test data of a target job, wherein the target job is a job that processes a first data source using a target processing operator, and the target test data is used to replace the first data source;

[0171] S2, constructing a target job using the target job process and the target identification information, wherein the first data source in the target job is replaced with the target test data;

[0172] S3, testing the target job through the target computing engine to obtain a target test result of the target job, wherein the target test result is a result obtained by processing the target test data using the target processing operator.

[0173] Optionally, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 The communication interface is used for communication between the above electronic device and other devices.

[0174] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0175] As an example, the memory 906 may include but is not limited to the detection unit 702, the selection unit 704 and the first sending unit 706 in the operation test device. In addition, it may also include but is not limited to other module units in the operation test device, which will not be repeated in this example.

[0176] As another example, the memory 906 may include but is not limited to the acquisition unit 802, the construction unit 804 and the test unit 806 in the operation test device. In addition, it may also include but is not limited to other module units in the operation test device, which will not be repeated in this example.

[0177] The processor may be a general-purpose processor, such as a CPU, a NP (Network Processor), etc. The processor may also be a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0178] In addition, the above-mentioned electronic device also includes: a display for displaying the target test results of the target operation, for example, the above-mentioned target display information.

[0179] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0180] It can be understood by those skilled in the art that Fig. 9 The structure shown is for illustration only. The device for implementing the above-mentioned operation test method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Fig. 9 The structure of the electronic device is not limited. Fig. 9 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig. 9 Different configurations shown.

[0181] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0182] According to another aspect of the embodiment of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the above-mentioned operation test methods in the embodiment of the present application.

[0183] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0184] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0185] S1, detecting a trigger operation performed on a target visualization interface, wherein the trigger operation is used to trigger a test of a target job corresponding to a target job flow in the target visualization interface, where the target job is a job that processes a target data source using a target processing operator;

[0186] S2, in response to the trigger operation, selecting target test data corresponding to the target data source, wherein the target test data is used to replace the target data source;

[0187] S3, sending the target operation process and the target identification information of the target test data to the target server, so that the target server processes the target test data using the target processing operator to obtain the target test result of the target operation.

[0188] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0189] S1, obtaining a target job flow and target identification information of target test data of a target job, wherein the target job is a job that processes a first data source using a target processing operator, and the target test data is used to replace the first data source;

[0190] S2, constructing a target job using the target job process and the target identification information, wherein the first data source in the target job is replaced with the target test data;

[0191] S3, testing the target job through the target computing engine to obtain a target test result of the target job, wherein the target test result is a result obtained by processing the target test data using the target processing operator.

[0192] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.

[0193] Optionally, in this embodiment, the storage medium may include but is not limited to: a U disk, a ROM, a RAM, a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0194] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0195] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0196] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0197] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0198] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.

[0199] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0200] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for operation testing, characterized in that: include: A trigger operation performed on a target visualization interface is detected, wherein the trigger operation is used to trigger a test of a target job corresponding to a target job flow in the target visualization interface, wherein the target job is a job that processes a target data source using a target processing operator; In response to the trigger operation, selecting target test data corresponding to the target data source, wherein the target test data is used to replace the target data source; The target job flow and the target identification information of the target test data are sent to a target server, so that the target server processes the target test data using the target processing operator to obtain a target test result of the target job.

2. The method according to claim 1, characterized in that Selecting the target test data corresponding to the target data source includes: The target test data for replacing the target data source is selected through a target configuration page, wherein the target configuration page is a page that pops up after the trigger operation is detected and is used to configure the test parameters of the target job.

3. The method according to claim 2, characterized in that After detecting the trigger operation performed on the target visual interface, the method further includes: The target test parameters of the target job are configured through the target configuration page, wherein the target test parameters include at least one of the following: a reading rate of the target test data, and a computing resource for running the target job.

4. The method according to any one of claims 1 to 3, characterized in that After sending the target operation process and the target identification information of the target test data to the target server, the method further includes: Receiving target display information sent by the target server, wherein the target display information is used to describe the target test result; The target display information is displayed through a target display page, so as to display the target test result on the target display page.

5. A method for operation testing, characterized in that: include: Acquire a target job flow and target identification information of target test data of a target job, wherein the target job is a job that processes a first data source using a target processing operator, and the target test data is used to replace the first data source; Using the target job process and the target identification information, construct the target job, wherein the first data source in the target job is replaced with the target test data; The target job is tested by a target computing engine to obtain a target test result of the target job, wherein the target test result is a result obtained by processing the target test data using the target processing operator.

6. The method according to claim 5, characterized in that After testing the target job by the target computing engine to obtain the target test result of the target job, the method further includes: Receiving, through a target input interface, the target test result input by the target computing engine through a target link; The target test result is stored.

7. The method according to claim 6, characterized in that Before constructing the target operation using the target operation process and the target identification information, the method further includes: Replacing the data source information of the first data source in the target job flow with the target identification information; In the case where the second data source of the target job is not associated with the registered data source, replacing the data source information of the second data source in the target job flow with the target output information to obtain an updated target job flow; The second data source is a data source into which the test result of the target job is written, and the target output information is used to indicate that the test result of the target job is output to the target input interface through the target link.

8. The method according to any one of claims 5 to 7, characterized in that After testing the target job by the target computing engine to obtain the target test result of the target job, the method further includes: Target display information for describing the target test result is sent to the target terminal device, so as to display the target test result on the target terminal device.

9. An operation testing device, characterized in that: include: a detection unit, configured to detect a trigger operation performed on a target visualization interface, wherein the trigger operation is used to trigger a test of a target job corresponding to a target job flow in the target visualization interface, wherein the target job is a job that processes a target data source using a target processing operator; a selection unit, configured to select target test data corresponding to the target data source in response to the trigger operation, wherein the target test data is used to replace the target data source; The first sending unit is used to send the target job flow and the target identification information of the target test data to a target server, so that the target server uses the target processing operator to process the target test data to obtain the target test result of the target job.

10. An operation testing device, characterized in that: include: an acquisition unit, configured to acquire a target job flow and target identification information of target test data of a target job, wherein the target job is a job that processes a first data source using a target processing operator, and the target test data is used to replace the first data source; a construction unit, configured to construct the target job using the target job process and the target identification information, wherein the first data source in the target job is replaced with the target test data; The testing unit is used to test the target job through a target computing engine to obtain a target test result of the target job, wherein the target test result is a result obtained by processing the target test data using the target processing operator.

11. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface and the memory communicate with each other via the communication bus, wherein: The memory is used to store computer programs; The processor is configured to execute the method steps of any one of claims 1 to 8 by running the computer program stored in the memory.

12. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method steps described in any one of claims 1 to 8 when run.