CN107239331B - A kind of synchronous triggering execution method of concurrent testing task - Google Patents

A kind of synchronous triggering execution method of concurrent testing task 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
uut
trigger
test assignment
state
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 Institute
Original Assignee
CETC 41 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 Institute filed Critical CETC 41 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The invention discloses a kind of synchronous triggering execution methods of concurrent testing task, belong to test field of measuring technique.The synchronous triggering execution method of concurrent testing task proposed by the invention, each part to be measured (Unit Under Test is built based on synchronizer trigger, UUT) the test process controlling mechanism of test assignment, it is called using the setting of trigger property parameters and power function to complete the pre-adjusting and setting of test process control option, when user starts UUT test assignment by test assignment operation interface, all UUT test assignment application programs registered can be executed at once;The present invention has the advantages that the execution time delay stabilization of UUT test assignment can set and not influenced by UUT concurrent testing number, is particularly suitable for requiring the demand scene of each UUT test assignment " being performed simultaneously ".

Description

A kind of synchronous triggering execution method of concurrent testing task
Technical field
The invention belongs to test field of measuring technique, and in particular to a kind of synchronous triggering side of execution of concurrent testing task Method.
Background technique
In recent years, parallel test techniques are concerned and are more and more widely used in test fields of measurement.With For the used parallel test techniques of semiconductor test industry, current mating automatic test equipment (Automatic Test Equipment, ATE)/system (Automatic Test System, ATS) usually using test fixture once loads it is a collection of to Part is surveyed, these UUT test assignments (thread or process) are concurrently executed.These ATE/ATS effectively increase testing efficiency and test Throughput.But since used parallel test environment is mainly uniprocessor non-real time operating system (such as Windows), because And the synchronization on being difficult to realize strictly to look like executes multiple UUT test assignments, only the multithreading in very short time interval/ Multi-course concurrency processing.Common practices is as shown in Figure 1, on the whole, operation user passes through test assignment operation interface successively first Start each UUT test assignment, then each UUT test assignment independently concurrently executes, between each other without influence, in turn at occupancy Manage device time and instrumentation resource;It is seen on part, single UUT test assignment adjusts test essential information in order, executes respectively The movement of a presumptive test (including test mode setting, signal excitation, signal measurement, data acquisition, storage record, report life At ...) after all test actions are finished, next UUT is changed depending on condition and continues to handle, and so circulation is repeatedly straight To the batch testing for completing all UUT.It is summed up, it may be said that be that " whole parallelization asynchronism and concurrency executes, partial serialization is suitable Sequence processing ".Obviously, at present this executions processing mode Shortcomings: each UUT test assignment from execution start to execution it is ready Between there is the uncertain time delay gradually increased, this time delay more invents with UUT test assignment number of concurrent purpose increase It is aobvious, thus the time-sensitive scene demand that multiple UUT test assignments require " being performed simultaneously " can not be suitable for.
Parallel test techniques be in order to solve the problems, such as serial order measuring technology testing efficiency is low, resource utilization is low and It proposes.Traditional serial order test within the same moment or same time interval can only to a UUT test assignment into Row processing, and parallel test techniques " can then be performed simultaneously " multiple UUT test assignments.This can not only improve testing efficiency, Shorten the testing time, and the idle waiting state time of each test resource can be reduced, allows multiple UUT to share limited and precious Expensive test resource, effectively save testing cost.Currently, the application of parallel test techniques is concentrated mainly on semiconductor production survey The fields such as examination, software test, communication product testing protocol consistency and equipment repair detection.Parallel test techniques are ground the country Study carefully in the ascendant, related research result is concentrated mainly on architecture, system model and task schedule of parallel test system etc. Aspect, not yet formation Systems Theory.
2.1.1 the concept of parallel test system
The test method that traditional Auto-Test System uses is the sequential testing (Sequence based on serial concept Test), basic ideas are as shown in Figure 2.When carrying out test assignment execution to a UUT, test action is by sequence in advance It is handled, until subsequent UUT test assignment can be started to process after its everything is disposed.It is more if it exists It when a UUT test assignment executes, is then successively handled according to preset sequence, i.e. a UUT test assignment processing It finishes and just starts to execute next UUT test assignment.
The parallel test system concept for being different from traditional order test is given below.
Define 1.1 parallel test systems: test macro processor is in same time interval according to certain scheduling strategy Input system is stored to the efficient parallel processing of test sequence of multiple test objects in equipment, test macro is in the same time Multinomial test assignment can be run in section.The foundation that test sequence divides be data between consideration task are unrelated, resource without Close and control the factors such as unrelated.Parallel test system is on the basis of conventional serial test macro by the integration of resource and soft What the change of part operational mode was developed.
Currently, the framework of parallel test system according to can be divided into uniprocessor concurrent testing knot using processor number Structure and parallel multiprocessor test structure.Wherein, parallel multiprocessor test structure has more than two processors, passes through height Fast communication bus, shared memory space or input/output are tested, and have higher requirement to software and hardware resources.It presses Relationship between multiprocessor is divided into two class of distributed processing structure and master-slave processing structure.Distributed parallel is tested in structure Every computer can independently be effectively carried out test assignment, and test synchronization and resource-sharing are realized by high speed network; Principal and subordinate processor structure is then that the part work of primary processor is shared using the slave processor for laying under tribute and having a single function Make, to mitigate the burden of primary processor, improve testing efficiency.Uniprocessor Parallel Test Architecture is then by appointing to different tests The scheduling of business handles the time of task to distribute single processor to realize concurrent testing.Test assignment therein is with multiple lines The form of journey (Multiple Threads) or multiple processes (Multiple Processes) exists, and passes through central processing unit (Central Processing Unit, CPU) switching of the processor between thread or process is handled to complete test execution.Two Person is comparatively, parallel multiprocessor test structure is higher to the hardware requirement of system, structure is complicated, uniprocessor concurrent testing The hardware requirement of structure is lower, structure is simple.Thus, it is generally applicable in and the still uniprocessor of testing cost can be effectively reduced simultaneously Row test structure.
2.1.2 the advantage of parallel test techniques
Parallel test techniques substantially increase test throughput, improve test by the Optimum utilization to test resource Resource utilization reduces the testing time, and then is effectively saved testing cost.It is mainly shown as:
Improve test throughput.Parallel test system is accomplished in several ways the dynamic allocation of test resource and optimization is adjusted Degree, can be executed concurrently multiple UUT test assignments within the same time.Come from the point of view of batch testing, it is single by increasing The quantity of UUT just can be improved the efficiency of entire test macro in the time of position.The efficiency of test macro is higher, to test throughput Raising degree it is higher.
Improve test resource utilization rate.Concurrent testing mainly includes two o'clock to the raising of test resource utilization rate, first is that the greatest extent Amount keeps test resource in running order, second is that test resource is made to be fully utilized.Concurrent testing task is constantly running, It uses to application test resource, test resource is used by new test assignment application again once idle.In the ideal case, Test resource is constantly in working condition in entire test process, i.e. test resource is constantly in non-during entire test Idle state.
Reduce the testing time.When according to statistics, using sequential testing mode, the time of processor about 80% is in idle shape State.By taking the experimental result of U.S. NI (National Instruments) company supervision test software TestStand as an example: in list Under the conditions of processor multi-threaded parallel, same UUT test sequence, concurrent testing are run using TestStand software The time is expended under mode than expending time reduction about 33% under serial order mode.It is obvious that testing time reduces effect.
2.2 prior art implementations
2.2.1 the implementation of concurrent testing
There are mainly three types of forms for the implementation of concurrent testing: the first is the concurrent testing for multiple UUT, task The object of scheduling is each UUT test assignment, the corresponding UUT test assignment of each UUT;Second is multiple on single UUT The concurrent testing of test assignment, the object of task schedule are multiple test assignments of the same UUT;The third is then front two Multiple test assignments that the combination of kind form, i.e. scheduler object are multiple UUT.In view of between the test assignment of these different scales The problems such as avoiding deadlock, competition and starvation is needed, the first form obviously implements the most directly, thus also by mainstream Mature concurrent testing software is generallyd use.These concurrent testing softwares include U.S. Nl company's T estStand, the U.S. TYX public affairs The TestBase etc. of department, they are each provided with the concurrent testing solution for multiple UUT, carry out by granularity unit of UUT Task schedule.
For the TestStand software provided by the Nl company, the U.S., TestStand, which is used, is based on uniprocessor multithreading Parallel Test Architecture, task schedule wanted using commonly dispatching method is seized priority-based in Design of System Software A kind of corresponding cycle tests of UUT is sought, settable cycle tests priority ensures that more UUT are competing using lock (Lock) object Exclusivity of some UUT to resource when striving.The concurrent testing of TestStand provides two kinds of models: batch process model (Batch Process Model) and concurrent process model (Parallel Process Model), as shown in Figure 3.Wherein, batch process Using multiple UUT test assignments as one group in model, it is ensured that multiple UUT test assignments in the group start simultaneously at execution and waiting It handles while terminating.Intermediate test action item is indifferent under batch process model default situations, all UUT test action items exist It is completely independent in implementation procedure and parallel.Comparatively, UUT has to wait for most slow UUT test under batch process model Could test at last after task terminates, it is clear that the testing time in idle state is longer.Batch process model is more to answer For semiconductor production testing field;The application of concurrent process model is more universal, and each UUT test assignment is complete under the model It independence and is independent of each other.For single UUT, test execution is serial process in order, from starting test until institute There is test action to be finished, optionally replaces next UUT later and continue to handle.Ideally measuring executing process In there is no competition, deadlock the problems such as, can increase substantially testing efficiency and test throughput.
In conclusion either batch process model or concurrent processing model, as employed in parallel test system Parallel test environment is mainly uniprocessor non-real time operating system (such as Windows), in addition instrumentation, interface device The restrict of equal critical resources, there is no really realize that " being performed simultaneously " is multiple for actually current various parallel test systems UUT test assignment, and only realize the UUT test assignment in Fixed Time Interval and concurrently execute processing.
The concurrent testing task executing method once having at present in parallel test system is described below.
2.2.2 existing concurrent testing task executing method
Current existing concurrent testing task executing method, primarily focuses on and utilizes mature technology and shelf software and hardware resources Comprehensive integration is carried out, is summed up and can be described as " concurrently executing on the whole, partial serialization sequential processes ".Below with application compared with To be illustrated for universal TestStand software parallel process model (Parallel Process Model): such as Fig. 1 institute Show, on the whole, operates user first with test assignment operation interface and successively start each UUT test assignment, then each UUT Test assignment independently concurrently executes, and between each other without influence, occupies processor time and instrumentation resource in turn;On part It sees, single UUT test assignment adjusts that test essential information, executing the movement of each presumptive test, (including test mode is set in order Set, signal excitation, signal measurement, data acquisition, storage record, report generation ...) after all test actions are finished, It changes next UUT depending on user's operation condition to continue to handle, so circulation is repeatedly until the batch testing of all UUT of completion. Obviously, from executing in process, this execution method is that " whole parallelization asynchronism and concurrency executes, at partial serialization sequence Reason ".
Thus, this concurrent testing task executing method Shortcomings: each UUT test assignment is from starting between ready In the presence of the uncertain time delay gradually increased, the time-sensitive field of each UUT test assignment " being performed simultaneously " can not be suitable for Scape demand.With the increase of UUT parallel scale, the concurrent number of UUT test assignment necessarily increases, this uncertain time delay phenomenon It is more serious!
Existing multiple UUT concurrent testing task execution processing techniques pass through software test task operating by operation user Interface successively starts each UUT test assignment, and then each UUT test assignment is successively ready and independently concurrently executes, and accounts in turn Dependence test movement is completed with processor time and instrumentation resource.The technology has the following disadvantages:
1, each UUT test assignment from execution start to function it is ready between there are uncertain time delays.Due to simultaneously Row test run environment is uniprocessor non-real time operating system (such as Windows), technology realize using multi-process or Multithreaded architecture, be by processor between process or cross-thread switching to complete to handle, this will necessarily just occupy processor CPU time and memory source, thus time delay is inevitable.The successively starting of UUT test assignment is handled, and is substantially one Create thread or load process, the process of the ready initialization of function.The starting treatment process occupied CPU time is longer, also Mean that the ready time delay of UUT test assignment is bigger.Simultaneously as this starting treatment process there is with other lines Processor resource competition between journey or process, this time delay spacing that each UUT test assignment executes are necessarily uncertain.
2, it cannot achieve the demand scene of each UUT test assignment " being performed simultaneously "." being performed simultaneously ", it is meant that each UUT concurrent testing task must concurrently execute in synchronization or very short time interval.UUT test assignment is from executing starting To existing unpredictable time-delay between ready, necessarily cause to be difficult to realize " being performed simultaneously ".Moreover, with UUT test assignment The concurrent purpose of number increases, and the uncertainty of this time delay is more obvious.Thus, the prior art can not be suitable for multiple UUT Test assignment requires the time-sensitive scene demand of " being performed simultaneously ".
Summary of the invention
For the above-mentioned technical problems in the prior art, the invention proposes a kind of synchronous touchings of concurrent testing task Execution method is sent out, design rationally, overcomes the deficiencies in the prior art, can effectively solve the problem that the execution time of UUT test assignment prolongs The problem of not knowing and being influenced late by UUT concurrent testing number has good effect.
To achieve the goals above, the present invention adopts the following technical scheme:
A kind of synchronous triggering execution method of concurrent testing task, includes the following steps:
Step 1: design UUT test assignment synchronizer trigger, the application programming for providing its property parameters and power function connect Mouthful;
Step 2: design UUT test assignment operation interface provides test mode display area and UUT test process controls function It can button;
Step 3: the test process of design UUT test assignment operation interface configures button, and registered callbacks function is that pop-up is surveyed Try process configuration window;
Step 4: the test process start button of design UUT test assignment operation interface, registered callbacks function are all same The triggering state of step trigger sets gradually as state of activation;
Step 5: the test process stop button of design UUT test assignment operation interface, registered callbacks function are to stop just UUT test assignment in operation;
Step 6: the test process exit button of design UUT test assignment operation interface, registered callbacks function are to exit to work as Preceding human-computer interaction interface;
Step 7: operation user carries out the control option parameter tune of UUT test process by UUT test assignment operation interface Whole and setting;
Step 8: operation user is carried out the starting of UUT test assignment by UUT test assignment operation interface, stops or exit Operation.
Preferably, in step 1, the property parameters of synchronizer trigger include at least control handle ID, triggering type, triggering State and trigger action;Power function includes at least creation trigger, the setting of triggering type, triggering state setting, trigger action Registration and release trigger;
Wherein, control handle ID is unique numeric, it is specified that being normal success status greater than 0, is abnormal failure shape less than 0 State has carried out resource release equal to 0 expression trigger;The single corresponding UUT test assignment of synchronizer trigger, and pass through the control Handle ID processed discharges to carry out resource bid, parameter configuration, funcall and resource;
Triggering type include at least is immediately performed and postpone execute, delay time is settable, and the time control precision and The same magnitude of time delay that concurrent tasks execute;
Triggering state includes at least activation and invalid two kinds;Trigger action execution is carried out according to triggering type under state of activation And does not allow to carry out trigger action and re-register;The trigger action of trigger is in and loses executive capability and permission under invalid state Carry out the registration of trigger action;
Trigger action at least allows to be appointed as currently valid test action sequence, executable test application program or dynamic Library mode test application program media file, trigger action in the case where triggering state of activation at once response execute and normal termination after from Dynamic change triggering state is invalid;
Triggering type default be set as being immediately performed, triggering state default setting be it is invalid, trigger action default registration is UUT test assignment action sequence.
Preferably, in step 2, test mode display area includes at least UUT and tests essential information, UUT test process State and user operation records;UUT tests essential information and includes at least operation user, testing time, test environment, test resource And the title and association attributes of test object;UUT test process state include unloaded (UNLOADED), ready (READY), (RUNNING) in operation, pause (HALTED), (FINISH) and unknown (UNKNOWN) is completed;User operation records display is used Family passes through log information caused by UUT test assignment operation interface and exception error information;
UUT test process control function button includes at least configuration button, start button, stop button and exit button; Configuration button is for assisting user to carry out test process model, the concurrent number of test station and UUT test assignment application program Setting, test process model at least provide sequential process model, concurrent process model and three kinds of batch process model, test station Concurrent number and the concurrent number of UUT test assignment are consistent, the concurrent number of UUT test assignment and number of flip-flops keep one It causes, UUT test assignment application program is designated as currently valid test action sequence, executable test application program or dynamic Library mode test application program media file;Start button controls UUT test assignment for assisting user and carries out certainly on backstage It is dynamic to execute, and in the test process state for updating each UUT test assignment;Stop button is for assisting user's forced termination Running UUT test assignment;Exit button is for assisting user to exit current UUT test assignment operation interface;Function is pressed The control planning of the invalid attribute of button is arranged are as follows: when entering UUT test assignment operation interface, stop button be in vain it is true, other Button inactive is false;After start button executes, stop button is vacation in vain, other button inactives are true;After stop button executes, All button inactives are true;When single UUT test assignment executes completion and carries out UUT test process status display, if all UUT Test process state is not in operation, then stop button be in vain it is true, other button inactives are false.
Preferably, in step 3, test process allocation window control option includes at least test process model, test work The concurrent number in position and UUT test assignment application program;Adjustment finish confirm successfully after return UUT test assignment operation interface when, It is automatically configured according to control option parameter, successively carries out trigger creation and trigger category according to the concurrent number of test station Property parameter setting, triggering state is set as invalid, trigger action is registered as selected UUT test assignment application program;
Wherein, test process model at least provides sequential process model, concurrent process model and three kinds of batch process model, Default to concurrent process model;The concurrent number of test station is corresponding with the concurrent number of UUT test assignment, limitation numerical value be >=1, it is small In the concurrent number of maximum UUT, default values 4;UUT test assignment application program is designated as currently valid test action sequence Column, executable test application program or dynamic base mode test application program media file.
Preferably, in step 4, the code execution of the registered callbacks function is optimized for minimum time consumption, when single When the state of trigger is set as activation, trigger action is performed at once, and when all trigger bulk activations, triggering is dynamic Making specified UUT test assignment can be performed to simultaneously.
Preferably, in steps of 5, specifically comprise the following steps:
Step 5.1: whether in operation successively judging each UUT test process state;
If: judging result is each UUT test process state without in operation, skipping at current UUT test process Reason;
Or judging result be each UUT test process state in operation, then be arranged corresponding trigger state of activation without Effect waits UUT test assignment performed by the trigger action of backstage to exit, and synchronized update test mode is shown;
Step 5.2: the trigger action of corresponding trigger rings triggering invalid state according to test process concrete condition It answers, at the end of trigger action executes, judges whether triggering state is activation, if it is invalid that triggering state, which is then arranged,;
Step 5.3 judges that trigger action executes return state;
If: judging result is that trigger action execution return state is normal, and synchronized update UUT test process state is complete At;
Or judging result is that trigger action execution return state is abnormal, then synchronized update UUT test process state is temporary Stop.
Preferably, in step 6, successively judge whether triggering state is invalid according to each trigger;
If: judging result is that triggering state is in vain, to prompt to wait;
Or it is effectively, then successively to discharge each trigger resources and UUT test assignment behaviour that judging result, which is triggering state, Make interface related resource.
Preferably, in step 7, it is concurrent including at least test process model, test station to can adjust control option parameter Number, UUT test assignment application program;The concurrent number of test station is corresponding with number of flip-flops, UUT test assignment application program It is corresponding with trigger action;After controlling option parameter adjustment, if test process model is concurrent process model, according to triggering Device number carries out trigger creation and is arranged with trigger property parameters, wherein triggering type is set as being immediately performed, triggering state It is set as invalid, trigger action is registered as selected UUT test assignment application program.
Preferably, in step 8, specifically comprise the following steps:
Step 8.1: the test process man-machine interface interaction of response UUT test assignment operation interface;It is held if start button Row, thens follow the steps 8.2;Otherwise, continue idle waiting;
Step 8.2: the triggering state of each UUT test assignment trigger being both configured to activate, update institute is functional to press The invalid state of button;
Step 8.3: the corresponding trigger action of each UUT test assignment trigger carries out automated toing respond to hold according to presetting Row, each test assignment function are ready;
Step 8.4: individually the corresponding trigger action of UUT test assignment trigger executes processing, i.e. adjustment UUT test is basic Information, the UUT test assignment application program for executing registered trigger action and notice UUT test assignment operation interface are surveyed Examination executes status display;
Step 8.5: response operation user passes through the manual intervention that UUT test assignment operation interface is carried out;If stopping Push-botton operation then updates the invalid state of all function buttons, then executes step 8.7;
Step 8.6: after the trigger action of single UUT test assignment is finished, the triggering state of current trigger is set Be it is invalid, prompt and user guided to determine whether to handle next UUT test assignment;If handling next UUT test assignment, The triggering state of current trigger is set for activation, then executes step 8.3;Otherwise, step 8.7 is executed;
Step 8.7: updating UUT test process status display and user operation records journal displaying;
Step 8.8: the test process man-machine interface interaction of response UUT test assignment operation interface;It is held if start button Row, thens follow the steps 8.2;It is executed if exit button, then successively discharges each trigger resources and the operation of UUT test assignment Interface related resource.
Advantageous effects brought by the present invention:
The synchronous triggering execution method of concurrent testing task proposed by the invention, is built each based on synchronizer trigger The test process controlling mechanism of UUT test assignment is called using the setting of trigger property parameters and power function to complete to test The pre-adjusting and setting of process control option can when user starts UUT test assignment by test assignment operation interface All UUT test assignment application programs registered are executed at once;The present invention has the execution time delay of UUT test assignment steady Surely the advantages of can setting and not influenced by UUT concurrent testing number, is particularly suitable for requiring each UUT test assignment " being performed simultaneously " Demand scene.
Detailed description of the invention
Fig. 1 is the flow chart that part test assignment to be measured executes.
Fig. 2 is sequential testing task execution schematic diagram.
Fig. 3 is the schematic diagram of batch process model and concurrent process model.
Fig. 4 is the flow diagram of the method for the present invention.
Fig. 5 is the action relationships schematic diagram of the method for the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment invention is further described in detail:
A kind of synchronous triggering execution method of concurrent testing task, process as shown in figure 4, action relationships as shown in figure 5, For the demand scene of multiple UUT test assignments " being performed simultaneously ", the survey of each UUT test assignment is built based on synchronizer trigger Process control scheme is tried, is called using the setting of trigger property parameters and power function to complete the pre- of test process control option First adjustment and setting.When user starts UUT test assignment by test assignment operation interface, it can execute and be registered at once All UUT test assignment application programs, and then it is effectively improved the time delay phenomenon that UUT test assignment concurrently executes.Specifically include as Lower step:
Step 100, UUT test assignment synchronizer trigger is designed, property parameters and power function API are provided (Application Programming Interface);
Step 102, UUT test assignment operation interface is designed, test mode display area is provided and UUT test process controls Function button;
Step 104, the test process for designing UUT test assignment operation interface configures button, and registered callbacks function is pop-up Test process allocation window;
Step 106, the test process start button of UUT test assignment operation interface is designed, registered callbacks function is all The triggering state of synchronizer trigger sets gradually as state of activation;
Step 108, the test process stop button of UUT test assignment operation interface is designed, registered callbacks function is to stop UUT test assignment in being currently running;
Step 110, the test process exit button of UUT test assignment operation interface is designed, registered callbacks function is to exit Current human-computer interaction interface;
Step 112, operation user carries out the control option parameter of UUT test process by UUT test assignment operation interface Adjustment and setting;
Step 114, operation user passes through UUT test assignment operation interface and carries out the starting of UUT test assignment, stops or move back It operates out.
In step 100, it specifically includes:
A, the nonsynchronous timer or thread pool machine provided using high precision clock generator inside processor and operating system System provides property parameters and power function API to design synchronizer trigger.Wherein property parameters include at least control handle ID, Type, triggering state and trigger action are triggered, power function includes at least creation trigger, the setting of triggering type, triggering state Setting, trigger action registration and release trigger;
B, control handle ID is unique numeric, and it is normal success status that agreement, which is greater than 0, is abnormal status of fail less than 0, etc. Resource release has been carried out in 0 expression trigger;The single corresponding UUT test assignment of synchronizer trigger, and pass through the control sentence Handle ID discharges to carry out resource bid, parameter configuration, funcall and resource;
C, triggering type, which includes at least, is immediately performed and postpones to execute, and delay time is settable, and the time controls precision The same magnitude of time delay (being limited by processor clock generator gate time precision) executed with concurrent tasks;
D, triggering state includes at least activation and invalid two kinds.Trigger action is carried out according to triggering type under state of activation to hold It goes and does not allow to carry out trigger action and re-register;The trigger action of trigger, which is in, under invalid state loses executive capability and permits Perhaps the registration of trigger action is carried out;
E, trigger action at least allows to be appointed as currently valid test action sequence, executable test application program or dynamic State library mode test application program media file, trigger action response at once in the case where triggering state of activation execute and after normal terminations Automatic change triggering state is invalid.It is required that trigger action optimization design, both facilitates triggering fast automatic execution when lighting a fire, again Allow to re-register as other UUT test assignment application programs;
F, triggering type default are set as being immediately performed, and triggering state default setting is invalid, trigger action default registration For UUT test assignment action sequence.
In a step 102, it specifically includes:
A, display area is shown including at least UUT test essential information, UUT test process status display and user's operation are remembered Record display.UUT tests essential information and includes at least operation user, testing time, test environment, test resource and test object Title and association attributes;UUT test process state include unloaded (UNLOADED), ready (READY), operation in (RUNNING), suspend (HALTED), (FINISH) and unknown (UNKNOWN) is completed;User operation records show that user passes through Log information caused by UUT test assignment operation interface and exception error information;
B, UUT test process function button includes at least and configures, starts, stops and exit.Configuration button can assist using Family is configured test process model, the concurrent number of test station and UUT test assignment application program, and test process model is extremely Offer sequential process model, concurrent process model and three kinds of batch process model less, the concurrent number of test station and UUT test are appointed Concurrent number of being engaged in is corresponding, and UUT test assignment application program is designated as currently valid test action sequence, executable test is answered With program or dynamic base mode test application program media file;Start button can assist user to control UUT test assignment It is executed automatically on backstage, and in the test process state for updating each UUT test assignment;Stop button can assist user Forced termination be currently running in UUT test assignment;Exit button can assist user to exit current UUT test assignment operation Interface.The invalid attribute setting control planning of function button designs are as follows: when entering UUT test assignment operation interface, stop button It is in vain that very, other button inactives are false;After start button executes, stop button is vacation in vain, other button inactives are true;Stop After only button executes, all button inactives are true;Single UUT test assignment executes completion and carries out UUT test process state and shows When showing, if all UUT test process states are not in operation (RUNNING), stop button be in vain true, other buttons without Effect is false.
At step 104, specifically include: test process allocation window controls option and includes at least test process model, surveys The concurrent number in trial work position and UUT test assignment application program.Adjustment finish confirm successfully after return UUT test assignment operation interface When, it is automatically configured according to control option parameter.Trigger creation and triggering are successively carried out according to the concurrent number of test station The setting of device property parameters, triggering state is set as invalid, trigger action is registered as selected UUT test assignment application program;
Wherein, test process model at least provides sequential process model, concurrent process model and three kinds of batch process model, Default to concurrent process model.The concurrent number of test station is corresponding with the concurrent number of UUT test assignment, limitation numerical value be greater than etc. In 1, less than the concurrent number of maximum UUT, default values 4.UUT test assignment application program can be designed to currently valid test Action sequence, executable test application program or dynamic base mode test application program media file.
In step 106, specifically include: the code execution of institute's registered callbacks function should be optimized for minimum time consumption, with Ensure that it executes time consumption and can be ignored compared with triggering time delay.When the state of single trigger is set as activating When, trigger action can be performed at once.When all trigger bulk activations, the test of UUT specified by trigger action is appointed Business can be then performed to simultaneously, and then ensure to execute by the trigger action of each trigger to complete all UUT tests and appoint The concurrent processing of business.
In step 108, specifically comprise the following steps:
A, successively judge whether each UUT test process state is RUNNING (in operation).If it is not, then skipping over current UUT Test process processing;If so, being arranged, corresponding trigger state of activation is invalid, waits UUT performed by the trigger action of backstage Test assignment is exited, and synchronized update test mode is shown;
B, the trigger action of corresponding trigger can respond triggering invalid state according to test process concrete condition. At the end of trigger action executes, judge whether triggering state is activation, if it is invalid that triggering state, which is then arranged,;
If c, trigger action execution return state is normal, synchronized update UUT test process state is that FINISH is (complete At), otherwise synchronized update UUT test process state is HALTED (pause).
In step 110, it specifically includes:
Successively according to each trigger judge triggering state whether be it is invalid, if then carrying out prompt waiting, if otherwise into The release of row related resource.
In step 112, it specifically includes:
Adjustable control option parameter includes at least test process model, the concurrent number of test station (corresponding trigger number Mesh) with UUT test assignment application program (corresponding trigger action);After controlling option parameter adjustment, if test process model For concurrent process model, then trigger creation is carried out according to number of flip-flops and be arranged with trigger property parameters, wherein triggering class Type is set as being immediately performed, triggering state is set as invalid, trigger action is registered as selected UUT test assignment application program.
In step 114, specifically comprise the following steps:
A, the test process man-machine interface interaction of UUT test assignment operation interface is responded.It executes, then holds if start button Row b;Otherwise, continue idle waiting;
B, the triggering state of each UUT test assignment trigger is both configured to activate, updates the nothing of all function buttons Effect state;
C, the corresponding trigger action of each UUT test assignment trigger carries out automated toing respond to execute according to presetting, respectively A test assignment function is ready;
D, the corresponding trigger action of single UUT test assignment trigger executes processing, i.e., adjustment UUT test essential information, Execute the UUT test assignment application program of registered trigger action, notice UUT test assignment operation interface carries out test execution shape State is shown;
E, response operation user passes through the manual intervention that UUT test assignment operation interface is carried out.It is grasped if stop button Make, then executes g after updating the invalid state of all function buttons;
F, after the trigger action of single UUT test assignment is finished, be arranged current trigger triggering state be it is invalid, It prompts and user is guided to determine whether to handle next UUT test assignment.If handling next UUT test assignment, setting is worked as The triggering state of preceding trigger is activation, executes c;Otherwise, g is continued to execute;
G, UUT test process status display and user operation records journal displaying are updated;
H, the test process man-machine interface interaction of UUT test assignment operation interface is responded.It executes, then holds if start button Row step b;It is executed if exit button, then it is related successively to discharge each trigger resources, release UUT test assignment operation interface Resource.
Certainly, the above description is not a limitation of the present invention, and the present invention is also not limited to the example above, this technology neck The variations, modifications, additions or substitutions that the technical staff in domain is made within the essential scope of the present invention also should belong to of the invention Protection scope.

Claims (8)

1. a kind of synchronous triggering execution method of concurrent testing task, characterized by the following steps:
Step 1: design UUT test assignment synchronizer trigger provides the Application Programming Interface of its property parameters and power function;Together The property parameters for walking trigger include at least control handle ID, triggering type, triggering state and trigger action;Power function is at least Including creation trigger, the setting of triggering type, triggering state setting, trigger action registration and release trigger;
Wherein, control handle ID is unique numeric, it is specified that being normal success status greater than 0, is abnormal status of fail less than 0, etc. Resource release has been carried out in 0 expression trigger;The single corresponding UUT test assignment of synchronizer trigger, and pass through the control sentence Handle ID discharges to carry out resource bid, parameter configuration, funcall and resource;
Triggering type include at least is immediately performed and postpone execute, delay time is settable, and the time control precision with concurrently The same magnitude of the time delay of task execution;
Triggering state includes at least activation and invalid two kinds;Trigger action execution and not is carried out according to triggering type under state of activation Allow to carry out trigger action to re-register;The trigger action of trigger is in and loses executive capability and allow to carry out under invalid state The registration of trigger action;
Trigger action at least allows to be appointed as currently valid test action sequence, executable test application program or dynamic base mould Formula test application program media file, trigger action response at once in the case where triggering state of activation execute and become automatically after normal termination More triggering state is invalid;
Triggering type default be set as being immediately performed, triggering state default setting be it is invalid, trigger action default registration be UUT survey Trial business action sequence;
Step 2: design UUT test assignment operation interface, provide test mode display area and UUT test process control function by Button;
Step 3: the test process of design UUT test assignment operation interface configures button, and registered callbacks function is that pop-up was tested Journey allocation window;
Step 4: the test process start button of design UUT test assignment operation interface, registered callbacks function are all synchronous touchings The triggering state of hair device sets gradually as state of activation;
Step 5: the test process stop button of design UUT test assignment operation interface, registered callbacks function are to stop transporting UUT test assignment in row;
Step 6: the test process exit button of design UUT test assignment operation interface, registered callbacks function are to exit to work as forefathers Machine interactive interface;
Step 7: operation user by UUT test assignment operation interface carry out UUT test process control option parameter adjustment with Setting;
Step 8: operation user is carried out the starting of UUT test assignment by UUT test assignment operation interface, stops or exit behaviour Make.
2. the synchronous triggering execution method of concurrent testing task according to claim 1, it is characterised in that: in step 2, Test mode display area includes at least UUT test essential information, UUT test process state and user operation records;UUT test The title and correlation that essential information includes at least operation user, testing time, test environment, test resource and test object belong to Property;UUT test process state include unloaded, it is ready, operation in, suspend, be completed with it is unknown;User operation records display is used Family passes through log information caused by UUT test assignment operation interface and exception error information;
UUT test process control function button includes at least configuration button, start button, stop button and exit button;Configuration Button is used to that user to be assisted to be configured test process model, the concurrent number of test station and UUT test assignment application program, Test process model at least provides sequential process model, concurrent process model and three kinds of batch process model, and test station is concurrent Number is consistent with the concurrent number of UUT test assignment, the concurrent number of UUT test assignment and number of flip-flops are consistent, UUT Test assignment application program is designated as currently valid test action sequence, executable test application program or dynamic base mode Test application program media file;Start button controls UUT test assignment for assisting user and is executed automatically on backstage, And update the test process state of each UUT test assignment;Stop button is for assisting during user's forced termination is currently running UUT test assignment;Exit button is for assisting user to exit current UUT test assignment operation interface;Function button it is invalid The control planning of attribute is arranged are as follows: when entering UUT test assignment operation interface, stop button is true, other button inactives in vain It is false;After start button executes, stop button is vacation in vain, other button inactives are true;After stop button executes, all buttons It is in vain true;When single UUT test assignment executes completion and carries out UUT test process status display, if all UUT test process State is not in operation, then stop button be in vain it is true, other button inactives are false.
3. the synchronous triggering execution method of concurrent testing task according to claim 1, it is characterised in that: in step 3, Test process allocation window control option includes at least test process model, the concurrent number of test station and UUT test assignment and answers Use program;Adjustment finish confirm successfully after return UUT test assignment operation interface when, according to control option parameter matched automatically It sets, successively carries out trigger creation according to the concurrent number of test station and be arranged with trigger property parameters, triggering state is set as In vain, trigger action is registered as selected UUT test assignment application program;
Wherein, test process model at least provides sequential process model, concurrent process model and three kinds of batch process model, default For concurrent process model;The concurrent number of test station is corresponding with the concurrent number of UUT test assignment, and limitation numerical value is >=1, is less than most The concurrent number of big UUT, default values 4;UUT test assignment application program be designated as currently valid test action sequence, Executable test application program or dynamic base mode test application program media file.
4. the synchronous triggering execution method of concurrent testing task according to claim 1, it is characterised in that: in step 4, The code execution of the registered callbacks function is optimized for minimum time consumption, when the state of single trigger is set as activation, Its trigger action is performed at once, and when all trigger bulk activations, UUT test assignment specified by trigger action can be same When be performed to.
5. the synchronous triggering execution method of concurrent testing task according to claim 1, it is characterised in that: in steps of 5, Specifically comprise the following steps:
Step 5.1: whether in operation successively judging each UUT test process state;
If: judging result is each UUT test process state without in operation, skipping over current UUT test process processing;
Or judging result be each UUT test process state in operation, then it is invalid to be arranged corresponding trigger state of activation, etc. It is exited to UUT test assignment performed by the trigger action of backstage, and synchronized update test mode is shown;
Step 5.2: the trigger action of corresponding trigger responds triggering invalid state according to test process concrete condition, touches Start at the end of executing, judge whether triggering state is activation, if it is invalid that triggering state, which is then arranged,;
Step 5.3 judges that trigger action executes return state;
If: judging result is that trigger action execution return state is normal, and synchronized update UUT test process state is to be completed;
Or judging result is that trigger action execution return state is abnormal, then synchronized update UUT test process state is pause.
6. the synchronous triggering execution method of concurrent testing task according to claim 1, it is characterised in that: in step 6, Successively judge whether triggering state is invalid according to each trigger;
If: judging result is that triggering state is in vain, to prompt to wait;
Or it is effectively, then successively to discharge each trigger resources and UUT test assignment operation circle that judging result, which is triggering state, Face related resource.
7. the synchronous triggering execution method of concurrent testing task according to claim 1, it is characterised in that: in step 7, Adjustable control option parameter includes at least test process model, the concurrent number of test station, UUT test assignment application program; The concurrent number of test station is corresponding with number of flip-flops, and UUT test assignment application program is corresponding with trigger action;Control option ginseng After number adjustment, if test process model is concurrent process model, trigger creation and touching are carried out according to number of flip-flops The setting of device property parameters is sent out, wherein triggering type is set as being immediately performed, triggering state is set as invalid, trigger action is registered as Selected UUT test assignment application program.
8. the synchronous triggering execution method of concurrent testing task according to claim 1, it is characterised in that: in step 8, Specifically comprise the following steps:
Step 8.1: the test process man-machine interface interaction of response UUT test assignment operation interface;It is executed if start button, then Execute step 8.2;Otherwise, continue idle waiting;
Step 8.2: the triggering state of each UUT test assignment trigger being both configured to activate, updates all function buttons Invalid state;
Step 8.3: the corresponding trigger action of each UUT test assignment trigger carries out automated toing respond to execute according to presetting, Each test assignment function is ready;
Step 8.4: individually the corresponding trigger action of UUT test assignment trigger executes processing, i.e. the basic letter of adjustment UUT test Breath, the UUT test assignment application program for executing registered trigger action and notice UUT test assignment operation interface are tested Execute status display;
Step 8.5: response operation user passes through the manual intervention that UUT test assignment operation interface is carried out;If stop button Operation, then update the invalid state of all function buttons, then executes step 8.7;
Step 8.6: after the trigger action of single UUT test assignment is finished, the triggering state that current trigger is arranged is nothing Effect, prompts and user is guided to determine whether to handle next UUT test assignment;If handling next UUT test assignment, it is arranged The triggering state of current trigger is activation, then executes step 8.3;Otherwise, step 8.7 is executed;
Step 8.7: updating UUT test process status display and user operation records journal displaying;
Step 8.8: the test process man-machine interface interaction of response UUT test assignment operation interface;It is executed if start button, then Execute step 8.2;It is executed if exit button, then successively discharges each trigger resources and UUT test assignment operation interface Related resource.
CN201710365815.3A 2017-05-23 2017-05-23 A kind of synchronous triggering execution method of concurrent testing task Active CN107239331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710365815.3A CN107239331B (en) 2017-05-23 2017-05-23 A kind of synchronous triggering execution method of concurrent testing task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710365815.3A CN107239331B (en) 2017-05-23 2017-05-23 A kind of synchronous triggering execution method of concurrent testing task

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 kind of synchronous triggering execution method of concurrent testing task

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 managing method, test managing system master control center and test managing 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 managing method, test managing system master control center and test managing 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 kind of synchronous triggering execution method of concurrent testing task
KR101629989B1 (en) Method for the deterministic execution and synchronisation of an information processing system comprising a plurality of processing cores executing system tasks
CN106293919B (en) A kind of the built-in tasks dispatching device and method of time trigger
US9361155B2 (en) Time critical tasks scheduling
GB2425628A (en) Programming distributed system using data flow diagrams
Wägemann et al. Whole-system worst-case energy-consumption analysis for energy-constrained real-time systems
WO2013166001A2 (en) Uniprocessor schedulability testing for non-preemptive task sets
Chen et al. Variation-aware evaluation of MPSoC task allocation and scheduling strategies using statistical model checking
CN114327829A (en) Multi-core real-time task scheduling analysis and simulation system and method
Cuomo et al. Process-oriented Discrete-event Simulation in Java with Continuations-Quantitative Performance Evaluation.
CN100363897C (en) Two-stage timing method for inlaid real-time operation system timer
CN105589804A (en) Process-driven test automation method and system
Williamson Discrete event simulation in the Mobius modeling framework
CN109101313A (en) A kind of realization and test method of real-time kernel
Park et al. The cardiac pacemaker: Systemj versus safety critical java
Eyerman et al. Revisiting symbiotic job scheduling
Gerdsmeier et al. Analysis of scheduling behaviour using generic timed automata
Xia et al. Parallel TPS design and application based on software architecture, components and patterns
CN110489294A (en) One kind being based on the real-time single-step debug method and apparatus of log
Jiang A novel simulation time and wall clock time synchronization algorithm for HLA
CN110457121A (en) A kind of detecting probe method and device for supporting User space Real-time Task Dispatch
Xu et al. Mitigating service variability in mapreduce clusters via task cloning: A competitive analysis
CN116166566A (en) Test case multithreading scheduling method, system and test management device
Moreno et al. Implementation of time petri nets in real-time Java
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