[go: up one dir, main page]

CN107239331B - A Synchronous Trigger Execution Method for Parallel Test Tasks - Google Patents

A Synchronous Trigger Execution Method for Parallel Test Tasks Download PDF

Info

Publication number
CN107239331B
CN107239331B CN201710365815.3A CN201710365815A CN107239331B CN 107239331 B CN107239331 B CN 107239331B CN 201710365815 A CN201710365815 A CN 201710365815A CN 107239331 B CN107239331 B CN 107239331B
Authority
CN
China
Prior art keywords
test
trigger
uut
test task
task
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
CN201710365815.3A
Other languages
Chinese (zh)
Other versions
CN107239331A (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.)
CETC 41 Research Institute
Original Assignee
CETC 41 Research Institute
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 CETC 41 Research Institute filed Critical CETC 41 Research Institute
Priority to CN201710365815.3A priority Critical patent/CN107239331B/en
Publication of CN107239331A publication Critical patent/CN107239331A/en
Application granted granted Critical
Publication of CN107239331B publication Critical patent/CN107239331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本发明公开了一种并行测试任务的同步触发执行方法,属于测试测量技术领域。本发明所提出的并行测试任务的同步触发执行方法,基于同步触发器搭建各个待测件(Unit Under Test,UUT)测试任务的测试过程控制机制,利用触发器属性参数设置和功能函数调用来完成测试过程控制选项的预先调整与设置,当用户通过测试任务操作界面来启动UUT测试任务时,可立刻执行所注册的所有UUT测试任务应用程序;本发明具有UUT测试任务的执行时间延迟稳定可设且不受UUT并行测试数目影响的优点,尤其适用于要求各个UUT测试任务“同时执行”的需求场景。

The invention discloses a synchronous trigger execution method for parallel test tasks, which belongs to the technical field of test and measurement. The synchronous trigger execution method of the parallel test task proposed by the present invention is based on the synchronous trigger to build the test process control mechanism of each unit under test (Unit Under Test, UUT) test task, which is completed by using the trigger attribute parameter setting and function function call The pre-adjustment and setting of the test process control options, when the user starts the UUT test task through the test task operation interface, all the registered UUT test task application programs can be executed immediately; And the advantage of not being affected by the number of UUT parallel tests is especially applicable to the demand scenario that requires "simultaneous execution" of each UUT test task.

Description

一种并行测试任务的同步触发执行方法A Synchronous Trigger Execution Method for Parallel Test Tasks

技术领域technical field

本发明属于测试测量技术领域,具体涉及一种并行测试任务的同步触发执行方法。The invention belongs to the technical field of test and measurement, and in particular relates to a synchronous trigger execution method of parallel test tasks.

背景技术Background technique

近年来,并行测试技术在测试测量领域备受关注且得到了越来越广泛的应用。以半导体测试行业所采用并行测试技术为例,目前配套自动测试设备(Automatic TestEquipment,ATE)/系统(Automatic Test System,ATS)通常利用测试夹具一次装载一批待测件,并发执行这些UUT测试任务(线程或进程)。这些ATE/ATS有效提高了测试效率与测试吞吐率。但是,由于所采用并行测试环境主要是单处理器非实时操作系统(如Windows),因而难以实现严格意思上的同一时刻执行多个UUT测试任务,只是极短时间间隔内的多线程/多进程并发处理。一般做法如图1所示,整体上,操作用户首先通过测试任务操作界面依次启动各个UUT测试任务,然后各个UUT测试任务独立并发执行,相互之间无影响,轮流占用处理器时间与仪表设备资源;局部上看,单个UUT测试任务按次序调整测试基本信息、执行各个预定测试动作(包括测试状态设置、信号激励、信号测量、数据采集、存储记录、报表生成…)直到所有测试动作执行完毕后,视条件换下一个UUT继续进行处理,如此循环反复直到完成所有UUT的批量测试。归纳起来,可以说是“整体并行化异步并发执行、局部串行化顺序处理”。显然,目前这种执行处理方式存在不足:各个UUT测试任务从执行启动到执行就绪之间存在逐渐增加的不确定时间延迟,这种时延随着UUT测试任务并发数目的增加越发明显,因而无法适用于多个UUT测试任务要求“同时执行”的时间敏感场景需求。In recent years, parallel testing technology has attracted much attention in the field of test and measurement and has been more and more widely used. Taking the parallel testing technology adopted in the semiconductor testing industry as an example, the current automatic test equipment (Automatic Test Equipment, ATE)/system (Automatic Test System, ATS) usually uses a test fixture to load a batch of DUTs at a time, and execute these UUT test tasks concurrently (thread or process). These ATE/ATS effectively improve test efficiency and test throughput. However, since the parallel test environment used is mainly a single-processor non-real-time operating system (such as Windows), it is difficult to implement multiple UUT test tasks at the same time in a strict sense, only multi-thread/multi-process within a very short time interval Concurrent processing. The general approach is shown in Figure 1. On the whole, the operating user first starts each UUT test task sequentially through the test task operation interface, and then each UUT test task is executed independently and concurrently without affecting each other, taking up processor time and instrumentation equipment resources in turn. ; Partially, a single UUT test task adjusts the basic information of the test in order and executes various predetermined test actions (including test state setting, signal excitation, signal measurement, data collection, storage records, report generation...) until all test actions are executed , depending on the conditions, replace the next UUT to continue processing, and repeat this cycle until the batch testing of all UUTs is completed. To sum up, it can be said that it is "asynchronous and concurrent execution with overall parallelization, and sequential processing with partial serialization". Obviously, there are deficiencies in the current execution processing method: there is a gradually increasing uncertain time delay between each UUT test task from execution start to execution readiness, and this delay becomes more and more obvious as the number of concurrent UUT test tasks increases, so it cannot Applicable to time-sensitive scenario requirements where multiple UUT test tasks require "simultaneous execution".

并行测试技术是为了解决串行顺序测试技术测试效率低、资源利用率低的问题而提出的。传统的串行顺序测试在同一个时刻或同一时间间隔内只能对一个UUT测试任务进行处理,而并行测试技术则能够“同时执行”多个UUT测试任务。这不仅能够提高测试效率、缩短测试时间,而且可以减少各个测试资源的空闲等待状态时间,让多个UUT共享有限且宝贵的测试资源,有效节约测试成本。目前,并行测试技术的应用主要集中在半导体生产测试、软件测试、通讯产品协议一致性测试与装备维修检测等领域。国内对并行测试技术的研究方兴未艾,相关研究成果主要集中在并行测试系统的体系结构、系统模型与任务调度等方面,尚未形成系统理论。Parallel test technology is proposed to solve the problems of low test efficiency and low resource utilization of serial sequential test technology. The traditional serial sequential test can only process one UUT test task at the same time or at the same time interval, while the parallel test technology can "execute" multiple UUT test tasks at the same time. This can not only improve test efficiency and shorten test time, but also reduce the idle waiting state time of each test resource, allowing multiple UUTs to share limited and valuable test resources, effectively saving test costs. At present, the application of parallel test technology is mainly concentrated in the fields of semiconductor production test, software test, communication product protocol conformance test and equipment maintenance test. Domestic research on parallel testing technology is in the ascendant, and relevant research results mainly focus on the architecture, system model and task scheduling of parallel testing systems, and the system theory has not yet been formed.

2.1.1并行测试系统的概念2.1.1 The concept of parallel test system

传统的自动测试系统采用的测试方法是基于串行概念的顺序测试(SequenceTest),其基本思路如图2所示。当对一个UUT进行测试任务执行时,其测试动作按预先顺序进行处理,一直到其所有动作处理完毕后,才能够开始处理后续的UUT测试任务。若存在多个UUT测试任务执行时,则是按照预先设定的顺序依次进行处理,即一个UUT测试任务处理完毕才开始执行下一个UUT测试任务。The test method adopted by the traditional automatic test system is the sequential test (SequenceTest) based on the serial concept, and its basic idea is shown in Figure 2. When a test task is executed for a UUT, its test actions are processed in advance order, and the subsequent UUT test task cannot be processed until all the actions are processed. If there are multiple UUT test tasks to be executed, they will be processed sequentially according to the preset order, that is, the next UUT test task will be executed only after one UUT test task is processed.

下面给出区别于传统顺序测试的并行测试系统概念。The concept of parallel test system which is different from traditional sequential test is given below.

定义1.1并行测试系统:测试系统处理器在同一时间间隔内按照一定的调度策略将输入系统存储设备中多个测试对象的测试任务序列有效并行处理,测试系统在同一时间段内可运行多项测试任务。测试任务序列划分的依据是考虑任务之间的数据无关、资源无关和控制无关等因素。并行测试系统是在传统串行测试系统的基础上通过资源的整合和软件运行模式的改变演化而来的。Definition 1.1 Parallel test system: The processor of the test system processes the test task sequences of multiple test objects input into the system storage device in parallel according to a certain scheduling strategy within the same time interval, and the test system can run multiple tests in the same time period Task. The basis of test task sequence division is to consider factors such as data-independent, resource-independent and control-independent among tasks. Parallel test system is evolved on the basis of traditional serial test system through the integration of resources and the change of software operation mode.

目前,并行测试系统的架构按照所使用处理器数目可划分为单处理器并行测试结构和多处理器并行测试结构。其中,多处理器并行测试结构具有两个以上的处理器,通过高速通讯总线、共享存储空间或输入/输出系统进行测试,对软硬件资源均有较高的要求。按多处理器之间的关系分为分布式处理结构和主从处理结构两类。分布式并行测试结构中的每台计算机均可独立高效地执行测试任务,并通过高速网络来实现测试同步和资源共享;主从处理器结构则是利用处于从属地位且功能单一的从处理器来分担主处理器的部分工作,以减轻主处理器的负担、提高测试效率。单处理器并行测试结构则是通过对不同测试任务的调度来分配单个处理器处理任务的时间从而实现并行测试。其中的测试任务以多个线程(Multiple Threads)或多个进程(Multiple Processes)的形式存在,通过中央处理器(Central Processing Unit,CPU)处理器在线程或进程间的切换来完成测试执行处理。两者比较而言,多处理器并行测试结构对系统的硬件要求较高、结构复杂,单处理器并行测试结构的硬件要求较低、结构简单。因而,普遍适用且能有效降低测试成本的还是单处理器并行测试结构。At present, the architecture of the parallel test system can be divided into a single-processor parallel test structure and a multi-processor parallel test structure according to the number of processors used. Among them, the multi-processor parallel test structure has more than two processors, and the test is performed through a high-speed communication bus, a shared storage space or an input/output system, which has higher requirements on software and hardware resources. According to the relationship between multiprocessors, it can be divided into two types: distributed processing structure and master-slave processing structure. Each computer in the distributed parallel test structure can independently and efficiently perform test tasks, and realize test synchronization and resource sharing through a high-speed network; the master-slave processor structure uses a slave processor with a single function in a slave position to Part of the work of the main processor is shared to reduce the burden of the main processor and improve test efficiency. The single-processor parallel test structure is to allocate the time for a single processor to process tasks through the scheduling of different test tasks to achieve parallel testing. The test task exists in the form of multiple threads (Multiple Threads) or multiple processes (Multiple Processes), and the test execution process is completed by switching between threads or processes of a central processing unit (Central Processing Unit, CPU). Comparing the two, the multi-processor parallel test structure has higher requirements on the system hardware and complex structure, while the single-processor parallel test structure has lower hardware requirements and simple structure. Therefore, the single-processor parallel test structure is generally applicable and can effectively reduce the test cost.

2.1.2并行测试技术的优势2.1.2 Advantages of Parallel Testing Technology

并行测试技术通过对测试资源的优化利用,大大提高了测试吞吐率、提高了测试资源利用率、缩减了测试时间,进而有效节约了测试成本。主要表现为:By optimizing the utilization of test resources, the parallel test technology greatly improves the test throughput, improves the utilization rate of test resources, reduces the test time, and effectively saves the test cost. The main manifestations are:

提高测试吞吐率。并行测试系统通过多种方式实现测试资源的动态分配与优化调度,能够在同一时间内并发地执行多个UUT测试任务。从批量测试的角度看来,通过增加单位时间内UUT的数量就能够提高整个测试系统的效率。测试系统的效率越高,对测试吞吐率的提高程度就越高。Improve test throughput. The parallel test system realizes the dynamic allocation and optimal scheduling of test resources in various ways, and can execute multiple UUT test tasks concurrently at the same time. From the perspective of batch testing, the efficiency of the entire testing system can be improved by increasing the number of UUTs per unit time. The higher the efficiency of the test system, the higher the improvement in test throughput.

提高测试资源利用率。并行测试对测试资源利用率的提高主要包括两点,一是尽量使测试资源处于工作状态,二是使测试资源得到充分的利用。并行测试任务不断地运行,申请测试资源地使用,测试资源一旦闲置就再次被新的测试任务申请使用。在理想情况下,整个测试过程中测试资源一直处于工作状态,即测试资源在整个测试的过程中一直处于非空闲状态。Improve test resource utilization. The improvement of the utilization rate of test resources by parallel testing mainly includes two points, one is to keep the test resources in working state as much as possible, and the other is to make full use of the test resources. Parallel test tasks run continuously to apply for the use of test resources. Once the test resources are idle, they will be applied for by new test tasks again. Ideally, the test resources are always in a working state during the entire test process, that is, the test resources are always in a non-idle state during the entire test process.

缩减测试时间。据统计,采用顺序测试方式时,处理器约80%的时间处于空闲状态。以美国NI(National Instruments)公司测试管理软件TestStand的实验结果为例:在单处理器多线程并行条件下,利用TestStand软件运行同样的UUT测试任务序列,其并行测试模式下耗费时间比串行顺序模式下耗费时间缩减约33%。测试时间缩减效果比较明显。Reduce test time. According to statistics, when the sequential test method is adopted, the processor is idle for about 80% of the time. Take the experimental results of TestStand, the test management software of NI (National Instruments) in the United States as an example: under the condition of single-processor multi-thread parallelism, using TestStand software to run the same UUT test task sequence, the time-consuming in parallel test mode is faster than that of serial sequence. The time spent in mode is reduced by about 33%. The test time reduction effect is more obvious.

2.2现有技术实现方案2.2 Existing Technology Implementation Scheme

2.2.1并行测试的实现方式2.2.1 Implementation of parallel testing

并行测试的实现方式主要有三种形式:第一种是针对多个UUT的并行测试,其任务调度的对象是各个UUT测试任务,每个UUT对应一个UUT测试任务;第二种是单个UUT上多个测试任务的并行测试,其任务调度的对象是同一个UUT的多个测试任务;第三种则是前面两种形式的结合,即调度对象是多个UUT的多个测试任务。鉴于这些不同规模的测试任务之间需要避免死锁、竞争和饥饿等问题,第一种形式显然实现起来最为简单直接,因而也被主流成熟并行测试软件所普遍采用。这些并行测试软件包括美国Nl公司TestStand、美国TYX公司的TestBase等,它们均提供了针对多个UUT的并行测试解决方案,以UUT为粒度单元进行任务调度。There are mainly three ways to implement parallel testing: the first is parallel testing for multiple UUTs, and the task scheduling object is each UUT test task, and each UUT corresponds to a UUT test task; the second is multiple UUT testing tasks on a single UUT. The parallel test of a test task, the task scheduling object is multiple test tasks of the same UUT; the third is the combination of the previous two forms, that is, the scheduling object is multiple test tasks of multiple UUTs. In view of the need to avoid problems such as deadlock, competition, and starvation among these test tasks of different scales, the first form is obviously the most simple and direct to implement, and is therefore generally adopted by mainstream mature parallel test software. These parallel testing software include TestStand of American Nl Company, TestBase of American TYX Company, etc., which all provide parallel testing solutions for multiple UUTs, and use UUT as a granular unit for task scheduling.

以美国Nl公司所提供的TestStand软件为例,TestStand采用基于单处理器多线程的并行测试结构,其任务调度采用系统软件设计中常用的基于优先级的抢占调度方法,要求一种UUT对应一个测试序列,可设置测试序列优先级,利用锁(Lock)对象来确保多UUT竞争时某个UUT对资源的独占性。TestStand的并行测试提供两种模型:批量过程模型(BatchProcess Model)和并行过程模型(Parallel Process Model),如图3所示。其中,批量过程模型中将多个UUT测试任务作为一组,确保该组中的多个UUT测试任务同时开始执行且等待处理同时结束。批量过程模型默认情况下不关心中间测试动作项,所有的UUT测试动作项在执行过程中是完全独立且并行的。比较而言,批量过程模型下UUT必须等待最慢的UUT测试任务完毕后才能算是测试结束,显然处于闲置状态的测试时间较长。批量过程模型较多应用于半导体生产测试领域;并行过程模型的应用较为普遍,该模型下各个UUT测试任务完全独立且互不影响。针对单个UUT而言,其测试执行是按顺序串行处理的,从启动测试直到所有测试动作执行完毕,之后视情况更换下一个UUT继续进行处理。理想状态下测试执行过程中不存在竞争、死锁等问题,可大幅度提高测试效率与测试吞吐率。Take the TestStand software provided by Nl Corporation of the United States as an example. TestStand adopts a parallel test structure based on single processor and multithreading. Its task scheduling adopts the priority-based preemptive scheduling method commonly used in system software design, requiring one UUT to correspond to one test. Sequence, the test sequence priority can be set, and the lock (Lock) object can be used to ensure the exclusiveness of a certain UUT to resources when multiple UUTs compete. TestStand's parallel testing provides two models: batch process model (BatchProcess Model) and parallel process model (Parallel Process Model), as shown in Figure 3. Among them, in the batch process model, a plurality of UUT test tasks are regarded as a group, and it is ensured that the plurality of UUT test tasks in the group start to execute at the same time and wait for the processing to end at the same time. By default, the batch process model does not care about intermediate test action items, and all UUT test action items are completely independent and parallel during execution. In comparison, under the batch process model, the UUT must wait for the slowest UUT test task to complete before the test can be considered as the end. Obviously, the test time in the idle state is longer. The batch process model is mostly used in the field of semiconductor production testing; the application of the parallel process model is more common, and each UUT test task under this model is completely independent and does not affect each other. For a single UUT, its test execution is serially processed in sequence, from the start of the test until all the test actions are executed, and then the next UUT is replaced as appropriate to continue processing. Ideally, there are no problems such as competition and deadlock during test execution, which can greatly improve test efficiency and test throughput.

综上所述,无论是批量过程模型,还是并发处理模型,由于并行测试系统中所采用并行测试环境主要是单处理器非实时操作系统(如Windows),加上仪表设备、测试接口装置等临界资源的约束限制,实际上目前的各种并行测试系统并没有真正实现“同时执行”多个UUT测试任务,而仅仅实现了固定时间间隔内的UUT测试任务并发执行处理。To sum up, whether it is a batch process model or a concurrent processing model, since the parallel test environment used in the parallel test system is mainly a single-processor non-real-time operating system (such as Windows), plus critical Due to resource constraints, in fact, the current parallel test systems do not really implement "simultaneous execution" of multiple UUT test tasks, but only implement concurrent execution and processing of UUT test tasks within a fixed time interval.

下面描述一下目前已有并行测试系统中的并行测试任务执行方法。The following describes the parallel test task execution method in the existing parallel test system.

2.2.2已有的并行测试任务执行方法2.2.2 Existing Parallel Test Task Execution Methods

目前已有的并行测试任务执行方法,主要侧重于利用成熟技术与货架软硬件资源进行综合集成,归纳起来可以说是“整体上并发执行、局部串行化顺序处理”。下面以应用较为普遍的TestStand软件并行过程模型(Parallel Process Model)为例加以说明:如图1所示,整体上,操作用户首先利用测试任务操作界面依次启动各个UUT测试任务,然后各个UUT测试任务独立并发执行,相互之间无影响,轮流占用处理器时间与仪表设备资源;局部上看,单个UUT测试任务按次序调整测试基本信息、执行各个预定测试动作(包括测试状态设置、信号激励、信号测量、数据采集、存储记录、报表生成…)直到所有测试动作执行完毕后,视用户操作条件换下一个UUT继续进行处理,如此循环反复直到完成所有UUT的批量测试。显然,从执行流程上看,这种执行方法是“整体并行化异步并发执行、局部串行化顺序处理”。At present, the existing parallel test task execution methods mainly focus on the comprehensive integration of mature technology and shelf software and hardware resources. It can be summed up as "concurrent execution on the whole and serialized sequential processing on the part". The following is an example of the commonly used TestStand software parallel process model (Parallel Process Model): As shown in Figure 1, on the whole, the operating user first uses the test task operation interface to start each UUT test task in turn, and then each UUT test task Independent and concurrent execution, no mutual influence, occupying processor time and instrument equipment resources in turn; from a local point of view, a single UUT test task adjusts the basic information of the test in order and executes various predetermined test actions (including test status settings, signal excitation, signal Measurement, data collection, storage record, report generation...) until all test actions are executed, the next UUT will continue to be processed depending on the user's operating conditions, and the cycle will repeat until the batch test of all UUTs is completed. Obviously, from the point of view of the execution process, this execution method is "asynchronous and concurrent execution with overall parallelization and sequential processing with partial serialization".

因而,这种并行测试任务执行方法存在不足:各个UUT测试任务从启动到就绪之间存在逐渐增加的不确定时间延迟,无法适用于各个UUT测试任务“同时执行”的时间敏感场景需求。随着UUT并行规模的增加,UUT测试任务并发数目必然增多,这种不确定的时延现象越发严重!Therefore, this parallel test task execution method has shortcomings: there is a gradually increasing uncertain time delay between each UUT test task from startup to ready, and it cannot be applied to the time-sensitive scenario requirements of "simultaneous execution" of each UUT test task. With the increase of UUT parallel scale, the number of concurrent UUT test tasks will inevitably increase, and this uncertain delay phenomenon will become more and more serious!

现有的多个UUT并行测试任务执行处理技术,由操作用户通过软件测试任务操作界面依次启动各个UUT测试任务,然后各个UUT测试任务依次就绪并独立并发执行,轮流占用处理器时间与仪表设备资源完成相关测试动作。该技术存在如下缺点:Existing multiple UUT parallel test task execution processing technology, the operator starts each UUT test task in turn through the software test task operation interface, and then each UUT test task is ready in turn and executed independently and concurrently, taking up processor time and instrumentation equipment resources in turn Complete the relevant test actions. This technology has the following disadvantages:

1、各个UUT测试任务从执行启动到功能就绪之间存在不确定的时间延迟。由于并行测试运行环境是单处理器非实时操作系统(如Windows),技术实现上采用的是多进程或多线程结构,均是通过处理器在进程间或线程间切换来完成处理,这就必然会占用处理器CPU时间与内存资源,因而时间延迟不可避免。UUT测试任务的依次启动处理,本质上是一个创建线程或加载进程、功能就绪初始化的过程。启动处理过程所占用的CPU时间越长,也就意味着UUT测试任务就绪的时间延迟量越大。同时,由于这个启动处理过程存在着与其它线程或进程之间的处理器资源竞争,各个UUT测试任务执行的这种时延间隔必然是不确定的。1. There is an indeterminate time delay between each UUT test task from execution start to functional readiness. Since the parallel test operating environment is a single-processor non-real-time operating system (such as Windows), the technical implementation adopts a multi-process or multi-thread structure, and the processing is completed by switching the processor between processes or threads. Occupies processor CPU time and memory resources, so time delay is inevitable. The sequential start-up processing of UUT test tasks is essentially a process of creating threads or loading processes, and function-ready initialization. The longer the CPU time taken by the start-up process, the greater the amount of time delay for the UUT test task to be ready. At the same time, since the start-up processing process has processor resource competition with other threads or processes, the delay intervals of each UUT test task execution must be uncertain.

2、无法实现各个UUT测试任务“同时执行”的需求场景。“同时执行”,意味着各个UUT并行测试任务必须在同一时刻或者极短时间间隔内并发执行。UUT测试任务从执行启动到就绪之间所存在的不确定时延,必然导致难以实现“同时执行”。而且,随着UUT测试任务数并发目的增加,这种时间延迟的不确定性越发明显。因而,现有技术无法适用于多个UUT测试任务要求“同时执行”的时间敏感场景需求。2. The requirement scenario of "simultaneous execution" of each UUT test task cannot be realized. "Simultaneous execution" means that each UUT parallel test task must be executed concurrently at the same time or within a very short time interval. The uncertain delay between the execution start and the readiness of the UUT test task will inevitably make it difficult to achieve "simultaneous execution". Moreover, as the number of concurrent UUT test tasks increases, the uncertainty of this time delay becomes more and more obvious. Therefore, the existing technology cannot be applied to the time-sensitive scenario requirements in which multiple UUT test tasks require "simultaneous execution".

发明内容Contents of the invention

针对现有技术中存在的上述技术问题,本发明提出了一种并行测试任务的同步触发执行方法,设计合理,克服了现有技术的不足,能够有效解决UUT测试任务的执行时间延迟不确定且受UUT并行测试数目影响的问题,具有良好的效果。Aiming at the above-mentioned technical problems existing in the prior art, the present invention proposes a synchronous trigger execution method for parallel test tasks, which is reasonably designed, overcomes the deficiencies of the prior art, and can effectively solve the problem of uncertain execution time delay of UUT test tasks. Problems affected by the number of UUT parallel tests, with good results.

为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

一种并行测试任务的同步触发执行方法,包括如下步骤:A method for synchronously triggering execution of parallel test tasks, comprising the following steps:

步骤1:设计UUT测试任务同步触发器,提供其属性参数与功能函数的应用编程接口;Step 1: Design the UUT test task synchronization trigger, and provide the application programming interface of its attribute parameters and function functions;

步骤2:设计UUT测试任务操作界面,提供测试状态显示区域与UUT测试过程控制功能按钮;Step 2: Design the UUT test task operation interface, provide a test status display area and UUT test process control function buttons;

步骤3:设计UUT测试任务操作界面的测试过程配置按钮,注册回调函数为弹出测试过程配置窗口;Step 3: Design the test process configuration button of the UUT test task operation interface, and register the callback function to pop up the test process configuration window;

步骤4:设计UUT测试任务操作界面的测试过程启动按钮,注册回调函数为所有同步触发器的触发状态依次设置为激活状态;Step 4: Design the test process start button of the UUT test task operation interface, and register the callback function to set the trigger state of all synchronous triggers to the active state in turn;

步骤5:设计UUT测试任务操作界面的测试过程停止按钮,注册回调函数为停止正在运行中的UUT测试任务;Step 5: Design the test process stop button of the UUT test task operation interface, and register the callback function to stop the running UUT test task;

步骤6:设计UUT测试任务操作界面的测试过程退出按钮,注册回调函数为退出当前人机交互界面;Step 6: Design the test process exit button of the UUT test task operation interface, and register the callback function to exit the current human-computer interaction interface;

步骤7:操作用户通过UUT测试任务操作界面进行UUT测试过程的控制选项参数调整与设置;Step 7: The operating user adjusts and sets the control option parameters of the UUT test process through the UUT test task operation interface;

步骤8:操作用户通过UUT测试任务操作界面进行UUT测试任务的启动、停止或退出操作。Step 8: The operating user starts, stops or exits the UUT test task through the UUT test task operation interface.

优选地,在步骤1中,同步触发器的属性参数至少包括控制句柄ID、触发类型、触发状态与触发动作;功能函数至少包括创建触发器、触发类型设置、触发状态设置、触发动作注册与释放触发器;Preferably, in step 1, the attribute parameters of the synchronization trigger at least include the control handle ID, trigger type, trigger state and trigger action; the function function at least includes creating a trigger, trigger type setting, trigger state setting, trigger action registration and release trigger;

其中,控制句柄ID为唯一数值,规定大于0为正常成功状态,小于0为异常失败状态,等于0表示触发器已进行资源释放;单个同步触发器对应一个UUT测试任务,且通过该控制句柄ID来进行资源申请、参数配置、功能调用与资源释放;Among them, the control handle ID is a unique value, and it is stipulated that greater than 0 is a normal success state, less than 0 is an abnormal failure state, and equal to 0 means that the trigger has released resources; a single synchronization trigger corresponds to a UUT test task, and passes the control handle ID To perform resource application, parameter configuration, function call and resource release;

触发类型至少包括立即执行和延迟执行,延迟时间可设置,而且时间控制精度与并发任务执行的时间延迟同量级;The trigger types include at least immediate execution and delayed execution, the delay time can be set, and the time control accuracy is the same as the time delay of concurrent task execution;

触发状态至少包括激活与无效两种;激活状态下依据触发类型进行触发动作执行且不允许进行触发动作重新注册;无效状态下触发器的触发动作处于失去执行能力且允许进行触发动作的注册;The trigger state includes at least two types: active and inactive; in the active state, the trigger action is executed according to the trigger type and re-registration of the trigger action is not allowed; in the inactive state, the trigger action of the trigger is incapable of execution and the registration of the trigger action is allowed;

触发动作至少允许指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件,触发动作在触发激活状态下立刻响应执行且正常结束后自动变更触发状态为无效;The trigger action is at least allowed to be specified as a currently valid test action sequence, executable test application or dynamic library mode test application media file, and the trigger action responds immediately to the execution when the trigger is activated and automatically changes the trigger status to invalid after the normal end;

触发类型缺省设置为立即执行,触发状态缺省设置为无效,触发动作缺省注册为UUT测试任务动作序列。The trigger type is set to immediate execution by default, the trigger state is set to invalid by default, and the trigger action is registered as a UUT test task action sequence by default.

优选地,在步骤2中,测试状态显示区域至少包括UUT测试基本信息、UUT测试过程状态与用户操作记录;UUT测试基本信息至少包括操作用户、测试时间、测试环境、测试资源以及测试对象的名称和相关属性;UUT测试过程状态包括未装载(UNLOADED)、就绪(READY)、运行中(RUNNING)、暂停(HALTED)、已完成(FINISH)与未知(UNKNOWN);用户操作记录显示用户通过UUT测试任务操作界面所产生的日志信息与异常错误信息;Preferably, in step 2, the test state display area at least includes UUT test basic information, UUT test process status and user operation records; UUT test basic information includes at least the name of the operating user, test time, test environment, test resources and test objects and related attributes; UUT test process status includes UNLOADED, READY, RUNNING, HALTED, FINISH and UNKNOWN; user operation records show that the user passed the UUT test Log information and abnormal error information generated by the task operation interface;

UUT测试过程控制功能按钮至少包括配置按钮、启动按钮、停止按钮与退出按钮;配置按钮用于辅助用户对测试过程模型、测试工位并发数目与UUT测试任务应用程序进行设置,测试过程模型至少提供顺序过程模型、并行过程模型与批量过程模型三种,测试工位并发数目与UUT测试任务并发数目保持一致、UUT测试任务并发数目与触发器数目保持一致,UUT测试任务应用程序被指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件;启动按钮用于辅助用户来控制UUT测试任务在后台进行自动执行,并在更新各个UUT测试任务的测试过程状态;停止按钮用于辅助用户强制终止正在运行中的UUT测试任务;退出按钮用于辅助用户退出当前的UUT测试任务操作界面;功能按钮的无效属性的控制关系设置为:进入UUT测试任务操作界面时,停止按钮无效为真,其他按钮无效为假;启动按钮执行后,停止按钮无效为假,其他按钮无效为真;停止按钮执行后,所有按钮无效为真;单个UUT测试任务执行完成且进行UUT测试过程状态显示时,若所有UUT测试过程状态均不是运行中,则停止按钮无效为真、其他按钮无效为假。The UUT test process control function buttons include at least a configuration button, a start button, a stop button and an exit button; the configuration button is used to assist the user to set the test process model, the number of concurrent test stations and the UUT test task application program. The test process model provides at least There are three types of sequential process model, parallel process model and batch process model. The concurrent number of test stations is consistent with the concurrent number of UUT test tasks, the concurrent number of UUT test tasks is consistent with the number of triggers, and the UUT test task application is designated as currently valid. The test action sequence, executable test application or dynamic library mode test application media file; the start button is used to assist the user to control the automatic execution of the UUT test task in the background, and update the test process status of each UUT test task; stop The button is used to assist the user to forcibly terminate the running UUT test task; the exit button is used to assist the user to exit the current UUT test task operation interface; the control relationship of the invalid attribute of the function button is set as: when entering the UUT test task operation interface, stop If the button is invalid, it is true, and other buttons are invalid, it is false; after the start button is executed, the stop button is invalid, it is false, and other buttons are invalid, it is true; after the stop button is executed, all buttons are invalid, it is true; the execution of a single UUT test task is completed and the UUT test process is carried out When the status is displayed, if all the UUT test process statuses are not running, the stop button is invalid and the other buttons are invalid and false.

优选地,在步骤3中,测试过程配置窗口控制选项至少包括测试过程模型、测试工位并发数目与UUT测试任务应用程序;调整完毕确认成功后返回UUT测试任务操作界面时,按照控制选项参数进行自动配置,按照测试工位并发数目依次进行触发器创建与触发器属性参数设置,触发状态设置为无效、触发动作注册为所选UUT测试任务应用程序;Preferably, in step 3, the test process configuration window control options include at least the test process model, the concurrent number of test stations and the UUT test task application program; when the adjustment is completed and the confirmation is successful and returns to the UUT test task operation interface, it is carried out according to the control option parameters Automatic configuration, trigger creation and trigger attribute parameter setting in sequence according to the concurrent number of test stations, the trigger status is set to invalid, and the trigger action is registered as the selected UUT test task application;

其中,测试过程模型至少提供顺序过程模型、并行过程模型与批量过程模型三种,缺省为并行过程模型;测试工位并发数目与UUT测试任务并发数目对应,限制数值为≥1、小于最大UUT并发数目,缺省数值为4;UUT测试任务应用程序被指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件。Among them, the test process model provides at least three types of sequential process model, parallel process model and batch process model, and the default is the parallel process model; the concurrent number of test stations corresponds to the concurrent number of UUT test tasks, and the limit value is ≥ 1, less than the maximum UUT Concurrent number, the default value is 4; the UUT test task application is designated as the currently effective test action sequence, executable test application or dynamic library mode test application media file.

优选地,在步骤4中,所述注册回调函数的代码执行优化为最少时间耗费,当单个触发器的状态设置为激活时,其触发动作立刻被执行到,当所有触发器批量激活时,触发动作所指定UUT测试任务能够同时被执行到。Preferably, in step 4, the code execution of the registered callback function is optimized to consume the least amount of time. When the state of a single trigger is set to active, its trigger action is executed immediately. When all triggers are activated in batches, the trigger The UUT test task specified by the action can be executed at the same time.

优选地,在步骤5中,具体包括如下步骤:Preferably, in step 5, specifically include the following steps:

步骤5.1:依次判断各个UUT测试过程状态是否在运行中;Step 5.1: Determine whether the test process status of each UUT is in operation in turn;

若:判断结果为各个UUT测试过程状态没有在运行中,则略过当前UUT测试过程处理;If: the judgment result is that each UUT test process status is not running, then skip the current UUT test process processing;

或判断结果为各个UUT测试过程状态在运行中,则设置相应的触发器激活状态无效,等待后台触发动作所执行的UUT测试任务退出,并同步更新测试状态显示;Or if the judgment result is that each UUT test process state is running, then set the corresponding trigger activation state to be invalid, wait for the UUT test task executed by the background trigger action to exit, and update the test state display synchronously;

步骤5.2:相应触发器的触发动作依据测试过程具体情况对触发无效状态进行响应,触发动作执行结束时,判断触发状态是否为激活,若是则设置触发状态为无效;Step 5.2: The trigger action of the corresponding trigger responds to the trigger invalid state according to the specific conditions of the test process. When the trigger action is executed, judge whether the trigger state is active, and if so, set the trigger state to invalid;

步骤5.3判断触发动作执行返回状态;Step 5.3 judges the trigger action execution return state;

若:判断结果为触发动作执行返回状态正常,则同步更新UUT测试过程状态为已完成;If: the result of the judgment is that the execution of the trigger action returns to a normal state, then the state of the UUT test process is synchronously updated as completed;

或判断结果为触发动作执行返回状态不正常,则同步更新UUT测试过程状态为暂停。Or if the result of the judgment is that the return status of the trigger action execution is abnormal, then the status of the UUT test process is updated synchronously to pause.

优选地,在步骤6中,依次根据各个触发器判断触发状态是否为无效;Preferably, in step 6, judge whether the trigger state is invalid according to each trigger in turn;

若:判断结果为触发状态为无效,则提示等待;If: the judgment result is that the trigger state is invalid, prompt to wait;

或判断结果为触发状态为有效,则依次释放各个触发器资源以及UUT测试任务操作界面相关资源。Or if it is judged that the trigger state is valid, each trigger resource and resources related to the UUT test task operation interface are sequentially released.

优选地,在步骤7中,可调整控制选项参数至少包括测试过程模型、测试工位并发数目、UUT测试任务应用程序;测试工位并发数目与触发器数目对应,UUT测试任务应用程序与触发动作对应;控制选项参数调整完毕后,若测试过程模型为并行过程模型,则按照触发器数目进行触发器创建与触发器属性参数设置,其中触发类型设置为立即执行、触发状态设置为无效、触发动作注册为所选UUT测试任务应用程序。Preferably, in step 7, the adjustable control option parameters at least include the test process model, the concurrent number of test stations, and the UUT test task application program; the concurrent number of test stations corresponds to the number of triggers, and the UUT test task application program corresponds to the trigger action Corresponding; after the control option parameters are adjusted, if the test process model is a parallel process model, trigger creation and trigger attribute parameter setting are performed according to the number of triggers, in which the trigger type is set to execute immediately, the trigger state is set to invalid, and the trigger action Register as an application for selected UUT test assignments.

优选地,在步骤8中,具体包括如下步骤:Preferably, in step 8, the following steps are specifically included:

步骤8.1:响应UUT测试任务操作界面的测试过程人机界面交互;若为启动按钮执行,则执行步骤8.2;否则,继续空闲等待;Step 8.1: Interact with the man-machine interface during the test process in response to the UUT test task operation interface; if it is executed by the start button, then perform step 8.2; otherwise, continue to idle and wait;

步骤8.2:将各个UUT测试任务触发器的触发状态都设置为激活,更新所有功能按钮的无效状态;Step 8.2: Set the trigger state of each UUT test task trigger to active, and update the invalid state of all function buttons;

步骤8.3:各个UUT测试任务触发器对应的触发动作按照预先设定进行自动响应执行,各个测试任务功能就绪;Step 8.3: The trigger actions corresponding to the triggers of each UUT test task are executed according to the preset automatic response, and the functions of each test task are ready;

步骤8.4:单个UUT测试任务触发器对应的触发动作执行处理,即调整UUT测试基本信息、执行所注册触发动作的UUT测试任务应用程序以及通知UUT测试任务操作界面进行测试执行状态显示;Step 8.4: Execute the trigger action corresponding to a single UUT test task trigger, that is, adjust the basic information of the UUT test, execute the UUT test task application program of the registered trigger action, and notify the UUT test task operation interface to display the test execution status;

步骤8.5:响应操作用户通过UUT测试任务操作界面所进行的人工干预;若为停止按钮操作,则更新所有功能按钮的无效状态,然后执行步骤8.7;Step 8.5: Respond to the manual intervention of the operating user through the UUT test task operation interface; if it is a stop button operation, update the invalid status of all function buttons, and then perform step 8.7;

步骤8.6:单个UUT测试任务的触发动作执行完毕后,设置当前触发器的触发状态为无效,提示并引导用户确定是否处理下一个UUT测试任务;若处理下一个UUT测试任务,则设置当前触发器的触发状态为激活,然后执行步骤8.3;否则,执行步骤8.7;Step 8.6: After the trigger action of a single UUT test task is executed, set the trigger status of the current trigger to invalid, prompt and guide the user to determine whether to process the next UUT test task; if the next UUT test task is processed, set the current trigger The trigger state of is active, then go to step 8.3; otherwise, go to step 8.7;

步骤8.7:更新UUT测试过程状态显示与用户操作记录日志显示;Step 8.7: Update the UUT test process status display and user operation log display;

步骤8.8:响应UUT测试任务操作界面的测试过程人机界面交互;若为启动按钮执行,则执行步骤8.2;若为退出按钮执行,则依次释放各个触发器资源以及UUT测试任务操作界面相关资源。Step 8.8: Respond to the human-machine interface interaction in the test process of the UUT test task operation interface; if it is executed by the start button, perform step 8.2; if it is executed by the exit button, release each trigger resource and the related resources of the UUT test task operation interface in sequence.

本发明所带来的有益技术效果:Beneficial technical effects brought by the present invention:

本发明所提出的并行测试任务的同步触发执行方法,基于同步触发器搭建各个UUT测试任务的测试过程控制机制,利用触发器属性参数设置和功能函数调用来完成测试过程控制选项的预先调整与设置,当用户通过测试任务操作界面来启动UUT测试任务时,可立刻执行所注册的所有UUT测试任务应用程序;本发明具有UUT测试任务的执行时间延迟稳定可设且不受UUT并行测试数目影响的优点,尤其适用于要求各个UUT测试任务“同时执行”的需求场景。The synchronous trigger execution method for parallel test tasks proposed by the present invention builds a test process control mechanism for each UUT test task based on synchronous triggers, and uses trigger attribute parameter settings and function function calls to complete the pre-adjustment and setting of test process control options , when the user starts the UUT test task through the test task operation interface, all the registered UUT test task application programs can be executed immediately; the present invention has the ability that the execution time delay of the UUT test task can be set stably and is not affected by the number of UUT parallel tests Advantages, it is especially suitable for the demand scenario that requires "simultaneous execution" of various UUT test tasks.

附图说明Description of drawings

图1为待测件测试任务执行的流程图。Figure 1 is a flowchart of the execution of the test task of the DUT.

图2为顺序测试任务执行示意图。Figure 2 is a schematic diagram of sequential test task execution.

图3为批量过程模型和并行过程模型的示意图。Fig. 3 is a schematic diagram of a batch process model and a parallel process model.

图4为本发明方法的流程框图。Fig. 4 is a flowchart of the method of the present invention.

图5为本发明方法的动作关系示意图。Fig. 5 is a schematic diagram of the action relationship of the method of the present invention.

具体实施方式Detailed ways

下面结合附图以及具体实施方式对本发明作进一步详细说明:Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

一种并行测试任务的同步触发执行方法,其流程如图4所示,动作关系如图5所示,针对多个UUT测试任务“同时执行”的需求场景,基于同步触发器搭建各个UUT测试任务的测试过程控制机制,利用触发器属性参数设置和功能函数调用来完成测试过程控制选项的预先调整与设置。当用户通过测试任务操作界面来启动UUT测试任务时,可立刻执行所注册的所有UUT测试任务应用程序,进而有效改善UUT测试任务并发执行的时延现象。具体包括如下步骤:A synchronous trigger execution method for parallel test tasks, its process is shown in Figure 4, and the action relationship is shown in Figure 5, for the requirement scenario of "simultaneous execution" of multiple UUT test tasks, each UUT test task is built based on a synchronous trigger The test process control mechanism uses the trigger attribute parameter setting and function function call to complete the pre-adjustment and setting of the test process control options. When the user starts the UUT test task through the test task operation interface, all registered UUT test task application programs can be executed immediately, thereby effectively improving the delay phenomenon of concurrent execution of UUT test tasks. Specifically include the following steps:

步骤100,设计UUT测试任务同步触发器,提供属性参数与功能函数API(Application Programming Interface);Step 100, designing a UUT test task synchronization trigger, providing attribute parameters and functional function API (Application Programming Interface);

步骤102,设计UUT测试任务操作界面,提供测试状态显示区域与UUT测试过程控制功能按钮;Step 102, designing the UUT test task operation interface, providing a test status display area and UUT test process control function buttons;

步骤104,设计UUT测试任务操作界面的测试过程配置按钮,注册回调函数为弹出测试过程配置窗口;Step 104, designing the test process configuration button of the UUT test task operation interface, and registering the callback function as a pop-up test process configuration window;

步骤106,设计UUT测试任务操作界面的测试过程启动按钮,注册回调函数为所有同步触发器的触发状态依次设置为激活状态;Step 106, design the test process start button of the UUT test task operation interface, and register the callback function as the trigger state of all synchronous triggers is set to the active state in turn;

步骤108,设计UUT测试任务操作界面的测试过程停止按钮,注册回调函数为停止正在运行中的UUT测试任务;Step 108, design the test process stop button of the UUT test task operation interface, and register the callback function to stop the running UUT test task;

步骤110,设计UUT测试任务操作界面的测试过程退出按钮,注册回调函数为退出当前人机交互界面;Step 110, design the test process exit button of the UUT test task operation interface, and register the callback function to exit the current human-computer interaction interface;

步骤112,操作用户通过UUT测试任务操作界面进行UUT测试过程的控制选项参数调整与设置;Step 112, the operating user adjusts and sets the control option parameters of the UUT test process through the UUT test task operation interface;

步骤114,操作用户通过UUT测试任务操作界面进行UUT测试任务的启动、停止或退出操作。Step 114, the operating user starts, stops or exits the UUT test task through the UUT test task operation interface.

在步骤100中,具体包括:In step 100, specifically include:

a、利用处理器内部高精度时钟发生器和操作系统提供的异步定时器或线程池机制来设计同步触发器,提供属性参数与功能函数API。其中属性参数至少包括控制句柄ID、触发类型、触发状态与触发动作,功能函数至少包括创建触发器、触发类型设置、触发状态设置、触发动作注册与释放触发器;a. Use the high-precision clock generator inside the processor and the asynchronous timer or thread pool mechanism provided by the operating system to design synchronous triggers, and provide attribute parameters and function APIs. The attribute parameters at least include the control handle ID, trigger type, trigger state and trigger action, and the function functions at least include creating a trigger, setting the trigger type, setting the trigger state, registering the trigger action, and releasing the trigger;

b、控制句柄ID为唯一数值,约定大于0为正常成功状态,小于0为异常失败状态,等于0表示触发器已进行资源释放;单个同步触发器对应一个UUT测试任务,且通过该控制句柄ID来进行资源申请、参数配置、功能调用与资源释放;b. The control handle ID is a unique value. It is agreed that greater than 0 is a normal success state, and less than 0 is an abnormal failure state. Equal to 0 means that the trigger has released resources; a single synchronization trigger corresponds to a UUT test task, and passes the control handle ID To perform resource application, parameter configuration, function call and resource release;

c、触发类型至少包括立即执行和延迟执行,延迟时间可设置,而且时间控制精度与并发任务执行的时间延迟同量级(受处理器时钟发生器计数时间精度限制);c. The trigger types include at least immediate execution and delayed execution. The delay time can be set, and the time control accuracy is the same as the time delay of concurrent task execution (limited by the counting time accuracy of the processor clock generator);

d、触发状态至少包括激活与无效两种。激活状态下依据触发类型进行触发动作执行且不允许进行触发动作重新注册;无效状态下触发器的触发动作处于失去执行能力且允许进行触发动作的注册;d. The trigger state includes at least two types: active and inactive. In the activated state, the trigger action is executed according to the trigger type and re-registration of the trigger action is not allowed; in the invalid state, the trigger action of the trigger is incapable of execution and the registration of the trigger action is allowed;

e、触发动作至少允许指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件,触发动作在触发激活状态下立刻响应执行且正常结束后自动变更触发状态为无效。要求触发动作优化设计,既方便触发点火时快速自动执行,又要允许重新注册为其他UUT测试任务应用程序;e. The trigger action is at least allowed to be specified as the currently valid test action sequence, executable test application or dynamic library mode test application media file. The trigger action responds immediately to the execution in the trigger activation state and automatically changes the trigger state to invalid after the normal end . It is required to optimize the design of the trigger action, which is not only convenient for quick and automatic execution when triggering ignition, but also allows re-registration as an application program for other UUT test tasks;

f,触发类型缺省设置为立即执行,触发状态缺省设置为无效,触发动作缺省注册为UUT测试任务动作序列。f. The trigger type is set to immediate execution by default, the trigger state is set to invalid by default, and the trigger action is registered as a UUT test task action sequence by default.

在步骤102中,具体包括:In step 102, specifically include:

a、显示区域至少包括UUT测试基本信息显示、UUT测试过程状态显示与用户操作记录显示。UUT测试基本信息至少包括操作用户、测试时间、测试环境、测试资源以及测试对象的名称和相关属性;UUT测试过程状态包括未装载(UNLOADED)、就绪(READY)、运行中(RUNNING)、暂停(HALTED)、已完成(FINISH)与未知(UNKNOWN);用户操作记录显示用户通过UUT测试任务操作界面所产生的日志信息与异常错误信息;a. The display area includes at least the display of the basic information of the UUT test, the display of the status of the UUT test process and the display of user operation records. The basic information of the UUT test includes at least the operating user, test time, test environment, test resources, and the name and related attributes of the test object; the UUT test process status includes unloaded (UNLOADED), ready (READY), running (RUNNING), paused ( HALTED), completed (FINISH) and unknown (UNKNOWN); user operation records display the log information and abnormal error information generated by the user through the UUT test task operation interface;

b、UUT测试过程功能按钮至少包括配置、启动、停止与退出。配置按钮可以辅助用户对测试过程模型、测试工位并发数目与UUT测试任务应用程序进行设置,测试过程模型至少提供顺序过程模型、并行过程模型与批量过程模型三种,测试工位并发数目与UUT测试任务并发数目对应,UUT测试任务应用程序被指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件;启动按钮可以辅助用户来控制UUT测试任务在后台进行自动执行,并在更新各个UUT测试任务的测试过程状态;停止按钮可以辅助用户强制终止正在运行中的UUT测试任务;退出按钮可以辅助用户退出当前的UUT测试任务操作界面。功能按钮的无效属性设置控制关系设计为:进入UUT测试任务操作界面时,停止按钮无效为真,其他按钮无效为假;启动按钮执行后,停止按钮无效为假,其他按钮无效为真;停止按钮执行后,所有按钮无效为真;单个UUT测试任务执行完成且进行UUT测试过程状态显示时,若所有UUT测试过程状态均不是运行中(RUNNING),则停止按钮无效为真、其他按钮无效为假。b. The function buttons of the UUT test process include at least configuration, start, stop and exit. The configuration button can assist the user to set the test process model, the concurrent number of test stations and the UUT test task application program. The test process model provides at least three types: sequential process model, parallel process model and batch process model. The concurrent number of test stations and UUT Corresponding to the number of concurrent test tasks, the UUT test task application is designated as the currently valid test action sequence, executable test application or dynamic library mode test application media file; the start button can assist the user to control the UUT test task in the background automatically Execute and update the test process status of each UUT test task; the stop button can assist the user to forcibly terminate the running UUT test task; the exit button can assist the user to exit the current UUT test task operation interface. The control relationship of the invalid attribute setting of the function button is designed as follows: when entering the UUT test task operation interface, the stop button is invalid as true, and the other buttons are invalid as false; after the start button is executed, the stop button is invalid as false, and the other buttons are invalid as true; the stop button is invalid After execution, all buttons are invalid and true; when a single UUT test task is executed and the UUT test process status is displayed, if all UUT test process statuses are not running (RUNNING), the stop button is invalid and other buttons are false .

在步骤104中,具体包括:测试过程配置窗口控制选项至少包括测试过程模型、测试工位并发数目与UUT测试任务应用程序。调整完毕确认成功后返回UUT测试任务操作界面时,按照控制选项参数进行自动配置。按照测试工位并发数目依次进行触发器创建与触发器属性参数设置,触发状态设置为无效、触发动作注册为所选UUT测试任务应用程序;In step 104, it specifically includes: the test process configuration window control options at least include the test process model, the concurrent number of test stations and the UUT test task application program. After the adjustment is completed and the confirmation is successful, when returning to the UUT test task operation interface, it will be automatically configured according to the control option parameters. Create triggers and set trigger attribute parameters in sequence according to the concurrent number of test stations, set the trigger status to invalid, and register the trigger action as the selected UUT test task application;

其中,测试过程模型至少提供顺序过程模型、并行过程模型与批量过程模型三种,缺省为并行过程模型。测试工位并发数目与UUT测试任务并发数目对应,限制数值为大于等于1、小于最大UUT并发数目,缺省数值为4。UUT测试任务应用程序可指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件。Among them, the test process model provides at least three types: sequential process model, parallel process model and batch process model, and the default is the parallel process model. The number of concurrent test stations corresponds to the number of concurrent UUT test tasks. The limit value is greater than or equal to 1 and less than the maximum number of concurrent UUTs. The default value is 4. The UUT test task application program can be specified as a currently valid test action sequence, an executable test application program, or a dynamic library mode test application program media file.

在步骤106中,具体包括:所注册回调函数的代码执行应优化为最少时间耗费,以确保其执行时间耗费与触发时延相比较可以忽略不计。当单个触发器的状态设置为激活时,其触发动作可以立刻被执行到。当所有触发器批量激活时,触发动作所指定UUT测试任务则能够同时被执行到,进而确保通过各个触发器的触发动作执行来完成所有UUT测试任务的并发处理。In step 106, it specifically includes: the code execution of the registered callback function should be optimized for minimum time consumption, so as to ensure that its execution time consumption is negligible compared with the trigger delay. When the state of a single trigger is set to active, its trigger action can be executed immediately. When all triggers are activated in batches, the UUT test tasks specified by the trigger actions can be executed at the same time, thereby ensuring that the concurrent processing of all UUT test tasks can be completed through the execution of trigger actions of each trigger.

在步骤108中,具体包括如下步骤:In step 108, specifically include the following steps:

a、依次判断各个UUT测试过程状态是否为RUNNING(运行中)。若否,则略过当前UUT测试过程处理;若是,则设置相应的触发器激活状态无效、等待后台触发动作所执行的UUT测试任务进行退出,并同步更新测试状态显示;a. Determine in turn whether the test process status of each UUT is RUNNING (running). If not, skip the current UUT test process processing; if so, set the corresponding trigger activation state to be invalid, wait for the UUT test task executed by the background trigger action to exit, and update the test status display synchronously;

b、相应触发器的触发动作可以依据测试过程具体情况对触发无效状态进行响应。触发动作执行结束时,判断触发状态是否为激活,若是则设置触发状态为无效;b. The trigger action of the corresponding trigger can respond to the trigger invalid state according to the specific conditions of the test process. When the execution of the trigger action ends, judge whether the trigger state is active, and if so, set the trigger state to invalid;

c、若触发动作执行返回状态为正常,则同步更新UUT测试过程状态为FINISH(已完成),否则同步更新UUT测试过程状态为HALTED(暂停)。c. If the status returned by the trigger action execution is normal, then synchronously update the UUT test process status to FINISH (completed), otherwise synchronously update the UUT test process status to HALTED (suspended).

在步骤110中,具体包括:In step 110, specifically include:

依次根据各个触发器判断触发状态是否为无效,若是则进行提示等待,若否则进行相关资源的释放。Determine whether the trigger state is invalid according to each trigger in turn, if so, perform a prompt and wait, otherwise, perform release of related resources.

在步骤112中,具体包括:In step 112, specifically include:

可调整控制选项参数至少包括测试过程模型、测试工位并发数目(对应触发器数目)与UUT测试任务应用程序(对应触发动作);控制选项参数调整完毕后,若测试过程模型为并行过程模型,则按照触发器数目进行触发器创建与触发器属性参数设置,其中触发类型设置为立即执行、触发状态设置为无效、触发动作注册为所选UUT测试任务应用程序。The adjustable control option parameters include at least the test process model, the concurrent number of test stations (corresponding to the number of triggers) and the UUT test task application program (corresponding to the trigger action); after the control option parameters are adjusted, if the test process model is a parallel process model, According to the number of triggers, trigger creation and trigger attribute parameter setting are performed, in which the trigger type is set to execute immediately, the trigger state is set to invalid, and the trigger action is registered as the selected UUT test task application.

在步骤114中,具体包括如下步骤:In step 114, specifically include the following steps:

a、响应UUT测试任务操作界面的测试过程人机界面交互。若为启动按钮执行,则执行b;否则,继续空闲等待;a. Man-machine interface interaction in response to the test process of the UUT test task operation interface. If it is executed by the start button, execute b; otherwise, continue to idle and wait;

b、将各个UUT测试任务触发器的触发状态都设置为激活,更新所有功能按钮的无效状态;b. Set the trigger state of each UUT test task trigger to active, and update the invalid state of all function buttons;

c、各个UUT测试任务触发器对应的触发动作按照预先设定进行自动响应执行,各个测试任务功能就绪;c. The trigger actions corresponding to the triggers of each UUT test task are automatically responded and executed according to the preset settings, and the functions of each test task are ready;

d、单个UUT测试任务触发器对应的触发动作执行处理,即调整UUT测试基本信息、执行所注册触发动作的UUT测试任务应用程序、通知UUT测试任务操作界面进行测试执行状态显示;d. Trigger action execution processing corresponding to a single UUT test task trigger, that is, adjust the basic information of the UUT test, execute the UUT test task application program of the registered trigger action, and notify the UUT test task operation interface to display the test execution status;

e、响应操作用户通过UUT测试任务操作界面所进行的人工干预。若为停止按钮操作,则更新所有功能按钮的无效状态后执行g;e. Respond to manual intervention by operating users through the UUT test task operation interface. If it is a stop button operation, execute g after updating the invalid state of all function buttons;

f、单个UUT测试任务的触发动作执行完毕后,设置当前触发器的触发状态为无效,提示并引导用户确定是否处理下一个UUT测试任务。若处理下一个UUT测试任务,则设置当前触发器的触发状态为激活、执行c;否则,继续执行g;f. After the trigger action of a single UUT test task is executed, set the trigger state of the current trigger to invalid, prompt and guide the user to determine whether to process the next UUT test task. If the next UUT test task is processed, set the trigger state of the current trigger to active and execute c; otherwise, continue to execute g;

g、更新UUT测试过程状态显示与用户操作记录日志显示;g. Update the UUT test process status display and user operation log display;

h、响应UUT测试任务操作界面的测试过程人机界面交互。若为启动按钮执行,则执行步骤b;若为退出按钮执行,则依次释放各个触发器资源、释放UUT测试任务操作界面相关资源。h. Man-machine interface interaction in response to the test process of the UUT test task operation interface. If it is executed by the start button, execute step b; if it is executed by the exit button, release each trigger resource and the related resources of the UUT test task operation interface in sequence.

当然,上述说明并非是对本发明的限制,本发明也并不仅限于上述举例,本技术领域的技术人员在本发明的实质范围内所做出的变化、改型、添加或替换,也应属于本发明的保护范围。Of course, the above descriptions are not intended to limit the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or replacements made by those skilled in the art within the scope of the present invention shall also belong to the present invention. protection scope of the invention.

Claims (8)

1.一种并行测试任务的同步触发执行方法,其特征在于:包括如下步骤:1. a synchronous trigger execution method of parallel test task, is characterized in that: comprise the steps: 步骤1:设计UUT测试任务同步触发器,提供其属性参数与功能函数的应用编程接口;同步触发器的属性参数至少包括控制句柄ID、触发类型、触发状态与触发动作;功能函数至少包括创建触发器、触发类型设置、触发状态设置、触发动作注册与释放触发器;Step 1: Design a UUT test task synchronization trigger, and provide the application programming interface of its attribute parameters and function functions; the attribute parameters of the synchronization trigger include at least the control handle ID, trigger type, trigger state and trigger action; the function function includes at least creating a trigger Trigger, trigger type setting, trigger state setting, trigger action registration and release trigger; 其中,控制句柄ID为唯一数值,规定大于0为正常成功状态,小于0为异常失败状态,等于0表示触发器已进行资源释放;单个同步触发器对应一个UUT测试任务,且通过该控制句柄ID来进行资源申请、参数配置、功能调用与资源释放;Among them, the control handle ID is a unique value, and it is stipulated that greater than 0 is a normal success state, less than 0 is an abnormal failure state, and equal to 0 means that the trigger has released resources; a single synchronization trigger corresponds to a UUT test task, and passes the control handle ID To perform resource application, parameter configuration, function call and resource release; 触发类型至少包括立即执行和延迟执行,延迟时间可设置,而且时间控制精度与并发任务执行的时间延迟同量级;The trigger types include at least immediate execution and delayed execution, the delay time can be set, and the time control accuracy is the same as the time delay of concurrent task execution; 触发状态至少包括激活与无效两种;激活状态下依据触发类型进行触发动作执行且不允许进行触发动作重新注册;无效状态下触发器的触发动作处于失去执行能力且允许进行触发动作的注册;The trigger state includes at least two types: active and inactive; in the active state, the trigger action is executed according to the trigger type and re-registration of the trigger action is not allowed; in the inactive state, the trigger action of the trigger is incapable of execution and the registration of the trigger action is allowed; 触发动作至少允许指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件,触发动作在触发激活状态下立刻响应执行且正常结束后自动变更触发状态为无效;The trigger action is at least allowed to be specified as a currently valid test action sequence, executable test application or dynamic library mode test application media file, and the trigger action responds immediately to the execution when the trigger is activated and automatically changes the trigger status to invalid after the normal end; 触发类型缺省设置为立即执行,触发状态缺省设置为无效,触发动作缺省注册为UUT测试任务动作序列;The trigger type is set to immediate execution by default, the trigger state is set to invalid by default, and the trigger action is registered as a UUT test task action sequence by default; 步骤2:设计UUT测试任务操作界面,提供测试状态显示区域与UUT测试过程控制功能按钮;Step 2: Design the UUT test task operation interface, provide a test status display area and UUT test process control function buttons; 步骤3:设计UUT测试任务操作界面的测试过程配置按钮,注册回调函数为弹出测试过程配置窗口;Step 3: Design the test process configuration button of the UUT test task operation interface, and register the callback function to pop up the test process configuration window; 步骤4:设计UUT测试任务操作界面的测试过程启动按钮,注册回调函数为所有同步触发器的触发状态依次设置为激活状态;Step 4: Design the test process start button of the UUT test task operation interface, and register the callback function to set the trigger state of all synchronous triggers to the active state in turn; 步骤5:设计UUT测试任务操作界面的测试过程停止按钮,注册回调函数为停止正在运行中的UUT测试任务;Step 5: Design the test process stop button of the UUT test task operation interface, and register the callback function to stop the running UUT test task; 步骤6:设计UUT测试任务操作界面的测试过程退出按钮,注册回调函数为退出当前人机交互界面;Step 6: Design the test process exit button of the UUT test task operation interface, and register the callback function to exit the current human-computer interaction interface; 步骤7:操作用户通过UUT测试任务操作界面进行UUT测试过程的控制选项参数调整与设置;Step 7: The operating user adjusts and sets the control option parameters of the UUT test process through the UUT test task operation interface; 步骤8:操作用户通过UUT测试任务操作界面进行UUT测试任务的启动、停止或退出操作。Step 8: The operating user starts, stops or exits the UUT test task through the UUT test task operation interface. 2.根据权利要求1所述的并行测试任务的同步触发执行方法,其特征在于:在步骤2中,测试状态显示区域至少包括UUT测试基本信息、UUT测试过程状态与用户操作记录;UUT测试基本信息至少包括操作用户、测试时间、测试环境、测试资源以及测试对象的名称和相关属性;UUT测试过程状态包括未装载、就绪、运行中、暂停、已完成与未知;用户操作记录显示用户通过UUT测试任务操作界面所产生的日志信息与异常错误信息;2. The synchronous trigger execution method of parallel test tasks according to claim 1, characterized in that: in step 2, the test status display area at least includes UUT test basic information, UUT test process status and user operation records; UUT test basic The information includes at least the operating user, test time, test environment, test resources, and the name and related attributes of the test object; the UUT test process status includes unloaded, ready, running, paused, completed and unknown; user operation records show that the user passed the UUT Log information and abnormal error information generated by the test task operation interface; UUT测试过程控制功能按钮至少包括配置按钮、启动按钮、停止按钮与退出按钮;配置按钮用于辅助用户对测试过程模型、测试工位并发数目与UUT测试任务应用程序进行设置,测试过程模型至少提供顺序过程模型、并行过程模型与批量过程模型三种,测试工位并发数目与UUT测试任务并发数目保持一致、UUT测试任务并发数目与触发器数目保持一致,UUT测试任务应用程序被指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件;启动按钮用于辅助用户来控制UUT测试任务在后台进行自动执行,并更新各个UUT测试任务的测试过程状态;停止按钮用于辅助用户强制终止正在运行中的UUT测试任务;退出按钮用于辅助用户退出当前的UUT测试任务操作界面;功能按钮的无效属性的控制关系设置为:进入UUT测试任务操作界面时,停止按钮无效为真,其他按钮无效为假;启动按钮执行后,停止按钮无效为假,其他按钮无效为真;停止按钮执行后,所有按钮无效为真;单个UUT测试任务执行完成且进行UUT测试过程状态显示时,若所有UUT测试过程状态均不是运行中,则停止按钮无效为真、其他按钮无效为假。The UUT test process control function buttons include at least a configuration button, a start button, a stop button and an exit button; the configuration button is used to assist the user to set the test process model, the number of concurrent test stations and the UUT test task application program. The test process model provides at least There are three types of sequential process model, parallel process model and batch process model. The concurrent number of test stations is consistent with the concurrent number of UUT test tasks, the concurrent number of UUT test tasks is consistent with the number of triggers, and the UUT test task application is designated as currently valid. The test action sequence, executable test application or dynamic library mode test application media file; the start button is used to assist the user to control the automatic execution of the UUT test task in the background, and update the test process status of each UUT test task; the stop button It is used to assist the user to forcibly terminate the running UUT test task; the exit button is used to assist the user to exit the current UUT test task operation interface; the control relationship of the invalid attribute of the function button is set as: when entering the UUT test task operation interface, the stop button Invalid is true, other buttons are invalid is false; after the start button is executed, the stop button is invalid is false, other buttons are invalid is true; after the stop button is executed, all buttons are invalid is true; single UUT test task execution is completed and UUT test process status When displaying, if all the UUT test process statuses are not running, the stop button is invalid as true, and the other buttons are invalid as false. 3.根据权利要求1所述的并行测试任务的同步触发执行方法,其特征在于:在步骤3中,测试过程配置窗口控制选项至少包括测试过程模型、测试工位并发数目与UUT测试任务应用程序;调整完毕确认成功后返回UUT测试任务操作界面时,按照控制选项参数进行自动配置,按照测试工位并发数目依次进行触发器创建与触发器属性参数设置,触发状态设置为无效、触发动作注册为所选UUT测试任务应用程序;3. the synchronous trigger execution method of parallel test task according to claim 1 is characterized in that: in step 3, test process configuration window control option at least includes test process model, test station concurrent number and UUT test task application program ; After the adjustment is completed and the confirmation is successful, when returning to the UUT test task operation interface, the automatic configuration is performed according to the control option parameters, and the trigger creation and trigger property parameter settings are performed in sequence according to the concurrent number of test stations. The trigger status is set to invalid, and the trigger action is registered as Selected UUT test task application; 其中,测试过程模型至少提供顺序过程模型、并行过程模型与批量过程模型三种,缺省为并行过程模型;测试工位并发数目与UUT测试任务并发数目对应,限制数值为≥1、小于最大UUT并发数目,缺省数值为4;UUT测试任务应用程序被指定为当前有效的测试动作序列、可执行测试应用程序或动态库模式测试应用程序媒体文件。Among them, the test process model provides at least three types of sequential process model, parallel process model and batch process model, and the default is the parallel process model; the concurrent number of test stations corresponds to the concurrent number of UUT test tasks, and the limit value is ≥ 1, less than the maximum UUT Concurrent number, the default value is 4; the UUT test task application is designated as the currently effective test action sequence, executable test application or dynamic library mode test application media file. 4.根据权利要求1所述的并行测试任务的同步触发执行方法,其特征在于:在步骤4中,所述注册回调函数的代码执行优化为最少时间耗费,当单个触发器的状态设置为激活时,其触发动作立刻被执行到,当所有触发器批量激活时,触发动作所指定UUT测试任务能够同时被执行到。4. The synchronous trigger execution method of parallel test tasks according to claim 1, characterized in that: in step 4, the code execution of the registered callback function is optimized for minimum time consumption, when the state of a single trigger is set to active When the trigger action is activated, the trigger action will be executed immediately. When all the triggers are activated in batches, the UUT test task specified by the trigger action can be executed simultaneously. 5.根据权利要求1所述的并行测试任务的同步触发执行方法,其特征在于:在步骤5中,具体包括如下步骤:5. The synchronous trigger execution method of parallel test tasks according to claim 1, characterized in that: in step 5, specifically comprising the following steps: 步骤5.1:依次判断各个UUT测试过程状态是否在运行中;Step 5.1: Determine whether the test process status of each UUT is in operation in turn; 若:判断结果为各个UUT测试过程状态没有在运行中,则略过当前UUT测试过程处理;If: the judgment result is that each UUT test process status is not running, then skip the current UUT test process processing; 或判断结果为各个UUT测试过程状态在运行中,则设置相应的触发器激活状态无效,等待后台触发动作所执行的UUT测试任务退出,并同步更新测试状态显示;Or if the judgment result is that each UUT test process state is running, then set the corresponding trigger activation state to be invalid, wait for the UUT test task executed by the background trigger action to exit, and update the test state display synchronously; 步骤5.2:相应触发器的触发动作依据测试过程具体情况对触发无效状态进行响应,触发动作执行结束时,判断触发状态是否为激活,若是则设置触发状态为无效;Step 5.2: The trigger action of the corresponding trigger responds to the trigger invalid state according to the specific conditions of the test process. When the trigger action is executed, judge whether the trigger state is active, and if so, set the trigger state to invalid; 步骤5.3判断触发动作执行返回状态;Step 5.3 judges the trigger action execution return state; 若:判断结果为触发动作执行返回状态正常,则同步更新UUT测试过程状态为已完成;If: the result of the judgment is that the execution of the trigger action returns to a normal state, then the state of the UUT test process is synchronously updated as completed; 或判断结果为触发动作执行返回状态不正常,则同步更新UUT测试过程状态为暂停。Or if the result of the judgment is that the return status of the trigger action execution is abnormal, then the status of the UUT test process is updated synchronously to pause. 6.根据权利要求1所述的并行测试任务的同步触发执行方法,其特征在于:在步骤6中,依次根据各个触发器判断触发状态是否为无效;6. the synchronous trigger execution method of parallel test task according to claim 1 is characterized in that: in step 6, judge whether trigger state is invalid according to each trigger successively; 若:判断结果为触发状态为无效,则提示等待;If: the judgment result is that the trigger state is invalid, prompt to wait; 或判断结果为触发状态为有效,则依次释放各个触发器资源以及UUT测试任务操作界面相关资源。Or if it is judged that the trigger state is valid, each trigger resource and resources related to the UUT test task operation interface are sequentially released. 7.根据权利要求1所述的并行测试任务的同步触发执行方法,其特征在于:在步骤7中,可调整控制选项参数至少包括测试过程模型、测试工位并发数目、UUT测试任务应用程序;测试工位并发数目与触发器数目对应,UUT测试任务应用程序与触发动作对应;控制选项参数调整完毕后,若测试过程模型为并行过程模型,则按照触发器数目进行触发器创建与触发器属性参数设置,其中触发类型设置为立即执行、触发状态设置为无效、触发动作注册为所选UUT测试任务应用程序。7. The synchronous trigger execution method of parallel test task according to claim 1 is characterized in that: in step 7, adjustable control option parameters at least include test process model, test station concurrent number, UUT test task application program; The concurrent number of test stations corresponds to the number of triggers, and the UUT test task application program corresponds to the trigger action; after the control option parameters are adjusted, if the test process model is a parallel process model, trigger creation and trigger attributes are performed according to the number of triggers Parameter settings, where the trigger type is set to execute immediately, the trigger state is set to invalid, and the trigger action is registered as the selected UUT test task application. 8.根据权利要求1所述的并行测试任务的同步触发执行方法,其特征在于:在步骤8中,具体包括如下步骤:8. The synchronous trigger execution method of parallel test tasks according to claim 1, characterized in that: in step 8, specifically comprising the following steps: 步骤8.1:响应UUT测试任务操作界面的测试过程人机界面交互;若为启动按钮执行,则执行步骤8.2;否则,继续空闲等待;Step 8.1: Interact with the man-machine interface during the test process in response to the UUT test task operation interface; if it is executed by the start button, then perform step 8.2; otherwise, continue to idle and wait; 步骤8.2:将各个UUT测试任务触发器的触发状态都设置为激活,更新所有功能按钮的无效状态;Step 8.2: Set the trigger state of each UUT test task trigger to active, and update the invalid state of all function buttons; 步骤8.3:各个UUT测试任务触发器对应的触发动作按照预先设定进行自动响应执行,各个测试任务功能就绪;Step 8.3: The trigger actions corresponding to the triggers of each UUT test task are executed according to the preset automatic response, and the functions of each test task are ready; 步骤8.4:单个UUT测试任务触发器对应的触发动作执行处理,即调整UUT测试基本信息、执行所注册触发动作的UUT测试任务应用程序以及通知UUT测试任务操作界面进行测试执行状态显示;Step 8.4: Execute the trigger action corresponding to a single UUT test task trigger, that is, adjust the basic information of the UUT test, execute the UUT test task application program of the registered trigger action, and notify the UUT test task operation interface to display the test execution status; 步骤8.5:响应操作用户通过UUT测试任务操作界面所进行的人工干预;若为停止按钮操作,则更新所有功能按钮的无效状态,然后执行步骤8.7;Step 8.5: Respond to the manual intervention of the operating user through the UUT test task operation interface; if it is a stop button operation, update the invalid status of all function buttons, and then perform step 8.7; 步骤8.6:单个UUT测试任务的触发动作执行完毕后,设置当前触发器的触发状态为无效,提示并引导用户确定是否处理下一个UUT测试任务;若处理下一个UUT测试任务,则设置当前触发器的触发状态为激活,然后执行步骤8.3;否则,执行步骤8.7;Step 8.6: After the trigger action of a single UUT test task is executed, set the trigger status of the current trigger to invalid, prompt and guide the user to determine whether to process the next UUT test task; if the next UUT test task is processed, set the current trigger The trigger state of is active, then go to step 8.3; otherwise, go to step 8.7; 步骤8.7:更新UUT测试过程状态显示与用户操作记录日志显示;Step 8.7: Update the UUT test process status display and user operation log display; 步骤8.8:响应UUT测试任务操作界面的测试过程人机界面交互;若为启动按钮执行,则执行步骤8.2;若为退出按钮执行,则依次释放各个触发器资源以及UUT测试任务操作界面相关资源。Step 8.8: Respond to the human-machine interface interaction in the test process of the UUT test task operation interface; if it is executed by the start button, perform step 8.2; if it is executed by the exit button, release each trigger resource and the related resources of the UUT test task operation interface in sequence.
CN201710365815.3A 2017-05-23 2017-05-23 A Synchronous Trigger Execution Method for Parallel Test Tasks Active CN107239331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710365815.3A CN107239331B (en) 2017-05-23 2017-05-23 A Synchronous Trigger Execution Method for Parallel Test Tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710365815.3A CN107239331B (en) 2017-05-23 2017-05-23 A Synchronous Trigger Execution Method for Parallel Test Tasks

Publications (2)

Publication Number Publication Date
CN107239331A CN107239331A (en) 2017-10-10
CN107239331B true CN107239331B (en) 2019-11-22

Family

ID=59984420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710365815.3A Active CN107239331B (en) 2017-05-23 2017-05-23 A Synchronous Trigger Execution Method for Parallel Test Tasks

Country Status (1)

Country Link
CN (1) CN107239331B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725301A (en) * 2017-10-31 2019-05-07 北醒(北京)光子科技有限公司 A kind of test method
CN108491201B (en) * 2018-03-13 2021-04-09 南京瑷卡测控技术有限公司 Graphical programming interface of integrated test system and programming method thereof
CN109634853A (en) * 2018-11-30 2019-04-16 平安科技(深圳)有限公司 Data test method, system, electronic device and computer readable storage medium
CN112147482B (en) * 2019-06-26 2023-06-13 杭州广立微电子股份有限公司 Parallel test system and test method thereof
CN112056760B (en) * 2020-08-18 2023-01-06 惠州市德赛西威汽车电子股份有限公司 One-stop test system and method
CN116359716B (en) * 2023-05-31 2023-08-04 深圳市华测半导体设备有限公司 Method, system and medium for dynamic allocation of test resources in IC tester

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369078B2 (en) * 2004-08-16 2008-05-06 National Instruments Corporation Flexible converter interface for use in analog-to-digital and digital-to-analog systems
CN102420714A (en) * 2011-08-29 2012-04-18 展讯通信(上海)有限公司 Test management method, test management system master control center and test management system
CN103077135A (en) * 2012-12-31 2013-05-01 中国电子科技集团公司第四十一研究所 Test resource management method capable of supporting parallel tests
CN105138462A (en) * 2015-09-24 2015-12-09 武汉泰世达科技有限公司 Testing software integration frame and method for processing testing data
CN105260191A (en) * 2015-11-03 2016-01-20 中国电子科技集团公司第四十一研究所 Configuration-based test program and operator interface data interaction method
CN105955239A (en) * 2016-05-26 2016-09-21 上海添测智能科技有限公司 General test platform rapid construction method based on shared memory
CN106021100A (en) * 2016-05-12 2016-10-12 中国电子科技集团公司第四十研究所 Test task operation scheduling method in support of parallel tests

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369078B2 (en) * 2004-08-16 2008-05-06 National Instruments Corporation Flexible converter interface for use in analog-to-digital and digital-to-analog systems
CN102420714A (en) * 2011-08-29 2012-04-18 展讯通信(上海)有限公司 Test management method, test management system master control center and test management system
CN103077135A (en) * 2012-12-31 2013-05-01 中国电子科技集团公司第四十一研究所 Test resource management method capable of supporting parallel tests
CN105138462A (en) * 2015-09-24 2015-12-09 武汉泰世达科技有限公司 Testing software integration frame and method for processing testing data
CN105260191A (en) * 2015-11-03 2016-01-20 中国电子科技集团公司第四十一研究所 Configuration-based test program and operator interface data interaction method
CN106021100A (en) * 2016-05-12 2016-10-12 中国电子科技集团公司第四十研究所 Test task operation scheduling method in support of parallel tests
CN105955239A (en) * 2016-05-26 2016-09-21 上海添测智能科技有限公司 General test platform rapid construction method based on shared memory

Also Published As

Publication number Publication date
CN107239331A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
CN107239331B (en) A Synchronous Trigger Execution Method for Parallel Test Tasks
US10503549B2 (en) Time critical tasks scheduling
KR101629989B1 (en) Method for the deterministic execution and synchronisation of an information processing system comprising a plurality of processing cores executing system tasks
US9886077B2 (en) Processor management via thread status
US8402463B2 (en) Hardware threads processor core utilization
US9582320B2 (en) Computer systems and methods with resource transfer hint instruction
US20060268967A1 (en) Supplying instruction to operational stations
US10331531B2 (en) Self-testing in a processor core
CN112329366A (en) SOC (system on chip) system verification method, device and system for improving simulation efficiency
CN109766168B (en) Task scheduling method and device, storage medium and computing equipment
CN106021100A (en) Test task operation scheduling method in support of parallel tests
Wada et al. Fast interrupt handling scheme by using interrupt wake-up mechanism
Andersson et al. Finding an upper bound on the increase in execution time due to contention on the memory bus in COTS-based multicore systems
KR101892273B1 (en) Apparatus and method for thread progress tracking
JP2010140239A (en) Apparatus and method for shortening interrupt latency
Brandenburg et al. Accounting for interrupts in multiprocessor real-time systems
Eyerman et al. Revisiting symbiotic job scheduling
JP2010140319A (en) Semiconductor device
Huang et al. Research on Real-time Performance Testing Methods for Robot Operating System.
CN116166566A (en) Test case multithreading scheduling method, system and test management device
Schade et al. Using Trace Data for Run-Time Optimization of Parallel Execution in Real-Time Multi-Core Systems
Drótos et al. Interrupt driven parallel processing
Drehmel et al. Precision Power Measurements of FPGA-MPSoCs
Kumura et al. Overhead-Aware Schedulability Analysis on Responsive Multithreaded Processor
Huang et al. A denotational model for interrupt-driven programs

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