CN109117359A - Serialize test method and device - Google Patents

Serialize test method and device Download PDF

Info

Publication number
CN109117359A
CN109117359A CN201710490857.XA CN201710490857A CN109117359A CN 109117359 A CN109117359 A CN 109117359A CN 201710490857 A CN201710490857 A CN 201710490857A CN 109117359 A CN109117359 A CN 109117359A
Authority
CN
China
Prior art keywords
conditional expression
test item
execution
test
item
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
CN201710490857.XA
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.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
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 Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201710490857.XA priority Critical patent/CN109117359A/en
Publication of CN109117359A publication Critical patent/CN109117359A/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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of serializing test methods, obtain the implementing result of the first test item;The implementing result is compared with expected value, obtains comparison result;The comparison result is inputted and executes conditional expression, wherein what the execution conditional expression characterized is the dependence between one or more first test items and the second test item;According to the calculated result for executing conditional expression, judge whether to execute second test item.The present invention further simultaneously discloses a kind of device of serializing test.

Description

Serialize test method and device
Technical field
The present invention relates to production test field more particularly to a kind of serializing test method and devices.
Background technique
In production test field, there is various test assignments.Wherein, there is the frequency the most that a kind of test assignment uses It is numerous, that is, serialize test assignment.The content for serializing test assignment is main are as follows: pre-defines behavior sequence to be tested, then Each test item is successively run according to behavior sequence.It may be in some dependences, i.e., one survey between these test items Whether trying the execution of item, the implementing result depending on other test items.
Currently, the testing engine of existing production test platform, the dependence between test item is using resource The mode of protection pair.Protection of resources is to can are as follows: two test items with one-to-one dependence, i.e., the execution of one test item Whether, the test for whether running succeeded depending on another test item, but mode being carried out based on protection of resources, this pair One test processes mode is not able to satisfy a test item while depending on the testing requirement of multiple test items, is based on this dependence The range that relationship will lead to test is limited.
Summary of the invention
In view of this, can solve serializing an embodiment of the present invention is intended to provide a kind of serializing test method and device The limited problem of the test scope as caused by dependence one-to-one between test item in test process.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is achieved in that
The embodiment of the invention provides a kind of serializing test methods, this method comprises:
Obtain the implementing result of the first test item;
The implementing result is compared with expected value, obtains comparison result;
The comparison result is inputted and executes conditional expression, wherein the execution conditional expression characterization is one Or the dependence between multiple first test items and the second test item;
According to the calculated result for executing conditional expression, judge whether to execute second test item.
In above-mentioned technical proposal, before the implementing result for obtaining the first test item, the method also includes:
Edit the execution conditional expression;
It detects the execution conditional expression and whether first test item is correct;
When the execution conditional expression and correct first test item, the execution conditional expression is saved.
In above-mentioned technical proposal, whether the detection execution conditional expression and first test item are correct, packet It includes:
Whether the syntagmatic for detecting the operand in the execution conditional expression and operator is correct;
Detect first action-item dependence whether be first action-item closed loop dependence, wherein Dependence of the closed loop dependence between at least two test items forms closed loop.
In above-mentioned technical proposal, the method also includes:
When at least one in the execution conditional expression and first test item is incorrect, described hold is updated Row conditional expression.
In above-mentioned technical proposal, described input the comparison result executes conditional expression, comprising:
Using the comparison result as the actual value of operand in the execution conditional expression, the execution condition is inputted Expression formula.
It is described according to the calculated result for executing conditional expression in above-mentioned technical proposal, judge whether described in execution After second test item, further includes:
When the calculated result for executing conditional expression is true, the serializing test of second test item is executed;
It is fictitious time in the calculated result for executing conditional expression, the serializing for not executing second test item is surveyed Examination.
The embodiment of the invention also provides a kind of device of serializing test, described device includes: to obtain module, compare mould Block, input module and execution module;Wherein,
The acquisition module, for obtaining the implementing result of the first test item;
The comparison module obtains comparison result for the implementing result to be compared with expected value;
The input module executes conditional expression for inputting the comparison result, wherein the execution condition table What is characterized up to formula is dependence between one or more first test items and the second test item;
The execution module, for according to the calculated result for executing conditional expression, judging whether to execute described the Two test items.
In above-mentioned technical proposal, described device further include: editor module;
The editor module, for editing the execution conditional expression;Detect the execution conditional expression and described Whether the first test item is correct;When the execution conditional expression and correct first test item, the execution is saved Conditional expression.
The embodiment of the invention also provides a kind of terminals, comprising:
Communication interface, for being communicated with other equipment;
Storage medium, for being stored with computer program;
Processor is connected with the communication interface and the storage medium respectively, for passing through the computer program extremely Following steps can be performed less:
Obtain the implementing result of the first test item;
The implementing result is compared with expected value, obtains comparison result;
The comparison result is inputted and executes conditional expression, wherein the execution conditional expression characterization is one Or the dependence between multiple first test items and the second test item;
According to the calculated result for executing conditional expression, judge whether to execute second test item.
The embodiment of the invention also provides a kind of computer storage medium, the computer storage system is stored with computer Program, the step that the computer program can be used in processor execution above-mentioned technical proposal.
Serializing test method and device provided by the embodiment of the present invention change during serializing test In the prior art based on the dependence of protection of resources pair, by execute conditional expression to the dependence between test item into Row setting, the implementing result for executing the first test item involved in conditional expression is compared with expected value, then will obtain Comparison result substitute into the executions conditional expression after, judge whether to execute with first test item with dependence Second test item, the dependence for executing conditional expression setting can be the dependence corresponded, It can be many-to-one dependence, diversified setting can be carried out according to testing requirement, to solve in the prior art The problem of test scope caused by single dependence between test item is limited or test effect is limited to, is tested in serializing, so that one Whether a test item, which executes, is no longer only capable of running succeeded depending on another test item, by executing conditional expression to test Dependence between is configured flexibly, and be can satisfy the various dependences between test item, be can satisfy user To the diversified demand of test, user experience is promoted.
Detailed description of the invention
Fig. 1 is the implementation process schematic diagram that the embodiment of the present invention serializes test method;
Fig. 2 is the schematic diagram of closed loop dependence during the present invention is implemented;
Fig. 3 is the specific implementation flow schematic diagram that the embodiment of the present invention serializes test method;
Fig. 4 is the composition result schematic diagram that the embodiment of the present invention serializes test device;
Fig. 5 is the composed structure schematic diagram of the terminal of that embodiment of the invention.
Specific embodiment
In the embodiment of the present invention, the dependence between test item is configured by executing conditional expression, when the When there is execution conditional expression in two test items, by the execution knot of the first test item involved in the execution conditional expression Fruit is compared with pre-set expected value, then the comparison result after comparison is inputted in the execution conditional expression, root According to the calculated result for executing conditional expression, judge whether to execute second test item.
If the calculated result for executing conditional expression is really to execute the serializing survey of second test item Examination;If the calculated result for executing conditional expression is vacation, the serializing test of second test item is not executed.Institute That states the second test item depends on the calculated result for executing conditional expression whether execution, the execution conditional expression can To carry out diversified setting to the dependence between test item.
Wherein, it is described execute conditional expression characterization be one or more first test items and the second test item it Between dependence.
In order to more fully hereinafter understand the features of the present invention and technology contents, with reference to the accompanying drawing to reality of the invention Now it is described in detail.
Fig. 1 is the implementation flow chart of serializing test method provided in an embodiment of the present invention, as shown in Figure 1, the method It mainly comprises the steps that
Step 101: obtaining the implementing result of the first test item.
Step 102: the implementing result being compared with expected value, obtains comparison result.
Step 103: the comparison result being inputted and executes conditional expression, wherein the execution conditional expression characterization Be dependence between one or more first test items and the second test item;
Step 104: according to the calculated result for executing conditional expression, judging whether to execute second test item.
When serializing test method provided in an embodiment of the present invention is implemented, before the step 101, further includes: editor The execution conditional expression;It detects the execution conditional expression and whether first test item is correct;When the execution When conditional expression and correct first test item, the execution conditional expression is saved.
Wherein, the editor the executions conditional expression can be with are as follows: to the multiple behaviour executed in conditional expression It counts and is combined with multiple operators, form a complete logical relation arithmetic expression;By first test item of selection It substitutes into the operand in the execution conditional expression, completes between second test item and first test item The setting of dependence.It is described to execute the conditional expression or mathematical operation formula that conditional expression is similar in program language, The operation result for executing conditional expression is the variable of Boolean type.The execution conditional expression is by operand and operator group At;Wherein, the operand pair should serialize the test item in test.Specifically, when editing the execution conditional expression, It needs to input the test item of selection in the operand in the execution conditional expression, the selected test item is the first survey Item is tried, can be multiple test items in first test item, these test items are to identify (ID) as unique identification.The behaviour It counts and further comprises the test item expectation implementing result of substitution, the expectation implementing result is expected value.Wherein, the operation The logical operators such as Fu Weiyu or non-, bracket.The execution conditional expression is by multiple operands and multiple operator groups At.
After the execution conditional expression editor, the execution conditional expression and first test can be detected Whether item is correct, specifically: whether the syntagmatic of the detection operand executed in conditional expression and operator is correct, And the dependence of detection first action-item whether be first action-item closed loop dependence.Wherein, described Dependence of the closed loop dependence between at least two test items forms closed loop, and the closed loop dependence is as schemed Shown in 2, test item A depends on test item B, test item B to depend on test item C, and test item C depends on test item A, that is, surveys Examination item A depends finally on test item A.If the dependence between test item forms closed loop, test item The implementing result for depending on itself is executed, this is not inconsistent logical.
When at least one in the execution conditional expression and first test item is incorrect, i.e., the described execution condition There are there are closed loop dependences in problem or first test item for the logical relation expression formula of operand in expression formula When test item, the execution conditional expression is updated.
When the execution conditional expression and correct first test item, the execution conditional expression is saved; Wherein, described to save the execution conditional expression, the execution conditional expression can be stored in second test item In, whenever executing second test item, so that it may call directly the execution conditional expression;Or by each test item Execution conditional expression be uniformly stored in a region, when executing a test item, pass through test item and corresponding execution The identifier of conditional expression finds execution conditional expression corresponding with test item;Or it can be by the execution condition Expression formula is numbered, and at this moment, the execution conditional expression is no longer correspond to a test item, when one test item of execution When, can nominative testing item one execution conditional expression number, the execution conditional expression needed to be implemented is called with this.
Specifically, an execution conditional expression editing machine can be set, the execution conditional expression is edited. The execution conditional expression editing machine may include three regions: operand region, executes conditional expression at operator region Display area.Wherein, the operand region can show that one is tested all test items to be carried out containing serializing It sets, there are the nodes connected between test item in tree, it is shown that the sequencing that the test item to be carried out executes, i.e. root in tree Test item where node is executed prior to the test item where child node, and the execution of the corresponding test item of father node is prior to sub- section The execution of the corresponding test item of point, it would be appreciated that: the corresponding test item of tree interior joint whether execute depend on and its The implementing result of other test items with dependence and the calculated result for executing conditional expression.Wherein, all tests The operand that item can be used as in the execution conditional expression uses;Wherein, operator region may include some logic symbols Number button, such as the logical symbols button such as "AND", "or", " non-" can also include left bracket, right parenthesis, empty, delete, really The buttons such as fixed, cancellation;Wherein, the execution conditional expression display area can be with the expression formula of real-time display editor.
In input operand, the test item in operand region can be input to and execute conditional expression display area, And the operation result of the expectation of the test item is set, including runs succeeded, executes any result such as unsuccessfully.In input operator When, operator area logic symbol directly can be inputted into operator.It, can basis when execution conditional expression is provided with Whether the determination information of reading, the test item for checking whether the execution conditional expression of editor is correct and being related to have closed loop dependence Relationship saves the execution conditional expression of editor after detecting successfully.
In a step 101, the implementing result of the first test item is obtained, comprising: obtain each in first test item The implementing result of a test item.Wherein, first test item is test item involved in the execution conditional expression, described First test item is at least one test item.Wherein, the implementing result can running succeeded, holding for first test item Row failure or the implementing results such as during being carrying out.
In a step 102, the implementing result is compared with expected value, obtains comparison result, comprising: by described The implementing result of each of one test item test item is compared with the expected value of each pre-set test item.Its In, the expected value is to execute conditional expression during editor to the expected value of the test item setting of input, Ke Yiwei Expect that first test item runs succeeded or expects that the first test item execution unsuccessfully waits the implementing result of expectations.
Specifically, the implementing result and the expected value of first test item obtained in step 101 are compared, If the implementing result is identical with the expected value, 1 is set by comparison result;If the implementing result and the phase It is identical wait be worth, then 0 is set by comparison result.Certainly, the comparison result can specifically be set according to demand, here only It is to understand for convenience, the comparison result is subjected to above-mentioned setting.
In step 103, the comparison result is inputted and executes conditional expression, wherein the execution conditional expression What is characterized is the dependence between one or more first test items and the second test item, comprising: is relatively tied described Actual value of the fruit as operand in the execution conditional expression, inputs the execution conditional expression, the execution condition Expression formula characterizes the dependence between one or more first test items and the second test item.
Specifically, that the comparison result of each action-item in first test item is substituted into each test item is corresponding In operand, logical relation operation is carried out to the operand for having input specific logical value by the execution conditional expression, is obtained The corresponding calculated result for executing conditional expression of second test item.
At step 104, according to the calculated result for executing conditional expression, judge whether to execute second test , comprising: it is true in the calculated result for executing conditional expression according to the calculated result for executing conditional expression When, execute the serializing test of second test item;It is fictitious time in the calculated result for executing conditional expression, does not execute The serializing of second test item is tested.
Wherein, the calculated result for executing conditional expression determines whether second test item executes, the execution It is the logical relation arithmetic expression of first test item in conditional expression, that is, whether second test item executes dependence In first test item, the execution conditional expression can be according to the operation information of reading to first test item and institute The dependence stated between the second test item is configured, so that the dependence between test item is more diversified.
Fig. 3 is the specific implementation flow schematic diagram of serializing test method provided in an embodiment of the present invention, as described in Figure 3, Serialize test method specific implementation flow the following steps are included:
Step 301, when serializing test run to the second test item, the execution condition expression of the second test item is obtained Formula;
When serializing test run to second test item, the execution condition table of second test item is obtained first Up to formula.
Step 302, whether the execution conditional expression for judging the second test item is empty;
The execution conditional expression for judging second test item whether be sky i.e. are as follows: whether second test item There are corresponding execution conditional expressions;If executed in second test item there are corresponding execution conditional expression Step 303;Otherwise, second test item is executed, i.e. execution step 307.
Step 303, according to conditional expression is executed, the implementing result of the first test item is obtained;
If there are corresponding execution conditional expressions in second test item, according in the execution conditional expression Corresponding first test item of operand obtains the implementing result of first test item;Wherein, first test item is The test item of input operand when editing the execution conditional expression, the test item can be using ID as mark, can also To be named to the test item, specific implementation can be according to demand and depending on practical operation.
Step 304, the implementing result of the first test item is compared with preset expected value, obtains comparing knot Fruit;
By the implementing result of each test item in first test item obtained in step 303 and preset phase It is compared wait be worth, the expected value is when editor executes conditional expression, to the phase of the test item setting of input operand It is pending as a result, the implementing result be the corresponding practical implementing result of each test item, by the execution of first test item As a result after being compared with expected value, comparison result is obtained, the comparison result can be the true value of logical operation relationship.
Step 305, comparison result execution conditional expression is inputted to calculate;
The comparison result of first test item obtained in step 304 is substituted into and executes conditional expression, by the execution After the operation of conditional expression, calculated result is obtained, the calculated result is the true value of logical operation relationship.
Step 306, whether the calculated result for executing conditional expression is true;
When the calculated result obtained in the step 305 is true, the second test item is executed, i.e. progress step 307;
The calculated result obtained in the step 305 is fictitious time, does not execute the second test item, i.e. progress step 308;
Wherein, the execution conditional expression defines the dependence between the first test item and the second test item, i.e., Second test item depends on first test item, executes conditional expression and carries out logical operation to first test item Calculated result is obtained, the result decides whether to execute first test item.
When the implementing result of first test item is identical or equal as preset expected value, obtained comparison result It is input to after the execution conditional expression, the calculated result for executing conditional expression, second test will be triggered The execution of item.
Step 307, the second test item is executed.
Step 308, terminate current process.
If calculated result obtained in step 305 is false, or after executing step 307, then terminate currently to execute the The process of two test items.
The embodiment of the invention also provides a kind of device of serializing test, the composed structure of described device as shown in figure 4, It include: to obtain module 401, comparison module 402, input module 403 and execution module 404, wherein
The acquisition module 401, for obtaining the implementing result of the first test item;First test item be read with Second test item has the test item of dependence, obtains module 401 according to the ID of the first test item or number acquisition First test item as a result, the implementing result can be run succeeded, execute failure or execute carry out it is medium.
The comparison module 402 obtains comparison result for the implementing result to be compared with expected value;Wherein, The expected value is the implementing result expected first test item, that is, wishes that first test item runs succeeded or holds Row is unsuccessfully etc.;The comparison module 402 will acquire module 401 acquisition the first test item implementing result and the pre-set phase It is compared wait be worth, obtains comparison result.
The input module 403 executes conditional expression for inputting the comparison result;Wherein, the execution item What part expression formula characterized is the dependence between one or more first test items and the second test item, the execution item It is to be edited by editor module 405 according to the operation information of reading there are operand and logical operator in part expression formula.
The input module 403, is specifically used for: using the comparison result as operand in the execution conditional expression Actual value, input the execution conditional expression.The comparison result that the input module 403 is obtained from comparison module 402, Comparison result is input to the operation for executing and carrying out logical relation in the corresponding operand of conditional expression.
The execution module 404, for judging whether described in execution according to the calculated result for executing conditional expression Second test item.
The execution module 404, is specifically used for: when the calculated result for executing conditional expression is true, executing institute State the serializing test of the second test item;It is fictitious time in the calculated result for executing conditional expression, does not execute described second The serializing of test item is tested.
Further, described device further include: editor module 405, for editing the execution conditional expression;Detection institute It states execution conditional expression and whether first test item is correct;When the execution conditional expression and first test item When correct, the execution conditional expression is saved.
The editor module 405 needs to detect the syntagmatic of operand and operator in the execution conditional expression It is whether correct, and detection first action-item dependence whether be first test item closed loop dependence; Wherein, dependence of the closed loop dependence between at least two test items forms closed loop;When the execution When at least one in conditional expression and first test item is incorrect, the execution conditional expression is updated.
Specifically, editor module 405 is according to the operation information of reading to the operand and logic executed in conditional expression Relational operator is combined, and the test item of selection is substituted into and executes conditional expression, wherein is substituted into and is executed conditional expression Test item is at least one test item;Editor module 405 is after completing the expression of execution condition, to the execution conditional expression It is tested, whether logical operation relationship involved in test execution conditional expression is correct, meanwhile, to execution conditional expression The test item of substitution is detected, and detection executes in the test item substituted into conditional expression with the presence or absence of closed loop dependence; When executing conditional expression and correct test item, editor module 405 saves the execution conditional expression of editor.
When serializing test execution to the second test item, conditional expression is executed if existed in the second test item, is obtained Modulus block 401, which obtains to execute conditional expression and obtain, executes the first test item involved in conditional expression, and according to the The ID or number of one test item obtain the implementing result of the first test item.
Comparison module 402 obtains the implementing result of the first test item from acquisition module 401, and implementing result is surveyed with first The expected value of the examination preparatory facility of item is compared, and obtains comparison result, and the comparison result can be the true value of logical relation, or Different numerical value is arranged according to different comparison results in person.After comparison module 402 obtains comparison result, comparison result is transmitted To input module 403.
Input module 403 will be input to from the comparison result that comparison module 402 obtains and execute in conditional expression, execute item Part expression formula carries out operation to the numerical value of input.
Execution module 404 judges whether to execute the second test item, works as execution according to the calculated result for executing conditional expression When the calculated result of conditional expression is true, execution module 404 executes the second test item;When the calculating knot for executing conditional expression Fruit is fictitious time, and execution module 404 does not execute the second test item.
The above obtains module 401, comparison module 402, input module 403, execution module 404, editor module 405 can By central processing unit (Central Processing Unit, CPU), the microprocessor (Micro being located in terminal Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field-programmable Gate array (Field Programmable Gate Array, FPGA) etc. is realized.
A kind of terminal is additionally provided in the embodiment of the present invention, the composed structure of the system is as shown in Figure 5, comprising: communication Interface 501, storage medium 502 and processor 503;Wherein,
The communication interface 501, for being communicated with other equipment;The communication interface can be divided into serial line interface and Parallel interface, common communication interface are standard communication interface RS-232, RS-485, RS-422 etc..
The storage medium 502, for being stored with computer program;The storage medium can be divided into random storage medium With read-only storage medium, storage medium can be compact flash (Compact Flash, CF) card, secure digital memory (Secure Digital Memory, SD) card, smart media (Smart Media, SM) card, memory stick etc. have storing data The application entity of function.
The processor 503, is connected with the communication interface and the storage medium respectively, for passing through the computer At least executable following steps of program:
Obtain the implementing result of the first test item;
The implementing result is compared with expected value, obtains comparison result;
The comparison result is inputted and executes conditional expression, wherein the execution conditional expression characterization is one Or the dependence between multiple first test items and the second test item;
According to the calculated result for executing conditional expression, judge whether to execute second test item.
Further, the processor 503, can also be performed following steps:
Edit the execution conditional expression;Whether just to detect the execution conditional expression and first test item Really;When the execution conditional expression and correct first test item, the execution conditional expression is saved.
Whether the syntagmatic for detecting the operand in the execution conditional expression and operator is correct;First behaviour Make item dependence whether be first action-item closed loop dependence, wherein the closed loop dependence is at least Dependence between two test items form closed loop in.
When at least one in the execution conditional expression and first test item is incorrect, described hold is updated Row conditional expression.
Using the comparison result as the actual value of operand in the execution conditional expression, the execution condition is inputted Expression formula.
When the calculated result for executing conditional expression is true, the serializing test of second test item is executed; It is fictitious time in the calculated result for executing conditional expression, does not execute the serializing test of second test item.
It should be noted that the communication interface 501, storage medium 502 and processor 503 all have many applications in fact Body, it is above to be only illustrated, and the scope of protection of the present invention is not limited.
The embodiment of the invention also provides a kind of computer storage medium, the computer storage system is stored with computer Program, the computer program can be used for processor and execute method as described below:
Obtain the implementing result of the first test item;The implementing result is compared with expected value, obtains comparison result; The comparison result is inputted and executes conditional expression, wherein the execution conditional expression characterization is one or more institutes State the dependence between the first test item and the second test item;According to the calculated result for executing conditional expression, judgement Whether second test item is executed.
Edit the execution conditional expression;Whether just to detect the execution conditional expression and first test item Really;When the execution conditional expression and correct first test item, the execution conditional expression is saved.
Whether the syntagmatic for detecting the operand in the execution conditional expression and operator is correct;First behaviour Make item dependence whether be first action-item closed loop dependence, wherein the closed loop dependence is at least Dependence between two test items form closed loop in.
When at least one in the execution conditional expression and first test item is incorrect, described hold is updated Row conditional expression.
Using the comparison result as the actual value of operand in the execution conditional expression, the execution condition is inputted Expression formula.
When the calculated result for executing conditional expression is true, the serializing test of second test item is executed; It is fictitious time in the calculated result for executing conditional expression, does not execute the serializing test of second test item.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. a kind of serializing test method, which is characterized in that this method comprises:
Obtain the implementing result of the first test item;
The implementing result is compared with expected value, obtains comparison result;
By the comparison result input execute conditional expression, wherein it is described execute conditional expression characterization be one or it is more Dependence between a first test item and the second test item;
According to the calculated result for executing conditional expression, judge whether to execute second test item.
2. the method according to claim 1, wherein it is described obtain the first test item implementing result before, institute State method further include:
Edit the execution conditional expression;
It detects the execution conditional expression and whether first test item is correct;
When the execution conditional expression and correct first test item, the execution conditional expression is saved.
3. according to the method described in claim 2, it is characterized in that, the detection execution conditional expression and described first Whether test item is correct, comprising:
Whether the syntagmatic for detecting the operand in the execution conditional expression and operator is correct;
Detect first action-item dependence whether be first action-item closed loop dependence, wherein it is described Dependence of the closed loop dependence between at least two test items forms closed loop.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
When at least one in the execution conditional expression and first test item is incorrect, the execution item is updated Part expression formula.
5. the method according to claim 1, wherein described by comparison result input execution condition expression Formula, comprising:
Using the comparison result as the actual value of operand in the execution conditional expression, the execution condition expression is inputted Formula.
6. the method according to claim 1, wherein described according to the calculating knot for executing conditional expression Fruit, after judging whether to execute second test item, further includes:
When the calculated result for executing conditional expression is true, the serializing test of second test item is executed;
It is fictitious time in the calculated result for executing conditional expression, does not execute the serializing test of second test item.
7. a kind of device of serializing test, which is characterized in that described device includes: to obtain module, comparison module, input module And execution module;Wherein,
The acquisition module, for obtaining the implementing result of the first test item;
The comparison module obtains comparison result for the implementing result to be compared with expected value;
The input module executes conditional expression for inputting the comparison result, wherein the execution conditional expression What is characterized is the dependence between one or more first test items and the second test item;
The execution module, for according to the calculated result for executing conditional expression, judging whether that executing described second surveys Try item.
8. device according to claim 7, which is characterized in that described device further include: editor module;
The editor module, for editing the execution conditional expression;Detect the execution conditional expression and described first Whether test item is correct;When the execution conditional expression and correct first test item, the execution condition is saved Expression formula.
9. a kind of terminal characterized by comprising
Communication interface, for being communicated with other equipment;
Storage medium, for being stored with computer program;
Processor is connected with the communication interface and the storage medium respectively, at least may be used by the computer program Execute following steps:
Obtain the implementing result of the first test item;
The implementing result is compared with expected value, obtains comparison result;
By the comparison result input execute conditional expression, wherein it is described execute conditional expression characterization be one or it is more Dependence between a first test item and the second test item;
According to the calculated result for executing conditional expression, judge whether to execute second test item.
10. a kind of computer storage medium, which is characterized in that the computer storage system is stored with computer program, described Computer program can be used for processor perform claim and require 1 to 6 described in any item methods.
CN201710490857.XA 2017-06-22 2017-06-22 Serialize test method and device Pending CN109117359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710490857.XA CN109117359A (en) 2017-06-22 2017-06-22 Serialize test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710490857.XA CN109117359A (en) 2017-06-22 2017-06-22 Serialize test method and device

Publications (1)

Publication Number Publication Date
CN109117359A true CN109117359A (en) 2019-01-01

Family

ID=64733656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710490857.XA Pending CN109117359A (en) 2017-06-22 2017-06-22 Serialize test method and device

Country Status (1)

Country Link
CN (1) CN109117359A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786854A (en) * 2020-06-30 2020-10-16 曙光信息产业(北京)有限公司 Network card testing method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098200A (en) * 2006-06-27 2008-01-02 中兴通讯股份有限公司 Method for implementing customizable test procedure
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system
CN102541648A (en) * 2010-12-29 2012-07-04 ***股份有限公司 Method and device for dynamically scheduling batch processing task
CN103605606A (en) * 2013-12-01 2014-02-26 北京航空航天大学 Embedded software test case batch execution method capable of being automatically convertible
CN104375046A (en) * 2014-12-01 2015-02-25 福建联迪商用设备有限公司 POS (point of sale) terminal testing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098200A (en) * 2006-06-27 2008-01-02 中兴通讯股份有限公司 Method for implementing customizable test procedure
CN102541648A (en) * 2010-12-29 2012-07-04 ***股份有限公司 Method and device for dynamically scheduling batch processing task
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system
CN103605606A (en) * 2013-12-01 2014-02-26 北京航空航天大学 Embedded software test case batch execution method capable of being automatically convertible
CN104375046A (en) * 2014-12-01 2015-02-25 福建联迪商用设备有限公司 POS (point of sale) terminal testing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786854A (en) * 2020-06-30 2020-10-16 曙光信息产业(北京)有限公司 Network card testing method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US9465724B2 (en) Method, program, and system for generating test cases
CN105808227B (en) A kind of fine arts resource file detection method and device
CN110704304A (en) Application program testing method and device, storage medium and server
CN112463590B (en) Interactive Redfish testing method and device and electronic equipment
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
CN109165156B (en) Bar code testing method and device and terminal equipment
CN111797006B (en) Method, device and equipment for testing thread and storage medium
CN112948233A (en) Interface testing method, device, terminal equipment and medium
CN111949513A (en) Configuration file loading method and device, electronic equipment and readable storage device
CN108334451B (en) Page compatibility testing method and device
CN109117359A (en) Serialize test method and device
CN110261758B (en) Device under test verification device and related product
CN107450973B (en) Detection method and device
CN111475358A (en) Automatic testing method and device for controller interface
CN106250298B (en) A kind of test method and device
US20050177773A1 (en) Software method for exhaustive variation of parameters, independent of type
TWI650710B (en) Test process detection method
CN109471766B (en) Sequential fault diagnosis method and device based on testability model
CN108153659B (en) Program vulnerability detection method and related device
CN112527571A (en) CPU instruction set coverage rate calculation method and device
CN111209183A (en) UI function traversal test method and device
CN117687893B (en) Mobile phone APP port testing method and system
CN111767233B (en) Service testing method and device based on intelligent express cabinet
CN114448848B (en) Switch testing method and device, electronic equipment and storage medium
CN115865747A (en) Method and device for detecting connectivity of chip

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190101

RJ01 Rejection of invention patent application after publication