Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not paying the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The process flow diagram of a kind of testing process control method based on flexible test technology that Fig. 1 provides for the embodiment of the present invention.
The executive agent of the testing process control method that the present embodiment provides is testing process control device, and this testing process control device can include but not limited to: the Control card of controller, multiple-grooved cabinet etc.As shown in Figure 1, the testing process control method that the present embodiment provides comprises:
Step 11: generate cycle tests editing interface, in described cycle tests editing interface, determine a test cell for the each subtask being mutually related in multiple subtasks of dividing according to predetermined test assignment, according to the incidence relation between each subtask, each test cell is formed to a cycle tests.
Be that a subtask determines that the method for test cell is corresponding thereto unrestricted, implementation is very flexible.
For example: can be the new test cell of correspondence with it that builds in this subtask.Construction method comprises: obtain the related information between other subtasks in the testing attribute configuration information of this subtask and this subtask and described test assignment; Determine sequence flow control configuration information according to described related information; Described testing attribute configuration information and described sequence flow control configuration information are stored with predetermined format, obtained the test cell corresponding with this subtask.The described testing attribute configuration information of arbitrary subtask can include but not limited to following one or more: complete the device descriptive information of the required testing apparatus in this subtask, acquisition mode, the verification mode of test data etc. of test data.Sequence flow control configuration information corresponding to arbitrary subtask can include but not limited to following one or more: the beginning of test cell corresponding to this subtask or the Rule of judgment that stops carrying out Rule of judgment, carry out redirect, down hop pointer address while meeting corresponding Rule of judgment.
Again for example: can be that this subtask is selected to have built and corresponding test cell with it, concrete, can from the cycle tests of formerly storage, search the cycle tests that the test assignment of cycle tests mates with this subtask cycle testss such as (as:) " industry test templates ", the cycle tests of determining this coupling is the test cell corresponding with this subtask.
In actual application, in order to improve the convenience of user's use and the intuitive of cycle tests programming, optionally, can be pre-created template base, the cycle tests that storage " industry test template " etc. has built in template base and/or build test cell or the information such as tool software module that cycle tests is required.In cycle tests editing interface, can be by information such as the cycle tests of template base storage or tool software modules, add test cell or add in modes such as towings and build the required tool model of test cell, effectively reduce thus the sequence editing repeating, improved the convenience of user's design and debugging.
Step 12: building sequence engine, is that described cycle tests builds corresponding test thread by described sequence engine, and described test thread is for debugging and/or carry out control to its corresponding cycle tests;
The test quantity of thread and the quantity of cycle tests are corresponding, that is to say, and the corresponding cycle tests of a test thread, the quantity of test thread can be one or more.For the ease of multiple test threads are carried out to dynamic call control, optionally, can create the sequence engine thread that sequence engine is corresponding, send instruction by sequence engine thread to each test thread, so that test thread is for partial test unit or the complete cycle tests of its corresponding cycle tests, carry out processing accordingly with above-mentioned instruction.Above-mentioned instruction can include but not limited to: debug command and/or execution instruction.Debug command can include but not limited to that the debugging of single step order, single step repeat debugging, multistep debugging etc.Carrying out instruction can include but not limited to: carry out once, carry out continuously repeatedly etc.
Step 13: its corresponding cycle tests is debugged by described sequence engine calling test thread, according to the corresponding cycle tests of debug results correction and corresponding cycle tests is debugged, debug and/or correcting process one or many, until debug results is stored current cycle tests while meeting pre-provisioning request.
Correspond in the debug process of cycle tests, can send debug command to test thread corresponding to this cycle tests by running process engine thread, partial test unit or the complete cycle tests of the test thread that receives debug command to its corresponding cycle tests, carries out the debugging corresponding with debug command and processes and obtain tune-up data.
In order to facilitate user to debug and to facilitate user to check tune-up data, optional, calling in the process that described sequence engine debugs its corresponding cycle tests, record and show or store tune-up data.
If the tune-up data of feedback shows the test cell unreasonable allocation of debugging, the acquisition mode that the subtask corresponding with this test cell required test test or this testing apparatus support that this test cell arranges if do not existed etc., can be according to tune-up data correction cycle tests, correcting mode can include but not limited to revise relevant parameter in the testing attribute configuration information of corresponding test cell etc.After revising, can adopt said method to recover the debugging to cycle tests at cycle tests.So repeatedly, one or many is debugged and/or revised to cycle tests, until test result is stored current cycle tests while meeting pre-provisioning request.
Step 14: by the cycle tests corresponding with this test thread of described sequence engine calling test thread execution storage, control with the testing process to described test assignment.
In the implementation of corresponding cycle tests, can be sent and carry out instruction to test thread corresponding to this cycle tests by running process engine thread, the test thread that receives instruction be controlled the testing process of described test assignment according to its corresponding cycle tests.
The testing process control method based on flexible test technology that the present embodiment provides, at the editing interface of cycle tests, each subtask and interrelated relation thereof based on presumptive test task subdivision generate a cycle tests, build sequence engine and the test thread corresponding with cycle tests, by sequence engine calling test thread, the test cell in cycle tests is repeatedly debugged and revised, and the cycle tests that meets pre-provisioning request according to debug results is controlled the testing process of test assignment, realized thus the robotization control of the testing process of test assignment according to user's request, and accuracy and the reliability of testing process control are improved.
In addition, the cycle tests that the present embodiment meets pre-provisioning request to debug results is stored, and is conducive to improve on the one hand the convenience of testing process control.On the other hand, if the cycle tests of storage can meet the universal test demand of certain industry, or, meet the fc-specific test FC demand of a certain specific products, the cycle tests of storage can be used as " industry test template ", like this, when user can directly use this " industry test template " when according to actual test assignment, or will be somebody's turn to do " industry test template " is directly drawn in the editing interface of cycle tests as the test cell when in the cycle tests of pre-editing, avoid thus the flow process control of same or similar test assignment to carry out overlapping development, objectively simplify and accelerated the exploitation of complex sequence, reusability and the maintainability of cycle tests are improved.
On the basis of technique scheme, for the ease of automatically generating testing journal sheet, optional, said method also can comprise: the testing journal sheet descriptor corresponding with described cycle tests is set; Obtain the test data in described cycle tests debugging and/or implementation; Generate testing journal sheet according to described test data and described testing journal sheet's descriptor.
Execution sequence between the correlation step of report generation and other steps can be adjusted according to actual needs, one of them optional implementation as shown in Figure 2,
Step 21-step 23: similar to step 11-step 13, do not repeat them here.
Step 24: the testing journal sheet descriptor corresponding with described cycle tests is set.
Testing journal sheet's descriptor can include but not limited to following one or more: measuring unit title, test duration, testing journal sheet's form, tester etc.
Step 25: similar to step 14, do not repeat them here.
Step 26: obtain the test data in described cycle tests debugging and/or implementation.
Step 27: generate testing journal sheet according to described test data and described testing journal sheet's descriptor.
The testing journal sheet who generates can show screen display, and/or externally exports through printer.
Adopt technical scheme as shown in Figure 2, can be on realizing as the basis of the corresponding embodiment similar technique of Fig. 1 effect, the robotization that has realized testing journal sheet generates, and has improved the efficiency that testing journal sheet generates, and has further improved the convenience that user uses.
In order to meet the differentiation customized demand of different user to testing journal sheet, optional, method as shown in Figure 2 also can comprise the step of testing journal sheet's template being carried out to personalized customization.
For example: above-mentioned steps 24 also can comprise: the form zone bit information of adjusting testing journal sheet's template according to described test assignment; Set up the mapping relations between testing journal sheet's template and cycle tests corresponding to described test assignment after adjusting.Wherein, the different item content that the corresponding testing journal sheet of the form zone bit information of testing journal sheet's template need comprise, can be by copying, paste, the mode such as deletion, mobile, newly-built, Alternative Attribute, and the form flag information of testing journal sheet's template is adjusted.For the ease of the testing process of test assignment being carried out in the process of robotization control, good testing journal sheet's template generates corresponding testing journal sheet can automatically to transfer adjusted, testing journal sheet's template of adjusting can be stored under the identical or corresponding working directory of cycle tests, set up the mapping relations between testing journal sheet's template after adjustment and cycle tests corresponding to described test assignment with this.
Accordingly, above-mentioned steps 27 is specially: determine the testing journal sheet template corresponding with described cycle tests according to described mapping relations, the described testing journal sheet's template that generates testing journal sheet and determine according to described test data, described testing journal sheet's descriptor, generates testing journal sheet.Realize thus testing journal sheet and generated by user's request customization and robotization, improved the efficiency of testing process control.
In above-mentioned each technical scheme, because actual testing requirement is comparatively complicated, a test event may comprise multiple test assignments, in order to improve the efficiency of testing process control, the situation of corresponding multiple test assignments, cycle tests can be multiple, and test thread can be multiple; The corresponding cycle tests of one test assignment, and the corresponding test thread of a cycle tests.Before its corresponding cycle tests being debugged by described sequence engine calling test thread, testing process control method also comprises: each described cycle tests is arranged to sequence and carries out control information, described sequence carry out control information comprise following one or more: the execution pattern between execution sequence, the different cycle tests of each cycle tests; Described execution pattern comprise following one or more: single file carries out that (as: single cycle tests is carried out, be that sequence engine calls separately a test thread) pattern, executed in parallel (as: two or more cycle testss are carried out simultaneously, and sequence engine calls two or more test threads simultaneously) pattern.After the setting of sequence execution control information completes, also can debug the testing scheme based on this setting, to avoid the conflict of test macro internal resource, reduce the probability of makeing mistakes, and then improve accuracy and reliability that test is controlled.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of programmed instruction, aforesaid program can be stored in a computer read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM (read-only memory) (Read-Only Memory is called for short ROM), random access memory (Random Access Memory is called for short RAM), magnetic disc or CDs.
The structural representation of a kind of testing process control device based on flexible test technology that Fig. 3 provides for the embodiment of the present invention.The testing process control device that the present embodiment provides can be used for moving above-mentioned testing process control method.As shown in Figure 3, the testing process control device that the present embodiment provides can comprise: cycle tests generation module 31, structure module 32, sequence debugging memory module 33 and testing process control module 34.
Cycle tests generation module 31 can be used for generating cycle tests editing interface, in described cycle tests editing interface, determine a test cell for the each subtask being mutually related in multiple subtasks of dividing according to predetermined test assignment, according to the incidence relation between each subtask, each test cell is formed to a cycle tests.Wherein, be that described in one, subtask determines that a test cell can comprise: obtain the related information between other subtasks in the testing attribute configuration information of this subtask and this subtask and described test assignment; Determine sequence flow control configuration information according to described related information; Described testing attribute configuration information and described sequence flow control configuration information are stored with predetermined format, obtained the test cell corresponding with this subtask; And/or, from the cycle tests of formerly storage, search the cycle tests that the test assignment of cycle tests is mated with this subtask, the cycle tests of determining this coupling is the test cell corresponding with this subtask.
Building module 32 and can be used for building sequence engine, is that described cycle tests builds corresponding test thread by described sequence engine, and described test thread is for debugging and/or carry out control to its corresponding cycle tests.
Sequence debugging memory module 33 can be used for by described sequence engine calling test thread, its corresponding cycle tests being debugged, according to the corresponding cycle tests of debug results correction and corresponding cycle tests is debugged, debug and/or correcting process one or many, until debug results is stored current cycle tests while meeting pre-provisioning request.
Testing process control module 34 can be used for, by the cycle tests corresponding with this test thread of described sequence engine calling test thread execution storage, controlling with the testing process to described test assignment.
Optionally, described sequence debugging memory module 33 is also used in to be called in the process that described sequence engine debugs its corresponding cycle tests, records and shows or store tune-up data.
Further, above-mentioned testing process control device also can comprise: sequence deployment module 35 and testing journal sheet's generation module 36.Sequence deployment module 35 can be used for arranging the testing journal sheet descriptor corresponding with described cycle tests.Testing journal sheet's generation module 36 is for obtaining the test data of described cycle tests debugging and/or implementation; Generate testing journal sheet according to described test data and described testing journal sheet's descriptor.
Further, above-mentioned testing process control device also can comprise: testing journal sheet's customized module (not shown).Testing journal sheet's customized module can be used for according to the form zone bit information of described test assignment adjustment testing journal sheet template; Set up the mapping relations between testing journal sheet's template and cycle tests corresponding to described test assignment after adjusting.Accordingly, described testing journal sheet's generation module 36 specifically can be used for obtaining the test data in described cycle tests debugging and/or implementation; Determine the testing journal sheet template corresponding with described cycle tests according to described mapping relations, the described testing journal sheet's template that generates testing journal sheet and determine according to described test data, described testing journal sheet's descriptor, generates testing journal sheet.
Optionally, described test assignment is multiple, and described cycle tests is multiple, and described sequence engine is multiple; Cycle tests described in test assignment correspondence one described in one, and sequence engine described in cycle tests correspondence one described in.Under this situation, described sequence deployment module 35 is also used in to be called before described sequence engine debugs its corresponding cycle tests, each described cycle tests is arranged to sequence and carries out control information, described sequence carry out control information comprise following one or more: the execution pattern between execution sequence, the different cycle tests of each cycle tests; Described execution pattern comprises: single file execution pattern or Parallel Executing Scheme.
The testing process control device based on flexible test technology that the embodiment of the present invention provides, the existing form of its entity equipment list is unrestricted, for example can be but be not limited to Control card of controller, multiple-grooved cabinet etc., its working mechanism and attainable technique effect, can, referring to the corresponding record of said method embodiment of the present invention, not repeat them here.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.The sequence number of above-described embodiment, only for ease of describing, does not represent the quality of each embodiment yet.
Above some embodiments of the present invention are described in detail.As one of ordinary skill in the art can be understood, whole or any steps or the parts of method and apparatus of the present invention, can be in the network of any computing equipment (comprising processor, storage medium etc.) or computing equipment, realized with hardware, firmware, software or their combination, this is that those of ordinary skill in the art use their basic programming skill just can realize in the situation that understanding content of the present invention, therefore need not illustrate at this.
In addition, it is evident that, when relating to possible peripheral operation in superincumbent explanation, will use undoubtedly any display device and any input equipment, corresponding interface and the control program that are connected with any computing equipment.Generally speaking, related hardware, software in computing machine, computer system or computer network and realize hardware, firmware, software or their combination of the various operations in preceding method of the present invention, forms equipment of the present invention and each building block thereof.
Therefore,, based on above-mentioned understanding, object of the present invention can also realize by move a program or batch processing on any messaging device.Described messaging device can be known common apparatus.Therefore, object of the present invention also can be only by providing the program product that comprises the program code of realizing described method or equipment to realize.That is to say, such program product also forms the present invention, and storage or the medium that transmits such program product also form the present invention.Obviously, described storage or transmission medium can be well known by persons skilled in the art, or storage or the transmission medium of any type developing in the future, therefore also there is no need at this, various storages or transmission medium to be enumerated.
In equipment of the present invention and method, obviously, each parts or each step reconfigure after can decomposing, combine and/or decomposing.These decomposition and/or reconfigure and should be considered as equivalents of the present invention.The step that also it is pointed out that the above-mentioned series of processes of execution can order naturally following the instructions be carried out in chronological order, but does not need necessarily to carry out according to time sequencing.Some step can walk abreast or carry out independently of one another.Simultaneously, in the above in the description of the specific embodiment of the invention, describe and/or the feature that illustrates can be used in same or similar mode in one or more other embodiment for a kind of embodiment, combined with the feature in other embodiment, or substitute the feature in other embodiment.
Should emphasize, term " comprises/comprises " existence that refers to feature, key element, step or assembly while use herein, but does not get rid of the existence of one or more further feature, key element, step or assembly or add.
Although described the present invention and advantage thereof in detail, be to be understood that in the case of not exceeding the spirit and scope of the present invention that limited by appended claim and can carry out various changes, alternative and conversion.And the application's scope is not limited only to the specific embodiment of the described process of instructions, equipment, means, method and step.One of ordinary skilled in the art will readily appreciate that from disclosure of the present invention, can use carry out with the essentially identical function of corresponding embodiment described herein or obtain process, equipment, means, method or step result essentially identical with it, that existing and will be developed future according to the present invention.Therefore, appended claim is intended to comprise such process, equipment, means, method or step in their scope.