CN101673233A - Scheduling method of test items and scheduling system thereof - Google Patents

Scheduling method of test items and scheduling system thereof Download PDF

Info

Publication number
CN101673233A
CN101673233A CN200810211964A CN200810211964A CN101673233A CN 101673233 A CN101673233 A CN 101673233A CN 200810211964 A CN200810211964 A CN 200810211964A CN 200810211964 A CN200810211964 A CN 200810211964A CN 101673233 A CN101673233 A CN 101673233A
Authority
CN
China
Prior art keywords
test event
described multinomial
event
order
test
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.)
Granted
Application number
CN200810211964A
Other languages
Chinese (zh)
Other versions
CN101673233B (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN2008102119645A priority Critical patent/CN101673233B/en
Publication of CN101673233A publication Critical patent/CN101673233A/en
Application granted granted Critical
Publication of CN101673233B publication Critical patent/CN101673233B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a scheduling method of test items and a scheduling system thereof, and relates to the scheduling of execution order of test items applied in a Microsoft operating system. The scheduling method comprises the following steps: loading a plurality of test items; executing monitoring program for monitoring the execution time of the test items; judging whether currently tested test items exist in a record file; if the currently tested test items do not exist in the record file, classifying the test items according to the operational attribute of the test items; determining theexecution order of the classified test items by the monitoring program according to the operational attribute of the test items; and executing the classified test items in order and controlling the termination of the test items according to the execution time of the test items. The scheduling method of test items and the scheduling system thereof are used for scheduling and controlling the execution order of test items of a Microsoft toolkit.

Description

The scheduling method of test event and program system thereof
Technical field
A kind of test event scheduling method and program system thereof are particularly to the scheduling method and the program system thereof of a kind of Microsoft instrument test event.
Background technology
Company of Microsoft (Microsoft) is in order to provide various types of hardware product and driver, form sign (Windows Logo) authentication has been carried out by Microsoft, in order to assisting the client to confirm that this product is to be easy to be mounted, and can not produce any problem can together carry out with the computer installation with windows workspace system and other element the time.
In order to carry out the compatibility of various types of hardware product, Microsoft has designed a series of test event.Via using form driver external member (Windows Development Kit, be called for short WDK) and by form driver foundation structure (Windows Driver Foundation, what WDF) provided advances the driver that stage structure is developed corresponding hardware.(Windows LogoKit, abbreviation WLK) comprises every required things of viewing device authentication in form sign instrument: driver test manager (Driver Test Manager is called for short DTM), setting DTM and the required file of execution test.
But, need be in the process of carrying out test event according to the standard execution test event one by one that Microsoft worked out.Please refer to shown in Figure 1, the sequential schematic of the test event of its known technology.In the representative of Fig. 1 left is every test event 111~181; Right-hand representative be that every test event 111~181 is at the execution sequence that carries out pressure test.In known test process, the execution sequence of test event only can be tested by the order that Microsoft worked out.Also need rely on the adjustment that the tester carries out thin portion in many test events.The test event of part then is can expend a large amount of time hardware is carried out stability test.So, the tester need keep before test platform right, so not only reduces work efficiency, and the chance that makes the tester make mistakes improves.
Summary of the invention
For overcoming the defective of prior art, the objective of the invention is to disclose a kind of scheduling method of test event, it may further comprise the steps: be written into a plurality of test events and the log file that records the relevant information of each test event; Carry out watchdog routine, watchdog routine is in order to the execution time of control and measuring project; Judge whether log file exists current test items; If do not have current test items in the log file, then according to the operational attribute of test event in order to test event is classified; Pass through the execution sequence of the test event of classification in order to decision according to the operational attribute of test event by watchdog routine; Set the execution sequence of described multinomial test event according to the execution time of the described test event in same type; Carry out test event in regular turn, and according to concluding time of the standard execution time control test event of test event, and test event is recorded to log file through classification; If surpass a threshold time working time of this test event of carrying out, then this watchdog routine is interrupted the operation of this test event; If have current test items in the log file, the execution sequence of the test event that then is written in the log file to be write down.From another viewpoint of the present invention, the object of the present invention is to provide a kind of program system of test event, it is applied to the execution sequence of the test event of Microsoft's operating system.
For reaching above-mentioned purpose, the program system of disclosed a kind of test event.In program system, include: scheduling program, storage element and processing unit.Storage element is in order to deposit the scheduling program.Processing unit is electrically connected at storage element, and processing unit is in order to carry out the scheduling program.The scheduling program includes the following step: be written into multinomial test event and the log file that records the relevant information of each test event; Carry out watchdog routine, watchdog routine is in order to the execution time of control and measuring project; Judge whether log file exists current test items; If do not have current test items in the log file, then according to the operational attribute of test event in order to test event is classified; Pass through the execution sequence of the test event of classification in order to decision according to the operational attribute of test event by watchdog routine; Carry out test event in regular turn, and according to concluding time of the standard execution time control test event of test event, and test event is recorded to log file through classification; If surpass a threshold time working time of this test event of carrying out, then this watchdog routine is interrupted the operation of this test event; If have current test items in the log file, the execution sequence of the test event that then is written in the log file to be write down.
The present invention carries out scheduling and control in order to the execution sequence to the test event of Microsoft's set of tools.The present invention classifies according to the different operating attribute of each test event and determines its execution sequence, carries out each test event in each classification more in regular turn.And by watchdog routine each test event is produced corresponding log file, use so as to the test that feeds back to second leg.
Relevant characteristics and implementation of the present invention, the existing diagram that cooperates is described in detail as follows as most preferred embodiment.
Description of drawings
Fig. 1 is the sequential schematic of the test event of known technology.
Fig. 2 is a general construction synoptic diagram of the present invention.
Fig. 3 is the synoptic diagram of operational scheme of the present invention.
Fig. 4 is a test event ordering synoptic diagram of the present invention.
And the description of reference numerals in the above-mentioned accompanying drawing is as follows:
111~181 test events
210 processing units
220 storage elements
230 test procedures
240 scheduling programs
411~481 test events
491 first groups
492 second groups
493 the 3rd groups
Embodiment
Please refer to shown in Figure 2ly, it is a system architecture synoptic diagram of the present invention.The present invention is applied to test the test event of the form label instrument that Microsoft carries out, and the execution sequence of described multinomial test event is carried out scheduling and control.In program system 200, include: processing unit 210, storage element 220, test procedure 230 and scheduling program 240.Storage element 220 is in order to deposit test procedure 230 and scheduling program 240.Processing unit 210 is electrically connected at storage element 220, and processing unit is in order to carry out scheduling program 240.
Please refer to shown in Figure 3ly, it is the synoptic diagram of operation workflow of the present invention.May further comprise the steps in the scheduling program: be written into multinomial test event and log file, as step S310.Carry out watchdog routine, as step S320, watchdog routine is in order to the execution time of control and measuring project.Judge whether log file exists current test items, as step S330.Wherein, record the relevant information of each test event at log file, for example, the classification group of the execution time of test event, test event, the execution sequence of classification group and the execution sequence of test event.
If do not have current test items in the log file, then according to the operational attribute of test event in order to test event is classified, as step S340.Wherein, the group that in the present invention operational attribute of test event is divided three classes, it is respectively manual group, group and semi-automatic group automatically.Can be in other different embodiment according to the test group of the different set varying number of test environment.The manual test event of indication needs user's substantial length of operation test event in the present invention.And automatic test event does not need user's participation, by the yet achievable test event of system.Automanual test event can be finished test items by system for the user only need define test environment or parameter.For the test event that can be performed automatically, it is categorized as same group.In like manner, will manually sort out respectively to corresponding group with automanual test event.
By watchdog routine according to the operational attribute of test event in order to the execution sequence of decision, as step S350 through the test event of classification.Carry out the test event through classifying in regular turn, and with its execution sequence according to standard execution time decision test event of test event, as step S360.That is, set the execution sequence of the described multinomial test event of decision according to the execution time of the described multinomial test event in same type.One of preferred embodiment can be utilized bubble sort method (bubble sort) and sort according to the standard execution time of test event, the alleged standard execution time be by Microsoft at test event customized fixing test time, can certainly utilize other known ranking methods (for example: insert ranking method (insertion sort), quick sort (Quick sort)) to sort, realize when using other means in view of the above for those of ordinary skills, so do not give unnecessary details one by one at this.
Below be that example describes with the source code:
void?BubbleSort(SeqList?WLK)
The WLK of { //(1..n) is a file to be sorted, and adopts bottom-up scanning, and R is done bubble sort
int?i,j;
Boolean exchange; // exchange sign
For (i=1; I<n; I++) // do n-1 time ordering at most
Exchange=FALSE; Before // this time ordering beginning, the exchange sign should be false
For (j=n-1; J>=i; J--) // to current region of disorder R[i..n] bottom-up scanning
If (R[j+1] .key<R[j] .key) { // exchange record
R[0]=R[j+1];
R[j+1]=R[j];
R[j]=R[0];
Exchange=TRUE; // exchange has taken place, be changed to true so will exchange sign
}
If (! Exchange) // this minor sort exchanges the premature termination algorithm
return;
The endfor of } //(outer loop)
}//BubbleSort
If surpass threshold time the working time of the test event of carrying out, the then operation of watchdog routine interrupt test project is as step S371.Threshold time in the present invention is the condition of setting with the multiple of the standard execution time of each test event of being write down in the log file.Threshold time in the present invention is a preferred embodiment one according to the twice of the standard execution time of test event in the log file.Then, carry out next test event, as step S380, up to finishing all test events.If have current test items in the log file, the execution sequence of the test event that then is written in the log file to be write down is as step S390.
Please refer to shown in Figure 4ly, it is a test event of the present invention ordering synoptic diagram.At Fig. 4 left is every test event (meaning is test event 411~test event 481); The right-hand execution sequence that carries out pressure test for the classification group of every test event 411~481 and test event 411~481.Wherein, test event is divided into group's (being respectively first group 491, second group 492 and the 3rd group 493) of different execution sequences, please refer among Fig. 4 shown in the frame of broken lines.More than this, state bright automatic, semi-automatic and manually be divided into three groups.At Fig. 4 is execution sequence from top to bottom.
The present invention carries out scheduling in order to the execution sequence to several test events of Microsoft's set of tools.The present invention classifies according to the different operating attribute of each test event and determines its execution sequence, carries out each test event in each classification more in regular turn.By watchdog routine each test event is produced corresponding log file at last, use so as to the test that feeds back to second leg.

Claims (9)

1. the scheduling method of a test event is applied to the execution sequence of the test event of Microsoft's operating system, and this scheduling method may further comprise the steps:
Be written into multinomial test event;
Carry out a watchdog routine, this watchdog routine is in order to monitor the execution time of described multinomial test event;
According to the operational attribute of described multinomial test event in order to described multinomial test event is classified;
Set the execution sequence of dissimilar described multinomial test events by this watchdog routine;
Set the execution sequence of described multinomial test item according to the execution time of the described multinomial test event in same type; Carry out the described multinomial test event of having set execution sequence in regular turn;
If surpass a threshold time working time of this test event of carrying out, then this watchdog routine is interrupted the operation of this test event; And
Carry out next this test event, till finishing all described multinomial test events.
2. the scheduling method of test event as claimed in claim 1, it is further comprising the steps of wherein to be written into described multinomial test event: be written into a log file, and judge whether this log file exists this test event when Pretesting.
3. the scheduling method of test event as claimed in claim 1, it is further comprising the steps of wherein to be written into this log file: write down the affiliated classification of the execution time of described multinomial test event, described multinomial test event, the execution sequence of each classification and the execution sequence of described multinomial test event.
4. the scheduling method of test event as claimed in claim 1, the wherein twice of the standard execution time of this test event in this log file of this threshold time.
5. the scheduling method of test event as claimed in claim 1 wherein determines in the execution sequence of described multinomial test event further comprising the steps of in the execution time according to described multinomial test event: utilize the bubble sort method and sort according to the execution time of described multinomial test event.
6. the scheduling method of test event as claimed in claim 1, wherein this operational attribute includes automatically, manually and semi-automatic.
7. the program system of a test event, in order to the execution sequence of the test event of adjusting Microsoft's operating system, this program system comprises:
One scheduling program, it is in order to adjust multinomial test event;
One storage element, it is in order to store described multinomial test event and this scheduling program; And
One processing unit, it is electrically connected at this storage element, and this processing unit is in order to carry out this scheduling program, and this scheduling program is further comprising the steps of:
Carry out a watchdog routine, this watchdog routine is in order to monitor the execution time of described multinomial test event;
According to the operational attribute of described multinomial test event in order to described multinomial test event is classified;
Pass through the execution sequence of the described multinomial test event of classification in order to decision according to the operational attribute of described multinomial test event by this watchdog routine;
Carry out the described multinomial test event through classifying in regular turn;
If surpass a threshold time working time of this test event of carrying out, then this watchdog routine is interrupted the operation of this test event; And
Carry out each this test event, till finishing all described multinomial test events.
8. the program system of test event as claimed in claim 7 wherein writes down under the classification of the execution time of described multinomial test event, described multinomial test event, the execution sequence of each classification and the execution sequence of described multinomial test event at least in this log file.
9. the program system of test event as claimed in claim 7 is wherein carried out after this watchdog routine further comprising the steps of: carry out a log file, and judge whether this log file exists this test event when Pretesting.
CN2008102119645A 2008-09-12 2008-09-12 Scheduling method of test items and scheduling system thereof Expired - Fee Related CN101673233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102119645A CN101673233B (en) 2008-09-12 2008-09-12 Scheduling method of test items and scheduling system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102119645A CN101673233B (en) 2008-09-12 2008-09-12 Scheduling method of test items and scheduling system thereof

Publications (2)

Publication Number Publication Date
CN101673233A true CN101673233A (en) 2010-03-17
CN101673233B CN101673233B (en) 2011-08-03

Family

ID=42020465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102119645A Expired - Fee Related CN101673233B (en) 2008-09-12 2008-09-12 Scheduling method of test items and scheduling system thereof

Country Status (1)

Country Link
CN (1) CN101673233B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136077A (en) * 2011-11-25 2013-06-05 致伸科技股份有限公司 Automatic test method
CN103716097A (en) * 2012-10-01 2014-04-09 安立股份有限公司 Mobile terminal test apparatus and mobile terminal test method
CN104572472A (en) * 2015-01-28 2015-04-29 中国农业银行股份有限公司 Program execution sequence diagnosis method and program execution sequence diagnosis system
WO2019214109A1 (en) * 2018-05-08 2019-11-14 平安科技(深圳)有限公司 Monitoring device and method for testing process, and computer readable storage medium
CN111786854A (en) * 2020-06-30 2020-10-16 曙光信息产业(北京)有限公司 Network card testing method and device, electronic equipment and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1279446C (en) * 2003-05-30 2006-10-11 英业达股份有限公司 Balancing method for computer pressure test
CN100558056C (en) * 2007-05-10 2009-11-04 华为技术有限公司 Automation consistency test method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136077A (en) * 2011-11-25 2013-06-05 致伸科技股份有限公司 Automatic test method
CN103716097A (en) * 2012-10-01 2014-04-09 安立股份有限公司 Mobile terminal test apparatus and mobile terminal test method
CN103716097B (en) * 2012-10-01 2015-12-02 安立股份有限公司 Mobile terminal test device and mobile terminal test method
CN104572472A (en) * 2015-01-28 2015-04-29 中国农业银行股份有限公司 Program execution sequence diagnosis method and program execution sequence diagnosis system
WO2019214109A1 (en) * 2018-05-08 2019-11-14 平安科技(深圳)有限公司 Monitoring device and method for testing process, and computer readable storage medium
CN111786854A (en) * 2020-06-30 2020-10-16 曙光信息产业(北京)有限公司 Network card testing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN101673233B (en) 2011-08-03

Similar Documents

Publication Publication Date Title
CN101673233B (en) Scheduling method of test items and scheduling system thereof
US20060061547A1 (en) Quality analysis method & program
US20050204241A1 (en) Method and device for analyzing software error
US20060259264A1 (en) Test apparatus, diagnosing program and diagnosing method therefor
CN102693460A (en) Tester management system and method thereof
US20050110806A1 (en) Testing using policy-based processing of test results
US5764824A (en) Clustering mechanism for identifying and grouping of classes in manufacturing process behavior
EP1970845A1 (en) Work analysis device and recording medium recording work analysis program
CN116126740B (en) Model in-loop test method and device, computer equipment and storage medium
CN105653445B (en) A kind of implementation method for meeting DO 178C test results
US6108253A (en) Failure analysis system, fatal failure extraction method and recording medium
JP4003499B2 (en) Estimate evaluation support program and estimate evaluation support system
US20020147946A1 (en) Method and system for automatic test report generation from memory device reliabilty testing
CN115391194A (en) Product test processing method and device
US20110167303A1 (en) Gui evaluation system, gui evaluation method, and gui evaluation program
CN113326954A (en) Vehicle maintenance task scheduling method, device, equipment and storage medium
US11263597B2 (en) Workscope system and method of use thereof
US20090319980A1 (en) System and method for calculating software certification risks
US20060209070A1 (en) Apparatus for displaying workflow, method for displaying workflow, and program for displaying workflow
US7120616B2 (en) Method for specifying, executing and analyzing method sequences for recognition
GB2507874A (en) Comparing man-hours for manual and automated testing
CN115543775B (en) Automatic test case generation method
CN108279992A (en) A kind of data verification method and device
US20210383329A1 (en) Method of distributing functional element unit tasks of crowdsourcing-based project, apparatus therefor, and computer program therefor
CN116881134A (en) Method, system, terminal equipment and storage medium for constructing replicable test capability

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110803

Termination date: 20160912