Batch operation processing method, system and related device

By configuring task attribute parameters to generate multiple tasks and selecting concurrency mode, and issuing them to multiple execution devices, the problem of low batch operation processing efficiency in the prior art is solved, and faster processing time and higher efficiency are achieved .

CN119105876APending Publication Date: 2024-12-10TAOBAO CHINA SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310673251.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-07
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

In the prior art, batch operation processing efficiency is low, manual execution or automated execution leads to a long time and low processing efficiency.

Method used

By configuring task attribute parameters, multiple tasks are generated, and concurrency mode is selected according to the execution device list and status, task scheduling rules are generated, and multiple tasks are distributed to multiple execution devices for execution, thereby shortening the processing time and improving processing efficiency.

Benefits of technology

It significantly shortens the processing time of batch operations, improves processing efficiency, and can complete tasks that require minutes or even hours in the minute level, improving the speed and efficiency of automated processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105876A_ABST
    Figure CN119105876A_ABST
Patent Text Reader

Abstract

One or more embodiments of the invention disclose a batch operation processing method, system and related device, and the method comprises the steps: configuring task attribute parameters required by the batch operation based on a to-be-processed target service, then analyzing the task attribute parameters, and generating a plurality of tasks with the same number as access addresses; then, according to the execution equipment list and the state, a concurrent mode matched with the tasks is selected to generate a task scheduling rule; issuing the plurality of tasks to corresponding execution equipment to execute the tasks according to the task scheduling rule; and receiving execution results returned by the corresponding execution equipment for statistics. A plurality of tasks are generated for batch operation in a mode of configuring task attribute parameters, and the plurality of tasks are issued to a plurality of execution devices to execute the tasks in a concurrent mode, so that the processing time is shortened, and the processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of computer technology, and in particular to a batch operation processing method, system and related devices. Background Art

[0002] With the continuous development of computer technology, various service demands have emerged. At present, for batch operation services, batch operations are still limited to executing each operation service in sequence. Obviously, whether it is executed manually or automatically, this processing method takes a long time and has low processing efficiency. Summary of the invention

[0003] The purpose of one or more embodiments of the present specification is to provide a batch operation processing method, system and related apparatus, so as to generate multiple tasks for batch operations by configuring task attribute parameters, and send the multiple tasks to multiple execution devices for execution in a concurrent mode, thereby shortening the processing time and improving the processing efficiency.

[0004] To solve the above technical problems, one or more embodiments of this specification are implemented as follows:

[0005] In a first aspect, a batch operation processing method is proposed, which is applied to a batch operation processing system including a batch operation processing apparatus and a plurality of execution devices, the method comprising:

[0006] Based on the target service to be processed, configure the task attribute parameters required for this batch operation, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service;

[0007] Parsing the task attribute parameters to generate a plurality of tasks having the same number as the access addresses;

[0008] According to the list and status of the execution devices, a concurrent mode matching the multiple tasks is selected to generate a task scheduling rule;

[0009] Sending the multiple tasks to corresponding execution devices for execution according to the task scheduling rules; and

[0010] Receive the execution results returned by the corresponding execution device for statistics.

[0011] In the second aspect, a batch operation processing method is proposed, comprising:

[0012] Receiving tasks, wherein the tasks are generated by the batch operation processing device based on the configured task attribute parameters and are issued in a concurrent mode according to the generated task scheduling rules;

[0013] Execute the task based on the task attribute parameters configured in the task;

[0014] The execution result is returned to the batch operation processing device.

[0015] In a third aspect, a batch operation processing device is proposed, comprising:

[0016] A configuration module, used to configure task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service;

[0017] A parsing module, used for parsing the task attribute parameters to generate a plurality of tasks having the same number as the access addresses;

[0018] A selection module, configured to select a concurrent mode matching the plurality of tasks according to the list and status of the execution devices, so as to generate a task scheduling rule;

[0019] a sending module, configured to send the plurality of tasks to corresponding execution devices for execution according to the task scheduling rules; and

[0020] The receiving module is used to receive the execution results returned by the corresponding execution device for statistics.

[0021] In a fourth aspect, an execution device is proposed, including:

[0022] A receiving module, used for receiving tasks, wherein the tasks are generated by the batch operation processing device based on the configured task attribute parameters and are sent in a concurrent mode according to the generated task scheduling rules;

[0023] An execution module, used for executing a task based on the task attribute parameters configured in the task;

[0024] The sending module is used to return the execution result to the batch operation processing device.

[0025] In a fifth aspect, a batch operation processing system is proposed, comprising: a batch operation processing device and a plurality of execution devices; wherein:

[0026] The batch operation processing device is used to configure the task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service; and, parse the task attribute parameters to generate multiple tasks with the same number as the access addresses; and, according to the list and status of execution devices, select a concurrency mode matching the multiple tasks to generate a task scheduling rule; and send the multiple tasks to the corresponding execution devices according to the task scheduling rule;

[0027] The execution device is used to receive the task and execute the task based on the task attribute parameters configured in the task; and return the execution result to the batch operation processing device;

[0028] The batch operation processing device is also used to receive the execution results returned by the corresponding execution device for statistics.

[0029] In a sixth aspect, an electronic device is provided, comprising:

[0030] Processor; and

[0031] A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the batch operation processing method described in the first aspect or the second aspect.

[0032] In the seventh aspect, a computer-readable storage medium is proposed, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple applications, the electronic device executes the batch operation processing method described in the first aspect or the second aspect.

[0033] It can be seen from the technical solution provided by one or more embodiments of the above specification that the task attribute parameters required for this batch operation are configured based on the target service to be processed, and then the task attribute parameters are parsed to generate multiple tasks with the same number of access addresses; then, according to the list and status of the execution devices, a concurrent mode matching the multiple tasks is selected to generate task scheduling rules; and the multiple tasks are sent to the corresponding execution devices to execute the tasks according to the task scheduling rules; and the execution results returned by the corresponding execution devices are received and counted. Multiple tasks are generated for batch operations by configuring the task attribute parameters, and the multiple tasks are sent to multiple execution devices to execute the tasks through the concurrent mode, thereby shortening the processing time and improving the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the description of one or more embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a schematic diagram of the system architecture applicable to the batch operation processing solution provided in the embodiments of this specification.

[0036] Figure 2It is a detailed architectural diagram of a batch operation processing system provided in an embodiment of this specification.

[0037] Figure 3 This is one of the step diagrams of a batch operation processing method provided in an embodiment of this specification.

[0038] Figure 4 It is a task scheduling diagram provided by an embodiment of this specification.

[0039] Figure 5a It is a schematic diagram of a task attribute parameter configuration process provided by an embodiment of this specification.

[0040] Figure 5b It is a schematic diagram of a task dispatching and executing process provided by an embodiment of this specification.

[0041] Figure 6 This is the second step diagram of a batch operation processing method provided in the embodiment of this specification.

[0042] Figure 7 It is a structural schematic diagram of a batch operation processing device provided in an embodiment of this specification.

[0043] Figure 8 It is a structural diagram of an execution device provided in an embodiment of this specification.

[0044] Fig. 9 It is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the one or more embodiments described are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0046] With the continuous expansion of various service scenarios, many of them involve batch operation services. For example, when operating an e-commerce promotion, it is necessary to check whether the promotion homepages in multiple provinces are consistent with the main venue homepage, that is, to test the access to different page addresses of the application; for another example, in a communication scenario, a calling number needs to call multiple called numbers (taking 30 as an example) with different models and operating systems to check whether the communication complies with the operation rules, that is, to test the calls made by a calling number to different called numbers. The above services, especially the testing services, can currently be implemented in the following ways:

[0047] Manual method: The batch operation processor needs to manually open the homepage and main venue page in order (for example, 25 provinces or different provinces applying for the test) and take screenshots. Call different called parties in turn and check the call communication process.

[0048] Automation method: Write a wireless automation script to run the homepage and main venue page of 25 provinces in turn and take screenshots. Write a wireless automation script to simulate the caller to make a call in turn and take screenshots to check the call information.

[0049] For the above two different service scenarios, the manual method obviously takes a long time, and it is necessary to wait for the completion of one test operation before executing the next test operation, which has a low processing efficiency. Although the automated method does not require manual intervention, in actual scenarios, users need to check the execution results within minutes; and the automated method takes more than 30 minutes to process, which still has the problem of low efficiency.

[0050] To this end, the embodiment of this specification proposes a new batch operation processing solution, which configures the task attribute parameters required for this batch operation based on the target service to be processed, and then parses the task attribute parameters to generate multiple tasks with the same number of access addresses; then, according to the list and status of the execution device, selects a concurrent mode that matches the multiple tasks to generate task scheduling rules; and sends the multiple tasks to the corresponding execution device to execute the tasks according to the task scheduling rules; and receives the execution results returned by the corresponding execution device for statistics. Multiple tasks are generated for batch operations by configuring task attribute parameters, and multiple tasks are sent to multiple execution devices to execute tasks through concurrent mode, thereby shortening the processing time and improving the processing efficiency.

[0051] Reference Figure 1 As shown, it is a schematic diagram of the system architecture applicable to the batch operation processing solution provided in the embodiment of this specification. In the batch operation processing system, it includes: a batch operation processing device 102 and multiple execution devices 104. The batch operation processing device 102 can be a hardware device or a software module, for example, a computer, a mobile phone and other electronic devices with data processing and storage functions, or a software module integrated in such electronic devices. The execution device 104 can be a data processing device connected to the batch operation processing device 102 through an interface or a network, for example, a server or an intelligent terminal device; wherein the type of server may not be limited, for example, it may be a cloud server or a distributed server; the intelligent terminal device may be a smart phone, a tablet, a smart wearable device, etc.

[0052] During the batch operation processing, the batch operation processing device 102 is used to configure the task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service; and, the task attribute parameters are parsed to generate multiple tasks with the same number of access addresses; and according to the list and status of the execution devices, a concurrency mode matching the multiple tasks is selected to generate a task scheduling rule; the multiple tasks are sent to the corresponding execution devices according to the task scheduling rule; the execution device 104 is used to receive the task and execute the task based on the task attribute parameters configured in the task; and, the execution result is returned to the batch operation processing device; the batch operation processing device 102 is also used to receive the execution result returned by the corresponding execution device for statistics.

[0053] Further, refer to Figure 2 As shown, it is a detailed architectural diagram of the batch operation processing system provided in the embodiment of this specification. Among them, the application scenarios that the batch operation processing system can be applied to include: CI / CD continuous integration and continuous delivery scenarios, UI user interface automation scenarios and embedded point testing scenarios, event venue inspections and other application scenarios involving batch operation services. The scope of application involved includes: applications, applets and web pages applicable to different operating systems, etc. The batch operation processing system 100 may include a batch operation processing device 102 and an execution device 104.

[0054] The batch operation processing device 102 may include a platform layer 1022 and an engine layer 1024. The platform layer 1022 may be deployed with: test set, task management module, device management module, account management module, page management module, image management module, data preprocessing module, task generation assembly module, device allocation module, and scheduling engine, etc. The engine layer 1024 may be deployed with: execution device occupation / release module, application package installation module, action point trigger module, and device status acquisition module, etc., providing a general capability of interacting with the execution device 104 to execute corresponding tasks, and supporting configurable access applications.

[0055] The execution device 104 may be a test mobile phone 1042, and the operating system of the test mobile phone 1042 is not limited. In addition, the batch operation processing system may also include other external dependencies 106, such as an optical character recognition module, an image recognition module, etc. At the same time, the batch operation processing device 102 and the execution device 104 may also implement data interaction through various different interaction protocols, such as a socket protocol, an Android debug bridge protocol, a web driver proxy protocol, etc.

[0056] It should be understood that the above Figure 2It is only a detailed diagram of a feasible system architecture of the batch operation processing system in the embodiments of this specification. In different application scenarios or when service requirements change, some functional modules may be replaced, added or deleted, provided that the core concept of the batch operation processing solution is not affected.

[0057] Embodiment 1

[0058] Reference Figure 3 The figure is a schematic diagram of the steps of a batch operation processing method provided in an embodiment of the present specification. It should be understood that the method is applied in various service systems that can perform batch operations, and its execution subject can be a batch operation processing device.

[0059] In the embodiment of this specification, the batch operation processing method may include the following steps:

[0060] Step 302: configuring task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service.

[0061] The target service to be processed may be a batch operation service that can be provided by the platform application, such as a web page inspection service, a multi-caller call service, etc. The task attribute parameters may include: application name, access account, access address, action point set, and the method for obtaining action point parameters, and other attribute parameter information.

[0062] In an embodiment of the present specification, the above-mentioned attribute parameter information can be maintained in a test set, for example, in the form of a task. Among them, the task may include a login account and the name of the application where the service is located. The task access address may be a page, specifically an access page address and obtaining parameterized data. The acquisition of parameterized data requires relying on action points that represent the content of the execution operation, and the action points here may include action point names and action point attributes, that is, specific operation content. For example, action point 1-coordinate click, action point 2-wait, action point 3-screen sliding, etc. Correspondingly, in the test set, the data generated during the execution of the task and the execution results are also maintained accordingly. For example, the execution details of each dimension of the action point, the execution details of the page or account dimension, the execution details of the device dimension, etc., and the total execution results determined based on the execution details of these dimensions. The data maintenance of this part can be implemented in conjunction with the storage module of the batch processing operation device, or through the cloud. It is not limited here.

[0063] In the embodiments of the present specification, the task attribute parameters are used to characterize the operation content of the batch operation performed on multiple access addresses in the target service, and the operation content here can be specifically reflected as the operation behavior referred to by the action point in the action point set. Wherein, when configuring the task attribute parameters required for this batch operation based on the target service to be processed, the following operations can be specifically performed: based on the application to which the target service to be processed belongs, determine the application name and access account; based on user needs, determine multiple access addresses targeted by the batch operation, wherein the access address is the page address or interface address accessed in the application to which the target service to be processed belongs; and, based on the target service to be processed, select a method for obtaining action point parameters and determine the action point set when the batch operation is executed; according to the determined application name, access account, multiple access addresses, action point set, and the selected method for obtaining action point parameters, complete the configuration of the task attribute parameters.

[0064] In fact, the operation of this step can be regarded as a general task attribute parameter configured for the target service. After the configuration is completed, one or more operations in the batch operation involved in the target service can generate corresponding tasks according to the task attribute parameter. It is equivalent to setting a general task attribute parameter for the batch operation, and multiple access addresses are used to distinguish different tasks.

[0065] In the actual batch operation service, the configuration of task attribute parameters can be started when the target service is connected, or the configuration of task attribute parameters can be completed in advance. When the target service changes, the corresponding task attribute parameters are also configured and updated to adapt to the new target service.

[0066] The method of obtaining the action point parameters may include: manual input and automatic return of the interface; when determining the action point set when executing the batch operation, the keywords of the multiple action points required for the batch operation can be manually input, or the interfaces corresponding to the multiple action points required for the batch operation can be selected.

[0067] After completing the configuration of the task attribute parameters, the configured task attribute parameters can also be verified based on the operation content in the target service to be processed; if the verification passes, the batch operation is saved and triggered to execute; if the verification fails, the method of obtaining the action point parameters is reselected and the action point set when the batch operation is executed is determined to complete the configuration of the task attribute parameters.

[0068] Step 304: Parse the task attribute parameters to generate a plurality of tasks having the same number as the access addresses.

[0069] Considering that most of the attribute parameters in the task attribute parameters are universal, for example, the application name, access account, action point set, and the method of obtaining the action point parameters, multiple tasks can be reused. Then, after parsing the task attribute parameters, you can focus on the multiple access addresses in the task attribute parameters, for example, different access pages, or different access interfaces, which means that the operation content of these batch operations is almost the same, and the difference is that they are for different pages or different interface devices. Therefore, after determining the various attribute parameters in the task attribute parameters, you can generate multiple tasks distinguished by access addresses based on the multiple access addresses in the task attribute parameters; the application names, access accounts, action point sets, and the methods of obtaining the action point parameters of multiple tasks are the same, but the access addresses are different. Taking the page inspection and patrol service as an example, when there are pages in 25 provinces that need to be inspected, the page addresses of 25 provinces will be configured in the task attribute parameters accordingly, and then 25 tasks corresponding to the page addresses of different provinces will be generated.

[0070] Step 306: According to the list and status of the execution devices, a concurrent mode matching the multiple tasks is selected to generate a task scheduling rule.

[0071] In specific implementation, the status of the execution device can be obtained according to the execution device list, and the callable execution device can be determined based on the status of the execution device; a concurrency mode matching the multiple tasks can be selected according to the number of callable execution devices; and matching tasks can be configured for different execution devices according to the selected concurrency mode to generate task scheduling rules.

[0072] It should be understood that the batch operation processing device can obtain the status of multiple execution devices according to the needs, and timely know the resource occupancy of multiple execution devices, and judge whether there are idle resources that can be used for the execution of at least one task or multiple tasks in this batch operation processing. After obtaining the status of the execution device, the idle resources of the execution device are summarized and analyzed, and combined with the pre-maintained execution device list, multiple callable execution devices are selected from it.

[0073] When selecting a concurrent mode that matches the multiple tasks according to the number of callable execution devices, if the number of callable execution devices is greater than the number of multiple tasks, then select the same number of execution devices as the multiple tasks from the callable execution devices to enter the concurrent mode; if the number of callable execution devices is not greater than the number of multiple tasks, then select the callable execution devices to enter the concurrent mode. In fact, the above selection method is only one optional one. In the case that the number of callable execution devices is greater than the number of multiple tasks, it is also possible to select execution devices less than the number of multiple tasks from the callable execution devices, wherein the number of callable execution devices should be greater than 2, so that the selected callable execution devices are used as execution alternatives to enter the concurrent mode. When the number of callable execution devices is less than or equal to the number of multiple tasks, all or part of the callable execution devices can be selected to enter the concurrent mode. Specifically, it can be considered in combination with the number of multiple tasks and the user's demand for limiting the execution time.

[0074] In the embodiment of the present specification, according to the selected concurrency mode, when configuring matching tasks for different execution devices to generate task scheduling rules, the number of tasks that can be executed by the callable execution device can be reasonably calculated according to the number of currently callable execution devices, the number of multiple tasks and the idle resources of different callable execution devices, so that tasks can be preferentially assigned to callable execution devices with more idle resources (or more executable tasks). For example, assuming that there are 10 execution devices, 5 of which have idle resources (the minimum idle resources should be able to execute at least a single task), then these 5 execution devices with idle resources are determined as callable execution devices 1-5. Among them, callable execution devices 1-4 all have 3 idle resources, and callable execution device 5 has 1 idle resource. At this time, if there are 10 tasks, then 5 tasks can be selected for the first parallel execution, and callable execution devices 1-5 enter the parallel mode, wherein callable execution device 1 is assigned 3 tasks, callable execution device 5 is assigned 1 task, and other callable execution devices are assigned 2 tasks. In this way, 10 tasks are assigned to 5 different callable execution devices. First, 5 tasks are scheduled at the same time and evenly distributed to the 5 callable execution devices. After that, callable execution devices 1-4 continue to execute the next task after they are executed respectively, while callable execution device 5 is saturated with resources after execution, and cannot be used any more, so it stops serving. After callable execution device 1 completes the second task, it continues to execute the third task. After callable execution devices 2-4 complete their respective second tasks, their resources are saturated, and they stop serving. In this way, the time spent on executing these 10 tasks is the execution time of executing 3 tasks. Compared with the execution time of executing 10 tasks in sequence, the processing time is significantly shortened, and the parallel processing method improves the processing efficiency.

[0075] Step 308: Send the multiple tasks to corresponding execution devices for task execution according to the task scheduling rule.

[0076] When scheduling tasks specifically, the task execution engine interface may be called according to the above-mentioned task scheduling rules to send the multiple tasks to corresponding execution devices respectively, so that the corresponding execution devices execute the tasks based on the task attribute parameters configured in the tasks.

[0077] Reference Figure 4 As shown, after the batch operation processing device A generates multiple tasks 1-6, according to the task scheduling rules generated by the configuration, task 1 can be sent to execution device 1, task 2 can be sent to execution device 2, task 3 can be sent to execution device 3, task 4 can be sent to execution device 4, and task 5 and task 6 can be sent to execution device 5 in sequence. Afterwards, execution devices 1-5 respectively execute the tasks of their respective loads and return the execution results.

[0078] Step 310: Receive the execution results returned by the corresponding execution device and perform statistics.

[0079] After receiving the execution results returned by different execution devices, these execution results can be summarized and statistically analyzed to generate the processing results of this batch operation processing service for user reference.

[0080] Through the above technical solution, the task attribute parameters required for this batch operation are configured based on the target service to be processed, and then the task attribute parameters are parsed to generate multiple tasks with the same number of access addresses; then, according to the list and status of the execution devices, a concurrent mode matching the multiple tasks is selected to generate task scheduling rules; and according to the task scheduling rules, the multiple tasks are sent to the corresponding execution devices for execution; and the execution results returned by the corresponding execution devices are received for statistics. Multiple tasks are generated for batch operations by configuring task attribute parameters, and multiple tasks are sent to multiple execution devices for execution through concurrent mode, thereby shortening the processing time and improving the processing efficiency.

[0081] The following two examples are used to describe the batch operation processing scheme in this manual.

[0082] The batch operation processing scheme can be divided into two processes here.

[0083] The first process: configuration process of task attribute parameters

[0084] Reference Figure 5a As shown, first, trigger the configuration of task attribute parameters, and then determine the basic information of the APP; this includes the name, category, function, etc. of the APP. In fact, this can also be a web service. After that, determine the login information; for example, login account, member number, etc., to facilitate logging in to the APP or website when executing the task. Next, determine the access page address; that is, the page link to be tested or the web interface address link, etc. After that, set the parameter acquisition method, configure the action point set, and save the task attribute parameters determined above. In fact, after saving, you can also check whether the task attribute parameters are correct. If the verification passes, it is determined that the task attribute parameter configuration is complete. If the verification fails, you need to return to reconfigure. Here you can directly return to trigger the reconfiguration of the task attribute parameters, or you can return to the step of setting the parameter acquisition method.

[0085] The second process: task distribution and execution process

[0086] Reference Figure 5b As shown, after the task attribute parameters are configured, you can start triggering the execution of the task.

[0087] Considering that the batch operation processing device can retain the original execution mode, after triggering the execution task, the concurrent execution mode can be selected first; the execution mode (concurrent mode or serial mode) can be selected through the selection control of the interactive interface. Then, multiple tasks are generated according to the task attribute parameter analysis; the task attribute parameter analysis and task generation method here can refer to the content of the above step 304. After that, check the execution device list and status; in fact, this step can be performed before selecting the execution mode ( Figure 3 Already reflected). Next, tasks are paired with execution devices according to the concurrent mode to generate scheduling rules. Then, tasks are sent to different execution devices in parallel according to the scheduling rules; different execution devices can execute tasks asynchronously. After that, the corresponding execution devices are called to execute tasks through the engine interface; after multiple execution devices asynchronously return execution results, multiple execution results are statistically analyzed; if the statistical analysis fails, it automatically returns and calls the corresponding execution device to execute tasks again through the engine interface; if the statistical analysis succeeds, the batch operation processing ends.

[0088] For the web page inspection service, taking the inspection of the event venue page of 25 provinces as an example, the task of inspecting one province is expected to take 2 minutes; 25 tasks can be generated for the corresponding 25 provinces. If the number of execution devices is 5 and the number of concurrent tasks is 5, then 5 tasks can be scheduled at the same time to 5 different execution devices, and the actual execution time is 2*5=10 minutes. In fact, when the number of execution devices is large enough, the number of concurrent tasks can be set to 25, so that 25 tasks can be scheduled to 25 different execution devices at the same time, and a task can be scheduled once, so that the actual execution time is shortened to 2 minutes. In this way, the time consumption of batch operation processing is controlled within the minute level, significantly improving the processing efficiency.

[0089] For the cloud network call test service, taking calling 30 called numbers through 1 calling number as an example, the estimated time for calling and testing a called number is 1 minute; the corresponding call operations for 30 called numbers can correspond to 30 tasks. If there are 5 execution devices and the concurrent quantity is selected as 5, then 6 tasks can be scheduled, and 5 call tasks can be scheduled to 5 different execution devices at the same time to call different called numbers. The actual execution time of the task is 6 minutes.

[0090] Reference Figure 6The figure is a schematic diagram of the steps of a batch operation processing method provided by an embodiment of this specification. The execution subject of the batch operation processing method is an execution device, which can be an intelligent hardware device with data processing capabilities, such as a computer, a tablet computer, a mobile phone, a smart wearable device, etc. The batch operation processing method may include the following steps:

[0091] Step 602: receiving a task, wherein the task is generated by the batch operation processing device based on the parsing of configured task attribute parameters, and is issued in a concurrent mode according to the generated task scheduling rules.

[0092] Step 604: Execute the task based on the task attribute parameters configured in the task.

[0093] The specific implementation of executing the task here can be based on the application name, access account, access address, action point set and method of obtaining action point parameters of the task attribute parameters in the task. Based on the access account, log in to the corresponding application and access the corresponding access address. The action point is executed according to the operation content corresponding to the action point in the action point set, and the action point parameters after executing the action point are obtained through the method of obtaining action point parameters.

[0094] Step 606: Return the execution result to the batch operation processing device.

[0095] Among them, other optional solutions in the batch operation processing method can refer to Figure 3 The contents of the scheme introduced will not be elaborated here.

[0096] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0097] Embodiment 2

[0098] Reference Figure 7 As shown, a batch operation processing device provided in an embodiment of this specification is provided, and the device 700 may include:

[0099] A configuration module 702 is used to configure task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service;

[0100] A parsing module 704, used to parse the task attribute parameters and generate a plurality of tasks having the same number as the access addresses;

[0101] A selection module 706, configured to select a concurrent mode matching the plurality of tasks according to the list and status of the execution devices, so as to generate a task scheduling rule;

[0102] A sending module 708 is used to send the multiple tasks to corresponding execution devices for execution according to the task scheduling rule; and

[0103] The receiving module 710 is used to receive the execution results returned by the corresponding execution device for statistics.

[0104] Optionally, as an embodiment, when configuring the task attribute parameters required for this batch operation based on the target service to be processed, the configuration module 702 is specifically used to determine the application name and access account based on the application to which the target service to be processed belongs; determine multiple access addresses targeted by the batch operation based on user needs, wherein the access address is a page address or interface address accessed in the application to which the target service to be processed belongs; and, based on the target service to be processed, select a method for obtaining action point parameters and determine a set of action points when the batch operation is executed; and complete the configuration of the task attribute parameters according to the determined application name, access account, multiple access addresses, action point set, and the selected method for obtaining action point parameters.

[0105] In a specific implementation of the embodiments of the present specification, the method for obtaining the action point parameters includes: manual input and automatic return of the interface; when the configuration module 702 determines the action point set when executing a batch operation, it is specifically used to manually input keywords of multiple action points required for executing the batch operation, or to select interfaces corresponding to multiple action points required for executing the batch operation.

[0106] In another specific implementation of the embodiments of the present specification, after the configuration module 702 completes the configuration of the task attribute parameters, it is also used to verify the configured task attribute parameters based on the operation content in the target service to be processed; if the verification passes, the batch operation is saved and triggered to execute; if the verification fails, the method for obtaining the action point parameters is reselected and the action point set when the batch operation is executed is determined to complete the configuration of the task attribute parameters.

[0107] In another specific implementation of the embodiments of this specification, when the parsing module 704 parses the task attribute parameters to generate multiple tasks with the same number of access addresses, it is specifically used to generate multiple tasks distinguished by access addresses based on multiple access addresses in the task attribute parameters, and the application names, access accounts, action point sets, and methods for obtaining action point parameters of the multiple tasks are reused.

[0108] In another specific implementation of the embodiments of the present specification, when the selection module 706 selects a concurrency mode that matches the multiple tasks based on the execution device list and the status to generate a task scheduling rule, it is specifically used to obtain the status of the execution device based on the execution device list, and determine the callable execution device based on the status of the execution device; select a concurrency mode that matches the multiple tasks based on the number of callable execution devices; and configure matching tasks for different execution devices based on the selected concurrency mode to generate a task scheduling rule.

[0109] In another specific implementation of the embodiments of the present specification, when the selection module 706 selects a concurrent mode matching the multiple tasks according to the number of callable execution devices, it is specifically used to select execution devices from the callable execution devices that are the same as the number of multiple tasks to enter the concurrent mode if the number of callable execution devices is greater than the number of multiple tasks; if the number of callable execution devices is not greater than the number of multiple tasks, select the callable execution devices to enter the concurrent mode.

[0110] In another specific implementation method of the embodiments of this specification, when the sending module 708 sends the multiple tasks to the corresponding execution devices to execute the tasks according to the task scheduling rules, it is specifically used to call the task execution engine interface to send the multiple tasks to the corresponding execution devices separately according to the task scheduling rules, so that the corresponding execution devices execute the tasks based on the task attribute parameters configured in the tasks.

[0111] Reference Figure 8 As shown, an execution device provided in an embodiment of this specification is provided, and the device 800 may include:

[0112] A receiving module 802 is used to receive a task, which is generated by the batch operation processing device based on the configured task attribute parameters and is sent in a concurrent mode according to the generated task scheduling rules;

[0113] An execution module 804 is used to execute the task based on the task attribute parameters configured in the task;

[0114] The sending module 806 is used to return the execution result to the batch operation processing device.

[0115] Through the above technical solution, the task attribute parameters required for this batch operation are configured based on the target service to be processed, and then the task attribute parameters are parsed to generate multiple tasks with the same number of access addresses; then, according to the list and status of the execution devices, a concurrent mode matching the multiple tasks is selected to generate task scheduling rules; and according to the task scheduling rules, the multiple tasks are sent to the corresponding execution devices for execution; and the execution results returned by the corresponding execution devices are received for statistics. Multiple tasks are generated for batch operations by configuring task attribute parameters, and multiple tasks are sent to multiple execution devices for execution through concurrent mode, thereby shortening the processing time and improving the processing efficiency.

[0116] Embodiment 3

[0117] Fig. 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. Fig. 9 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0118] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0119] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0120] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a batch operation processing device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0121] Configure the task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service; parse the task attribute parameters to generate multiple tasks with the same number of access addresses; select a concurrency mode matching the multiple tasks according to the list and status of execution devices to generate task scheduling rules; send the multiple tasks to corresponding execution devices for execution according to the task scheduling rules; and receive the execution results returned by the corresponding execution devices for statistics.

[0122] Alternatively, the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an execution device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0123] Receive a task, which is generated by a batch operation processing device based on the configured task attribute parameters and is issued in a concurrent mode according to the generated task scheduling rules; execute the task based on the task attribute parameters configured in the task; and return the execution result to the batch operation processing device.

[0124] The above is as in this manual Figure 3 and Figure 6The method performed by the device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in one or more embodiments of this specification can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in one or more embodiments of this specification can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0125] The electronic device may also perform Figure 3 and Figure 6 The method and the corresponding device are implemented in Figure 3 and Figure 6 The functions of the illustrated embodiments will not be described in detail in the embodiments of this specification.

[0126] Of course, in addition to software implementation, the electronic device of the embodiments of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0127] Embodiment 4

[0128] The embodiment of the present specification also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 3 and Figure 6 The method of the embodiment shown is specifically used to perform the following method:

[0129] Configure the task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service; parse the task attribute parameters to generate multiple tasks with the same number of access addresses; select a concurrency mode matching the multiple tasks according to the list and status of execution devices to generate task scheduling rules; send the multiple tasks to corresponding execution devices for execution according to the task scheduling rules; and receive the execution results returned by the corresponding execution devices for statistics.

[0130] or,

[0131] Receive a task, which is generated by a batch operation processing device based on the configured task attribute parameters and is issued in a concurrent mode according to the generated task scheduling rules; execute the task based on the task attribute parameters configured in the task; and return the execution result to the batch operation processing device.

[0132] In short, the above description is only a preferred embodiment of this specification and is not intended to limit the protection scope of this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the protection scope of this specification.

[0133] The systems, devices, modules or units described in one or more of the above embodiments may be implemented by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0134] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0135] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0136] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0137] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

Claims

1. A batch operation processing method, applied to a batch operation processing system including a batch operation processing apparatus and a plurality of execution devices, the method comprising: Based on the target service to be processed, configure the task attribute parameters required for this batch operation, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service; Parsing the task attribute parameters to generate a plurality of tasks having the same number as the access addresses; According to the list and status of the execution devices, a concurrent mode matching the multiple tasks is selected to generate a task scheduling rule; Sending the multiple tasks to corresponding execution devices for execution according to the task scheduling rules; and Receive the execution results returned by the corresponding execution device for statistics.

2. The batch operation processing method according to claim 1, configuring the task attribute parameters required for the batch operation based on the target service to be processed, specifically comprising: Based on the application to which the target service to be processed belongs, determine the application name and access account; Determining multiple access addresses targeted by the batch operation based on user needs, wherein the access address is a page address or an interface address accessed in the application to which the target service to be processed belongs; and Selecting a method for obtaining action point parameters based on the target service to be processed and determining a set of action points when executing batch operations; The configuration of the task attribute parameters is completed according to the determined application name, access account, multiple access addresses, action point set, and the selected method for obtaining the action point parameters.

3. The batch operation processing method according to claim 2, wherein the method for obtaining the action point parameter comprises: Manual input and automatic interface return; Then determine the set of action points when executing batch operations, including: By manually inputting keywords of multiple action points required for batch operation execution, or selecting interfaces corresponding to multiple action points required for batch operation execution.

4. The batch operation processing method according to claim 1 or 2, after completing the configuration of the task attribute parameters, the method further comprises: Verifying the configured task attribute parameters based on the operation content in the target service to be processed; If the verification is passed, save and trigger the execution of this batch operation; If the verification fails, the method for obtaining the action point parameters is reselected and the action point set for batch operation execution is determined to complete the configuration of the task attribute parameters.

5. The batch operation processing method according to claim 1, parsing the task attribute parameters to generate a plurality of tasks having the same number as the access addresses, specifically comprising: Based on the multiple access addresses in the task attribute parameters, multiple tasks distinguished by the access addresses are generated, and the application names, access accounts, action point sets, and methods for obtaining action point parameters of the multiple tasks are reused.

6. The batch operation processing method according to claim 1, wherein the concurrent mode matching the plurality of tasks is selected according to the list and status of the execution devices to generate the task scheduling rules, specifically comprising: Acquire the status of the execution device according to the execution device list, and determine the callable execution device based on the status of the execution device; Selecting a concurrency mode matching the plurality of tasks according to the number of callable execution devices; According to the selected concurrency mode, matching tasks are configured for different execution devices to generate task scheduling rules.

7. The batch operation processing method according to claim 6, wherein the concurrency mode matching the plurality of tasks is selected according to the number of callable execution devices, specifically comprising: If the number of callable execution devices is greater than the number of the plurality of tasks, selecting execution devices equal to the number of the plurality of tasks from the callable execution devices to enter the concurrent mode; If the number of callable execution devices is not greater than the number of the plurality of tasks, the callable execution devices are selected to enter the concurrent mode.

8. The batch operation processing method according to claim 1, wherein the plurality of tasks are sent to corresponding execution devices for execution according to the task scheduling rule, specifically comprising: According to the task scheduling rule, the task execution engine interface is called to send the multiple tasks to the corresponding execution devices respectively, so that the corresponding execution devices execute the tasks based on the task attribute parameters configured in the tasks.

9. A batch operation processing method, comprising: Receiving tasks, wherein the tasks are generated by the batch operation processing device based on the configured task attribute parameters and are issued in a concurrent mode according to the generated task scheduling rules; Execute the task based on the task attribute parameters configured in the task; The execution result is returned to the batch operation processing device.

10. A batch operation processing device, comprising: A configuration module, used to configure task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service; A parsing module, used for parsing the task attribute parameters to generate a plurality of tasks having the same number as the access addresses; A selection module, configured to select a concurrent mode matching the plurality of tasks according to the list and status of the execution devices, so as to generate a task scheduling rule; a sending module, configured to send the plurality of tasks to corresponding execution devices for execution according to the task scheduling rules; and The receiving module is used to receive the execution results returned by the corresponding execution device for statistics.

11. An execution device, comprising: A receiving module, used for receiving tasks, wherein the tasks are generated by the batch operation processing device based on the configured task attribute parameters and are sent in a concurrent mode according to the generated task scheduling rules; An execution module, used for executing a task based on the task attribute parameters configured in the task; The sending module is used to return the execution result to the batch operation processing device.

12. A batch operation processing system, comprising: A batch operation processing device and a plurality of execution devices; wherein, The batch operation processing device is used to configure the task attribute parameters required for this batch operation based on the target service to be processed, wherein the task attribute parameters are used to characterize the operation content performed by the batch operation on multiple access addresses in the target service; and, parse the task attribute parameters to generate multiple tasks with the same number as the access addresses; and, according to the list and status of execution devices, select a concurrency mode matching the multiple tasks to generate a task scheduling rule; and send the multiple tasks to the corresponding execution devices according to the task scheduling rule; The execution device is used to receive the task and execute the task based on the task attribute parameters configured in the task; and return the execution result to the batch operation processing device; The batch operation processing device is also used to receive the execution results returned by the corresponding execution device for statistics.

13. An electronic device comprising: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the batch operation processing method according to any one of claims 1 to 9.

14. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, enables the electronic device to execute the batch operation processing method according to any one of claims 1 to 9.