CN115470112A - Extraction method of reusable test case, server and storage medium - Google Patents

Extraction method of reusable test case, server and storage medium Download PDF

Info

Publication number
CN115470112A
CN115470112A CN202211029074.9A CN202211029074A CN115470112A CN 115470112 A CN115470112 A CN 115470112A CN 202211029074 A CN202211029074 A CN 202211029074A CN 115470112 A CN115470112 A CN 115470112A
Authority
CN
China
Prior art keywords
test case
test
reusable
extracting
new
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
CN202211029074.9A
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.)
Unicloud Technology Co Ltd
Original Assignee
Unicloud 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 Unicloud Technology Co Ltd filed Critical Unicloud Technology Co Ltd
Priority to CN202211029074.9A priority Critical patent/CN115470112A/en
Publication of CN115470112A publication Critical patent/CN115470112A/en
Pending legal-status Critical Current

Links

Images

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/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

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

Abstract

The invention provides an extraction method of a reusable test case, which comprises the following steps: analyzing a test item of tested software, extracting each function point of the test item, and forming an analysis list; searching and matching the analysis list with the reusable test case library; if the test case which is the same as or similar to the test item is matched, extracting the existing test case, and further materializing the test case to form the specific test case aiming at the item; and if the test case which is the same as or similar to the item to be tested is not matched, creating a new test case, abstracting and generalizing according to the quality characteristics and the design criteria of the reusable test case, generating a new reusable test case, uniformly submitting and reviewing the new reusable test case and merging the new reusable test case into a reusable test case library. The extraction method of the reusable test case can effectively improve the efficiency of software test and reduce the cost.

Description

Extraction method of reusable test case, server and storage medium
Technical Field
The invention belongs to the technical field of internet, and particularly relates to a method for extracting a reusable test case.
Background
During the software testing process, a mature team typically has its own common test case library. The common test case library is a reusable test case library. A test case is a set of input, output, and operational sequences that are designed to verify a minimum functional point. Reusable test cases refer to "test cases designed for reuse purposes". The multiplexing significance lies in that the design progress of the test case is accelerated and the burden of a tester is reduced by multiplexing modules with the same or similar test case verification functions; reusable test cases refer to "test cases designed for reuse purposes". The multiplexing significance lies in that the modules with the same or similar functions can be verified through multiplexing the test cases, the design progress of the test cases is accelerated, and the burden of testers is reduced. But some difficulties are encountered to realize test case multiplexing, such as: the experience of the tester is deficient, the test case reuse has no unified standard, and the like.
Disclosure of Invention
In view of this, the present invention provides a method for extracting a reusable test case to improve software testing efficiency.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, the present invention provides a method for extracting a reusable test case, including:
analyzing a test item of tested software, extracting each function point of the test item, and forming an analysis list;
searching and matching the analysis list with the reusable test case library;
if the test case which is the same as or similar to the test item is matched, extracting the existing test case, and further materializing the test case to form the specific test case aiming at the item;
and if the test case which is the same as or similar to the item to be tested is not matched, creating a new test case, abstracting and generalizing according to the quality characteristics and the design criteria of the reusable test case, generating a new reusable test case, uniformly submitting and reviewing the new reusable test case and merging the new reusable test case into a reusable test case library.
Further, the test items include: business logic, test environment, test requirements, and test types.
In a second aspect, the present invention provides an apparatus for extracting reusable test cases, including:
the analysis module is used for analyzing the test items of the tested software, extracting each function point of the test items and forming an analysis list;
the retrieval module is used for retrieving and matching the analysis list with the reusable test case library;
the extraction module is used for extracting the existing test case and further materializing the test case to form the specific test case aiming at the project when the test case which is the same as or similar to the test project is matched;
and the creating module is used for creating a new test case when no test case which is the same as or similar to the item to be tested is matched, abstracting and generalizing according to the quality characteristics and the design criteria of the reusable test case, generating a new reusable test case, and uniformly submitting and reviewing the new reusable test case and merging the new reusable test case into a reusable test case library.
In a third aspect, the present invention provides an electronic device/server, including a processor, and a memory communicatively connected to the processor and configured to store executable instructions of the processor, where the processor, when executing the instructions, implements the method for extracting the reusable test case according to the first aspect.
In a fourth aspect, the present invention provides a readable storage medium for storing a computer program, where the computer program, when executed by a processor, implements the method for extracting reusable test cases according to the first aspect.
Compared with the prior art, the extraction method of the reusable test case has the following advantages:
the extraction method of the reusable test case can effectively improve the efficiency of software test and reduce the cost; the software testing period is greatly shortened, and the test case is prevented from being repeatedly designed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart of a method for extracting reusable test cases according to the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
The embodiment provides an extraction method of a reusable test case, which specifically comprises the following steps:
1. analyzing the service logic, the test environment, the test requirement and the test type of the tested software, and then extracting each function point of the tested item to form an analysis list of the tested item.
2. And searching and matching the output analysis list of the tested item with the reusable test case library.
3. If the test case which is the same as or similar to the item to be tested is searched in the library, the test engineer extracts the existing test case and further embodies the test case to form the specific test case aiming at the item.
4. If no test case which is the same as or similar to the item to be tested is searched in the library, a test engineer designs a new test case, abstracts and generalizes the new test case according to the quality characteristics and the design criteria of the reusable test case, generates a new reusable test case, and uniformly submits the new reusable test case to be evaluated and warehoused.
The embodiment provides an extraction device for a reusable test case, which includes:
the analysis module is used for analyzing the test items of the tested software, extracting each function point of the test items and forming an analysis list;
the retrieval module is used for retrieving and matching the analysis list with the reusable test case library;
the extraction module is used for extracting the existing test case and further materializing the test case to form the specific test case aiming at the project when the test case which is the same as or similar to the test project is matched;
and the creating module is used for creating a new test case when no test case which is the same as or similar to the item to be tested is matched, abstracting and generalizing according to the quality characteristics and the design criteria of the reusable test case, generating a new reusable test case, and uniformly submitting and reviewing the new reusable test case and merging the new reusable test case into a reusable test case library.
The embodiment provides an electronic device/server, which includes a processor and a memory, where the memory is communicatively connected to the processor and is used for storing instructions executable by the processor, and when the processor executes the instructions, the processor implements the method for extracting a reusable test case according to the foregoing embodiment.
The present embodiment provides a readable storage medium for storing a computer program, where the computer program, when executed by a processor, implements the extraction method for reusable test cases according to the foregoing embodiments.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of clearly illustrating the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed method and system may be implemented in other ways. For example, the above described division of elements is merely a logical division, and other divisions may be realized, for example, multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not executed. The units may or may not be physically separate, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (5)

1. A method for extracting reusable test cases is characterized by comprising the following steps:
analyzing a test item of tested software, extracting each function point of the test item, and forming an analysis list;
searching and matching the analysis list with the reusable test case library;
if the test case which is the same as or similar to the test item is matched, extracting the existing test case, and further materializing the test case to form the specific test case aiming at the item;
and if the test case which is the same as or similar to the item to be tested is not matched, creating a new test case, abstracting and generalizing according to the quality characteristics and the design criteria of the reusable test case, generating a new reusable test case, uniformly submitting and reviewing the new reusable test case and merging the new reusable test case into a reusable test case library.
2. The method for extracting reusable test cases according to claim 1, wherein the test items include: business logic, test environment, test requirements, and test types.
3. An apparatus for extracting reusable test cases, comprising:
the analysis module is used for analyzing the test items of the tested software, extracting each function point of the test items and forming an analysis list;
the retrieval module is used for retrieving and matching the analysis list with the reusable test case library;
the extraction module is used for extracting the existing test case and further materializing the test case to form the specific test case aiming at the project when the test case which is the same as or similar to the test project is matched;
and the creating module is used for creating a new test case when no test case which is the same as or similar to the item to be tested is matched, abstracting and generalizing according to the quality characteristics and the design criteria of the reusable test case, generating a new reusable test case, and uniformly submitting and reviewing the new reusable test case and merging the new reusable test case into a reusable test case library.
4. An electronic device/server comprising a processor and a memory communicatively coupled to the processor and storing instructions executable by the processor, wherein the processor implements the method for extracting reusable test cases of claim 1 when executing the instructions.
5. A readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for extracting a reusable test case of claim 1.
CN202211029074.9A 2022-08-26 2022-08-26 Extraction method of reusable test case, server and storage medium Pending CN115470112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211029074.9A CN115470112A (en) 2022-08-26 2022-08-26 Extraction method of reusable test case, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211029074.9A CN115470112A (en) 2022-08-26 2022-08-26 Extraction method of reusable test case, server and storage medium

Publications (1)

Publication Number Publication Date
CN115470112A true CN115470112A (en) 2022-12-13

Family

ID=84369319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211029074.9A Pending CN115470112A (en) 2022-08-26 2022-08-26 Extraction method of reusable test case, server and storage medium

Country Status (1)

Country Link
CN (1) CN115470112A (en)

Similar Documents

Publication Publication Date Title
US9436540B2 (en) Automated diagnosis of software crashes
US6185583B1 (en) Parallel rule-based processing of forms
CN110337642A (en) The method and apparatus of test are executed by using test case
US20130086556A1 (en) System for ensuring comprehensiveness of requirements testing of software applications
US11080171B2 (en) Test cycle optimization using contextual association mapping
CN109740129B (en) Report generation method, device and equipment based on blockchain and readable storage medium
CN110427375B (en) Method and device for identifying field type
CN108319711A (en) Transaction consistency test method, device, storage medium and the equipment of database
US9047260B2 (en) Model-based testing of a graphical user interface
Baier et al. Matching of events and activities: an approach based on behavioral constraint satisfaction
CN116048987A (en) Processing method, device, electronic equipment, system and storage medium for flow business
CN112559525B (en) Data checking system, method, device and server
Baier et al. Matching of events and activities-an approach based on constraint satisfaction
CN113138906A (en) Call chain data acquisition method, device, equipment and storage medium
CN110580170B (en) Method and device for identifying software performance risk
CN115470112A (en) Extraction method of reusable test case, server and storage medium
CN116662302A (en) Data processing method, device, electronic equipment and storage medium
CN105630997A (en) Data parallel processing method, device and equipment
CN113419964B (en) Test case generation method and device, computer equipment and storage medium
CN114356454A (en) Account checking data processing method, account checking data processing device, account checking data storage medium and program product
CN111339378A (en) Character command auditing method and system in operation and maintenance management
CN108920182A (en) A kind of novel source code statistical analysis technique and system
CN115994743B (en) Document abstract specification management method and system
CN115250231B (en) Application configuration method and device
CN115758135B (en) Track traffic signal system function demand tracing method and device and electronic equipment

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