CN109857665B - Test execution method and device for test case - Google Patents

Test execution method and device for test case Download PDF

Info

Publication number
CN109857665B
CN109857665B CN201910092228.0A CN201910092228A CN109857665B CN 109857665 B CN109857665 B CN 109857665B CN 201910092228 A CN201910092228 A CN 201910092228A CN 109857665 B CN109857665 B CN 109857665B
Authority
CN
China
Prior art keywords
test case
logic
execution
test
original
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.)
Active
Application number
CN201910092228.0A
Other languages
Chinese (zh)
Other versions
CN109857665A (en
Inventor
蒋晓海
程明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Testin Information Technology Co Ltd
Original Assignee
Beijing Testin Information 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 Beijing Testin Information Technology Co Ltd filed Critical Beijing Testin Information Technology Co Ltd
Priority to CN201910092228.0A priority Critical patent/CN109857665B/en
Publication of CN109857665A publication Critical patent/CN109857665A/en
Application granted granted Critical
Publication of CN109857665B publication Critical patent/CN109857665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a test execution method of a test case, which is used for solving the problem that the test case and a service source program are mixed together in the prior art, so that the test problem can not be accurately positioned and tracked. The method comprises the following steps: extracting an original test case in a service source program; abstracting a logic test case based on the original test case, wherein the logic test case is used for representing the execution requirement of the original test case; and executing the original test case based on the execution requirement corresponding to the logic test case. The application also discloses a test execution device of the test case.

Description

Test execution method and device for test case
Technical Field
The embodiment of the invention relates to the technical field of software testing, in particular to a test execution method and device of a test case.
Background
With the development of computer technology, software testing is gradually converted from a manual test case testing execution method driven by human to an automatic test process executed by a computer. In the existing software testing technology, when testing codes are developed, general testers mix test cases (including test data and business processes) and business source programs together, so that the business source programs are huge, and once a testing problem occurs, accurate positioning and tracking cannot be achieved.
Disclosure of Invention
The embodiment of the invention provides a test execution method and a test execution device for a test case, which are used for solving the problem that the test case and a service source program are mixed together in the prior art, so that the test problem cannot be accurately positioned and tracked.
The embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for executing a test case is provided, where the method includes:
extracting an original test case in a service source program;
abstracting a logic test case based on the original test case, wherein the logic test case is used for representing the execution requirement of the original test case;
and executing the original test case based on the execution requirement corresponding to the logic test case.
In a second aspect, a test execution device for a test case is provided, the device including:
the extraction module is used for extracting an original test case in the service source program;
the abstract module is used for abstracting a logic test case based on the original test case, and the logic test case is used for representing the execution requirement of the original test case;
and the execution module is used for executing the original test case based on the execution requirement corresponding to the logic test case.
In a third aspect, a server is provided, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor performing the operations of:
extracting an original test case in a service source program;
abstracting a logic test case based on the original test case, wherein the logic test case is used for representing the execution requirement of the original test case;
and executing the original test case based on the execution requirement corresponding to the logic test case.
In a fourth aspect, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the operations of:
extracting an original test case in a service source program;
abstracting a logic test case based on the original test case, wherein the logic test case is used for representing the execution requirement of the original test case;
and executing the original test case based on the execution requirement corresponding to the logic test case.
The embodiment of the invention adopts at least one technical scheme which can achieve the following beneficial effects:
the test execution method of the test case provided by the embodiment of the invention extracts the original test case in the service source program; abstracting a logic test case based on the original test case; based on the execution requirement corresponding to the logic test case, the original test case is executed, so that the test execution of the original test case is separated from a service source program, only the realization of the execution requirement of the original test case is focused, and the original test case can be accurately positioned and tracked if a test problem occurs.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a test execution method of a test case according to an embodiment of the present specification;
fig. 2 is a schematic structural diagram of a test execution device for test cases according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a hardware structure of a server for implementing various embodiments of the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, the technical solutions of the present application will be clearly and completely described below with reference to the specific embodiments of the present specification and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present application.
As shown in fig. 1, an embodiment of the present specification provides a test execution method of a test case, including the following steps:
and 101, extracting an original test case in a service source program.
The original test case in the service source extraction program can be specifically realized as follows: and analyzing the grammar of the service source program to obtain the original test case.
Of course, the implementation manner of extracting the original test case in the service source program may also adopt the extraction manner in the prior art, and embodiments of the present invention are not listed one by one.
And 102, abstracting a logic test case based on the original test case.
The logic test case is used for representing the execution requirement of the original test case. Wherein the execution requirement may include at least one of an execution flow, an execution operation, and an execution condition.
The logical test case may include at least one of a basic test case, a judge test case, a loop test case, a jump test case, and a capture test case.
The logic test case is abstracted based on the original test case, and the method can be concretely realized as follows: and analyzing the grammar of the original test case to analyze the logic test case.
And 103, executing the original test case based on the execution requirement corresponding to the logic test case.
The execution requirement corresponding to the logic test case is understood as the execution requirement of the logic test case, and exemplarily, the execution operation, the execution condition and the execution flow of the logic test case.
Illustratively, the logic test case is a judgment test case, such as an IF test case, and step 103 may be specifically implemented as:
IF the execution condition of the IF test case is detected to exist and the execution condition of the IF test case is met, executing the original test case;
IF the execution condition of the IF test case is detected to exist and the execution condition of the IF test case is not met, jumping to the next original test case;
and IF the execution condition of the IF test case is not detected, executing the ending operation.
Illustratively, the logic test case is a loop test case, such as a For test case, and the step 103 may be specifically implemented as:
if the cycle number of the For test case exceeds the preset number, executing ending operation; if the cycle number of the For test case does not exceed the preset number and the execution condition of the For test case is met, executing the original test case;
and if the cycle number of the For test case does not exceed the preset number and the execution condition of the For test case is not satisfied, executing the ending operation.
Illustratively, the logic test case is a jump test case, such as a break test case, and step 103 may be specifically implemented as:
judging whether the For test case contains a break test case; if yes, jumping out the For test case; if not, executing the ending operation.
Illustratively, the logic test case is a capture test case, such as a try-catch test case, and the step 103 may be specifically implemented as:
recording the index of the try test case; executing the original test case based on the index of the try test case; judging whether the original test case is abnormal or not; if yes, jumping to a catch test case corresponding to the try test case, and executing capture based on the catch test case; evaluating the execution result of the catch test case, and if the catch test case is successfully captured, executing the ending operation; and if the capture fails, continuing to execute the catch test case.
The test execution method of the test case provided by the embodiment of the invention extracts the original test case in the service source program; abstracting a logic test case based on the original test case; based on the execution requirement corresponding to the logic test case, the original test case is executed, so that the test execution of the original test case is separated from a service source program, only the realization of the execution requirement of the original test case is focused, and the original test case can be accurately positioned and tracked if a test problem occurs.
As an embodiment, step 103 may be specifically implemented as:
and step 1031, determining the logic type of the logic test case.
The logical test case may include at least one of a basic test case, a judge test case, a loop test case, a jump test case, and a capture test case.
If the logic test case is a judgment test case, the type of the logic test case is a judgment type test case;
if the logic test case is a cyclic test case, the type of the logic test case is a cyclic test case;
if the logic test case is a skip test case, the type of the logic test case is a skip type test case;
and if the logic test case is the capture test case, the type of the logic test case is the capture test case.
And 1032, judging whether the logic test case is complete or not based on the logic type of the logic test case.
Illustratively, IF the logic type of the logic test case is a judgment type test case, such as an IF test case, IF in the I F test case corresponds to end;
if the logic type of the logic test case is a cycle type test case, such as a For test case, the For in the For test case corresponds to the end;
if the logic type of the logic test case is a jump type test case, such as a break test case, the break in the break test case only plays a role in the For test case, namely the outer layer of the break does not have a function For losing the jump;
if the logic type of the logic test case is a capture type test case, such as a try-catch test case, try in the try-catch test case corresponds to catch.
Whether the logic test case is complete or not is judged to be: illustratively, whether if corresponds to end is judged; judging whether the for corresponds to the end; judging whether the break outer layer has for; and judging whether try corresponds to catch.
And 1033, if the test case is complete, executing the original test case based on the execution requirement corresponding to the logic test case.
And 1034, if the test case is not complete, canceling the execution of the original test case.
The embodiment of the invention can effectively confirm whether the original test case is executable or not by determining the logic type of the logic test case and judging whether the logic test case is complete or not based on the logic type of the logic test case, and if so, executing the original test case based on the execution requirement corresponding to the logic test case, thereby saving the running cost of the program.
An embodiment of the present invention shows a specific implementation manner of the foregoing step 103. Step 103 may also be implemented in other ways, which is not limited in this embodiment of the present invention.
As an embodiment, step 103 may be specifically implemented as: and executing the original test case based on the execution requirement corresponding to the logic type of the logic test case.
It should be understood that logic test cases for different logic types correspond to different execution requirements. The execution requirement may refer to an execution flow.
For example, the execution flow of the IF test case described in the above embodiment and the execution flow of the For test case described in the above embodiment are used.
An embodiment of the present invention shows a specific implementation manner of the foregoing step 103. Step 103 may also be implemented in other ways, which is not limited in this embodiment of the present invention.
As an embodiment, the execution requirement includes an execution operation and an execution condition; before the step 102 is executed, the method for executing the test case provided by the present invention further includes:
predefining inheritance relationships among the basic test cases, the judgment test cases, the circulation test cases, the jump test cases and the capture test cases;
and respectively configuring the execution operation and the execution condition for the basic test case, the judgment test case, the circulation test case, the jump test case and the capture test case based on the inheritance relationship.
Illustratively, table 1 shows the basic test cases, the judgment test cases, the loop test cases, the jump test cases, and the inheritance relationships between the capture test cases, and the execution operations and the execution conditions respectively configured for the basic test cases, the judgment test cases, the loop test cases, the jump test cases, and the capture test cases. As shown in table 1:
TABLE 1
Figure BDA0001963588890000071
The embodiment of the invention judges the test cases, circulates the test cases, jumps the test cases and captures the inheritance relationship among the test cases by predefining the basic test cases; based on inheritance relations, the execution operations and the execution conditions are configured for the basic test cases, the judgment test cases, the circulation test cases, the jump test cases and the capture test cases respectively, so that a set of simple realization of the basic test cases, the judgment test cases, the circulation test cases, the jump test cases and the capture test cases can be realized independently, the actual execution flow of the original test cases which possibly exist can be simulated, and comprehensive unit tests can be performed. And when the test has problems, the same execution scene can be simulated, and the problems can be analyzed more quickly, so that accurate positioning and tracking can be achieved.
As an embodiment, step 101 may be specifically implemented as:
extracting a plurality of original test cases in a service source program;
the steps can be realized as follows: and analyzing the grammar of the business source program to analyze a plurality of original test cases.
Accordingly, step 102 may be specifically implemented as:
and abstracting a plurality of types of logic test cases based on the plurality of original test cases, wherein the plurality of original test cases correspond to the plurality of types of logic test cases one to one.
The steps can be realized as follows: and analyzing the grammar of each original test case to analyze the logic test case corresponding to the original test case.
In specific implementation, illustratively, a plurality of original test cases are respectively an original test case A, an original test case B, an original test case C, an original test case D, an original test case E and an original test case F which are analyzed by analyzing the grammar of the service source program; and analyzing the grammar of each original test case to obtain a basic test case corresponding to the original test case A, a judgment test case corresponding to the original test case B, a loop test case corresponding to the original test case C, a jump test case corresponding to the original test case D and a capture test case corresponding to the original test case E.
The embodiment of the present invention shows a specific implementation manner of the foregoing step 101, and the step 101 may also be implemented in other manners, which is not limited in this embodiment of the present invention.
The embodiment of the invention abstracts a plurality of logic test cases by extracting a plurality of original test cases in the service source program and based on the original test cases, and can simulate the actual execution flow of the original test cases which may exist. When a problem occurs in the test, the same execution scene can be simulated, and the problem can be analyzed more quickly, so that accurate positioning and tracking can be achieved.
The above description section introduces an embodiment of a method for executing a test case in detail, as shown in fig. 2, and the present specification further provides a device for executing a test case, as shown in fig. 2, where the device 200 for executing a test case may include:
an extraction module 201, configured to extract an original test case in a service source program;
an abstraction module 202, configured to abstract a logical test case based on the raw test case, where the logical test case is used to represent an execution requirement of the raw test case;
an execution module 203, configured to execute the original test case based on an execution requirement corresponding to the logical test case
Optionally, as an embodiment, the executing module 203 may include:
the determining unit is used for determining the logic type of the logic test case;
the judging unit is used for judging whether the logic test case is complete or not based on the logic type of the logic test case;
and the first execution unit is used for executing the original test case based on the execution requirement corresponding to the logic test case if the judgment unit judges that the logic test case is complete.
Optionally, as an embodiment, the executing module 203 may further include:
and the second execution unit is used for canceling the execution of the original test case if the judging unit judges that the logic test case is incomplete.
Optionally, as an embodiment, the executing module 403 may include:
and the third execution unit is used for executing the original test case based on the execution requirement corresponding to the logic type of the logic test case.
Optionally, as an embodiment, the execution requirement includes an execution flow.
Optionally, as an embodiment, the logic test case includes at least one of the following: basic test cases, judgment test cases, cycle test cases, jump test cases, and capture test cases.
Optionally, as an embodiment, the execution requirement includes an execution operation and an execution condition;
the test execution device 200 for the test case may further include:
a defining module 204, configured to pre-define inheritance relationships among the basic test case, the judgment test case, the loop test case, the skip test case, and the capture test case;
a configuration module 205, configured to configure the execution operation and the execution condition for the basic test case, the judgment test case, the loop test case, the jump test case, and the capture test case, respectively, based on the inheritance relationship.
Optionally, as an embodiment, the abstraction module 202 may include:
and the analysis unit is used for analyzing the grammar of the original test case so as to analyze the logic test case.
Optionally, as an embodiment, the extracting module 201 may include:
the extraction unit is used for extracting a plurality of original test cases in the service source program;
the abstraction module 202 may include:
and the abstraction unit is used for abstracting a plurality of types of logic test cases based on the plurality of original test cases, and the plurality of original test cases correspond to the plurality of types of logic test cases one by one.
The test execution device of the test case provided by the embodiment of the invention extracts the original test case in the service source program through the extraction module; abstracting a logic test case by the abstraction module based on the original test case; the execution module executes the original test case based on the execution requirement corresponding to the logic test case, so that the test execution of the original test case is separated from a service source program, only the realization of the execution requirement of the original test case is focused, and the original test case can be accurately positioned and tracked if a test problem occurs.
The test execution device for the test case according to the embodiment of the present invention may refer to a flow corresponding to the test execution method for the test case according to the embodiment of the present invention, and each unit/module and the other operations and/or functions in the test execution device for the test case are respectively for implementing a corresponding flow in the test execution method for the test case, and are not described herein again for brevity.
The following describes in detail a test execution apparatus for a test case according to an embodiment of the present invention with reference to fig. 3. Referring to fig. 3, at a hardware level, the test execution device of the test case includes a processor, and optionally, an internal bus, a network interface, and a memory. As shown in fig. 3, the Memory may include a Memory, such as a Random-Access Memory (RAM), and may also include a non-volatile Memory, such as at least 1 disk Memory. Of course, the test execution device of the test case may also include hardware required to implement other services.
The processor, the network interface, and the memory may be interconnected by an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 3, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a device for forwarding the chat information on a logic level. The processor executes the program stored in the memory and is specifically configured to perform the operations of the method embodiments described herein.
The methods performed by the methods and apparatuses disclosed in the embodiments of fig. 1 to 2 may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The test execution device for test cases shown in fig. 2 can also execute the method shown in fig. 1, and implement the functions of the test execution method for test cases in the embodiment shown in fig. 1, which are not described herein again in the embodiments of the present invention.
Of course, the test execution apparatus for test cases in this application does not exclude other implementations, such as logic devices or a combination of software and hardware, besides software implementations, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (9)

1. A test execution method of a test case is characterized by comprising the following steps:
extracting an original test case in a service source program;
abstracting a logic test case based on the original test case, wherein the logic test case is used for representing the execution requirement of the original test case;
executing the original test case based on the execution requirement corresponding to the logic test case;
executing the original test case based on the execution requirement corresponding to the logic test case, wherein the executing the original test case comprises the following steps:
determining the logic type of the logic test case;
judging whether the logic test case is complete or not based on the logic type of the logic test case;
and if the test case is complete, executing the original test case based on the execution requirement corresponding to the logic test case.
2. The method of claim 1, further comprising:
and if not, canceling the execution of the original test case.
3. The method according to claim 1, wherein executing the original test case based on the execution requirement corresponding to the logical test case comprises:
and executing the original test case based on the execution requirement corresponding to the logic type of the logic test case.
4. The method of claim 3, wherein the execution requirement comprises an execution flow.
5. The method of claim 1, wherein the logical test cases comprise at least one of: basic test cases, judgment test cases, cycle test cases, jump test cases, and capture test cases.
6. The method of claim 5,
the execution requirement comprises an execution operation and an execution condition;
before abstracting a logic test case based on the original test case, the method further comprises the following steps:
predefining inheritance relationships among the basic test cases, the judgment test cases, the circulation test cases, the jump test cases and the capture test cases;
and respectively configuring the execution operation and the execution condition for the basic test case, the judgment test case, the circulation test case, the jump test case and the capture test case based on the inheritance relationship.
7. The method of claim 1, wherein abstracting out a logical test case based on the raw test cases comprises:
and analyzing the grammar of the original test case to analyze the logic test case.
8. The method according to claim 1, wherein the extracting of the original test cases in the service source program comprises:
extracting a plurality of original test cases in a service source program;
abstracting a logic test case based on the original test case, comprising the following steps:
and abstracting a plurality of types of logic test cases based on the plurality of original test cases, wherein the plurality of original test cases correspond to the plurality of types of logic test cases one to one.
9. A test execution device for a test case, comprising:
the extraction module is used for extracting an original test case in the service source program;
the abstract module is used for abstracting a logic test case based on the original test case, and the logic test case is used for representing the execution requirement of the original test case;
the execution module is used for executing the original test case based on the execution requirement corresponding to the logic test case;
wherein the execution module comprises:
the determining unit is used for determining the logic type of the logic test case;
the judging unit is used for judging whether the logic test case is complete or not based on the logic type of the logic test case;
and the first execution unit is used for executing the original test case based on the execution requirement corresponding to the logic test case if the judgment unit judges that the logic test case is complete.
CN201910092228.0A 2019-01-30 2019-01-30 Test execution method and device for test case Active CN109857665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910092228.0A CN109857665B (en) 2019-01-30 2019-01-30 Test execution method and device for test case

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910092228.0A CN109857665B (en) 2019-01-30 2019-01-30 Test execution method and device for test case

Publications (2)

Publication Number Publication Date
CN109857665A CN109857665A (en) 2019-06-07
CN109857665B true CN109857665B (en) 2022-03-15

Family

ID=66896952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910092228.0A Active CN109857665B (en) 2019-01-30 2019-01-30 Test execution method and device for test case

Country Status (1)

Country Link
CN (1) CN109857665B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667523B (en) * 2021-03-17 2021-07-13 卡斯柯信号(北京)有限公司 Automatic test case filling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1630675A2 (en) * 2004-08-27 2006-03-01 Robert Bosch Gmbh Functional unit for executing logical tests on a test system coupled with a unit under test and corresponding method
CN1938690A (en) * 2004-01-13 2007-03-28 交响乐服务公司 Method and system for conversion of automation test scripts into abstract test case representation with persistence
CN106354638A (en) * 2016-08-29 2017-01-25 广州唯品会信息科技有限公司 Automatic testing method and device based on lexical analysis
CN108572892A (en) * 2017-03-14 2018-09-25 大唐移动通信设备有限公司 A kind of off-line test method and apparatus based on PowerPC multi-core processors

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1938690A (en) * 2004-01-13 2007-03-28 交响乐服务公司 Method and system for conversion of automation test scripts into abstract test case representation with persistence
EP1630675A2 (en) * 2004-08-27 2006-03-01 Robert Bosch Gmbh Functional unit for executing logical tests on a test system coupled with a unit under test and corresponding method
CN106354638A (en) * 2016-08-29 2017-01-25 广州唯品会信息科技有限公司 Automatic testing method and device based on lexical analysis
CN108572892A (en) * 2017-03-14 2018-09-25 大唐移动通信设备有限公司 A kind of off-line test method and apparatus based on PowerPC multi-core processors

Also Published As

Publication number Publication date
CN109857665A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN109871326B (en) Script recording method and device
CN109271359B (en) Log information processing method and device, electronic equipment and readable storage medium
CN109101815B (en) Malicious software detection method and related equipment
CN113271237B (en) Industrial control protocol analysis method and device, storage medium and processor
CN111163067B (en) Safety testing method and device and electronic equipment
CN114546738B (en) Universal test method, system, terminal and storage medium for server
CN114968807A (en) Code detection method and device, electronic equipment and readable storage medium
CN107480056B (en) Software testing method and device
CN112131573A (en) Method and device for detecting security vulnerability and storage medium
CN111124870A (en) Interface testing method and device
CN109753435B (en) Software testing method and device
CN109857665B (en) Test execution method and device for test case
CN108255891B (en) Method and device for judging webpage type
CN112084108A (en) Test script generation method and device and related components
CN109614844B (en) Link verification method, device and equipment
CN115827374A (en) Application log management method and device, electronic equipment and readable storage medium
CN112559313A (en) Test case setting method and device, storage medium and electronic equipment
CN115309661A (en) Application testing method and device, electronic equipment and readable storage medium
CN114398283A (en) Automatic testing method and device for user interface, electronic equipment and storage medium
CN114490413A (en) Test data preparation method and device, storage medium and electronic equipment
CN112286803A (en) Test case detection method and device
CN109388564B (en) Test method and device and electronic equipment
CN107391382B (en) Target searching method and device
CN112181807A (en) Application program inspection method, device and equipment
CN110471829B (en) Method and device for checking software code test coverage rate

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
GR01 Patent grant
GR01 Patent grant