CN110377495A - The detection method of testing process - Google Patents

The detection method of testing process Download PDF

Info

Publication number
CN110377495A
CN110377495A CN201910208283.1A CN201910208283A CN110377495A CN 110377495 A CN110377495 A CN 110377495A CN 201910208283 A CN201910208283 A CN 201910208283A CN 110377495 A CN110377495 A CN 110377495A
Authority
CN
China
Prior art keywords
testing process
instruction
detection method
present instruction
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.)
Pending
Application number
CN201910208283.1A
Other languages
Chinese (zh)
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.)
Pegatron Corp
Original Assignee
Pegatron 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 Pegatron Corp filed Critical Pegatron Corp
Publication of CN110377495A publication Critical patent/CN110377495A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Abstract

A kind of detection method of testing process.The procedure code script of testing process is read in executing queue.A test instruction is sequentially taken out from execution queue and is used as present instruction, and judges whether present instruction generates conflict.When determining that present instruction does not generate conflict, judge whether to generate interruption.It when detecting that interruption and testing process are modified, updates and executes queue, sequentially to take out a test instruction again as present instruction.

Description

The detection method of testing process
Technical field
The present invention relates to a kind of testing mechanisms, and in particular to a kind of detection method of testing process.
Background technique
When tradition is controlled corresponding instrument and equipment using program or tool etc. or carries out the processing of a series of task, It is carried out in a predetermined order after process is usually fixed or pre-edit.It is however generally that program or task execution Process start after can not just user be allowed arbitrarily to change, be only capable of with the design of script to being terminated, even if being able to use It interrupts or suspends, can not also allow mobile execution stage to other steps or single step of user to repeat, because arbitrarily The step of jump has been likely to result in forward-backward correlation is interrupted and mistake occurs.Therefore, task carry out during if desired with When handoff parameter or when carrying out process jump, need to stop process to update, accent later starts to execute whole flow process.
Summary of the invention
The present invention provides a kind of detection method of testing process, and test stream can be edited during testing process executes Journey executes testing process without accent.
The detection method of testing process of the invention, comprising: read in the procedure code script (script) of testing process to holding Row queue (queue), wherein procedure code script includes multiple test instructions;Sequentially from executing, taking-up in queue is one of to be tested Instruction is used as present instruction;Judge whether present instruction generates conflict;When determining that present instruction does not generate conflict, judgement is No generation is interrupted;After detecting interruption, judge whether testing process is modified;When discriminating test process is modified, more It is new to execute queue, sequentially to take out a test instruction from execution queue as present instruction again.
In one embodiment of this invention, the detection method of above-mentioned testing process further include: determining present instruction generation It when conflict, modifies present instruction and updates execution queue, sequentially take out a test instruction from execution queue again later and make For present instruction.
In one embodiment of this invention, it is above-mentioned determine present instruction generate conflict when, modify present instruction the step of It include: analysis present instruction, the corresponding multiple contents of multiple fields to obtain present instruction;Conflicted according to the content Corresponding classification;And obtain the corresponding parameter list of the classification from database, modify present instruction accordingly.
In one embodiment of this invention, the field of above-mentioned present instruction include project name field, error code field, Function title field and parameter list field.
In one embodiment of this invention, the detection method of above-mentioned testing process further include: when interruption is not detected, hold Row present instruction.
In one embodiment of this invention, the detection method of above-mentioned testing process further include: when discriminating test process not by When change, present instruction is executed.
In one embodiment of this invention, above-mentioned conflict is that Miswire, instruction errors and passback are wrong at least within One.
In one embodiment of this invention, after detecting interruption, further includes: display user interface, the use Testing process is modified to receive user's operation in person interface.
In one embodiment of this invention, after showing user interface, further includes: listed by user interface The instruction being had not carried out in test instruction;And operated based on user, the test instruction having not carried out is updated.
In one embodiment of this invention, after detecting the interruption, further includes: before testing process is modified, If detecting that interruption is cancelled, present instruction is executed.
Based on above-mentioned, after testing process of the present invention starts, interrupt mechanism is provided for user to edit testing process, and And corresponding movement is adjusted to carry out again later, and then realize arbitrary switch, the function of jumping or repeat when task carries out.
To make the foregoing features and advantages of the present invention clearer and more comprehensible, special embodiment below, and cooperate specification attached Figure is described in detail below.
Detailed description of the invention
Fig. 1 is the block diagram according to the electronic device of one embodiment of the invention.
Fig. 2 is the detection method flow chart according to the testing process of one embodiment of the invention.
Fig. 3 A and Fig. 3 B are the schematic diagrames for executing test program in queue according to one embodiment of the invention.
Description of symbols:
100: electronic device
110: processor
120: storage equipment
130: display
A1, A2, B1: test instruction
S205~S265: each step of the detection method of testing process
Specific embodiment
Fig. 1 is the block diagram according to the electronic device of one embodiment of the invention.Fig. 1 is please referred to, electronic device 100 includes place Manage device 110, storage equipment 120 and display 130.It is stored in storage equipment 120 and is made of one or more program chip segments Test module, test module is executed by processor 110, executes Row control algorithm by test module, and then is realized The detection method of following testing process.
Fig. 2 is the detection method flow chart according to the testing process of one embodiment of the invention.Referring to figure 2., in step In S205, the procedure code script (script) that Row control algorithm reads in testing process extremely executes queue.
Then, in step S210, sequentially from executing, taking-up in queue is one of to test instruction to Row control algorithm As present instruction, start testing process whereby.That is, detecting each test instruction according to execution sequence.
Then, in step S220, Row control algorithm judges whether present instruction generates conflict.Herein it is possible to meeting Some conflicts are Miswire, instruction errors or passback mistake.For example, if the implementing precondition of present instruction is must be with net Network line, but electronic device 100 can then determine to generate conflict not yet with network connectivity at this time.Alternatively, if present instruction is returned Biography value is not inconsistent preset value, can also determine to generate conflict.In addition, the instruction errors of present instruction can also determine to generate conflict.
When determining that present instruction generates conflict, as shown in step S230, Row control algorithm can be modified currently automatically Instruction, and in step S240, update the test instruction for executing queue.Later, return step S210, Row control algorithm Again one of test instruction is sequentially taken out from execution queue as present instruction.Namely continue to take according to execution sequence Next test instruction is out as present instruction.For example, the relevance of analysis procedure code script is first passed through, to judge each test Sequencing when instruction execution, then judge that needs increase newly in executing queue when process jump, slotting by Row control algorithm Enter or remove test instruction.
It further says, step S230 further includes step S231~step S235.In step S231, analysis currently refers to It enables, the corresponding multiple contents of multiple fields to obtain present instruction.Then, in step S233, according to corresponding content Obtain the corresponding classification of the conflict.Then, in step S235, corresponding ginseng is taken out from the database of the corresponding classification Ordered series of numbers table modifies present instruction accordingly.
For example, multiple fields may include project name field, error code field, function title field and parameter list Field.Fig. 3 A and Fig. 3 B are the schematic diagrames for executing test program in queue according to one embodiment of the invention.Here, test instruction Format be, for example, " # project name | error code | function title | parameter list ".A referring to figure 3., to execute in queue The schematic diagram of test program.Assuming that test instruction A1 are as follows: " detection determinand booting is completed | BOOTERR1 | DETECT | and FUNC= PING;IP=192.168.100.1;TIMEOUT=10000 ".And, it is assumed that test instruction A2 is " to check that determinand produces sequence Number | ISNERR1 | COMMAND | FUNC=TELNET;COMMAND=" GET ISN ";RESPONSE=" ISN=* " ".
Wherein, the project name of test instruction A1 is " detection determinand booting complete ", error code be " BOOTERR1 ", Function entitled " DETECT " and parameter list are " FUNC=PING;IP=192.168.100.1;TIMEOUT= 10000".The project name of test instruction A2 is " checking that determinand produces serial number ", and error code is " ISNERR1 ", function name Referred to as " COMMAND " and parameter list are " FUNC=TELNET;COMMAND=" GET ISN ";RESPONSE=" ISN =* " ".
It is beneath to be illustrated using test instruction A2 as present instruction.In step S220, discovery test instruction A2's is held Row premise is necessary and network connectivity, but electronic device 100 is no at this time and network connectivity, expression test instruction A2 may occur Conflict, therefore, discriminating test instruction A2 is clashed.Then, step S230 is executed.
Firstly, analysis test instruction A2 is corresponding multiple with multiple fields of acquisition test instruction A2 in step S231 Content learns that the conflict that " COMMAND " function might have is respectively Miswire, instruction errors and passback mistake whereby. Then, in step S233, the corresponding classification of the conflict is obtained according to the content.For example, by the conflict Miswire It is classified as " newly-increased instruction ";And instruction errors/passback mistake is classified as " modification parameter list ".Later, in step S235, The corresponding parameter list of the classification is obtained from database, instructs A2 accordingly to modify test.For example, from database (institute Have the procedure code script set in factory's volume production) in the instruction increased newly needed for Miswire and the parameter used are arranged Table needs the content of the newly-increased parameter list field for instructing and modifying former test instruction A2 to obtain, as shown in Figure 3B.Newly Increasing test instruction B1 be, for example, " establish line with determinand | CONNERR | CONNECT | FUNC=TELNET;IP= 192.168.100.1;PORT=23;SESSION=0 ", and modified test instruction A2 be " check determinand produce serial number | ISNERR1 | COMMAND | FUNC=TELNET;COMMAND=" GET ISN ";RESPONSE=" ISN=* ";SESSION= 0”。
Later, the newly-increased test is instructed B1 (before its execution sequence is located at modified test instruction A2) and repaired Test instruction A2 after changing, which is updated to, executes queue (step S240), later return step S210, and Row control algorithm is again A test instruction is sequentially taken out from execution queue is used as present instruction.Here, Row control algorithm can be with newly-increased finger It enables as present instruction and carries out subsequent action.
In the present embodiment, in order to which in response to the relevance between each independent process, meeting is established such as huge collection (macro) in advance Instruction set (database corresponding to different classifications), correlation step carry out when, this instruction set can be used at any time.It is analyzing Present instruction simultaneously judges the purpose of jump to select corresponding instruction set, finely tunes and is executed after corresponding movement again, can be kept away The mistake that may occur when exempting from unlimitedly to jump.
And when determining that present instruction does not generate conflict, as shown in step S245, Row control algorithm, which judges, is No generation is interrupted.For example, can set one group of hot key or set virtual shortcut key in display picture, user is by enabling hot key Or virtual shortcut key interrupts to trigger.
When determining not generate interruption, in step S255, present instruction is executed.For example, with test instruction A1, surveying For examination instruction A2 (test instructs the execution sequence of A2 to be next to after test instruction A1), when executing test instruction A1, meeting Check whether test instruction A1 conflicts.If also not interrupted during executing test instruction A1 without generating conflict, then exist After executing the corresponding instruction task of test instruction A1, continue to check line by line down, that is, checks test instruction A2.
After the corresponding task execution of present instruction finishes, in step S260, judge that the test executed in queue refers to It enables and whether being all finished, if test instruction is all finished, then as shown in step S265, terminate testing process. If still there is test instruction to be not carried out, then step S210 is returned to.
On the other hand, determine present instruction do not generate conflict and after detecting interruption, in step S250, sentence Whether disconnected testing process is modified.Here, can detect that display one makes when interrupting as caused by hot key or virtual shortcut key User interface, to modify testing process by user interface.Row control algorithm can be listed by user interface The instruction being had not carried out in test instruction;And operated based on user, (example is updated to the test instruction having not carried out Such as, it modifies, is newly-increased, deleting test instruction).Row control algorithm can list the test having not carried out in user interface and refer to It enables, the test instruction having not carried out is edited for user.
When discriminating test process is not modified, as shown in step S255, present instruction is executed.For example, can be in triggering Testing process is not changed in the preset time having no progeny, and just executes present instruction immediately.In addition, being modified it in testing process Before, if detecting that interruption is cancelled, step S255 can be performed, also to execute present instruction.
Here, each testing procedure can go whether detection user interrupts.As long as interrupting, will further go Judge whether user will edit testing process.For example, first step of testing process is control recording pen, next stage It for example, checks microphone or controls the function of microphone.If detecting that user is enabled to interrupt, then it can enter editing process, User can readjust the function of microphone, or go adjustment universal serial bus (Universal Serial Bus, USB) the function of port.
When discriminating test process is modified, as shown in step S240, updates and execute queue.Later, return step S210, Again one of test instruction is sequentially taken out from execution queue as present instruction.
For example, it is assumed that setting " Enter " key as interruption hot key, when user presses " Enter " key, can suspend after It is continuous to execute testing process, and show that user interface carries out edit operation for user.User can pass through user interface To increase, modify or delete the instruction of the test in testing process.
For example, to instruct A-2 to move forward the test of subsequent execution by user interface current to being next to by user Before instruction.Here, it is further assumed that test instruction A-2 belongs to one of them of a test group of instructions, that is, the same survey Examination project may include that multiple tests instruct.The test group of instructions includes test instruction A-1, test according to execution sequence Instruct A-2 and test instruction A-3.
And after updating execution queue, A-2 will be instructed as present instruction using test, later when checking conflict, It can find that test instruction A-2 generates conflict.This is because checking test instruction since test instruction A-1 is not carried out Just correct response can not be obtained when A-2, just discriminating test instruction A-2 generates conflict accordingly.Executing step S231~S235 Later, Row control algorithm can increase test instruction A-1 and test instruction A-3 newly respectively before and after test instructs A-2 automatically. It updates later and executes queue.Later, in the execution queue after self refresh, test instruction is taken out according to execution sequence and is examined It surveys, until all test instruction executions finish.
In conclusion the embodiment is to judge whether test instruction occurs in the case where testing process has begun Conflict, and the function of allowing user to be edited is provided.By the embodiment, accent can be not required to and tested, realized Arbitrary switch, the function of jumping or repeat when task carries out.
Although the present invention is disclosed as above with embodiment, however, it is not to limit the invention, any technical field Middle technical staff, without departing from the spirit and scope of the invention, when can make a little variation and retouching, therefore protection of the invention Range is subject to view as defined in claim.

Claims (10)

1. a kind of detection method of testing process, which is characterized in that the detection method of the testing process includes:
A procedure code script to an execution queue for a testing process is read in, wherein the procedure code script includes that multiple tests refer to It enables;
The multiple the one of of test instruction is sequentially taken out from the execution queue is used as a present instruction;
Judge whether the present instruction generates a conflict;
When determining that the present instruction does not generate the conflict, judge whether that generating one interrupts;
After detecting the interruption, judge whether the testing process is modified;And
When determining that the testing process is modified, the execution queue is updated, described in sequentially taking out again from the execution queue Multiple the one of of test instruction are used as the present instruction.
2. the detection method of testing process as described in claim 1, which is characterized in that the detection method of the testing process Further include:
When determining that the present instruction generates the conflict, modifies the present instruction and update the execution queue, later again sequentially The multiple the one of of test instruction is taken out from the execution queue is used as the present instruction.
3. the detection method of testing process as claimed in claim 2, which is characterized in that in judgement, the present instruction generates the punching When prominent, the step of modifying the present instruction, includes:
The present instruction is analyzed, the corresponding multiple contents of multiple fields to obtain the present instruction;
The corresponding classification of the conflict is obtained according to the multiple content;And
It obtains the corresponding parameter list of the classification from a database, modifies the present instruction accordingly.
4. the detection method of testing process as claimed in claim 3, which is characterized in that the multiple field of the present instruction Including a project name field, an error code field, a function title field and a parameter list field.
5. the detection method of testing process as described in claim 1, which is characterized in that the detection method of the testing process Further include:
When the interruption is not detected, the present instruction is executed.
6. the detection method of testing process as described in claim 1, which is characterized in that the detection method of the testing process Further include:
When determining that the testing process is not modified, the present instruction is executed.
7. the detection method of testing process as described in claim 1, which is characterized in that the conflict is a Miswire, a finger Enable mistake and the wrong at least one of which of a passback.
8. the detection method of testing process as described in claim 1, which is characterized in that after detecting the interruption, also wrap It includes:
Show a user interface, which modifies the testing process to receive user operation.
9. the detection method of testing process as claimed in claim 8, which is characterized in that in the step of showing the user interface Later, further includes:
The instruction having not carried out in the multiple test instruction is listed by the user interface;And
It is operated based on the user, the multiple test instruction having not carried out is updated.
10. the detection method of testing process as described in claim 1, which is characterized in that after detecting the interruption, also wrap It includes:
Before the testing process is modified, if detecting that the interruption is cancelled, the present instruction is executed.
CN201910208283.1A 2018-04-12 2019-03-19 The detection method of testing process Pending CN110377495A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW107112527 2018-04-12
TW107112527A TWI650710B (en) 2018-04-12 2018-04-12 Test process detection method

Publications (1)

Publication Number Publication Date
CN110377495A true CN110377495A (en) 2019-10-25

Family

ID=66213709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910208283.1A Pending CN110377495A (en) 2018-04-12 2019-03-19 The detection method of testing process

Country Status (2)

Country Link
CN (1) CN110377495A (en)
TW (1) TWI650710B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315675A (en) * 2021-05-08 2021-08-27 山东英信计算机技术有限公司 White box switch U-Boot automatic testing method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186435A (en) * 2011-12-28 2013-07-03 英业达股份有限公司 System error treatment method and server system applying same
CN105209925A (en) * 2013-04-16 2015-12-30 爱德万测试公司 Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing
CN106909504A (en) * 2017-02-14 2017-06-30 上海斐讯数据通信技术有限公司 A kind of automatic test script maintaining method and equipment
WO2017219851A1 (en) * 2016-06-24 2017-12-28 深圳市中兴微电子技术有限公司 Method and apparatus for executing test case, and computer readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI325702B (en) * 2006-08-18 2010-06-01 Hon Hai Prec Ind Co Ltd Xdsl modem testing system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186435A (en) * 2011-12-28 2013-07-03 英业达股份有限公司 System error treatment method and server system applying same
CN105209925A (en) * 2013-04-16 2015-12-30 爱德万测试公司 Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing
WO2017219851A1 (en) * 2016-06-24 2017-12-28 深圳市中兴微电子技术有限公司 Method and apparatus for executing test case, and computer readable medium
CN106909504A (en) * 2017-02-14 2017-06-30 上海斐讯数据通信技术有限公司 A kind of automatic test script maintaining method and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315675A (en) * 2021-05-08 2021-08-27 山东英信计算机技术有限公司 White box switch U-Boot automatic testing method, system and storage medium

Also Published As

Publication number Publication date
TW201944235A (en) 2019-11-16
TWI650710B (en) 2019-02-11

Similar Documents

Publication Publication Date Title
CN105209925B (en) For debugging the computer implemented method and system of the program of automation devices test
CN108073400A (en) Software automation construction method, server and storage medium
KR101400657B1 (en) Control program generation device, computer readable recording medium storing control program generation program, and control program generation method
US5400263A (en) Apparatus and method for specifying the flow of test execution and the binning for a testing system
CN106021101B (en) The method and device that mobile terminal is tested
CN111400119A (en) Multi-project and multi-platform self-adaptive chip design FPGA prototype verification method and system
US10521335B2 (en) Context-based device testing
US20070061641A1 (en) Apparatus and method for generating test driver
US11663113B2 (en) Real time fault localization using combinatorial test design techniques and test case priority selection
CN106406918A (en) Source code automatic merging method and apparatus
US5495578A (en) Apparatus and method for changing the behavior of a computer program while retaining control of program execution
CN110377495A (en) The detection method of testing process
CA2492367C (en) Data processing system
CN109783837A (en) Emulator, analogue system, emulation mode and simulated program
CN112052180A (en) Stability testing method and system based on control arrangement
EP2820547B1 (en) Debugging method and computer program product
CN114036040A (en) Software mixing fuzzy test method and device based on fine-grained information synchronization
CN104866413B (en) The method and device of multi-process test
CN113485928A (en) Automatic testing method and device for switch
KR102185294B1 (en) Apparatus and method for analyzing source code of concurrent program and computer readible storage medium therefor
CN109634842B (en) QT application-based test method and system
JP5325931B2 (en) Impact analysis method and impact analysis program
WO2016001982A1 (en) Test data generation assistance device and test data generation assistance method
CN111400193A (en) Test case generation method, device, equipment and storage medium
CN107368421A (en) The method and system of automatic test interface program

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191025

WD01 Invention patent application deemed withdrawn after publication