CN109815147B - Test case generation method, device, server and medium - Google Patents

Test case generation method, device, server and medium Download PDF

Info

Publication number
CN109815147B
CN109815147B CN201910053129.1A CN201910053129A CN109815147B CN 109815147 B CN109815147 B CN 109815147B CN 201910053129 A CN201910053129 A CN 201910053129A CN 109815147 B CN109815147 B CN 109815147B
Authority
CN
China
Prior art keywords
test
test case
case
sub
target
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
CN201910053129.1A
Other languages
Chinese (zh)
Other versions
CN109815147A (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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software 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 Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN201910053129.1A priority Critical patent/CN109815147B/en
Publication of CN109815147A publication Critical patent/CN109815147A/en
Application granted granted Critical
Publication of CN109815147B publication Critical patent/CN109815147B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a test case generation method, a test case generation device, a server and a medium, wherein the method comprises the following steps: identifying at least one test case type related to the test process based on the obtained test requirement document; extracting a test sub-case corresponding to each test case type from the test case library according to at least one test case type; and splicing the extracted test sub-cases according to the test requirements to obtain the target test case. The embodiment of the invention solves the problem that the existing test case generation process consumes labor cost, realizes the effect of automatically generating the test case based on the test requirement, reduces the consumption of labor cost and further improves the test efficiency.

Description

Test case generation method, device, server and medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a test case generation method, a test case generation device, a test case generation server and a test case generation medium.
Background
Testing is an important link in the software development process. Through case test, the stability and compatibility of the developed software can be verified, and software errors and defects can be found. Only if the test passes, the development software has the opportunity to be popularized online.
In the development process, a test scenario is usually encountered in which a plurality of functions are required to be executed simultaneously. If in each testing process, the developers are completely relied on to write and combine each testing program, the labor cost is consumed, and the testing efficiency of the developed software is influenced.
Disclosure of Invention
The embodiment of the invention provides a test case generation method, a test case generation device, a server and a medium, so as to achieve the effect of automatically generating test cases based on test requirements.
In a first aspect, an embodiment of the present invention provides a test case generation method, where the method includes:
identifying at least one test case type involved in the testing process based on the obtained testing requirement document;
extracting a test sub-case corresponding to each test case type from the test case library according to the at least one test case type;
and splicing the extracted test sub-cases according to the test requirements to obtain the target test case.
In a second aspect, an embodiment of the present invention further provides a test case generating apparatus, where the apparatus includes:
the test case type identification module is used for identifying at least one test case type related to the test process based on the acquired test requirement document;
the test sub-case extraction module is used for extracting a test sub-case corresponding to each test case type from the test case library according to the at least one test case type;
and the target test case generation module is used for splicing the extracted test sub-cases according to the test requirements to obtain the target test case.
In a third aspect, an embodiment of the present invention further provides a server, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a test case generation method as in any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the test case generation method according to any embodiment of the present invention.
According to the embodiment of the invention, the test requirement document is analyzed, at least one test case type related to the test process is identified, then the test sub-case corresponding to each test case type is extracted from the test case library, and finally the extracted test sub-cases are reasonably spliced according to the test requirement, so that a complete target test case suitable for the current test is automatically generated, the problem that the existing test case generation process consumes labor cost is solved, the effect of automatically generating the test case based on the test requirement is realized, the consumption of labor cost is reduced, and the test efficiency is further improved.
Drawings
Fig. 1 is a flowchart of a test case generation method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a test case generation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a test case generating device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a test case generation method according to an embodiment of the present invention, where the present embodiment is applicable to a case where a test case is generated based on test requirements, and the method may be executed by a test case generation device, and the device may be implemented in a software and/or hardware manner and may be integrated on a server.
As shown in fig. 1, the test case generating method provided in this embodiment may include:
and S110, identifying at least one test case type related to the test process based on the acquired test requirement document.
The test requirements document describes current specific test rules based on the test requirements. The test requirement document can be a descriptive text directly input by a tester according to the test requirement, or can be a text obtained by converting the test requirement after the test requirement is input by voice. The test requirement document can be input according to a preset text format during input of the test requirement document, so that the efficiency of subsequently identifying the type of the test case is improved. The preset text format can include specific separators to realize the segmentation of the sentence. The text format may be flexibly set by a tester, and this embodiment is not limited in particular.
And determining at least one test case type related to the current test process by performing text analysis on the obtained test requirement document. Generally, a test process of software or an application program involves a plurality of application functions according to different application developments, and thus, a test process involves a plurality of test subtasks, each corresponding to a test case type. It should be noted that, the method of this embodiment may obtain a plurality of test requirement documents at the same time, and perform the identification processing synchronously to determine the test case type corresponding to each test requirement.
Optionally, identifying at least one test case type involved in the testing process based on the obtained testing requirement document includes:
extracting key words in the obtained test requirement document;
at least one test case type involved in the test procedure is determined according to the keywords.
In this embodiment, the test requirement document may be analyzed by using any Keyword Extraction method, for example, a Keyword Extraction method based on a word frequency-inverse file frequency (TF-IDF), a Keyword Extraction method based on a Topic model (Topic-model), a Rapid Automatic Keyword Extraction (RAKE) method, and the like, to extract at least one Keyword, and then, in combination with the document semantics, at least one test case type related to the current test process is determined.
For example, the following describes an exemplary test case type identification for a financial activity test requirement 618 of a financial application, where the financial activity test requirement 618 is as follows:
1) there are 3 denominations of shopping cards a, all of which are limited to the user of the first investment. Click to go to the shopping card a, which by default is 50 dollars, and change the gift every two seconds. The financing user can change the gift by sliding left and right.
2) Clicking the activity rule to pop up a rule popup window, clicking 'financing getting', firstly judging the login state of the financing user, if the financing user does not log in, popping up a login frame, directly jumping to a transfer-in page corresponding to a financing product after the financing user logs in or finishes registering, and automatically helping the financing user to input the minimum amount of the gift getting.
Based on the test requirements, the tester can record the following test requirement documents into the server: 1|618 financing activity requires | there are 3 denominations of shopping cards a, all of which are limited to the user's collection of the first investment. Click through defaults to 50 dollar purchase card a, changing gifts every two seconds. The financing user can change the gift by sliding left and right. The click activity rule can pop up a rule popup window, after clicking 'financing reception', the login state of the financing user needs to be judged firstly, if the financing user does not log in, a login frame is popped up, when the financing user logs in or registers, the financing user directly jumps to a transfer-in page corresponding to a financing product, and the financing user is automatically helped to input the minimum amount of money for collecting gifts.
Analyzing the test requirement document, wherein the extracted keywords include but are not limited to: and carrying out financial activity, gift and login, continuously classifying the keywords based on semantics, and determining the types of the test cases related to the current test process based on the keyword classification result, wherein the types of the test cases comprise a financial gift delivery type test case and a user login type test case.
And S120, extracting the test sub-case corresponding to each test case type from the test case library according to at least one test case type.
And after the type of the test case is determined, performing type matching in the test case library, and if the matching is successful, extracting a test sub-case corresponding to the type of the test case for the current test. The test case base is obtained by splitting the shared historical test cases according to the types of the test cases and then performing classified storage or integrally storing the historical test cases. When the currently required test case types exist in the test case library, the test case frames of the corresponding types are directly called from the test case library, so that the process that testers write the test programs repeatedly can be omitted, and the workload of the testers is reduced.
And S130, splicing the extracted test sub-cases according to the test requirements to obtain the target test case.
The splicing process of the test sub-cases not only comprises a test frame combination process corresponding to each test sub-case, but also comprises updating the test parameters related to each test sub-case into the current test parameters based on the test requirement document, thereby obtaining the target test case and executing the current test task. The splicing sequence of each test sub-case is not strictly limited, different test results can be obtained according to target test cases obtained by different splicing sequences, and further problems existing in the application development process can be found in multiple angles. For example, for the 618 testing requirement of the financial activity of the financial application, in the testing process, the financial gift delivery testing sub-case may be executed first, and then the user login testing sub-case may be executed; or the user login type test sub-case can be executed first, and then the financing gift increase type test sub-case is executed.
Further, according to the test requirements, splicing the extracted test sub-cases to obtain a target test case, including:
splicing the extracted test sub-cases according to the test requirements to obtain candidate test cases;
and adjusting the candidate test case according to the extracted keywords to obtain the target test case.
The method comprises the steps of analyzing a test requirement document to obtain keywords, analyzing test parameters corresponding to each type of keywords, and performing detail adjustment on candidate test cases by using the test parameters corresponding to the keywords to obtain target test cases. For example, in the above example, the test parameters corresponding to the keywords "financing campaign" and "gift" include: date-618, gift object-shopping card a, gift number-3, etc.
Because the target test case does not need to be manually compiled by testers in the process of generating the target test case, the labor cost can be saved in the face of a large number of test requirements, the process of repeatedly compiling test programs by the testers is omitted, and the test efficiency is improved.
On the basis of the above technical solution, optionally, according to the test requirement, splicing the extracted test sub-cases to obtain a target test case, including: and splicing the test sub-cases based on the test requirements and the extracted execution sequence corresponding to the test sub-cases to obtain the target test case.
The execution sequence of the test sub-cases refers to a normal execution sequence of each corresponding application function in the application development process, for example, under the normal execution sequence, the user logs in first and then gets the financial gift, and therefore, the execution sequence of the user login type test sub-cases is earlier than that of the financial gift increase and delivery type test sub-cases. No matter the target test case is obtained by splicing or the candidate test case is obtained by splicing, the target test case and the candidate test case can be spliced according to the execution sequence corresponding to each test sub-case.
Optionally, the method further includes: and acquiring the evaluation result of the user on the target test case, and adjusting the target test case based on the evaluation result. The user refers to a tester, and the user review is to further ensure the logic correctness and stability of the automatically generated target test case and avoid the unreliability of the obtained test result. The evaluation result comprises the grade of the target test case by the tester and the error or unreasonable part of the target test case. And acquiring a corresponding adjusting instruction input by the tester based on the evaluation result, wherein the adjusting instruction comprises modification, new addition or deletion and the like, so that the target test case is adjusted again.
According to the technical scheme, at least one test case type related to the test process is identified by analyzing the test requirement document, then the test sub-case corresponding to each test case type is extracted from the test case library, and finally the extracted test sub-cases are reasonably spliced according to the test requirements, so that a complete target test case applicable to the current test is automatically generated, the problem that the existing test case generation process consumes labor cost is solved, the effect of automatically generating the test case based on the test requirements is achieved, the consumption of labor cost is reduced, and the test efficiency is improved.
Example two
Fig. 2 is a flowchart of a test case generation method according to a second embodiment of the present invention, and the present embodiment is further optimized and expanded based on the above embodiments. As shown in fig. 2, the method may include:
s210, identifying at least one test case type related to the test process based on the acquired test requirement document.
S220, determining whether each test case type has a corresponding test sub-case in the test case library according to at least one test case type.
Executing S230 for the test case type of the test sub-case corresponding to the test case in the test case library according to the type matching result in the test case library; for test case types for which no corresponding test sub-case exists in the test case library, S240 is performed.
And S230, aiming at the test case type of the test sub-case corresponding to the test case in the test case library, extracting the test sub-case corresponding to the test case type from the test case library.
S240, aiming at the target test case type without the corresponding test sub-case in the test case library, obtaining the test case segment which is input by the user and corresponds to the target test case type.
That is, when there is no corresponding test sub-case in the test case library, the test personnel is required to manually complete the input of the test case segment. The test case segment is used for completing the test subtask corresponding to the target test case type.
Optionally, the method further includes: and storing the test case segments into a test case library, and updating the target test case types into the test case types of the test case library. The method and the device can realize the updating and perfection of the content of the test case library by storing the test case segments currently input by the user into the test case library, and can be directly called when the same type of test cases are needed in the subsequent test process.
And S250, splicing the test case segments and the test sub-cases extracted from the test case library to obtain the target test case.
Specifically, the test case segments and the extracted test sub-cases can be spliced according to the execution sequence to obtain a complete test frame, and then the detail adjustment of the test frame, such as test parameter update, is performed in combination with the test requirement document to obtain the target test case suitable for the current test.
According to the technical scheme, at least one test case type related to a test process is identified by analyzing a test requirement document; extracting a corresponding test sub-case from the test case library aiming at the test case type of the test sub-case corresponding to the test case type in the test case library, and acquiring a test case segment corresponding to the test case type input by a user aiming at the target test case type of the test sub-case not corresponding to the test case type in the test case library; the test case segments and the extracted test sub-cases are reasonably spliced to obtain a complete target test case suitable for the current test, namely, the problem that the existing test case generation process consumes labor cost is solved by combining the extraction of part of the test sub-cases and the manual input of part of the test case segments, the automatic generation of the complete test case is realized, the consumption of the labor cost is reduced, and the test efficiency is further improved; meanwhile, the test case segments input by the testers are updated into the test case library, so that the content of the test case library is updated and perfected, and convenience is provided for the execution of subsequent test tasks.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a test case generating device according to a third embodiment of the present invention, which is applicable to a case where a test case is generated based on test requirements. The device can be realized in a software and/or hardware mode and can be integrated on a server.
As shown in fig. 3, the test case generating apparatus provided in this embodiment may include a test case type identifying module 310, a test sub-case extracting module 320, and a target test case generating module 330, where:
the test case type identification module 310 is configured to identify at least one test case type involved in the test process based on the obtained test requirement document;
the test sub-case extracting module 320 is configured to extract a test sub-case corresponding to each test case type from the test case library according to at least one test case type;
and the target test case generating module 330 is configured to splice the extracted test sub-cases according to the test requirements to obtain a target test case.
Optionally, the test case type identification module 310 includes:
the keyword extraction unit is used for extracting keywords in the acquired test requirement document;
and the test case type determining unit is used for determining at least one test case type related to the test process according to the keywords.
Optionally, the target test case generating module 330 includes:
the test sub-case splicing sub-unit is used for splicing the extracted test sub-cases according to the test requirements to obtain candidate test cases;
and the candidate test case adjusting subunit is used for adjusting the candidate test case according to the extracted keywords to obtain the target test case.
Optionally, the target test case generating module 330 is specifically configured to:
and splicing the test sub-cases based on the test requirements and the extracted execution sequence corresponding to the test sub-cases to obtain the target test case.
Optionally, the apparatus further comprises:
the test case segment acquisition module is used for acquiring a test case segment which is input by a user and corresponds to a target test case type aiming at the target test case type of the test sub-case which does not exist in the test case library;
accordingly, the target test case generation module 330 is further configured to:
and splicing the test case segments and the test sub-cases extracted from the test case library to obtain the target test case.
Optionally, the apparatus further comprises:
and the test case base type updating module is used for storing the test case segments into the test case base and updating the target test case types into the test case types of the test case base.
Optionally, the apparatus further comprises:
and the target test case adjusting module is used for acquiring the evaluation result of the user on the target test case and adjusting the target test case based on the evaluation result.
The test case generation device provided by the embodiment of the invention can execute the test case generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description in the method embodiments of the invention for details not explicitly described in this embodiment.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary server 412 suitable for use in implementing embodiments of the present invention. The server 412 shown in fig. 4 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 4, server 412 is in the form of a general purpose server. Components of server 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Server 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by server 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The server 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for example, in storage 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The server 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing terminal, display 424, etc.), with one or more terminals that enable a user to interact with the server 412, and/or with any terminals (e.g., network card, modem, etc.) that enable the server 412 to communicate with one or more other computing terminals. Such communication may occur through input/output (I/O) interfaces 422. Further, server 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the Internet) via Network adapter 420. As shown in FIG. 4, network adapter 420 communicates with the other modules of server 412 via bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 412, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 416 executes programs stored in the storage 428 to perform various functional applications and data processing, for example, implementing a test case generation method provided by any embodiment of the present invention, which may include:
identifying at least one test case type related to the test process based on the obtained test requirement document;
extracting a test sub-case corresponding to each test case type from the test case library according to the at least one test case type;
and splicing the extracted test sub-cases according to the test requirements to obtain a target test case.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a test case generation method provided in any embodiment of the present invention, where the method may include:
identifying at least one test case type related to the test process based on the obtained test requirement document;
extracting a test sub-case corresponding to each test case type from the test case library according to the at least one test case type;
and splicing the extracted test sub-cases according to the test requirements to obtain the target test case.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A test case generation method is characterized by comprising the following steps:
identifying at least one test case type related to the test process based on the obtained test requirement document;
extracting a test sub-case corresponding to each test case type from the test case library according to the at least one test case type;
splicing the extracted test sub-cases according to the test requirements to obtain a target test case;
the identifying of at least one test case type involved in the testing process based on the obtained test requirement document includes:
extracting key words in the obtained test requirement document;
determining at least one test case type related to the test process according to the keywords;
the splicing of the extracted test sub-cases according to the test requirements to obtain the target test case comprises the following steps:
splicing the extracted test sub-cases according to the test requirements to obtain candidate test cases;
and adjusting the candidate test case according to the extracted keywords to obtain a target test case.
2. The method as claimed in claim 1, wherein the splicing the extracted test sub-cases according to the test requirements to obtain the target test case comprises:
and splicing the test sub-cases based on the test requirements and the execution sequence corresponding to the extracted test sub-cases to obtain a target test case.
3. The method of claim 1, further comprising:
aiming at a target test case type without a corresponding test sub-case in the test case library, obtaining a test case segment which is input by a user and corresponds to the target test case type;
and splicing the test case segments with the test sub-cases extracted from the test case library to obtain the target test case.
4. The method of claim 3, further comprising:
and storing the test case segments into the test case library, and updating the target test case types into the test case types of the test case library.
5. The method of claim 1, further comprising:
and acquiring a review result of the user on the target test case, and adjusting the target test case based on the review result.
6. A test case generation apparatus, comprising:
the test case type identification module is used for identifying at least one test case type related to the test process based on the acquired test requirement document;
the test sub-case extraction module is used for extracting a test sub-case corresponding to each test case type from the test case library according to the at least one test case type;
the target test case generation module is used for splicing the extracted test sub-cases according to the test requirements to obtain a target test case;
the test case type identification module comprises:
the keyword extraction unit is used for extracting keywords in the acquired test requirement document;
the testing case type determining unit is used for determining at least one testing case type related to the testing process according to the keywords;
wherein, the target test case generation module comprises:
the test sub-case splicing sub-unit is used for splicing the extracted test sub-cases according to the test requirements to obtain candidate test cases;
and the candidate test case adjusting subunit is used for adjusting the candidate test case according to the extracted keywords to obtain the target test case.
7. A server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the test case generation method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a test case generation method as claimed in any one of claims 1 to 5.
CN201910053129.1A 2019-01-21 2019-01-21 Test case generation method, device, server and medium Active CN109815147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910053129.1A CN109815147B (en) 2019-01-21 2019-01-21 Test case generation method, device, server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910053129.1A CN109815147B (en) 2019-01-21 2019-01-21 Test case generation method, device, server and medium

Publications (2)

Publication Number Publication Date
CN109815147A CN109815147A (en) 2019-05-28
CN109815147B true CN109815147B (en) 2022-06-24

Family

ID=66604751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910053129.1A Active CN109815147B (en) 2019-01-21 2019-01-21 Test case generation method, device, server and medium

Country Status (1)

Country Link
CN (1) CN109815147B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221969A (en) * 2019-05-21 2019-09-10 深圳壹账通智能科技有限公司 A kind of page function test method and relevant apparatus
CN112783758B (en) * 2019-11-11 2024-02-27 阿里云计算有限公司 Test case library and feature library generation method, device and storage medium
CN111427790A (en) * 2020-03-26 2020-07-17 中国建设银行股份有限公司 Test method, test device, terminal equipment and storage medium
CN111459830B (en) * 2020-04-07 2024-03-08 建信金融科技有限责任公司 Test case generation method and device
CN111813654A (en) * 2020-05-28 2020-10-23 平安科技(深圳)有限公司 Test case reference method and device
CN112256566B (en) * 2020-09-28 2024-03-05 中国建设银行股份有限公司 Fresh-keeping method and device for test cases

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989227A (en) * 2009-08-04 2011-03-23 中兴通讯股份有限公司 Test case generating method and device
CN103353859A (en) * 2013-07-26 2013-10-16 浪潮电子信息产业股份有限公司 Test case reusing method based on XML
CN107957957A (en) * 2017-12-28 2018-04-24 网易(杭州)网络有限公司 The acquisition methods and device of test case

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9940222B2 (en) * 2015-11-20 2018-04-10 General Electric Company System and method for safety-critical software automated requirements-based test case generation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989227A (en) * 2009-08-04 2011-03-23 中兴通讯股份有限公司 Test case generating method and device
CN103353859A (en) * 2013-07-26 2013-10-16 浪潮电子信息产业股份有限公司 Test case reusing method based on XML
CN107957957A (en) * 2017-12-28 2018-04-24 网易(杭州)网络有限公司 The acquisition methods and device of test case

Also Published As

Publication number Publication date
CN109815147A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109815147B (en) Test case generation method, device, server and medium
CN107908635B (en) Method and device for establishing text classification model and text classification
US9766868B2 (en) Dynamic source code generation
US9619209B1 (en) Dynamic source code generation
CN107992484B (en) Method, device and storage medium for evaluating performance of OCR system
CN101192153B (en) Method and apparatus for obtaining user interface information from executable program code
CN109947924B (en) Dialogue system training data construction method and device, electronic equipment and storage medium
US20130246520A1 (en) Recognizing Social Media Posts, Comments, or other Texts as Business Recommendations or Referrals
CN109872230B (en) Test method and device of financial data analysis system, medium and electronic equipment
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN114048129A (en) Automatic testing method, device, equipment and system for software function change
US20160132809A1 (en) Identifying and amalgamating conditional actions in business processes
CN109710523B (en) Visual draft test case generation method and device, storage medium and electronic equipment
CN111598122B (en) Data verification method and device, electronic equipment and storage medium
CN112989050B (en) Form classification method, device, equipment and storage medium
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
US11765193B2 (en) Contextual embeddings for improving static analyzer output
CN110083807B (en) Contract modification influence automatic prediction method, device, medium and electronic equipment
US20210312223A1 (en) Automated determination of textual overlap between classes for machine learning
CN110674491B (en) Method and device for real-time evidence obtaining of android application and electronic equipment
CN114584616B (en) Message pushing method and device, electronic equipment and storage medium
CN117437652A (en) Test script generation method, device and equipment
CN115687079A (en) Test script public code generation method and device
CN117170659A (en) Packaging method and device for test script code
CN115641072A (en) Method, apparatus, device and medium for on-scale training and compliance determination

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