CN116466683B - Method and device for controlling test tasks - Google Patents

Method and device for controlling test tasks Download PDF

Info

Publication number
CN116466683B
CN116466683B CN202310426436.6A CN202310426436A CN116466683B CN 116466683 B CN116466683 B CN 116466683B CN 202310426436 A CN202310426436 A CN 202310426436A CN 116466683 B CN116466683 B CN 116466683B
Authority
CN
China
Prior art keywords
test
task
tested
time
target
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.)
Active
Application number
CN202310426436.6A
Other languages
Chinese (zh)
Other versions
CN116466683A (en
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.)
Basf Integrated Base Guangdong Co ltd
Original Assignee
Basf Integrated Base Guangdong 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 Basf Integrated Base Guangdong Co ltd filed Critical Basf Integrated Base Guangdong Co ltd
Priority to CN202310426436.6A priority Critical patent/CN116466683B/en
Publication of CN116466683A publication Critical patent/CN116466683A/en
Application granted granted Critical
Publication of CN116466683B publication Critical patent/CN116466683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure provides methods and apparatus for controlling test tasks. In the method, sample information of a sample to be tested is obtained, a task to be tested of the sample to be tested is obtained from a task management system according to the sample information, the task to be tested comprises task lists, and each task list comprises available test equipment, available test personnel and estimated execution time length; acquiring real-time state information of each available test device according to the available test devices in the task to be tested; and sending the real-time state information and the task to be tested to task scheduling equipment so that the task scheduling equipment schedules the task to be tested according to the real-time state information to obtain a plan to be executed corresponding to the task to be tested.

Description

Method and device for controlling test tasks
Technical Field
The present disclosure relates to the field of chemical technology, and in particular, to a method and apparatus for controlling a test task.
Background
In the field of chemical production, in addition to the production of chemical products on a production line, laboratories are provided for spot inspection and testing of the produced chemical products. Currently, the process of performing spot inspection on products on a production line is generally as follows, a staff in a laboratory samples from the production line, and then conveys the sampled samples to the laboratory to immediately perform sample testing on the samples, so as to obtain test results, and the test results are fed back to the staff on the production line.
Disclosure of Invention
In view of the foregoing, the present disclosure provides methods and apparatus for controlling test tasks. By the technical scheme, the sample to be tested is fully automatically controlled, and human participation is reduced. In addition, real-time state information of the test equipment is combined so as to reasonably arrange an execution plan for the sample to be tested.
According to one aspect of the present disclosure, there is provided a method for controlling a test task, performed by a central control apparatus, the method comprising: responding to sample information of a sample to be tested, and acquiring a task to be tested of the sample to be tested from a task management system according to the sample information, wherein the task to be tested comprises task lists, and each task list comprises available test equipment, available test personnel and estimated execution time; acquiring real-time state information of each available test device according to the available test devices in the task to be tested; and sending the real-time state information and the task to be tested to task scheduling equipment so that the task scheduling equipment schedules the task to be tested according to the real-time state information to obtain a plan to be executed corresponding to the task to be tested, wherein the plan to be executed comprises target test equipment, target test personnel and target test time for executing the task to be tested.
According to another aspect of the present disclosure, there is also provided an apparatus for controlling a test task, applied to a central control device, the apparatus comprising: the task acquisition unit is used for responding to sample information of a sample to be tested, acquiring a task to be tested of the sample to be tested from the task management system according to the sample information, wherein the task to be tested comprises task lists, and each task list comprises available test equipment, available test personnel and estimated execution time; the state acquisition unit acquires real-time state information of each available test device according to the available test device in the task to be tested; and the sending unit is used for sending the real-time state information and the task to be tested to the task scheduling equipment so that the task scheduling equipment schedules the task to be tested according to the real-time state information to obtain a plan to be executed corresponding to the task to be tested, wherein the plan to be executed comprises target test equipment, target test personnel and target test time for executing the task to be tested.
According to another aspect of the present disclosure, there is also provided an electronic apparatus including: at least one processor, a memory coupled with the at least one processor, and a computer program stored on the memory, the at least one processor executing the computer program to implement a method for controlling a test task as described in any of the above.
According to another aspect of the present disclosure, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements a method for controlling a test task as described above.
Drawings
A further understanding of the nature and advantages of the present disclosure may be realized by reference to the following drawings. In the drawings, similar components or features may have the same reference numerals.
Fig. 1 shows a schematic diagram of one example of an application scenario of a central control device provided according to the present disclosure.
Fig. 2 illustrates a flowchart of one example of a method for controlling a test task provided in accordance with the present disclosure.
Fig. 3 shows a schematic diagram of one example of a specified data structure provided in accordance with the present disclosure.
Fig. 4 illustrates a flowchart of one example of a task to be tested execution process provided in accordance with the present disclosure.
Fig. 5 shows a block diagram of one example of an apparatus for controlling test tasks provided in accordance with the present disclosure.
Fig. 6 shows a block diagram of an electronic device of the present disclosure for implementing the test task control method described above.
Detailed Description
The subject matter described herein will be discussed below with reference to example embodiments. It should be appreciated that these embodiments are discussed only to enable a person skilled in the art to better understand and thereby practice the subject matter described herein, and are not limiting of the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements discussed without departing from the scope of the disclosure. Various examples may omit, replace, or add various procedures or components as desired. In addition, features described with respect to some examples may be combined in other examples as well.
As used herein, the term "comprising" and variations thereof mean open-ended terms, meaning "including, but not limited to. The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment. The term "another embodiment" means "at least one other embodiment". The terms "first," "second," and the like, may refer to different or the same object. Other definitions, whether explicit or implicit, may be included below. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout this specification.
In the field of chemical production, in addition to the production of chemical products on a production line, laboratories are provided for spot inspection and testing of the produced chemical products. Currently, the process of performing spot inspection on products on a production line is generally as follows, a staff in a laboratory samples from the production line, and then conveys the sampled samples to the laboratory to immediately perform sample testing on the samples, so as to obtain test results, and the test results are fed back to the staff on the production line.
In order to realize full-automatic control of test tasks, the present disclosure provides methods and apparatus for controlling test tasks.
The method and apparatus for controlling test tasks provided by the present disclosure are described in detail below with reference to the accompanying drawings.
The application scenario of the central control device of the embodiment of the disclosure may be in a laboratory for sampling and testing chemical products produced on a production line to verify whether the chemical products on the production line are qualified or not, and further to determine the product qualification rate on the production line.
Fig. 1 shows a schematic diagram of one example 100 of an application scenario of a central control device provided according to the present disclosure.
As shown in fig. 1, the central control device may be OPC (OLE for Process Control), which may be communicatively coupled to and interact with other devices and systems of the laboratory. The central control device can be in communication connection with each test device in the laboratory, can acquire the device state of each test device, wherein the device state comprises a real-time device state, a historical device state and the like, and can also control the test device to execute test tasks. I in fig. 1 represents the number of test devices, i may be a positive integer.
The central control device may be communicatively coupled to a task management system that may be used to maintain test tasks for each product and sample, where the test tasks for each product and sample may be predetermined, and where the test tasks for each sample from each sampling point on each production line may be predetermined. The central control device may obtain test tasks for each sample to be tested from the task management system. In one example, the task management system may also store metrics for each test task, such that the task management system may logically determine test results based on the metrics to determine an evaluation result of the test results.
In one example, the task management system may be an SAP system. In one example, the task management system may further be composed of SAP, openQM, and a database, where the OpenQM may store metrics for each test task, and is configured to logically determine the test result according to the metrics to determine the evaluation result of the test result. The database may be used to store test tasks, evaluation results, and the like. In this example, the central control device may be communicatively coupled to an OpenQM, which is communicatively coupled to the SAP.
The central control device may also be communicatively coupled to the task scheduler device. The task scheduler may be used to schedule execution plans for individual test tasks and may also generate an overall execution plan for individual test tasks. In one example, the central control device may also be communicatively connected to a display device, which may include a display device for the entire laboratory, a terminal device for a worker, and the like. The display device may be used to display the total execution plan or a portion of the total execution plan.
In one example, the central control device may also be communicatively coupled to a sample information management system for information management of individual products produced on the production line, such as, for example, material numbers and lot numbers of chemical products. The central control device may obtain sample information of the sample from the sample information management system. In one example, the sample information management system may be an MES, which is an inter-layer oriented management information system located between an upper layer of the planning management system and an underlying industrial control.
Fig. 2 illustrates a flow chart of one example 200 of a method for controlling a test task provided in accordance with the present disclosure.
As shown in fig. 2, at 210, in response to obtaining sample information of a sample to be tested, a task to be tested of the sample to be tested may be obtained from a task management system according to the sample information.
In one example, each sample to be tested may be contained in a sample container. Each sample container corresponds to an identification code, and the identification code can comprise a one-dimensional code or a two-dimensional code and the like. The identification code corresponding to each sample container may be used to represent the sample in that sample container from which the sample in the sample container may be determined.
In this example, a fixed sampling point may be set on each production line, from which samples may be taken to obtain samples to be tested. Thus, the sample to be tested can be sampled from the production line.
In one example, each sample container corresponds to a sampling point on a production line, and each sample container contains only samples sampled by the corresponding sampling point. In one example, an article rack for placing sample containers may be provided, on which a fixed placement position may be provided for each sample container. In this way, a sample container containing a sample at a sampling point on a production line can be conveniently obtained from the product rack.
In the present disclosure, the sample information may include a lot number, and the like of a sample to be tested. The sample information may be used to characterize the corresponding sample to be tested.
In one example, the central control device may locally store a correspondence between the identification code information stored in the identification code and the sample information, so that the central control device may acquire the identification code information stored in the identification code on the sample container by means of a code scanning method or the like, and may then acquire the sample information of the sample to be tested contained in the sample container according to the information and the correspondence between the locally stored identification code information and the sample information.
In another example, a correspondence between identification code information and sample information may be stored in a sample information management system communicatively coupled to the central control device. The central control device may acquire identification code information stored in the identification code on the sample container, and may send the identification code information to the sample information management system, where the sample information management system determines sample information corresponding to the received identification code information according to a correspondence between the identification code information and the sample information. The sample information management system may then send the resulting sample information to the central control device.
In one example, when the product produced by the production line is unchanged and the production flow is unchanged, samples sampled by each sampling point belong to the same type, and sample information corresponding to samples of the same type may be the same. In this example, the identification code information corresponding to the identification code may include sample information of the corresponding sample, such as a product name, a material number, and the like. In this way, the sample information in the identification code can be obtained by scanning the identification code.
In another example, based on one sampling point on one production line for each sample container, the identification code of each sample container may include a production line identification for the corresponding production line and a sampling point identification on the production line, which may indicate the sampling point to which the sample container corresponds.
In this example, the central control device may determine sample information corresponding to the sample to be tested from the line identification and the sampling point identification included in the identification code in the sample container. In one manner, the central control device may obtain sample information corresponding to samples of each sampling point of each production line, for example, the central control device may store sample information corresponding to samples of each sampling point of each production line, and may also obtain sample information corresponding to samples of each sampling point from each production line in real time. In this manner, the central control device may determine the sampling point of the sample to be tested according to the line identifier and the sampling point identifier in the identifier code, and may then obtain sample information of the sample to be tested of the sampling point.
In another manner, the sample information management system communicatively connected to the central control device may obtain sample information corresponding to samples of each sampling point of each production line, for example, the central control device may store sample information corresponding to samples of each sampling point of each production line, and may also obtain sample information corresponding to samples of each sampling point from each production line in real time. In this manner, the central control device may send the line identifier and the sampling point identifier in the identifier code to the sample information management system, where the sample information management system may determine the sampling point of the sample to be tested according to the line identifier and the sampling point identifier, and then may determine sample information of the sample to be tested of the sampling point, and then send the sample information to the central control device.
In the above example, the identification code on the sample container includes the line identification and the sampling point identification, so that the line can be associated with the sample container by the identification code, facilitating the laboratory to determine the source of each sample, and enhancing the association between the laboratory and the line.
In the present disclosure, correspondence between each test task and sample information may be stored in the task management system. The test tasks corresponding to different samples may be different or the same. In the task management system, the test task corresponding to each sample information may be recorded or stored in advance. The relevant information corresponding to each test task may also be recorded in advance, where the relevant information is determination information of the test task, for example, a procedure included in the test task, a step included in each procedure, equipment and/or personnel required by each procedure, and estimated execution time of each procedure.
In one example, when the task management system includes the SAP, the OpenQM, and the database, the central control device may send sample information to the OpenQM, which sends the sample information to the SAP, and the SAP determines a task to be tested to which the sample information corresponds according to a correspondence between the test task and the sample information recorded in the database. Then, the SAP transmits the determined sample information to the OpenQM, which in turn transmits the sample information to the central control apparatus.
In one example of acquiring a task to be tested, the central control device may send sample information to the task management system, and the task management system may determine a corresponding task to be tested according to the sample information, and then send the task to be tested to the central control device.
In the present disclosure, tasks to be tested may include task lists, each of which may include available test equipment, available testers, and estimated execution time. The available tester may be a designated tester. The specification requirements for different test tasks may be different. For example, some test tasks may be performed by a person in a high position (e.g., a supervisor), some test tasks may be performed by a person in a professional field (e.g., a moisture test), and some test tasks may be performed by a person having a specific authority.
The tasks to be tested may include one or more task lists. When only one task list is included, the available test equipment and available testers in the task list may be used to perform the task to be tested. When a plurality of task lists are included, the task to be tested can include a plurality of subtest tasks, each subtest task corresponds to one task list, and each task list includes available test equipment, available testers and estimated execution duration for the corresponding subtest task. The task lists of the different self-test tasks may be the same or different.
At 220, real-time status information for each available test device may be obtained from the available test devices in the task to be tested.
In one example, based on the central control device being communicatively connected to each test device, the central control device, after obtaining the task to be tested, may obtain real-time status information of each optional test device according to the optional test devices in the task list. The real-time status information may be used to indicate a current status of the device, which may include an idle status and an active status.
In one manner of acquisition, the central control device may send a real-time status information request to each of the optional test devices after determining the optional test devices for the task to be tested. Each of the selectable test devices may respectively send respective real-time status information to the central control device in response to the real-time status information request.
In another example, a test equipment status library may be provided for storing status information of individual test equipment. Each test device may store respective real-time status information to the test device status library at a specified time, which may include a specified point in time and/or a specified time interval, etc. Each test device may actively send its own real-time status information to a test device status library store. In the test device state library, state information of each test device can be stored in a key-value mode. In one example, only the latest state information for each test device is stored in the test device state library. In another example, the latest state information and historical state information for each test device may be stored in a test device state library.
In this example, the central control device may access a test device state library so that real-time state information for each available test device may be obtained from the test device state library.
At 230, the real-time status information and the task to be tested may be sent to a task scheduler.
In the disclosure, the task scheduling device may schedule the task to be tested according to the real-time status information to obtain a plan to be executed corresponding to the task to be tested. The plan to be executed may include a target test device, a target tester, and a target test time for executing the task to be tested. In one example, after obtaining the plan to be executed corresponding to the task to be tested, the task scheduling device may integrate the plan to be executed into a total execution plan, where the total execution plan includes all the plans to be executed and execution plans in execution that are currently scheduled. Thus, the task scheduling device can obtain the total execution plan including the to-be-executed plan corresponding to the task to be tested.
In one example, the task list may also include test task names, specified requirements, and the like.
In this example, after obtaining the real-time status information of the available test devices and the task to be tested, the central control device may write the test task name, the available test devices, the available testers, the estimated execution time, the specified requirements, and the real-time status information included in the task list into corresponding fields according to each field in the specified data structure of the task scheduling device, so as to obtain the structured data including information of each field.
The specified data structure may be a task scheduler specified data structure. Each field in the specified data structure corresponds to a type of information. The ordering and arrangement rules of the various fields in the specified data structure may be custom set. In one example, the selectable test device and the real-time status information may be written in the same field in which each selectable test device and the real-time status information may be stored in correspondence, each real-time status information being used to characterize the device real-time status of the corresponding selectable test device. By the storage mode, various information of the task to be tested and the corresponding relation between optional test equipment and real-time state information are conveniently collected from the structured data.
In one example, the field for storing the available test equipment and the real-time status information may include several rows and two columns, one for storing the available test equipment and the other for storing the real-time status information, the corresponding available test equipment and real-time status information being written to the same row for representing the correspondence therebetween.
Fig. 3 shows a schematic diagram of one example of a specified data structure provided in accordance with the present disclosure. As shown in fig. 3, in the specified data structure, a first field is used for storing a test task name, a second field is used for storing available test equipment and real-time status information of each available test equipment, a third field is used for storing available test personnel, a fourth field is used for storing estimated execution time length, and a fifth field is used for storing specified requirements. In the second field, one column is used for storing available test equipment, the other column is used for storing real-time state information, and the available test equipment stored in the field corresponds to the real-time state information one by one.
After obtaining the structured data containing the information of each field, the central control device may send the structured data to the task scheduling device. Therefore, the task scheduling device can directly use the structured data sent by the central control device, and does not need to process the task to be tested and the real-time state information sent by the central control device, so that the resources of the task scheduling device are saved, and the efficiency of the task scheduling device in performing scheduling processing to obtain the first execution plan is improved.
In one example, the sample to be tested may comprise one sample, and may also comprise a plurality of samples. When the sample to be tested comprises a plurality of samples, the central control equipment can combine the tasks to be tested corresponding to the samples.
In one example, the central control device may detect whether there are samples performing the same test task among a plurality of samples included in the sample to be tested. If so, the tasks to be tested corresponding to the multiple samples performing the same test task may be combined. For example, if both samples need to be tested for moisture, the tasks to be tested corresponding to the two samples may be combined into one test task for moisture testing.
In another example, the central control apparatus may detect whether there is a sample, which the corresponding test task needs to be sequentially performed, among a plurality of samples included in the sample to be tested. If so, merging the tasks to be tested corresponding to the samples which are needed to be sequentially executed by the test tasks. The combined tasks to be tested comprise a plurality of test tasks corresponding to a plurality of samples, and the plurality of test tasks need to be executed sequentially according to a specified sequence, so that the plurality of test tasks can be ordered according to the specified sequence in the combined tasks to be tested, so that the plurality of test tasks can be executed sequentially according to the specified sequence.
In one example, where the task to be tested includes a plurality of subtest tasks, when there is a preset order of execution among the plurality of subtest tasks, for example, a first subtest task of the plurality of subtest tasks must be done first and then followed by a second subtest task, and so on, the order of execution of the respective subtest tasks is determined. The plurality of subtest tasks may be ordered according to a preset execution order of the plurality of subtest tasks. The real-time status information and the task to be tested including the ordered plurality of subtest tasks may then be sent to the task scheduler.
In this example, the central control device performs execution sequence ordering on each subtest task before sending the subtest task to the task scheduling device, so that the task scheduling device does not need to order the subtest tasks any more, and the data processing amount of the task scheduling device is reduced, thereby improving the task scheduling efficiency.
In one example, the central control device may send the plan to be executed to the target test device and/or the target tester in response to obtaining the plan to be executed from the task scheduler device, to cause the target test device and/or the target tester to execute the task to be tested according to the plan to be executed.
In one response manner, after obtaining a plan to be executed corresponding to a task to be tested, the task scheduling device may send the plan to be executed to the central control device, and the central control device may send the plan to be executed to the target test device, where the target test device executes the task to be tested according to the plan to be executed.
Fig. 4 illustrates a flow chart of one example 400 of a task to be tested execution process provided in accordance with the present disclosure.
As shown in fig. 4, at 410, in response to obtaining the to-be-executed plan from the task scheduler, when the current time reaches the target test time, a to-be-tested sample, a target tester, and a target test device required for the to-be-tested task may be determined according to the to-be-executed plan.
In this example, after the central control apparatus acquires the plan to be executed of the task to be tested from the task scheduling apparatus, the task to be tested is in a state in which the plan to be executed has been scheduled. When the current time reaches the target test time, a plan to be executed of the task to be tested is triggered and is ready to start executing.
In this example, the central control device may determine the target tester and the target test device that perform the task to be tested according to the target tester and the target test device recorded in the plan to be performed. And determining the sample to be tested required by the task to be tested according to the information of the sample to be tested recorded in the plan to be executed. In addition, the plan to be tested may also include a planned test time (including a test start time, a test end time, and a duration), a test number, and the like.
In one determination manner, the central control device may collect sample information corresponding to the sample to be tested, device information of the target test device, and personnel information of the target test personnel. In one example, each test device corresponds to an identification code for representing the test device and each tester corresponds to an identification code for representing the tester. Thus, the central control device can collect information of an identification code on a sample container containing a sample to be tested, which can characterize the sample to be tested. The central control device may also collect information of an identification code corresponding to the target test device, where the information of the identification code may characterize the target test device. And the central control equipment can also collect information of the identification code corresponding to the target tester, and the information of the identification code can represent the target tester. The acquisition mode can comprise code scanning mode acquisition.
Then, the central control device may match the collected information of each identification code with task information of the task to be tested recorded in the plan to be executed. The task information of the task to be tested at least comprises sample information of a sample to be tested, target test equipment, target test personnel and the like. And when the identification code information on the sample container corresponding to the acquired sample to be tested, the identification code information corresponding to the target test equipment and the identification code information corresponding to the target test personnel are respectively consistent with the sample information, the test equipment information and the test personnel information included in the task information lock of the task to be tested, the matching can be determined. Thus, the central control device can determine the sample to be tested, the target test device, and the target tester for performing the task to be tested.
In one example, the central control device may synchronize the task under test to be performed to the task scheduler device after determining the sample under test, the target test device, and the target tester required for the task under test. The task scheduling device may update the real-time status of the to-be-executed plan, for example, may update the to-be-tested task corresponding to the to-be-executed plan to an executing status, and both the target test device and the target tester update to a working status. Then, the task scheduling device may send the updated plan to be executed to the central control device, and the central control device may control the updated plan to be executed to perform visual display. By the method, the device and the system, the displayed plans to be executed can be updated in real time, and the execution state of each test task and the states of each test device and each tester can be mastered in time.
At 420, test task execution instructions may be sent to the target test equipment and/or the target tester.
In this example, the test task execution instructions may include sample information for the sample to be tested. When the test task execution instruction is sent to the target test device, the target test device may be used to perform the task to be tested in a dominant manner, or the target test device may be used only to perform the task to be tested. When the test task execution instruction is sent to the target tester, the target tester may take the initiative to execute the task to be tested, for example, the target tester operates the target test equipment to execute the task to be tested. When the test task execution instruction is sent to the target test equipment and the target test personnel, the target test equipment and the target test personnel can execute the task to be tested on the sample to be tested together.
In one control manner, the central control device may directly control each target test device, so that each target test device may perform a task to be tested under the control flow of the central control device, for example, the central control device may control each target test device to start. The central control device has a control flow for each test, so that the central control device can control each target test device to execute according to the control flow corresponding to the task to be tested.
At 430, test results may be obtained from the target test equipment to arrive at a test conclusion based on the test results and corresponding evaluation metrics.
After the target test equipment completes the test, a corresponding test result can be obtained. Each target test device may feed back the test results to the central control device. For example, the task to be tested is a moisture test, and the test result may be the moisture content of the sample to be tested.
In one example, the central control device may store evaluation metrics locally for each test task, which may be different. For example, the moisture content is smaller than a specified threshold, and the viscosity is within a specified range.
In this example, the central control device determines the corresponding evaluation index locally according to the task to be tested, and then compares the test result with the corresponding evaluation index to obtain a test conclusion, which may include pass and fail.
In another example, a task management system communicatively coupled to the central control device may store evaluation metrics for each test task. Thus, the central control apparatus can transmit the test result to the task management system. The task management system can determine a task to be tested corresponding to the test result, locally determine a corresponding evaluation index according to the task to be tested, and then compare the test result with the corresponding evaluation index to obtain a test conclusion.
In another example, the task management system is composed of SAP, openQM, and a database, the OpenQM may store evaluation metrics for each test task. The central control device may send the test result to the OpenQM, where the OpenQM may determine the corresponding evaluation index locally according to the task to be tested, and then compare the test result with the corresponding evaluation index to obtain a test conclusion. The OpenQM may then send the test conclusion to the SAP, which stores the test conclusion in a database.
Through the technical scheme, the sampled sample is fully automatically controlled, and human participation is reduced. In addition, an execution plan is reasonably arranged for the test tasks corresponding to the samples, so that resources such as test equipment and the like can be efficiently utilized, and the test efficiency is improved.
The task scheduling device may perform the scheduling process in the following manner.
First, the task scheduler may obtain tester information and an ordered test plan. The tester information includes tester identification and on-duty time. In one example, the tester information may further include at least one of a position, a professional field, a right, and the like of the tester.
The arranged test plan may include the arranged individual test tasks as well as the test time, testers, and test equipment that the individual test tasks occupy. In the arranged test plans, the test equipment and the test personnel can be displayed separately. The arranged test plans can be updated in real time, and the arranged test plans can be updated in real time according to the execution condition of the test tasks. It should be noted that, in the present disclosure, the real time is a response within a specified time.
The task scheduling device may then determine device idle times for each of the selectable test devices based on the scheduled test plans.
In this disclosure, the optional test equipment may include multiple pieces of equipment, and may also include multiple types of equipment. The same type of test equipment provided for a test task may include multiple test equipment. The device idle time of the optional test device is other time of the optional test device than the scheduled time. When the same type of alternative test device has multiple devices as alternatives, in one example, the device idle time for each alternative device may be determined, each alternative device having the possibility of being selected to perform the task to be tested.
In another example, for multiple candidate devices belonging to the same type of selectable test device, a corresponding scheduled total execution time period for each candidate device may be determined according to the scheduled test plan. And then, screening target candidate devices from the candidate devices according to the total execution duration of each candidate device. The total execution duration of the target alternative devices is smaller than the total execution duration corresponding to other alternative devices. If the device idle time of the target candidate device, which is the selectable test device, is determined according to the ranked test plan, then the target candidate device may be subsequently arranged to perform the task of the test to be ranked.
By the method, the total execution duration of each device can represent the workload and the operation duration of the device, and by selecting the device with less total execution duration as the target candidate device, the workload and the operation duration of each device can be balanced, so that the overall execution efficiency of the test task can be improved, and the service life of the device can be prolonged.
After determining the device idle time of each of the selectable test devices, the task scheduler may determine a person idle time of each of the selectable test persons based on the tester information and the ranked test plans.
And screening the testers on duty according to the on-duty time information in the tester information, wherein the testers can be scheduled with test tasks, so that the personnel idle time of each screened optional tester can be determined.
In one example, the tester information may include at least one of a position, a professional field, a right, and the like of the tester. Different test tasks may have different requirements for the tester. In this example, the task demand information of the task to be tested may also include personnel requirements of a tester for performing the task to be tested, which may include requirements for job position, professional field, authority, and the like. Optional testers meeting the personnel requirements can be screened out from the tester information, and then the personnel idle time of each optional tester is determined according to the optional testers and the arranged test plans.
After determining the personnel idle time of each optional tester, the task scheduling device may schedule corresponding target test devices, target test personnel and target test time for the task to be tested according to the real-time status information of each available test device, the equipment idle time, the personnel idle time and the estimated execution duration.
In one example, an idle state of the alternative test device may be first screened from the alternative test devices. And then, the screened equipment idle time of each optional test equipment and the personnel idle time of each optional test personnel are subjected to cross comparison so as to screen out a first time period in which the equipment idle time and the personnel idle time coincide. And then, further screening from the screened first time periods according to the estimated execution time length of the task to be tested so as to obtain a second time period with the continuous time length not smaller than the estimated execution time length. Each obtained second time period meets the requirements of the task to be tested. And then, determining target test time from each obtained second time period, and determining corresponding target testers and target test equipment according to the target test time period.
In one embodiment of the present disclosure, it may be first determined whether a task to be tested corresponds to a test priority. If not, scheduling execution according to the above example; if so, the execution plan may be arranged in accordance with the following operations. Aiming at the test priorities corresponding to the test tasks, the test task with high test priority is executed preferentially, and the test task with low test priority is executed after the test task with low test priority is executed. The priorities of the test tasks may include a sample priority for the sample and/or a task priority for the test task.
In this example, a first test priority corresponding to the task to be tested may be determined. The test priority of each test task can be customized, and can be determined according to the execution sequence or importance degree among the test tasks.
Then, when there are test tasks with a lower test priority than the first test priority in the ranked test plans, it may be determined from the ranked test plans that the test tasks with a lower test priority than the first test priority.
It may then be determined whether an execution plan can be scheduled for the task under test in the ordered test plan. If so, an execution plan can be arranged for the task to be tested according to the arranged test plan, so that the arranged task to be tested marks the test time period before the test time period corresponding to the determined test task, and the task to be tested can be ensured to be executed preferentially.
If not, the determined test tasks may be deleted from the ranked test plans. And then, determining the current test task to be arranged from the task to be tested and the determined test task in sequence according to the sequence of the test priority from high to low.
In the process of scheduling the execution plan, the execution can be performed in a plurality of rounds, and each round of execution plan of a test task is scheduled. For example, the test task with the highest test priority is scheduled in the first round, the test task with the second highest test priority is scheduled in the second round, and so on.
For the current test task to be scheduled, the equipment idle time and the equipment current state of the optional test equipment corresponding to the current test task can be determined according to the current scheduled test plan. In this example, the current ranked test plans in different rounds are different. For example, the current ranked test plan in the first round is obtained by deleting each determined test task from the ranked test plan. The current ranked test plan in the second round is derived from the current ranked test plan in the first round plus the execution plan of the test tasks scheduled in the first round.
The current test tasks in different rounds may be different and the corresponding optional test devices may be different, so that the determined device idle time and the device current state may also be different.
Personnel idle time for each tester performing the current test task may then be determined based on the tester information and the current ranked test plan.
Then, according to the determined current state of the device, the idle time of the personnel and the estimated execution time corresponding to the current test task, an execution plan can be arranged for the current test task to be arranged, namely, corresponding target test device, target test personnel and target test time are arranged.
And judging whether the task to be tested and the determined test task are arranged to be completed or not. If yes, the arrangement of the test tasks to be arranged and the determined test tasks is completed. And if not, returning to execute the operation of determining the current test task to be arranged from the tasks to be tested and the determined test tasks in sequence according to the sequence of the test priorities from high to low.
By the above example, the execution plan for the task to be tested can be arranged under the condition that the task to be tested corresponds to the test priority, and the execution plan of each test task is more compact and efficient on the basis of ensuring that the arranged task to be tested accords with the test priority.
In one embodiment of the present disclosure, it may be determined whether there is an order of execution between the task under test and the scheduled test tasks in the scheduled test plan. If not, then execution plans may be arranged according to the above examples; if so, the execution plan may be arranged in accordance with the operations shown below.
In this embodiment, the ranked test tasks for which there is an order of execution with the task under test may be selected from the ranked test plans. The screened ranked test tasks may be all or part of the test tasks in the ranked test plan. The tasks to be tested and the filtered arranged test tasks need to be executed according to a set sequence.
It is determined whether an execution plan can be scheduled for the task under test in the ordered test plan. If so, scheduling execution plans for the tasks to be tested according to the scheduled test plans so that the scheduled tasks to be tested and the screened scheduled tasks can be executed according to a given sequence. If not, the filtered ranked test tasks may be deleted from the ranked test plans.
Then, the current test task to be arranged can be determined from the tasks to be tested and the screened test tasks in sequence according to the execution sequence.
In the process of scheduling the execution plan, the execution can be performed in a plurality of rounds, and each round of execution plan of a test task is scheduled. For example, a first test task in a given execution order is scheduled in a first round, a second test task in a given execution order is scheduled in a second round, and so on.
Aiming at the current test task to be arranged, determining the equipment idle time and the equipment current state of the optional test equipment corresponding to the current test task according to the current arranged test plan. And determining the personnel idle time of each tester for executing the current test task according to the tester information and the current arranged test plan. And then, according to the determined current state of the equipment, the equipment idle time, the personnel idle time and the estimated execution time length corresponding to the current test task, arranging corresponding target test equipment, target test personnel and target test time period for the current test task to be arranged.
Judging whether the task to be tested and the screened test task are arranged to be completed or not. If yes, the task to be tested and the screened test task are arranged to be completed. And if not, returning to execute the operation of determining the current test task to be arranged from the tasks to be tested and the screened test tasks according to the execution sequence.
By the above example, the execution plan for the task to be tested can be arranged under the condition that the execution sequence exists between the task to be tested and the arranged test tasks in the arranged test plan, and the execution plan of each test task is more compact and more efficient on the basis of ensuring that the arranged task to be tested accords with the execution sequence.
In one embodiment of the present disclosure, when there is a demand for execution time for a task to be tested, it is desirable in one example to schedule execution as soon as possible, i.e., immediately or within a specified time frame, such as within a few minutes. In another example, the requirement of the execution time is a specified predicted start time, for example, the task to be tested needs to start executing after 2 minutes, and the execution plan may be arranged for the task to be tested according to the scheme of the present embodiment. When there is no limitation on the execution time, execution plans may be arranged for tasks to be tested according to the schemes of the above-described embodiments and related examples.
First, the device current status of each of the selectable test devices may be determined based on the real-time status information of each of the selectable test devices. The device current state may include an active state and an idle state. The personnel current status of each of the selectable test personnel may then be determined. And according to the current state of the equipment, the current state of the personnel and the estimated execution time length, arranging corresponding target test equipment, target test personnel and target test time periods for the test tasks to be arranged.
In one example, a first device under test, the current state of which is idle, may be selected from among the selectable test devices according to real-time state information of each available test device, the selected first device under test being a currently available device.
And determining the first to-be-selected test equipment with the idle time of the current equipment not less than the estimated execution time as the target test equipment corresponding to the to-be-tested task arrangement. And determining the testers with the idle time of the current personnel not less than the estimated execution time as the target testers corresponding to the task arrangement to be tested. The time period corresponding to the current time as a starting point and the time length as the estimated execution time length can be determined to be the target test time corresponding to the task to be tested.
In another example, when the current state of the device is an operational state, the current state of the device may further include a test progress in the operational state, which may be a real-time progress. The test progress may be expressed in terms of a percentage, for example, 90% of the test progress, indicating that the test is completed quickly. The test progress of 100% indicates that the test has been completed.
In this example, first, a second test device to be selected from among the selectable test devices, whose time required for the test to end matches the estimated start time of the task to be tested, may be selected. The time required for ending the test can be determined according to the test progress, and the slower the test progress is, the longer the time required for ending the test is; the faster the test progress, the less time is required for the test to end. The time required for the test to end is the time for executing the remaining progress.
The predicted starting time of the test task to be scheduled may be a preset time, which is spaced apart from the current time by a duration. For example, the current time is 12 points, and the estimated start time is 12:02, the predicted start time is 2 minutes from the current time.
In one example, the time required for the test to end and the estimated starting time of the task to be tested may be equal to each other and determined to match. In another example, the test end required time may be determined to match the predicted start time of the task to be tested when the test end required time is less than the predicted start time of the task to be tested and the time difference between the test end required time and the predicted start time is within a specified range. For example, the specified range may be 30 seconds or 1 minute.
After screening the second to-be-selected test equipment, the second to-be-selected test equipment with the equipment idle time after the test is finished not less than the estimated execution duration can be determined to be the target test equipment corresponding to the to-be-tested task arrangement. The device idle time after the test of each second test device to be selected is the device idle time starting from the current time when the test is ended. The device idle time may be derived from the populated test plan.
In addition, the tester with the idle time of the tester not less than the estimated execution time after the test is finished can be determined to be the target tester corresponding to the task arrangement to be tested. And determining a time period corresponding to the estimated execution time length by taking the time after the test is finished as a starting point and the time length as an estimated execution time length as a target test time corresponding to the task to be tested.
Fig. 5 shows a block diagram of one example of an apparatus for controlling a test task (hereinafter referred to as a test task control apparatus 500) provided according to the present disclosure.
The test task control device 500 may be applied to a central control apparatus of a laboratory, and the test task control device 500 may include: a task acquisition unit 510, a state acquisition unit 520, and a transmission unit 530.
The task obtaining unit 510 may be configured to obtain, in response to obtaining sample information of a sample to be tested, a task to be tested of the sample to be tested from the task management system according to the sample information, where the task to be tested includes task lists, and each task list includes available test equipment, available test personnel, and estimated execution time.
The state acquisition unit 520 may be configured to acquire real-time state information of each available test device according to the available test devices in the task to be tested.
The sending unit 530 may be configured to send the real-time status information and the task to be tested to the task scheduling device, so that the task scheduling device schedules the task to be tested according to the real-time status information to obtain a plan to be executed corresponding to the task to be tested. The plan to be executed includes a target test device for executing the task to be tested, a target tester, and a target test time.
In one example, the task list may also include test task names and specified requirements. The transmitting unit 530 may be further configured to: writing test task names, available test equipment, available testers, estimated execution time length, specified requirements and real-time state information which are included in a task list into corresponding fields according to each field in a specified data structure of task scheduling equipment to obtain structured data containing information of each field, wherein each field in the specified data structure corresponds to one information type; and sending the structured data to the task scheduling device.
In one example, the transmitting unit 530 may be further configured to: when the sample to be tested comprises a plurality of samples, merging the tasks to be tested corresponding to the samples; and sending the combined task to be tested and the real-time state information to the task scheduling equipment. May also be configured to: merging tasks to be tested corresponding to a plurality of samples for executing the same test task; and/or merging the tasks to be tested corresponding to the samples, which are needed to be sequentially executed by the test tasks.
In one example, the task under test includes a plurality of subtest tasks, each subtest task corresponding to a task list, each task list including available test equipment, available testers, and estimated execution time for the corresponding subtest task. The test task control device 500 may further comprise a task ordering unit, which may be configured to: and sequencing the plurality of subtest tasks according to the preset execution sequence of the plurality of subtest tasks. The transmitting unit 530 may be further configured to: and sending the real-time state information and the tasks to be tested comprising the sequenced plurality of subtest tasks to the task scheduling equipment.
In one example, the test task control device 500 may further include a plan execution unit, which may be configured to: in response to obtaining the to-be-executed plan from the task scheduling device, the to-be-executed plan is sent to the target test device and/or the target tester to enable the target test device and/or the target tester to execute the to-be-tested task according to the to-be-executed plan.
In one example, the plan execution unit may be further configured to: in response to obtaining a to-be-executed plan from task scheduling equipment, determining a to-be-tested sample, a target tester and target testing equipment required by a to-be-tested task according to the to-be-executed plan when the current time reaches the target testing time; transmitting a test task execution instruction to target test equipment and/or target test personnel so as to enable the target test equipment and/or the target test personnel to execute a task to be tested on a sample to be tested, wherein the test task execution instruction comprises sample information of the sample to be tested; and obtaining a test result from the target test equipment to obtain a test conclusion according to the test result and the corresponding evaluation index.
In one example, the plan execution unit may be further configured to: collecting sample information corresponding to a sample to be tested, equipment information of target test equipment and personnel information of target test personnel; respectively matching the acquired sample information, equipment information and personnel information with task information in a plan to be executed; and when the test sample is matched, determining the sample to be tested, target test equipment and target test personnel for executing the task to be tested.
In one example, the state acquisition unit 520 may be further configured to: receiving real-time state information sent by each available test device in response to the real-time state information request; or acquiring real-time state information of each available test device from the test device state library, wherein each test device stores the respective real-time state information into the test device state library according to the designated time.
Embodiments of a method and apparatus for controlling a test task according to the present disclosure are described above with reference to fig. 1 through 5.
The apparatus for controlling a test task of the present disclosure may be implemented in hardware, or may be implemented in software or a combination of hardware and software. Taking software implementation as an example, the device in a logic sense is formed by reading corresponding computer program instructions in a memory into a memory by a processor of a device where the device is located. In the present disclosure, the means for controlling the test tasks may be implemented with an electronic device, for example.
Fig. 6 shows a block diagram of an electronic device 600 of the present disclosure for implementing the test task control method described above.
As shown in fig. 6, electronic device 600 may include at least one processor 610, memory (e.g., non-volatile memory) 620, memory 630, and communication interface 640, and at least one processor 610, memory 620, memory 630, and communication interface 640 are connected together via bus 650. The at least one processor 610 executes at least one computer-readable instruction (i.e., the elements described above as being implemented in software) stored or encoded in memory.
In one embodiment, computer-executable instructions are stored in memory that, when executed, cause the at least one processor 610 to: responding to sample information of a sample to be tested, and acquiring a task to be tested of the sample to be tested from a task management system according to the sample information, wherein the task to be tested comprises task lists, and each task list comprises available test equipment, available test personnel and estimated execution time; acquiring real-time state information of each available test device according to the available test devices in the task to be tested; and sending the real-time state information and the task to be tested to task scheduling equipment so that the task scheduling equipment schedules the task to be tested according to the real-time state information to obtain a plan to be executed corresponding to the task to be tested, wherein the plan to be executed comprises target test equipment, target test personnel and target test time for executing the task to be tested.
It should be appreciated that the computer-executable instructions stored in the memory, when executed, cause the at least one processor 610 to perform the various operations and functions described above in connection with fig. 1-5 in various embodiments of the present specification.
According to one embodiment, a program product, such as a machine-readable medium, is provided. The machine-readable medium may have instructions (i.e., elements described above implemented in software) that, when executed by a machine, cause the machine to perform the various operations and functions described above in connection with fig. 1-5 in various embodiments of the specification.
In particular, a system or apparatus provided with a readable storage medium having stored thereon software program code implementing the functions of any of the above embodiments may be provided, and a computer or processor of the system or apparatus may be caused to read out and execute instructions stored in the readable storage medium.
In this case, the program code itself read from the readable medium may implement the functions of any of the above-described embodiments, and thus the machine-readable code and the readable storage medium storing the machine-readable code form part of the present invention.
Computer program code required for operation of portions of the present description may be written in any one or more programming languages, including an object oriented programming language such as Java, scala, smalltalk, eiffel, JADE, emerald, C ++, c#, VB, NET, python and the like, a conventional programming language such as C language, visual Basic 2003, perl, COBOL 2002, PHP and ABAP, a dynamic programming language such as Python, ruby and Groovy, or other programming languages and the like. The program code may execute on the user's computer or as a stand-alone software package, or it may execute partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any form of network, such as 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), or the connection may be made to the cloud computing environment, or for use as a service, such as software as a service (SaaS).
Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-R, CD-RWs, DVD-ROMs, DVD-RAMs, DVD-RWs), magnetic tapes, nonvolatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or cloud by a communications network.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Not all steps or units in the above-mentioned flowcharts and system configuration diagrams are necessary, and some steps or units may be omitted according to actual needs. The order of execution of the steps is not fixed and may be determined as desired. The apparatus structures described in the above embodiments may be physical structures or logical structures, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities, or may be implemented jointly by some components in multiple independent devices.
The term "exemplary" used throughout this specification means "serving as an example, instance, or illustration," and does not mean "preferred" or "advantageous over other embodiments. The detailed description includes specific details for the purpose of providing an understanding of the described technology. However, the techniques may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form in order to avoid obscuring the concepts of the described embodiments.
The alternative implementation manner of the embodiment of the present disclosure has been described in detail above with reference to the accompanying drawings, but the embodiment of the present disclosure is not limited to the specific details of the foregoing implementation manner, and various simple modifications may be made to the technical solution of the embodiment of the present disclosure within the scope of the technical concept of the embodiment of the present disclosure, and all the simple modifications belong to the protection scope of the embodiment of the present disclosure.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method for controlling a test task, performed by a central control device, the method comprising:
responding to sample information of a sample to be tested, and acquiring a task to be tested of the sample to be tested from a task management system according to the sample information, wherein the task to be tested comprises task lists, and each task list comprises available test equipment, available test personnel and estimated execution time;
acquiring real-time state information of each available test device according to the available test devices in the task to be tested, wherein each available test device responds to a real-time state information request sent by the central control device and feeds back the respective real-time state information to the central control device, or each test device stores the respective real-time state information to a test device state library according to the designated time; and
sending the real-time state information and the task to be tested to task scheduling equipment so that the task scheduling equipment schedules the task to be tested according to the real-time state information to obtain a plan to be executed corresponding to the task to be tested, wherein the plan to be executed comprises target test equipment, target test personnel and target test time for executing the task to be tested,
Wherein the optional test equipment according to which the task scheduling equipment executes the scheduling processing comprises a plurality of test equipment, and comprises a plurality of types of equipment, the test equipment of the same type provided for the test task comprises a plurality of test equipment,
determining the scheduled total execution duration corresponding to each alternative device according to the scheduled test plan for a plurality of alternative devices belonging to the same type of alternative test device; screening target alternative devices from the alternative devices according to the total execution time length of each alternative device, wherein the total execution time length of the target alternative devices is smaller than the total execution time length corresponding to other alternative devices; determining a device idle time of a target candidate device as an alternative test device, the target candidate device being arranged to perform a task of testing to be excluded,
after determining the device idle time of each of the selectable test devices, the task scheduler determines the personnel idle time of each of the selectable test persons based on the tester information and the ranked test plans,
screening a tester in an on-duty state according to the on-duty time information in the tester information, wherein the tester is a person scheduled with a test task; determining the personnel idle time of each screened optional tester,
After determining the personnel idle time of each optional tester, the task scheduling device schedules corresponding target test equipment, target test personnel and target test time for the task to be tested according to the real-time state information of each available test equipment, the equipment idle time, the personnel idle time and the estimated execution time length,
screening the optional test equipment in an idle state from the optional test equipment; cross-comparing the screened equipment idle time of each optional test equipment with the personnel idle time of each optional test personnel to screen out a first time period in which the equipment idle time and the personnel idle time coincide; further screening from the screened first time periods according to the estimated execution time length of the task to be tested to obtain second time periods with continuous time length not smaller than the estimated execution time length, wherein each obtained second time period meets the requirements of the task to be tested; and determining target test time from each obtained second time period, and determining corresponding target testers and target test equipment according to the target test time period.
2. The method of claim 1, wherein the task list further includes test task names and specified requirements,
The sending the real-time status information and the task to be tested to the task scheduling device comprises:
writing test task names, available test equipment, available testers, estimated execution time, specified requirements and the real-time state information which are included in the task list into corresponding fields according to each field in a specified data structure of the task scheduling equipment to obtain structured data containing information of each field, wherein each field in the specified data structure corresponds to one information type; and
and sending the structured data to the task scheduling equipment.
3. The method of claim 2, wherein one field in the specified data structure is used to store available test equipment and real-time status information, the field comprising a number of rows and two columns, one column being used to store available test equipment and the other column being used to store real-time status information, the available test equipment stored in the field being in one-to-one correspondence with the real-time status information.
4. The method of claim 1, wherein transmitting the real-time status information and the task to be tested to the task scheduling device comprises:
when the sample to be tested comprises a plurality of samples, merging the tasks to be tested corresponding to the samples; and
The combined task to be tested and the real-time state information are sent to the task scheduling equipment;
the merging processing of the tasks to be tested corresponding to the plurality of samples comprises the following steps:
merging tasks to be tested corresponding to a plurality of samples for executing the same test task; and/or the number of the groups of groups,
and merging the tasks to be tested corresponding to the samples, which are needed to be sequentially executed, of the test tasks.
5. The method of claim 1, wherein the task under test comprises a plurality of subtest tasks, each subtest task corresponding to a task list, each task list comprising available test equipment, available testers, and estimated execution time for the corresponding subtest task,
the method further comprises the steps of:
sequencing the plurality of subtest tasks according to a preset execution sequence of the plurality of subtest tasks; and
the step of sending the real-time state information and the task to be tested to a task scheduling device comprises the following steps:
and sending the real-time state information and the tasks to be tested comprising the sequenced plurality of subtest tasks to task scheduling equipment.
6. The method of claim 1, further comprising:
in response to acquiring the to-be-executed plan from the task scheduling device, the to-be-executed plan is sent to the target testing device and/or the target tester so that the target testing device and/or the target tester execute the to-be-tested task according to the to-be-executed plan.
7. The method of claim 6, wherein transmitting the plan to be executed to the target test device and/or the target tester in response to obtaining the plan to be executed from the task scheduling device comprises:
in response to the task scheduling device acquiring the to-be-executed plan, determining the to-be-tested sample, the target tester and the target testing device required by the to-be-tested task according to the to-be-executed plan when the current time reaches the target testing time;
transmitting a test task execution instruction to the target test equipment and/or the target test personnel so that the target test equipment and/or the target test personnel execute the task to be tested on the sample to be tested, wherein the test task execution instruction comprises sample information of the sample to be tested; and
and obtaining a test result from the target test equipment so as to obtain a test conclusion according to the test result and the corresponding evaluation index.
8. The method of claim 7, wherein determining the sample under test, the target tester, and the target test device required for the task under test according to the plan under test comprises:
Collecting sample information corresponding to the sample to be tested, equipment information of the target test equipment and personnel information of the target test personnel;
respectively matching the acquired sample information, equipment information and personnel information with task information in the plan to be executed; and
and when the test results are matched, determining the sample to be tested, the target test equipment and the target tester for executing the task to be tested.
9. The method of claim 1, further comprising:
acquiring identification code information corresponding to an identification code on a sample container filled with the sample to be tested, wherein the identification code information comprises a production line identification and a sampling point identification on the production line; and
and determining corresponding sample information from a sample information management system according to the production line identification and the sampling point identification.
10. An apparatus for controlling a test task, applied to a central control device, the apparatus comprising:
the task acquisition unit is used for responding to sample information of a sample to be tested, acquiring a task to be tested of the sample to be tested from a task management system according to the sample information, wherein the task to be tested comprises task lists, and each task list comprises available test equipment, available test personnel and estimated execution time;
The state acquisition unit acquires real-time state information of each available test device according to the available test device in the task to be tested, wherein each available test device responds to a real-time state information request sent by the central control device and feeds back the respective real-time state information to the central control device, or each test device stores the respective real-time state information to a test device state library according to the designated time; and
a sending unit for sending the real-time state information and the task to be tested to task scheduling equipment so that the task scheduling equipment schedules the task to be tested according to the real-time state information to obtain a plan to be executed corresponding to the task to be tested, wherein the plan to be executed comprises target test equipment, target test personnel and target test time for executing the task to be tested,
wherein the optional test equipment according to which the task scheduling equipment executes the scheduling processing comprises a plurality of test equipment, and comprises a plurality of types of equipment, the test equipment of the same type provided for the test task comprises a plurality of test equipment,
determining the scheduled total execution duration corresponding to each alternative device according to the scheduled test plan for a plurality of alternative devices belonging to the same type of alternative test device; screening target alternative devices from the alternative devices according to the total execution time length of each alternative device, wherein the total execution time length of the target alternative devices is smaller than the total execution time length corresponding to other alternative devices; determining a device idle time of a target candidate device as an alternative test device, the target candidate device being arranged to perform a task of testing to be excluded,
After determining the device idle time of each of the selectable test devices, the task scheduler determines the personnel idle time of each of the selectable test persons based on the tester information and the ranked test plans,
screening a tester in an on-duty state according to the on-duty time information in the tester information, wherein the tester is a person scheduled with a test task; determining the personnel idle time of each screened optional tester,
after determining the personnel idle time of each optional tester, the task scheduling device schedules corresponding target test equipment, target test personnel and target test time for the task to be tested according to the real-time state information of each available test equipment, the equipment idle time, the personnel idle time and the estimated execution time length,
screening the optional test equipment in an idle state from the optional test equipment; cross-comparing the screened equipment idle time of each optional test equipment with the personnel idle time of each optional test personnel to screen out a first time period in which the equipment idle time and the personnel idle time coincide; further screening from the screened first time periods according to the estimated execution time length of the task to be tested to obtain second time periods with continuous time length not smaller than the estimated execution time length, wherein each obtained second time period meets the requirements of the task to be tested; and determining target test time from each obtained second time period, and determining corresponding target testers and target test equipment according to the target test time period.
11. An electronic device, comprising: at least one processor, a memory coupled with the at least one processor, and a computer program stored on the memory, the at least one processor executing the computer program to implement the method of any of claims 1-9.
12. A computer readable storage medium storing a computer program which, when executed by a processor, implements the method of any of claims 1-9.
CN202310426436.6A 2023-04-19 2023-04-19 Method and device for controlling test tasks Active CN116466683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310426436.6A CN116466683B (en) 2023-04-19 2023-04-19 Method and device for controlling test tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310426436.6A CN116466683B (en) 2023-04-19 2023-04-19 Method and device for controlling test tasks

Publications (2)

Publication Number Publication Date
CN116466683A CN116466683A (en) 2023-07-21
CN116466683B true CN116466683B (en) 2023-12-12

Family

ID=87173047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310426436.6A Active CN116466683B (en) 2023-04-19 2023-04-19 Method and device for controlling test tasks

Country Status (1)

Country Link
CN (1) CN116466683B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016018402A (en) * 2014-07-08 2016-02-01 富士通株式会社 Sample test support method, sample test support system, and sample test support program
CN112578134A (en) * 2019-09-30 2021-03-30 深圳迈瑞生物医疗电子股份有限公司 Sample analysis system and control method thereof
CN112798800A (en) * 2019-11-13 2021-05-14 深圳迈瑞生物医疗电子股份有限公司 Sample analysis system and sample planning method thereof
CN113125767A (en) * 2019-12-31 2021-07-16 科美诊断技术股份有限公司 Method and device for adding sample test items
CN114296903A (en) * 2021-12-30 2022-04-08 精匠诊断技术(江苏)有限公司 Dynamic scheduling method and system for assembly line, electronic equipment and medium
CN114694809A (en) * 2020-12-31 2022-07-01 科美诊断技术股份有限公司 Test task obtaining method and device, electronic equipment and storage medium
CN114694810A (en) * 2020-12-31 2022-07-01 科美诊断技术股份有限公司 Test task ordering method and device, electronic equipment and storage medium
CN114689888A (en) * 2020-12-31 2022-07-01 科美诊断技术股份有限公司 Batch testing method and device and sample analyzer
CN115860731A (en) * 2023-03-02 2023-03-28 巴斯夫一体化基地(广东)有限公司 Method and device for maintenance in chemical production process

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016018402A (en) * 2014-07-08 2016-02-01 富士通株式会社 Sample test support method, sample test support system, and sample test support program
CN112578134A (en) * 2019-09-30 2021-03-30 深圳迈瑞生物医疗电子股份有限公司 Sample analysis system and control method thereof
CN112798800A (en) * 2019-11-13 2021-05-14 深圳迈瑞生物医疗电子股份有限公司 Sample analysis system and sample planning method thereof
CN113125767A (en) * 2019-12-31 2021-07-16 科美诊断技术股份有限公司 Method and device for adding sample test items
CN114694809A (en) * 2020-12-31 2022-07-01 科美诊断技术股份有限公司 Test task obtaining method and device, electronic equipment and storage medium
CN114694810A (en) * 2020-12-31 2022-07-01 科美诊断技术股份有限公司 Test task ordering method and device, electronic equipment and storage medium
CN114689888A (en) * 2020-12-31 2022-07-01 科美诊断技术股份有限公司 Batch testing method and device and sample analyzer
CN114296903A (en) * 2021-12-30 2022-04-08 精匠诊断技术(江苏)有限公司 Dynamic scheduling method and system for assembly line, electronic equipment and medium
CN115860731A (en) * 2023-03-02 2023-03-28 巴斯夫一体化基地(广东)有限公司 Method and device for maintenance in chemical production process

Also Published As

Publication number Publication date
CN116466683A (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN109543992B (en) Intelligent inspection method and device, intelligent terminal and server
US11068817B2 (en) Artificial intelligence and machine learning based project management assistance
CN108959059B (en) Test method and test platform
US20150379065A1 (en) Database server storing plurality of versions of data, and database management method
JP2009289134A (en) Work analyzer, production management method and production management system
CN110232546B (en) Distributed cell intelligent laboratory management system
CN108701268A (en) Upkeep operation manages system
US20090299789A1 (en) Method, System And Computer Program Product For Analyzing Maintenance Operations And Assessing The Readiness Of Repairable Systems
CN111510468B (en) Scheduling method and device of computing task, server and computing system
CN103903312B (en) The execution method and apparatus of automatic detecting
CN115238828A (en) Chromatograph fault monitoring method and device
Spratt et al. Analysis of uncertainty in the surgical department: Durations, requests and cancellations
CN116466683B (en) Method and device for controlling test tasks
CN116449032B (en) Method and system for laboratory processing of product samples on a production line
US7225106B2 (en) Data processing system and method for processing test orders
Jørgensen et al. Identifying the potential of changes to blood sample logistics using simulation
CN116822886A (en) Customer service scheduling method, device, equipment and medium
CN116187715B (en) Method and device for scheduling execution of test tasks
CN112729319B (en) Automatic data acquisition and analysis system and method
US20220101061A1 (en) Automatically identifying and generating machine learning prediction models for data input fields
CN110850955B (en) Terminal position information processing method and device, computing equipment and storage medium
JP6716641B2 (en) Task management support system, task management support method, and task management support program
CN113850534A (en) Plan management method, system, readable storage medium and computer device
CN219266987U (en) Test planning system
CN116168116B (en) Method and device for visually displaying test execution plan

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
GR01 Patent grant
GR01 Patent grant