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
execution
conditional expression
test item
test
result
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.)
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

Serialization test method and device
Technical Field
The invention relates to the field of production test, in particular to a serialization test method and a serialization test device.
Background
In the field of production testing, various testing tasks exist. Among them, there is one of the most frequently used test tasks, i.e., the serialized test task. The contents of the serialized test task are mainly as follows: a behavior sequence to be tested is predefined, and then each test item is sequentially run according to the behavior sequence. Some dependency relationships between the test items, i.e. whether one test item is executed or not, may depend on the execution results of other test items.
At present, in the existing test engine for producing a test platform, the dependency relationship between test items is in a resource protection pair mode. The resource protection pair may be: two test items with one-to-one dependency relationship, i.e. whether one test item is executed or not, depends on whether the other test item is executed successfully or not, but based on the test of the resource protection pair mode, the one-to-one test processing mode cannot meet the test requirement that one test item depends on a plurality of test items at the same time, and the range of the test is limited based on the dependency relationship.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a serialization testing method and apparatus, which can solve the problem that the testing range is limited due to one-to-one dependency relationship between test items in the serialization testing process.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a serialization testing method, which comprises the following steps:
acquiring an execution result of the first test item;
comparing the execution result with an expected value to obtain a comparison result;
inputting the comparison result into an execution conditional expression, wherein the execution conditional expression characterizes the dependency relationship between one or more first test items and second test items;
and judging whether to execute the second test item according to the calculation result of the execution conditional expression.
In the above technical solution, before obtaining the execution result of the first test item, the method further includes:
editing the execution conditional expression;
detecting whether the execution conditional expression and the first test item are correct;
and when the execution conditional expression and the first test item are both correct, saving the execution conditional expression.
In the above technical solution, the detecting whether the executing conditional expression and the first test item are correct includes:
detecting whether the combination relation of the operand and the operator in the execution conditional expression is correct or not;
detecting whether the dependency relationship of the first operation item is a closed-loop dependency relationship of the first operation item, wherein the closed-loop dependency relationship forms a closed loop for the dependency relationship between at least two test items.
In the above technical solution, the method further includes:
when at least one of the execution conditional expression and the first test item is incorrect, re-editing the execution conditional expression.
In the above technical solution, the inputting the comparison result into the execution conditional expression includes:
and inputting the comparison result into the execution conditional expression as an actual value of an operand in the execution conditional expression.
In the above technical solution, after the determining whether to execute the second test item according to the calculation result of the executing conditional expression, the method further includes:
when the calculation result of the execution conditional expression is true, executing the serialization test of the second test item;
and when the calculation result of the execution conditional expression is false, not executing the serialization test of the second test item.
The embodiment of the invention also provides a device for serialization test, which comprises: the device comprises an acquisition module, a comparison module, an input module and an execution module; wherein,
the acquisition module is used for acquiring the execution result of the first test item;
the comparison module is used for comparing the execution result with an expected value to obtain a comparison result;
the input module is used for inputting the comparison result into an execution conditional expression, wherein the execution conditional expression represents the dependency relationship between one or more first test items and second test items;
and the execution module is used for judging whether to execute the second test item according to the calculation result of the execution conditional expression.
In the above technical solution, the apparatus further includes: an editing module;
the editing module is used for editing the execution conditional expression; detecting whether the execution conditional expression and the first test item are correct; and when the execution conditional expression and the first test item are both correct, saving the execution conditional expression.
An embodiment of the present invention further provides a terminal, including:
a communication interface for communicating with other devices;
a storage medium for storing a computer program;
a processor, connected to the communication interface and the storage medium, respectively, for executing at least the following steps by the computer program:
acquiring an execution result of the first test item;
comparing the execution result with an expected value to obtain a comparison result;
inputting the comparison result into an execution conditional expression, wherein the execution conditional expression characterizes the dependency relationship between one or more first test items and second test items;
and judging whether to execute the second test item according to the calculation result of the execution conditional expression.
The embodiment of the invention also provides a computer storage medium, wherein a computer program is stored in the computer storage mechanism, and the computer program can be used for a processor to execute the steps in the technical scheme.
The serialization testing method and the serialization testing device provided by the embodiment of the invention change the dependency relationship based on the resource protection pair in the prior art in the serialization testing process, set the dependency relationship between the test items through executing the conditional expression, compare the execution result of the first test item related in the executing conditional expression with the expected value, and then substitute the obtained comparison result into the executing conditional expression to judge whether to execute the second test item having the dependency relationship with the first test item, wherein the dependency relationship set by the executing conditional expression can be a one-to-one corresponding dependency relationship or a plurality-to-one dependency relationship, and can be variously set according to the testing requirements, thereby solving the problem that the testing range is limited or the testing effect is limited due to the single dependency relationship between the serialization testing items in the prior art, whether one test item is executed or not can be determined only by the execution success of the other test item, the dependency relationship among the test items is flexibly configured by executing the conditional expression, various dependency relationships among the test items can be met, the diversified requirements of a user on the test can be met, and the user experience is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating an implementation of a serialization testing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of closed loop dependencies in the practice of the present invention;
FIG. 3 is a flowchart illustrating a detailed implementation of a serialized test method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating the composition results of a serialization test apparatus in accordance with an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In the embodiment of the invention, the dependency relationship among the test items is set through executing the conditional expressions, when the executing conditional expression exists in the second test item, the executing result of the first test item related in the executing conditional expression is compared with the preset expectation value, the compared result is input into the executing conditional expression, and whether the second test item is executed or not is judged according to the calculation result of the executing conditional expression.
If the calculation result of the execution conditional expression is true, executing the serialization test of the second test item; and if the calculation result of the execution conditional expression is false, not executing the serialization test of the second test item. Whether the second test item is executed or not depends on the calculation result of the execution conditional expression, and the execution conditional expression can variously set the dependency relationship between the test items.
Wherein the execution conditional expression characterizes a dependency between one or more of the first test items and second test items.
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a flowchart of an implementation of a serialization testing method according to an embodiment of the present invention, and as shown in fig. 1, the method mainly includes the following steps:
step 101: an execution result of the first test item is obtained.
Step 102: and comparing the execution result with an expected value to obtain a comparison result.
Step 103: inputting the comparison result into an execution conditional expression, wherein the execution conditional expression characterizes the dependency relationship between one or more first test items and second test items;
step 104: and judging whether to execute the second test item according to the calculation result of the execution conditional expression.
When the serialization testing method provided by the embodiment of the present invention is implemented, before the step 101, the method further includes: editing the execution conditional expression; detecting whether the execution conditional expression and the first test item are correct; and when the execution conditional expression and the first test item are both correct, saving the execution conditional expression.
Wherein the editing the execution conditional expression may be: combining a plurality of operands and a plurality of operators in the execution condition expression to form a complete logical relation operation expression; and substituting the selected first test item into an operand in the execution conditional expression to complete the setting of the dependency relationship between the second test item and the first test item. The execution condition expression is similar to a condition expression or a mathematical operation expression in a program language, and the operation result of the execution condition expression is a Boolean type variable. The execution conditional expression consists of operands and operators; wherein the operands correspond to test items in a serialized test. Specifically, when editing the execution conditional expression, a selected test item needs to be input into an operand in the execution conditional expression, where the selected test item is a first test item, and the first test item may be multiple test items, and these test items use an Identification (ID) as a unique identification. The operand also contains the substituted expected execution result of the test item, which is the expected value. The operator is a logical operator such as AND, OR, NOT, bracket and the like. The execution conditional expression is composed of a plurality of operands and a plurality of operators.
After the execution conditional expression is edited, whether the execution conditional expression and the first test item are correct is detected, specifically: detecting whether the combination relation of operands and operators in the execution conditional expression is correct or not, and detecting whether the dependency relation of the first operation item is the closed-loop dependency relation of the first operation item or not. The closed-loop dependency relationship is a closed loop formed by a dependency relationship between at least two test items, and is shown in fig. 2, where the test item a depends on the test item B, the test item B depends on the test item C, and the test item C depends on the test item a, that is, the test item a ultimately depends on the test item a. If the dependencies between test items form a closed loop, the execution of a test item depends on its own execution results, which is not logical.
When at least one of the execution condition expression and the first test item is incorrect, namely the logic relation expression of the operand in the execution condition expression has a problem, or the first test item has a test item of closed loop dependency relationship, re-editing the execution condition expression.
When the execution conditional expression and the first test item are both correct, saving the execution conditional expression; wherein, the saving of the execution conditional expression may save the execution conditional expression in the second test item, and the execution conditional expression may be directly invoked whenever the second test item is executed; or the execution conditional expressions of each test item are uniformly stored in an area, and when one test item is executed, the execution conditional expression corresponding to the test item is found through the test item and the identifier of the corresponding execution conditional expression; or the execution conditional expressions may be numbered, at this time, the execution conditional expressions no longer correspond to a test item, and when a test item is executed, the number of an execution conditional expression of the test item is specified, so as to call the execution conditional expression to be executed.
Specifically, an execution conditional expression editor may be provided to edit the execution conditional expression. The execution conditional expression editor may contain three areas: operand area, operator area, execution conditional expression display area. The operand region may display a tree including all test items to be performed by the serialization test, nodes connected between the test items exist in the tree, and the execution sequence of the test items to be performed is displayed, that is, the execution of the test item where the root node in the tree is located is prior to the execution of the test item where the child node is located, and the execution of the test item corresponding to the parent node is prior to the execution of the test item corresponding to the child node, but it is noteworthy that: whether the test item corresponding to the node in the tree is executed depends on the execution results of other test items having dependency relations with the test item and the calculation results of the execution condition expression. Wherein all test items can be used as operands in the execution conditional expression; the operator area may include some logical symbol buttons, such as logical symbol buttons of and, or, and not, and may also include left and right brackets, clear, delete, determine, cancel, and the like; wherein the execution conditional expression display area may display the edited expression in real time.
When an operand is input, a test item of the operand region may be input to the execution conditional expression display region, and an expected execution result of the test item, including any result of execution success, execution failure, or the like, may be set. When inputting an operator, the operator region logical symbol may be directly input to the operator. When the setting of the execution conditional expression is completed, whether the edited execution conditional expression is correct and whether the related test items have closed-loop dependency relationships can be checked according to the read determination information, and when the detection is successful, the edited execution conditional expression is stored.
In step 101, obtaining an execution result of a first test item includes: obtaining an execution result of each of the first test items. Wherein the first test item is a test item involved in the execution conditional expression, and the first test item is at least one test item. Wherein the execution result may be an execution success, an execution failure, or an execution progress and the like of the first test item.
In step 102, comparing the execution result with an expected value to obtain a comparison result, comprising: comparing the execution result of each of the first test items with an expected value of each of the test items set in advance. The expected value is an expected value set for the input test item during the editing process of the execution conditional expression, and may be an expected execution result such as an expected success of the execution of the first test item or an expected failure of the execution of the first test item.
Specifically, the execution result of the first test item obtained in step 101 is compared with the expected value, and if the execution result is the same as the expected value, the comparison result is set to 1; if the execution result and the expectation value are the same, the comparison result is set to 0. Of course, the comparison result may be specifically set according to the requirement, and the comparison result is set as described above only for convenience of understanding.
In step 103, inputting the comparison result into an execution conditional expression, wherein the execution conditional expression characterizes a dependency relationship between one or more of the first test items and second test items, and comprises: and inputting the comparison result as an actual value of an operand in the execution conditional expression, wherein the execution conditional expression characterizes the dependency relationship between one or more first test items and second test items.
Specifically, the comparison result of each operation item in the first test item is substituted into the operand corresponding to each test item, and the execution conditional expression performs a logical relationship operation on the operand to which the specific logical value is input, so as to obtain the calculation result of the execution conditional expression corresponding to the second test item.
In step 104, determining whether to execute the second test item according to the calculation result of the execution conditional expression, including: according to the calculation result of the execution conditional expression, when the calculation result of the execution conditional expression is true, executing the serialization test of the second test item; and when the calculation result of the execution conditional expression is false, not executing the serialization test of the second test item.
The execution conditional expression may set a dependency relationship between the first test item and the second test item according to the read operation information, so that the dependency relationship between the test items is more diversified.
Fig. 3 is a schematic diagram of a specific implementation flow of the serialization testing method according to the embodiment of the present invention, and as shown in fig. 3, the specific implementation flow of the serialization testing method includes the following steps:
step 301, when the serialization test runs to the second test item, obtaining an execution conditional expression of the second test item;
when the serialization test is executed to the second test item, the execution condition expression of the second test item is firstly obtained.
Step 302, judging whether the execution conditional expression of the second test item is empty;
the judgment of whether the execution conditional expression of the second test item is empty is as follows: whether the second test item has a corresponding execution conditional expression or not; if the corresponding execution conditional expression exists in the second test item, executing step 303; otherwise, the second test item is executed, i.e., step 307 is executed.
Step 303, obtaining an execution result of the first test item according to the execution conditional expression;
if the second test item has a corresponding execution conditional expression, acquiring an execution result of the first test item according to the first test item corresponding to an operand in the execution conditional expression; the first test item is a test item of an input operand when the execution conditional expression is edited, the test item may use an ID as an identifier, or the test item may be named, and a specific implementation manner may be determined according to a requirement and an actual operation.
Step 304, comparing the execution result of the first test item with a preset expectation value to obtain a comparison result;
comparing the execution result of each of the first test items obtained in step 303 with a preset expectation value, where the expectation value is an expected execution result set for the test item of the input operand when the execution conditional expression is edited, and the execution result is an actual execution result corresponding to each test item, and after comparing the execution result of the first test item with the expectation value, a comparison result is obtained, where the comparison result may be a true value of a logical operation relationship.
Step 305, inputting the comparison result into an execution conditional expression for calculation;
substituting the comparison result of the first test item obtained in the step 304 into the execution conditional expression, and obtaining a calculation result after the operation of the execution conditional expression, wherein the calculation result is a true value of the logical operation relationship.
Step 306, whether the calculation result of the execution conditional expression is true or not is judged;
when the calculation result obtained in step 305 is true, executing the second test item, i.e. performing step 307;
when the calculation result obtained in step 305 is false, the second test item is not executed, i.e. step 308 is performed;
the execution conditional expression specifies the dependency relationship between a first test item and a second test item, namely the second test item depends on the first test item, the execution conditional expression performs logical operation on the first test item to obtain a calculation result, and the result determines whether to execute the first test item.
When the execution result of the first test item is the same as or equal to the preset expectation value, and the obtained comparison result is input into the execution condition expression, the calculation result of the execution condition expression triggers the execution of the second test item.
Step 307, the second test item is executed.
Step 308, ending the current flow.
If the result of the calculation in step 305 is false, or after step 307 is executed, the process of currently executing the second test item is ended.
The embodiment of the present invention further provides a device for serialization testing, where the structure of the device is shown in fig. 4, and the device includes: an acquisition module 401, a comparison module 402, an input module 403, and an execution module 404, wherein,
the obtaining module 401 is configured to obtain an execution result of the first test item; the first test item is a read test item having a dependency relationship with the second test item, and the obtaining module 401 obtains a result of the first test item according to the ID or the number of the first test item, where the execution result may be an execution success, an execution failure, or an execution in progress.
The comparing module 402 is configured to compare the execution result with an expected value to obtain a comparison result; wherein the expected value is an execution result expected for the first test item, i.e. the first test item is expected to be executed successfully or failed; the comparing module 402 compares the execution result of the first test item acquired by the acquiring module 401 with a preset expected value to obtain a comparison result.
The input module 403 is configured to input the comparison result into an execution conditional expression; the execution conditional expression represents a dependency relationship between one or more first test items and second test items, and operands and logical operators exist in the execution conditional expression, and are edited by the editing module 405 according to the read operation information.
The input module 403 is specifically configured to: and inputting the comparison result into the execution conditional expression as an actual value of an operand in the execution conditional expression. The input module 403 inputs the comparison result obtained from the comparison module 402 into the operand corresponding to the execution conditional expression to perform the operation of logical relationship.
The executing module 404 is configured to determine whether to execute the second test item according to the calculation result of the executing conditional expression.
The executing module 404 is specifically configured to: when the calculation result of the execution conditional expression is true, executing the serialization test of the second test item; and when the calculation result of the execution conditional expression is false, not executing the serialization test of the second test item.
Further, the apparatus further comprises: an editing module 405, configured to edit the execution conditional expression; detecting whether the execution conditional expression and the first test item are correct; and when the execution conditional expression and the first test item are both correct, saving the execution conditional expression.
The editing module 405 needs to detect whether a combination relationship between an operand and an operator in the execution conditional expression is correct, and detect whether a dependency relationship of the first operation item is a closed-loop dependency relationship of the first test item; wherein the closed-loop dependency forms a closed loop for the dependency between at least two test items; when at least one of the execution conditional expression and the first test item is incorrect, re-editing the execution conditional expression.
Specifically, the editing module 405 combines operands and logical relationship operators in the execution conditional expression according to the read operation information, and substitutes the selected test items into the execution conditional expression, where the test items substituted into the execution conditional expression are at least one test item; after the execution condition expression is completed, the editing module 405 tests the execution condition expression to test whether the logical operation relationship related in the execution condition expression is correct, and at the same time, detects a test item substituted in the execution condition expression to detect whether a closed-loop dependency relationship exists in the test item substituted in the execution condition expression; when the execution conditional expression and the test item are both correct, the editing module 405 saves the edited execution conditional expression.
When the serialization test is executed to the second test item, if the execution conditional expression exists in the second test item, the obtaining module 401 obtains the execution conditional expression and obtains the first test item involved in the execution conditional expression, and obtains the execution result of the first test item according to the ID or the number of the first test item.
The comparison module 402 obtains the execution result of the first test item from the obtaining module 401, and compares the execution result with the expected value of the first test item pre-installation to obtain a comparison result, where the comparison result may be a true value of a logical relationship, or set different values according to different comparison results. After the comparison module 402 obtains the comparison result, the comparison result is transmitted to the input module 403.
The input module 403 inputs the comparison result obtained from the comparison module 402 into an execution conditional expression, and the execution conditional expression operates on the input numerical value.
The execution module 404 determines whether to execute the second test item according to the calculation result of executing the conditional expression, and when the calculation result of executing the conditional expression is true, the execution module 404 executes the second test item; when the result of the calculation of executing the conditional expression is false, the execution module 404 does not execute the second test item.
The obtaining module 401, the comparing module 402, the input module 403, the executing module 404 and the editing module 405 may be implemented by a Central Processing Unit (CPU), a MicroProcessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like in the terminal.
The embodiment of the present invention further provides a terminal, and a composition structure of the system is shown in fig. 5, including: a communication interface 501, a storage medium 502, and a processor 503; wherein,
the communication interface 501 is used for communicating with other devices; the communication interface can be divided into a serial interface and a parallel interface, and the common communication interfaces are standard communication interfaces RS-232, RS-485, RS-422 and the like.
The storage medium 502 for storing a computer program; the storage medium may be divided into a random access Memory (ram) medium and a read-only Memory (rom) medium, and the storage medium may be a Compact Flash (CF) card, a Secure Digital Memory (SD) card, a Smart Media (SM) card, a Memory stick, or other application entities having a function of storing data.
The processor 503 is connected to the communication interface and the storage medium, respectively, and configured to execute at least the following steps through the computer program:
acquiring an execution result of the first test item;
comparing the execution result with an expected value to obtain a comparison result;
inputting the comparison result into an execution conditional expression, wherein the execution conditional expression characterizes the dependency relationship between one or more first test items and second test items;
and judging whether to execute the second test item according to the calculation result of the execution conditional expression.
Further, the processor 503 may further perform the following steps:
editing the execution conditional expression; detecting whether the execution conditional expression and the first test item are correct; and when the execution conditional expression and the first test item are both correct, saving the execution conditional expression.
Detecting whether the combination relation of the operand and the operator in the execution conditional expression is correct or not; whether the dependency relationship of the first operation item is a closed-loop dependency relationship of the first operation item, wherein the closed-loop dependency relationship forms a closed loop for the dependency relationship between at least two test items.
When at least one of the execution conditional expression and the first test item is incorrect, re-editing the execution conditional expression.
And inputting the comparison result into the execution conditional expression as an actual value of an operand in the execution conditional expression.
When the calculation result of the execution conditional expression is true, executing the serialization test of the second test item; and when the calculation result of the execution conditional expression is false, not executing the serialization test of the second test item.
It should be noted that the communication interface 501, the storage medium 502 and the processor 503 all have many application entities, which are only exemplified above and do not limit the scope of the present invention.
An embodiment of the present invention further provides a computer storage medium, where a computer program is stored in the computer storage mechanism, and the computer program is used for a processor to execute the following method:
acquiring an execution result of the first test item; comparing the execution result with an expected value to obtain a comparison result; inputting the comparison result into an execution conditional expression, wherein the execution conditional expression characterizes the dependency relationship between one or more first test items and second test items; and judging whether to execute the second test item according to the calculation result of the execution conditional expression.
Editing the execution conditional expression; detecting whether the execution conditional expression and the first test item are correct; and when the execution conditional expression and the first test item are both correct, saving the execution conditional expression.
Detecting whether the combination relation of the operand and the operator in the execution conditional expression is correct or not; whether the dependency relationship of the first operation item is a closed-loop dependency relationship of the first operation item, wherein the closed-loop dependency relationship forms a closed loop for the dependency relationship between at least two test items.
When at least one of the execution conditional expression and the first test item is incorrect, re-editing the execution conditional expression.
And inputting the comparison result into the execution conditional expression as an actual value of an operand in the execution conditional expression.
When the calculation result of the execution conditional expression is true, executing the serialization test of the second test item; and when the calculation result of the execution conditional expression is false, not executing the serialization test of the second test item.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A method for serialized testing, the method comprising:
acquiring an execution result of the first test item;
comparing the execution result with an expected value to obtain a comparison result;
inputting the comparison result into an execution conditional expression, wherein the execution conditional expression characterizes the dependency relationship between one or more first test items and second test items;
and judging whether to execute the second test item according to the calculation result of the execution conditional expression.
2. The method of claim 1, wherein prior to obtaining the results of the execution of the first test item, the method further comprises:
editing the execution conditional expression;
detecting whether the execution conditional expression and the first test item are correct;
and when the execution conditional expression and the first test item are both correct, saving the execution conditional expression.
3. The method of claim 2, wherein said detecting whether said executing conditional expression and said first test item are correct comprises:
detecting whether the combination relation of the operand and the operator in the execution conditional expression is correct or not;
detecting whether the dependency relationship of the first operation item is a closed-loop dependency relationship of the first operation item, wherein the closed-loop dependency relationship forms a closed loop for the dependency relationship between at least two test items.
4. The method of claim 2, further comprising:
when at least one of the execution conditional expression and the first test item is incorrect, re-editing the execution conditional expression.
5. The method of claim 1, wherein inputting the comparison result into an execution conditional expression comprises:
and inputting the comparison result into the execution conditional expression as an actual value of an operand in the execution conditional expression.
6. The method according to claim 1, wherein said judging whether to execute the second test item according to the calculation result of the execution conditional expression further comprises:
when the calculation result of the execution conditional expression is true, executing the serialization test of the second test item;
and when the calculation result of the execution conditional expression is false, not executing the serialization test of the second test item.
7. An apparatus for serializing testing, the apparatus comprising: the device comprises an acquisition module, a comparison module, an input module and an execution module; wherein,
the acquisition module is used for acquiring the execution result of the first test item;
the comparison module is used for comparing the execution result with an expected value to obtain a comparison result;
the input module is used for inputting the comparison result into an execution conditional expression, wherein the execution conditional expression represents the dependency relationship between one or more first test items and second test items;
and the execution module is used for judging whether to execute the second test item according to the calculation result of the execution conditional expression.
8. The apparatus of claim 7, further comprising: an editing module;
the editing module is used for editing the execution conditional expression; detecting whether the execution conditional expression and the first test item are correct; and when the execution conditional expression and the first test item are both correct, saving the execution conditional expression.
9. A terminal, comprising:
a communication interface for communicating with other devices;
a storage medium for storing a computer program;
a processor, connected to the communication interface and the storage medium, respectively, for executing at least the following steps by the computer program:
acquiring an execution result of the first test item;
comparing the execution result with an expected value to obtain a comparison result;
inputting the comparison result into an execution conditional expression, wherein the execution conditional expression characterizes the dependency relationship between one or more first test items and second test items;
and judging whether to execute the second test item according to the calculation result of the execution conditional expression.
10. A computer storage medium, characterized in that the computer storage mechanism stores a computer program operable to be executed by a processor for performing the method of any of claims 1 to 6.
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
US20190332970A1 (en) Component releasing method, component creation method, and graphic machine learning algorithm platform
CN105446874A (en) Method and device for detecting resource configuration file
CN108874649B (en) Method and device for generating automatic test script and computer equipment thereof
CN109669436B (en) Test case generation method and device based on functional requirements of electric automobile
CN107102929A (en) The detection method and device of failure
CN105279092A (en) Software testing method and apparatus
CN111949513A (en) Configuration file loading method and device, electronic equipment and readable storage device
CN105912467B (en) Performance test method and device
CN107818051B (en) Test case jump analysis method and device and server
JP6723483B2 (en) Test case generation device, test case generation method, and test case generation program
CN108334451B (en) Page compatibility testing method and device
CN111475394A (en) Application testing method and device
CN109117359A (en) Serialize test method and device
CN110309057B (en) Automatic script-based flow project testing method and related equipment
CN107450973B (en) Detection method and device
US11520691B2 (en) Test procedure systems and methods
CN106250298B (en) A kind of test method and device
CN115481025A (en) Script recording method and device for automatic test, computer equipment and medium
CN111581019B (en) Test method and device for storage fault recovery
CN108733423A (en) A kind of method and terminal of determining mobile device model
CN104239199A (en) Virtual robot generation method, automatic test method and related device
US8271954B2 (en) Method and apparatus for saving checkpoint data while detecting and analyzing a loop structure
KR20170124752A (en) Method and apparatus for detecting anti-reversing code
CN113326180A (en) Method and equipment for testing task guide
CN108153659B (en) Program vulnerability detection method and related device

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