CN111290959A - Test task scheduling method and device, electronic equipment and storage medium - Google Patents

Test task scheduling method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111290959A
CN111290959A CN202010106790.7A CN202010106790A CN111290959A CN 111290959 A CN111290959 A CN 111290959A CN 202010106790 A CN202010106790 A CN 202010106790A CN 111290959 A CN111290959 A CN 111290959A
Authority
CN
China
Prior art keywords
task
test
determining
mode
scheduling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010106790.7A
Other languages
Chinese (zh)
Inventor
董宇
方红涛
何幼雄
李镭
熊兰君
戚梦婷
史琳
王黎冰
薛潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010106790.7A priority Critical patent/CN111290959A/en
Publication of CN111290959A publication Critical patent/CN111290959A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a method and a device for scheduling a test task, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a test task message based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of a test task; determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode; and determining a target task receiver according to the task scheduling mode and the field parameters, and issuing a test task to the target task receiver so that the target task receiver executes the test task. By designing the control platform of the test tasks, the online management and the efficient configuration of the test tasks and the test resources are realized, the test cost is reduced, and the test quality and the test efficiency are improved.

Description

Test task scheduling method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to a cloud computing technology, in particular to a method and a device for scheduling a test task, electronic equipment and a storage medium.
Background
The test is one of key links in the whole life cycle of the software and is an important guarantee means for the quality of software projects. Taking typical software projects in the banking industry as an example, the testing phase accounts for about 40% of the workload of the whole project, and the user testing accounts for about 65% of the workload of the testing.
The existing test task scheduling method is generally manual scheduling, that is, task allocation personnel manually adjust test personnel in other areas to the area according to the test task in the area to perform large-scale centralized test. The disadvantages of this scheduling method at least include: if the test task and the test resource configuration are not matched, the test quality may be affected, the test efficiency is reduced, and the test cost is increased. For example, when the professional abilities of the testing personnel for testing task configuration are not matched, the training cost is increased, the testing quality is affected, and the testing efficiency is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for scheduling a test task, an electronic device, and a storage medium, so as to implement online management and efficient configuration of the test task and a test resource, reduce test cost, and improve test quality and test efficiency.
In a first aspect, an embodiment of the present invention provides a method for scheduling a test task, including:
receiving a test task message based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of a test task;
determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode;
and determining a target task receiver according to the task scheduling mode and the field parameters, and issuing a test task to the target task receiver so that the target task receiver executes the test task.
In a second aspect, an embodiment of the present invention further provides a scheduling apparatus for a test task, including:
the task receiving module is used for receiving a test task message based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of a test task;
the scheduling mode determining module is used for determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode;
and the task issuing module is used for determining a target task receiver according to the task scheduling mode and the field parameters and issuing the test task to the target task receiver so that the target task receiver executes the test task.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the scheduling method for the test task provided in any embodiment of the present application when executing the program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, implement the method for scheduling a test task provided in any embodiment of the present application.
The scheduling device for implementing the test task scheduling method may be considered as a virtual device constructed by program codes, and may be configured in the electronic device, and when running on the electronic device, may provide a scheduling platform for a user for an online test task. The scheduling device can receive a test task message sent by the integrated test platform based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of the test task; determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode; and determining a target task receiver according to the task scheduling mode and the field parameters, and issuing the test task to the target task receiver so that the target task receiver executes the test task.
The cooperative matching of an integrated test platform in a test environment and a scheduling platform in an office environment is realized through a message queue mechanism; by setting two scheduling modes, namely a single-robbing mode and an assignment mode, the test task assignment can be more flexible, and the task allocation efficiency is improved; the target task receiver is determined through the related parameters, so that the test task and the test resource can be efficiently matched, the test cost is reduced, and the test quality and the test efficiency are improved; by remotely sending the test tasks across the regions, the on-line test task scheduling of the total-score linkage is realized, and the smooth circulation of the test process is ensured.
Drawings
Fig. 1 is a flowchart illustrating a method for scheduling a test task according to an embodiment of the present invention;
fig. 2 is a schematic instruction diagram of a list snatching mode in a scheduling method of a test task according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an instruction of an assignment pattern in a scheduling method of test tasks according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a scheduling apparatus for testing tasks according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a flowchart illustrating a method for scheduling a test task according to an embodiment of the present invention, where the embodiment is applicable to a situation of scheduling a test task. The method can be executed by the scheduling device of the test task provided by the embodiment of the invention, and the scheduling device of the test task can be configured in the electronic equipment provided by the embodiment of the invention.
Referring to fig. 1, the method for scheduling a test task specifically includes the following steps:
s110, receiving a test task message based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of a test task.
The scheduling device for implementing the test task scheduling method in the embodiment of the present invention may be considered as a virtual device constructed by program codes, and the virtual device may be configured in an electronic device (for example, a cloud server), and when running on the electronic device, may provide an online test task scheduling platform for a user, so as to implement remote cloud cross-region test task scheduling.
The dispatching platform can receive a test task message created and sent by an integrated test platform (such as an IT integrated test management platform ITM in the bank industry). The integrated test platform can establish a new test task after acquiring development task information, select an object associated with the test task, and complete the creation of the test task after the test task is approved. And the integrated test platform can send the test tasks of the test environment to the dispatching platform of the office environment through the message queue, so that the cooperation of the integrated test platform and the dispatching platform is realized, and cross-regional users can locally receive remote test tasks.
The integrated test platform can set the field parameters and the characteristic parameters of the test task simultaneously in the process of creating the test task, and the test task message sent to the scheduling platform can carry the preset field parameters and the preset characteristic parameters. The field parameter may uniquely identify a service field corresponding to the test task, and may be composed of at least one element such as a letter, a number, and/or a special symbol. Taking the testing task of banking industry as an example, the field parameters may be, for example, the deposit field, the loan field, or the credit card field. The characteristic parameters may identify the scale of the test task, and may include, for example, long-term large-scale characteristic parameters and short-term agile small-scale characteristic parameters. When the characteristic parameter is a long-acting large-scale characteristic parameter, the characteristic parameter may further include a stage parameter of the current test task in the long-acting large-scale test task.
And S120, determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode.
The task scheduling mode is determined according to the characteristic parameters, and may be, for example: when the characteristic parameter is a long-acting large-scale task parameter, the task scheduling mode can be determined as an assignment mode; when the characteristic parameter is a short-term agile small-scale task parameter, the task scheduling mode can be determined as a list snatching mode. Under the assignment mode, the scheduling platform can assign the test task of the current stage to the task receiver executing the test task of the historical stage according to the stage parameters in the characteristic parameters, so that the test task has inheritance, and the test efficiency and the test quality can be improved to a certain extent. The dispatching platform can send order grabbing notifications to one or more candidate task receivers in an order grabbing mode, and each candidate task receiver carries out order grabbing on the test tasks according to the resource coordination condition of the candidate task receiver, so that the competition awareness of each task receiver can be improved, and the full utilization of the test resources is facilitated.
By setting two scheduling modes of the order grabbing mode and the assignment mode, the test task assignment can be more flexible, the task allocation efficiency is improved, the utilization rate of test resources is improved, and the test efficiency and the test quality are improved.
Optionally, determining a task scheduling mode according to the characteristic parameter includes: inquiring a task scheduling mode corresponding to the characteristic parameter according to a preset characteristic-scheduling mode corresponding relation; or sending the characteristic parameters to a task management party so that the task management party determines an instruction according to the characteristic parameter input mode; and receiving a mode determining instruction, and determining a task scheduling mode according to the mode determining instruction.
The scheduling platform can automatically determine the task scheduling mode according to the characteristic parameters and can also send the characteristic parameters to the task management party so that the task management party can manually determine the scheduling mode. The task distribution efficiency can be improved by automatically determining the task scheduling mode; by manually determining the task scheduling mode, the management and control strength of task distribution can be improved.
The preset characteristic-mode corresponding relation can be stored in a preset storage position, and the scheduling platform can read the characteristic-mode corresponding relation from the preset storage position and inquire a task scheduling mode corresponding to the characteristic parameter of the current test task. The preset characteristic-mode correspondence relationship may be, for example, the above-described characteristic parameter when the characteristic parameter is a long-acting large-scale task parameter, and the task scheduling mode may be determined as the assignment mode; when the characteristic parameter is a short-term agile small-scale task parameter, the task scheduling mode can be determined as a list snatching mode. Wherein, the preset characteristic-mode corresponding relation can be dynamically updated.
The scheduling platform sends the characteristic parameters to the task manager, for example, the scheduling platform sends the characteristic parameters to an account of the task manager, and notifies a manager of the task manager to log in the account of the scheduling platform through communication software (e.g., mail, short message, or WeChat). After logging in the scheduling platform account, the task manager can check the characteristic parameters of the current task in the logged interface and input a mode determination instruction. And the scheduling platform receives a mode determining instruction sent by the task manager, and analyzes the task scheduling mode determined by the task manager in the mode determining instruction. Taking the banking industry as an example, the task manager may be, for example, a business manager, an implementation management manager, a quality manager, and the like of a head office.
S130, determining a target task receiver according to the task scheduling mode and the field parameters, and issuing the test task to the target task receiver so that the target task receiver executes the test task.
And the scheduling platform respectively executes different confirmation strategies in a form-robbing mode and an assignment mode so as to determine a target task receiver. After determining the target task receiver, the scheduling platform can generate a test task packet according to the relevant information of the test task carried in the task test message and issue the test task packet to the target task receiver, so that the target task receiver executes the test task according to the test task packet.
The scheduling platform issues the test task to the target task receiver, for example, the test task package may be sent to an account of the target task receiver, and the manager of the target task receiver is notified to log in the scheduling platform account through communication software (e.g., mail, short message, or WeChat). After logging in the scheduling platform account, the manager of the target task receiver can check the test task package in the logged interface, and can also select the tester matched with the field parameters of the test task from the corresponding resource pool maintained by the scheduling platform to form a test team, and further send a notice for executing the test task to the test team. Moreover, the administrator of the target task receiver can feed back the test team executing the test task to the scheduling platform, so that the scheduling platform can call back the test team information executing the test task when maintaining the subsequent test task. Taking the banking industry as an example, the manager of the task receiver may be, for example, a branch summoning person and a branch service interface person of each branch.
The method comprises the steps of receiving a task management request, sending a scheduling platform request to a resource pool, wherein the scheduling platform request comprises a plurality of task management parties, a plurality of task receiving parties and a plurality of field parameter types, wherein the scheduling platform request comprises a plurality of field parameter types and characteristic parameter types, and the task management party and the task receiving parties are respectively connected with the resource pool. By establishing a scheduling platform of the test tasks, standardized management and control of the test resources can be realized, efficient configuration of the test resources and the test tasks is facilitated, fine scheduling of the test tasks is realized, and risk decision level is improved.
Optionally, determining the target task recipient according to the task scheduling mode and the domain parameter includes: when the task scheduling mode is the order grabbing mode, determining a candidate task receiver according to the field parameters, and issuing an order grabbing notice to the candidate task receiver so that the candidate task receiver carries out order grabbing; determining a target task receiver according to the received order grabbing result of the candidate task receiver; and when the task scheduling mode is the assignment mode, determining the target task receiver according to the domain parameters or the historical assignment records.
The account information of each task receiver maintained in the scheduling platform may include field parameters that each task receiver can execute a test task, that is, test qualification information of each task receiver. The process of the scheduling platform determining the candidate task recipients according to the domain parameters may be, for example, the scheduling platform automatically determining the candidate task recipients with testing qualifications according to the domain parameters, or the scheduling platform sending the testing qualification information and the domain parameters of each task recipient to the task manager, so that the task manager manually determines the candidate task recipients. Similarly, the process of determining the target task receiver according to the domain parameter or the historical assignment record may be, for example, that the scheduling platform automatically determines the target task receiver according to the domain parameter or the historical assignment record, or that the scheduling platform sends the domain parameter or the historical assignment record to the task manager, so that the task manager manually determines the target task receiver. The task distribution efficiency can be improved by automatically determining the candidate task receiver and the target task receiver; by manually determining the candidate task recipients and the target task recipients, the management and control strength of task distribution can be improved.
And when the task scheduling mode and the candidate task receiver/target task receiver are determined manually, the characteristic parameters and the field parameter/history assignment records can be simultaneously sent to the task manager, so that the task manager synchronously feeds back the determined task scheduling mode and the candidate task receiver/target task receiver.
Further, determining the target task receiver according to the received order grabbing result of the candidate task receiver comprises: when the number of the candidate task recipients for the order grabbing is 0 as the order grabbing result, issuing an order grabbing notice to the candidate task recipients again; or, changing the task scheduling mode into an assignment mode; when the number of the candidate task recipients for the order grabbing is 1 as the order grabbing result, taking the candidate task recipients for the order grabbing as target task recipients; when the order grabbing result is that the number of the candidate task recipients for order grabbing is larger than 1, determining a target task recipient according to the grading sequence of the candidate task recipients for order grabbing; or, the order grabbing result is sent to the task management party, so that the task management party inputs an approval instruction according to the order grabbing result; and receiving an approval instruction, and determining a target task receiving party according to the approval instruction.
Wherein, the dispatching platform can set the order grabbing time limit when sending the order grabbing notice. When the scheduling platform is used, when the order grabbing time limit is over, the order grabbing results are collected and the target receiving party is determined. In addition, the scheduling platform can also gather the order grabbing results in advance and determine the target receiving party when the number of the candidate task receiving parties for order grabbing reaches the preset number.
Further, determining a target task receiver according to the domain parameters or the historical assignment records comprises: querying from the historical assignment record whether there is a historical test task associated with the characteristic parameter; if yes, determining a target task receiver according to the task receiver of the associated historical test task; if not, determining the target task receiver according to the domain parameters.
The recordable characteristic parameters in the historical assignment information are historical test tasks of long-term large-scale tasks, stage parameters of the historical test tasks and task recipients executing the historical tasks. The scheduling platform can assign the test task of the current stage to the task receiver executing the test task of the historical stage parameter according to the stage parameter in the characteristic parameter, so that the test task has inheritance, and the test efficiency and the test quality can be improved to a certain extent. However, if the long-term large-scale task is assigned for the first time, the historical test task cannot be inquired in the historical assignment information, at this time, qualified candidate task recipients can be determined according to the field parameters, and further, the target task recipients can be comprehensively determined according to the current task quantity of the candidate task recipients, the current test resource residual quantity and/or the grading ranking of the candidate task recipients.
Fig. 2 is a schematic instruction diagram of a preemptive mode in a scheduling method of a test task according to an embodiment of the present invention. Referring to fig. 2, the instruction diagram of the order grabbing mode includes the following steps:
s201, establishing a test task by the integrated test platform;
s202, the integrated test platform sends a test task message to a scheduling platform of a test task based on a message queue mechanism;
s203, the scheduling platform receives the test task message;
s204, the scheduling platform sends the field parameters and the characteristic parameters of the test task message to a task manager;
s205, the task manager determines a form grabbing mode according to the characteristic parameters and determines candidate task recipients according to the field parameters;
s206, the task manager sends the determined order grabbing mode and the candidate task receiver to the scheduling platform;
s207, the scheduling platform sends a list grabbing notice to the candidate task recipients 1-n;
s208, each candidate task receiver performs order grabbing operation respectively;
s209, each candidate task receiver sends a list grabbing result respectively;
s210, the scheduling platform forwards the order grabbing result to a task manager;
s211, the task manager examines and approves the order grabbing result and sends the determined target task receiver to the scheduling platform;
s212, the scheduling platform sends a ticket grabbing success message and a test task to the target task receiver and sends a ticket grabbing failure message to other candidate receivers.
The determination of the order grabbing mode and the determination of the candidate task leaders in step S205, and the determination of the target task leaders in step S211 may also be automatically determined by the scheduling platform. When the dispatching platform issues the order grabbing notice, the pricing and total scoring information of the test tasks can be issued at the same time, so that the enthusiasm of each task receiver can be stimulated, and the test resources can be fully utilized.
For example, fig. 3 is a schematic instruction diagram of an assignment pattern in a scheduling method of a test task according to an embodiment of the present invention. Referring to fig. 3, a schematic diagram of an instruction for assigning modes includes the following steps:
s301, establishing a test task by the integrated test platform;
s302, the integrated test platform sends a test task message to a scheduling platform of a test task based on a message queue mechanism;
s303, the scheduling platform receives a test task message;
s304, the scheduling platform sends the field parameters and the characteristic parameters of the test task message to a task manager;
s305, the task manager determines an assignment mode according to the characteristic parameters and determines a target task receiver according to the field parameters or the historical assignment records;
s306, the task management party sends the determined assignment mode and the target task receiving party to the scheduling platform;
and S307, the scheduling platform issues a test task to the target task receiver.
The determination of the assignment mode and the determination of the target task recipient in step S305 may also be automatically determined by the scheduling platform.
Optionally, after determining the target task recipient, the method further includes: sending the inquiry acceptance information to the target task acceptance party so that the target task acceptance party feeds back whether acceptance is determined or not; and receiving a determined acceptance message fed back by the target task acceptance party, and issuing the test task to the target task acceptance party according to the determined acceptance message.
After the scheduling platform determines the target task receiver, the query receiving information can be sent to the scheduling platform account of the target task receiver, and the manager of the target task receiver can be notified to log in the scheduling platform account through communication software (such as mails, short messages or WeChats). After the administrator of the target task receiver logs in the account of the scheduling platform, whether to determine the receiving or not can be input in the interface after logging in, and the feedback whether to determine the receiving or not is sent to the scheduling platform. The scheduling platform can set inquiry time limit when sending inquiry acceptance information, and can issue a test task to a target task acceptance party according to a determined acceptance message if the confirmed acceptance message fed back by the target task acceptance party is received when the inquiry time limit is overtime; if receiving the acceptance refusing message fed back by the target task acceptance party, the target task acceptance party can be determined again; if the feedback message of the target task receiver is not received, the feedback message is sent again at intervals, and the target task receiver can be determined again after the feedback message is sent for preset times. In addition, the scheduling platform can also cancel the inquiry of the target task receiver and determine the target task receiver again when the inquiry time limit is overtime and the feedback message of the target task receiver is not received.
Optionally, after the testing task is issued to the target task recipient, the method further includes: and receiving a test execution result based on the message queue mechanism, and grading the target task receiver according to the test execution result.
After the test team executes the test task, the test execution result can be sent to the scheduling platform through the integrated test platform based on a message queue mechanism, and the convenience of reporting the test result is improved. The scheduling platform can carry out grading and expense issuing on the target task receiving party according to the received test execution result. And the scheduling platform can start an auditing process after receiving the test execution result, inform the target task receiver and the task manager to audit the target task receiver and the target task manager, and score according to the final test execution result after the audit is passed. And after the dispatching platform scores the target task receiver, the dispatching platform can update the historical score of the target task receiver.
The scheduling method of the test task provided by the embodiment of the invention is based on a message queue mechanism, receives the test task message sent by the integrated test platform, wherein the test task message carries the field parameters and the characteristic parameters of the test task; determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode; and determining a target task receiver according to the task scheduling mode and the field parameters, and issuing the test task to the target task receiver so that the target task receiver executes the test task.
The cooperation of an integrated test platform in a test environment and a scheduling platform in an office environment is realized through a message queue mechanism, and the convenience of locally receiving tasks and reporting test results by cross-regional users is realized; by setting two scheduling modes, namely a single-robbing mode and an assignment mode, the test task assignment can be more flexible, and the task allocation efficiency is improved; the target task receiver is determined through the related parameters, so that the test task and the test resource can be efficiently matched, the test cost is reduced, and the test quality and the test efficiency are improved; by remotely sending the test tasks across the regions, the on-line test task scheduling of the total-score linkage is realized, and the smooth circulation of the test process is ensured.
Example two
Fig. 4 is a schematic structural diagram of a scheduling apparatus for testing tasks according to a second embodiment of the present invention. The scheduling device can be applied to realize the scheduling method of the test task provided by any embodiment of the invention.
Referring to fig. 4, the scheduling apparatus of the test task includes:
the task receiving module 410 is configured to receive a test task message based on a message queue mechanism, where the test task message carries a field parameter and a characteristic parameter of a test task;
a scheduling mode determining module 420, configured to determine a task scheduling mode according to the characteristic parameter, where the task scheduling mode includes a list grabbing mode and an assignment mode;
and the task issuing module 430 is configured to determine the target task receiver according to the task scheduling mode and the domain parameter, and issue the test task to the target task receiver, so that the target task receiver executes the test task.
Optionally, the scheduling mode determining module is specifically configured to: inquiring a task scheduling mode corresponding to the characteristic parameter according to a preset characteristic-scheduling mode corresponding relation; or sending the characteristic parameters to a task management party so that the task management party determines an instruction according to the characteristic parameter input mode; and receiving a mode determining instruction, and determining a task scheduling mode according to the mode determining instruction.
Optionally, the task issuing module includes:
the candidate task receiver is used for issuing a candidate task receiving party to the candidate task receiver according to the field parameters when the task scheduling mode is the order grabbing mode, so that the candidate task receiver can carry out order grabbing; determining a target task receiver according to the received order grabbing result of the candidate task receiver; and when the task scheduling mode is the assignment mode, determining the target task receiver according to the domain parameters or the historical assignment records.
Optionally, the recipient determining sub-module includes:
the task-receiving party determining unit in the order-grabbing mode is used for issuing an order-grabbing notice to the candidate task-receiving parties again when the number of the candidate task-receiving parties with the order-grabbing result of order grabbing is 0; or, changing the task scheduling mode into an assignment mode; when the number of the candidate task recipients for the order grabbing is 1 as the order grabbing result, taking the candidate task recipients for the order grabbing as target task recipients; when the order grabbing result is that the number of the candidate task recipients for order grabbing is larger than 1, determining a target task recipient according to the grading sequence of the candidate task recipients for order grabbing; or, the order grabbing result is sent to the task management party, so that the task management party inputs an approval instruction according to the order grabbing result; and receiving an approval instruction, and determining a target task receiving party according to the approval instruction.
Optionally, the recipient determining sub-module includes:
the task leader determining unit in the assignment mode is used for inquiring whether a historical test task associated with the characteristic parameter exists from a historical assignment record; if yes, determining a target task receiver according to the task receiver of the associated historical test task; if not, determining the target task receiver according to the domain parameters.
Optionally, the task issuing module further includes:
the task issuing sub-module is used for sending the inquiry acceptance information to the target task acceptance party so as to enable the target task acceptance party to feed back whether to determine acceptance; and receiving a determined acceptance message fed back by the target task acceptance party, and issuing the test task to the target task acceptance party according to the determined acceptance message.
Optionally, the scheduling apparatus of the test task further includes:
and the scoring module is used for receiving the test execution result based on the message queue mechanism and scoring the target task receiver according to the test execution result.
The test task scheduling device provided by the embodiment of the invention can execute the test task scheduling method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For details of the technique not described in detail, reference may be made to the method for scheduling test tasks provided in any embodiment of the present invention.
EXAMPLE III
Fig. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The device 12 is typically an electronic device that undertakes the scheduling function of the testing task.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples the various components (including the memory 28 and the processing unit 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer-readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer device readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product 40, with program product 40 having a set of program modules 42 configured to carry out the functions of embodiments of the invention. Program product 40 may be stored, for example, in memory 28, and such program modules 42 include, but are not limited to, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, mouse, camera, etc., and display), one or more devices that enable a user to interact with electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the internet) via the Network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) devices, tape drives, and data backup storage devices, to name a few.
The processor 16 executes various functional applications and data processing by executing programs stored in the memory 28, for example, to implement the scheduling method of test tasks provided by the above-mentioned embodiment of the present invention, the method includes:
receiving a test task message based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of a test task; determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode; and determining a target task receiver according to the task scheduling mode and the field parameters, and issuing the test task to the target task receiver so that the target task receiver executes the test task.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the scheduling method of the test task provided in any embodiment of the present invention.
Example four
The fourth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for scheduling a test task provided in the fourth embodiment of the present invention, where the method includes:
receiving a test task message based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of a test task; determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode; and determining a target task receiver according to the task scheduling mode and the field parameters, and issuing the test task to the target task receiver so that the target task receiver executes the test task.
Of course, the computer program stored on the computer-readable storage medium provided by the embodiments of the present invention is not limited to the above method operations, and may also perform the scheduling method of the test task provided by any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for scheduling a test task, comprising:
receiving a test task message based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of a test task;
determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode;
and determining a target task receiver according to the task scheduling mode and the field parameters, and issuing a test task to the target task receiver so that the target task receiver executes the test task.
2. The method of claim 1, wherein determining a task scheduling mode according to the characteristic parameter comprises:
inquiring a task scheduling mode corresponding to the characteristic parameter according to a preset characteristic-scheduling mode corresponding relation;
or sending the characteristic parameters to a task manager so that the task manager determines instructions according to the characteristic parameter input mode; and receiving the mode determining instruction, and determining a task scheduling mode according to the mode determining instruction.
3. The method of claim 1, wherein determining a target task recipient based on the task scheduling mode and the domain parameters comprises:
when the task scheduling mode is the order grabbing mode, determining a candidate task receiver according to the field parameters, and issuing an order grabbing notice to the candidate task receiver so as to enable the candidate task receiver to carry out order grabbing; determining a target task receiver according to the received order grabbing result of the candidate task receiver;
and when the task scheduling mode is the assignment mode, determining a target task receiver according to the domain parameters or the historical assignment records.
4. The method according to claim 3, wherein the determining the target task receiver according to the received order grabbing result of the candidate task receiver comprises:
when the number of the candidate task recipients for the order grabbing is 0 as the order grabbing result, issuing an order grabbing notice to the candidate task recipients again; or, changing the task scheduling mode into an assignment mode;
when the number of the candidate task recipients for the order grabbing is 1 as the order grabbing result, taking the candidate task recipients for the order grabbing as target task recipients;
when the order grabbing result is that the number of the candidate task recipients for order grabbing is larger than 1, determining a target task recipient according to the grading sequence of the candidate task recipients for order grabbing; or, the order grabbing result is sent to a task management party, so that the task management party inputs an approval instruction according to the order grabbing result; and receiving the approval instruction, and determining a target task receiver according to the approval instruction.
5. The method of claim 3, wherein determining a target task recipient from the domain parameters or historical assignment records comprises:
querying from a historical assignment record whether there is a historical test task associated with the characteristic parameter;
if yes, determining a target task receiver according to the task receiver of the associated historical test task;
and if not, determining the target task receiver according to the field parameters.
6. The method of any of claims 1-5, further comprising, after determining the target task recipient:
sending the inquiry acceptance information to the target task acceptance party so that the target task acceptance party feeds back whether acceptance is determined or not;
and receiving a determined acceptance message fed back by a target task acceptance party, and issuing a test task to the target task acceptance party according to the determined acceptance message.
7. The method according to any one of claims 1-5, further comprising, after said issuing a test task to said target task recipient:
and receiving a test execution result based on a message queue mechanism, and grading the target task receiver according to the test execution result.
8. A scheduling apparatus for testing tasks, comprising:
the task receiving module is used for receiving a test task message based on a message queue mechanism, wherein the test task message carries field parameters and characteristic parameters of a test task;
the scheduling mode determining module is used for determining a task scheduling mode according to the characteristic parameters, wherein the task scheduling mode comprises a list grabbing mode and an assignment mode;
and the task issuing module is used for determining a target task receiver according to the task scheduling mode and the field parameters and issuing the test task to the target task receiver so that the target task receiver executes the test task.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of scheduling of test tasks according to any of claims 1-7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method for scheduling test tasks according to any one of claims 1 to 7.
CN202010106790.7A 2020-02-20 2020-02-20 Test task scheduling method and device, electronic equipment and storage medium Pending CN111290959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010106790.7A CN111290959A (en) 2020-02-20 2020-02-20 Test task scheduling method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010106790.7A CN111290959A (en) 2020-02-20 2020-02-20 Test task scheduling method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111290959A true CN111290959A (en) 2020-06-16

Family

ID=71026807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010106790.7A Pending CN111290959A (en) 2020-02-20 2020-02-20 Test task scheduling method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111290959A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966585A (en) * 2020-08-04 2020-11-20 中国建设银行股份有限公司 Test task execution method, device, equipment and system
CN112330014A (en) * 2020-11-03 2021-02-05 国网江苏省电力有限公司电力科学研究院 Task scheduling method and device, electronic equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778005A (en) * 2014-01-27 2014-05-07 北京网秦天下科技有限公司 Automatic task allocation method and device
CN107563572A (en) * 2017-09-27 2018-01-09 北京同城必应科技有限公司 A kind of order allocation method, device, computer equipment and storage medium
US20180278567A1 (en) * 2017-03-24 2018-09-27 International Business Machines Corporation Message queue manager
CN108959102A (en) * 2018-07-27 2018-12-07 百度在线网络技术(北京)有限公司 Method and apparatus for generating test data, test application to be tested
CN109118062A (en) * 2018-07-24 2019-01-01 武汉空心科技有限公司 Based on the development approach and system for robbing single-unit
CN109272251A (en) * 2018-10-12 2019-01-25 广东电网有限责任公司 A kind of management method of software test, device and equipment
CN109634730A (en) * 2018-11-26 2019-04-16 平安科技(深圳)有限公司 Method for scheduling task, device, computer equipment and storage medium
CN109697655A (en) * 2018-12-27 2019-04-30 北京百佑科技有限公司 A kind of order processing method and device
CN109711734A (en) * 2018-12-28 2019-05-03 江苏满运软件科技有限公司 Questionnaire distribution method, system, storage medium and electronic equipment
CN109726928A (en) * 2019-01-03 2019-05-07 北京思特奇信息技术股份有限公司 One kind robbing worksheet processing method for processing business, device and storage medium
CN109814985A (en) * 2017-11-20 2019-05-28 杭州华为数字技术有限公司 A kind of method for scheduling task and scheduler calculate equipment, system
CN109871273A (en) * 2019-02-03 2019-06-11 普信恒业科技发展(北京)有限公司 A kind of adaptive task moving method and device
CN110059918A (en) * 2019-03-06 2019-07-26 平安科技(深圳)有限公司 Lawyer's competition for orders method, apparatus, medium and electronic equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778005A (en) * 2014-01-27 2014-05-07 北京网秦天下科技有限公司 Automatic task allocation method and device
US20180278567A1 (en) * 2017-03-24 2018-09-27 International Business Machines Corporation Message queue manager
CN107563572A (en) * 2017-09-27 2018-01-09 北京同城必应科技有限公司 A kind of order allocation method, device, computer equipment and storage medium
CN109814985A (en) * 2017-11-20 2019-05-28 杭州华为数字技术有限公司 A kind of method for scheduling task and scheduler calculate equipment, system
CN109118062A (en) * 2018-07-24 2019-01-01 武汉空心科技有限公司 Based on the development approach and system for robbing single-unit
CN108959102A (en) * 2018-07-27 2018-12-07 百度在线网络技术(北京)有限公司 Method and apparatus for generating test data, test application to be tested
CN109272251A (en) * 2018-10-12 2019-01-25 广东电网有限责任公司 A kind of management method of software test, device and equipment
CN109634730A (en) * 2018-11-26 2019-04-16 平安科技(深圳)有限公司 Method for scheduling task, device, computer equipment and storage medium
CN109697655A (en) * 2018-12-27 2019-04-30 北京百佑科技有限公司 A kind of order processing method and device
CN109711734A (en) * 2018-12-28 2019-05-03 江苏满运软件科技有限公司 Questionnaire distribution method, system, storage medium and electronic equipment
CN109726928A (en) * 2019-01-03 2019-05-07 北京思特奇信息技术股份有限公司 One kind robbing worksheet processing method for processing business, device and storage medium
CN109871273A (en) * 2019-02-03 2019-06-11 普信恒业科技发展(北京)有限公司 A kind of adaptive task moving method and device
CN110059918A (en) * 2019-03-06 2019-07-26 平安科技(深圳)有限公司 Lawyer's competition for orders method, apparatus, medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IBM中国开发中心BPM团队: "IBM BPM实战指南", vol. 1, 北京:北京希望电子出版社, pages: 97 - 100 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966585A (en) * 2020-08-04 2020-11-20 中国建设银行股份有限公司 Test task execution method, device, equipment and system
CN112330014A (en) * 2020-11-03 2021-02-05 国网江苏省电力有限公司电力科学研究院 Task scheduling method and device, electronic equipment and storage medium
CN112330014B (en) * 2020-11-03 2022-09-30 国网江苏省电力有限公司电力科学研究院 Task scheduling method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20210390181A1 (en) Generating Simulated Spear Phishing Messages and Customized Cybersecurity Training Modules Using Machine Learning
US10706474B2 (en) Supplemental review process determination utilizing advanced analytics decision making model
CN109947408B (en) Message pushing method and device, storage medium and electronic equipment
US20110252019A1 (en) Project management system
CN111290959A (en) Test task scheduling method and device, electronic equipment and storage medium
CN112184158A (en) Rental business approval method, device, equipment and medium
CN111311200B (en) Management method and device for guest consultation work order platform
CN113159694A (en) Material storage management method and device
US20170322928A1 (en) Existing association review process determination utilizing analytics decision model
CN113570468A (en) Enterprise payment wind control service platform
CN110910089A (en) Intelligent community work order processing method and device, server and system
CN114416769A (en) To-do task query method and device and electronic equipment
US11601347B2 (en) Identification of incident required resolution time
US20100082377A1 (en) Risk Evaluation of Conflicts in Separation of Duties
US20170270611A1 (en) Processing system to automatically assign electronic records to verification process subset levels
US9830568B2 (en) Controlling and managing identity access risk
CN110322116A (en) Task processing method, device, electronic equipment and storage medium
Djedović et al. Optimization of the business processes via automatic integration with the document management system
CN114049091A (en) Universal workflow implementation method and device based on work order
CN114386951A (en) Process approval method and device, electronic equipment and storage medium
CN114091815A (en) Resource request processing method, device and system and electronic equipment
CN113570083A (en) Operation and maintenance flow determination method and device for equipment, electronic equipment and storage medium
Kapel et al. Incident Management in a Software-Defined Business: A Case Study
CN111680867B (en) Resource allocation method and device and electronic equipment
US20240112195A1 (en) Identifying and Resolving Consumer Transactions Using Consumer Call Analytics

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220920

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.