CN110389890B - Updating and maintaining method and device for public use case library and computer equipment - Google Patents

Updating and maintaining method and device for public use case library and computer equipment Download PDF

Info

Publication number
CN110389890B
CN110389890B CN201810362072.9A CN201810362072A CN110389890B CN 110389890 B CN110389890 B CN 110389890B CN 201810362072 A CN201810362072 A CN 201810362072A CN 110389890 B CN110389890 B CN 110389890B
Authority
CN
China
Prior art keywords
case
common
library
test case
changed test
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
CN201810362072.9A
Other languages
Chinese (zh)
Other versions
CN110389890A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810362072.9A priority Critical patent/CN110389890B/en
Publication of CN110389890A publication Critical patent/CN110389890A/en
Application granted granted Critical
Publication of CN110389890B publication Critical patent/CN110389890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a method, a device and computer equipment for updating and maintaining a public use case library. The method for updating and maintaining the common instance library comprises the following steps: acquiring state information of the changed test case; the state information comprises a new state, a modified state and a deleted state; searching a target common case library corresponding to the changed test case; the functional module corresponding to the changed test case is the same as the functional module corresponding to at least one common case in the target common case library; and updating and maintaining the target common case library according to the state information of the changed test case. The update maintenance method, the update maintenance device and the computer equipment for the common example library can update and maintain the common example library conveniently and rapidly, and reduce the labor consumption in the update maintenance process of the common example library.

Description

Updating and maintaining method and device for public use case library and computer equipment
Technical Field
The present disclosure relates to computer technologies, and in particular, to a method, an apparatus, and a computer device for updating and maintaining a public use case library.
Background
Software testing is the process of operating a program under specified conditions to find program errors, measure software quality, and evaluate whether it meets design requirements. At present, in order to ensure the stability of software testing quality, human factors are reduced to the minimum, and software is often tested by adopting a test case.
In recent years, in order to improve reusability of use cases, use cases can be shared by a plurality of items, and a tester has written a plurality of common cases. However, the common use case is continuously adjusted according to the test procedure, so that the common use case library needs to be updated and maintained.
At present, the public use case library is updated and maintained completely by manpower, and a great deal of manpower is consumed.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus and a computer device for updating and maintaining a common use case library, so as to reduce the manpower consumption in the process of updating and maintaining the common use case library.
The first aspect of the present application provides a method for updating and maintaining a public use case library, including:
acquiring state information of the changed test case; the state information comprises a new state, a modified state and a deleted state;
searching a target common case library corresponding to the changed test case; the functional module corresponding to the changed test case is the same as the functional module corresponding to at least one common case in the target common case library;
and updating and maintaining the target common case library according to the state information of the changed test case.
The second aspect of the present application provides an update maintenance device for a public use case library, which includes an acquisition module, a search module and a processing module, wherein,
the acquisition module is used for acquiring the state information of the changed test case; the state information comprises a new state, a modified state and a deleted state;
the searching module is used for searching a target common case library corresponding to the changed test case; the functional module corresponding to the changed test case is the same as the functional module corresponding to at least one common case in the target common case library;
and the processing module is used for updating and maintaining the target common case library according to the state information of the changed test case.
A third aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the update maintenance method of any one of the common instance libraries provided in the first aspect of the present application.
A fourth aspect of the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for updating and maintaining any one of the common instance libraries provided in the first aspect of the present application when the program is executed by the processor.
According to the updating and maintaining method, the updating and maintaining device and the computer equipment of the common case library, the target common case library corresponding to the changed test case is searched by acquiring the state information of the changed test case, and accordingly the target common case library is updated and maintained according to the state information of the changed test case. Therefore, the public example library can be updated and maintained conveniently and rapidly, and the labor consumption in the updating and maintaining process of the public example library is reduced.
Drawings
FIG. 1 is a flowchart of a first embodiment of a method for updating and maintaining a common instance library provided in the present application;
FIG. 2 is a flowchart of a second embodiment of a method for updating and maintaining a common instance library provided in the present application;
FIG. 3 is a flowchart of a third embodiment of a method for updating and maintaining a common instance library provided in the present application;
FIG. 4 is a flowchart of a fourth embodiment of a method for updating and maintaining a common instance library provided in the present application;
FIG. 5 is a hardware configuration diagram of a computer device where a device for updating and maintaining a common instance library according to an exemplary embodiment of the present application is located;
fig. 6 is a schematic structural diagram of a first embodiment of a device for updating and maintaining a common instance library provided in the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The application provides a method, a device and computer equipment for updating and maintaining a public use case library so as to reduce the labor consumption in the updating and maintaining process of the public use case library.
Several specific examples are given below to describe the technical solutions of the present application in detail. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 1 is a flowchart of an embodiment of a method for updating and maintaining a common instance library provided in the present application. Referring to fig. 1, the method provided in this embodiment may include:
s101, acquiring state information of a changed test case; the state information includes a new state, a modified state, and a deleted state.
Specifically, during the testing process, the user can make adjustments to the test cases according to the testing requirements. For example, when a test object is newly added, the corresponding test case needs to be supplemented; when the test object is deleted, redundant test cases need to be deleted; when the test object is changed, the corresponding test case needs to be modified. When the user makes an adjustment to the test case, the status information of the changed test case is recorded on the device. The state information of the changed test case comprises a new state, a modified state and a deleted state. Specifically, when the state information of a changed test case is a new state, the test case is characterized as a newly added test case in the test process; when the state information of a changed test case is a modified state, representing that a user makes modification operation on the test case in the test process; when the state information of a changed test case is a deleting operation, the user is characterized in that the user performs the deleting operation on the test case in the test process.
S102, searching a target common example library corresponding to the changed test example; the function module corresponding to the changed test case is the same as the function module corresponding to at least one common case in the target common case library.
Specifically, the functional modules corresponding to the test cases refer to: the test case is a test case of the functional module, and the test case is used for testing related functions of the functional module.
The test case is recorded with the function module corresponding to the test case, and the common case is also recorded with the function module corresponding to the common case. Therefore, in one possible implementation manner of the present application, in this step, the functional module corresponding to the changed test case may be matched with the functional module corresponding to each common case in each common case library, so as to find a common case matched with the changed test case (where if the functional module corresponding to a common case is the same as the functional module corresponding to the changed test case, the common case is the common case matched with the changed test case), and further, the common case library to which the common case matched with the changed test case belongs is determined as the target case library.
S103, updating and maintaining the target common case library according to the state information of the changed test case.
In one possible implementation manner of the present application, when the state information of the changed test case is a new state, the changed test case may be added to the target common case library; when the state information of the changed test case is in a modified state, adding the changed test case as a new common case to the target common case library, or updating a common case corresponding to the changed test case in the target common case library to the changed test case; and deleting the common case corresponding to the changed test case in the target case library when the state information of the changed test case is in the deleted state.
The common use case corresponding to the changed test use case in the target use case library means that: after the common use case is instantiated, a test case before the change corresponding to the changed test case can be obtained. Specifically, in an embodiment of the present application, a common use case corresponding to a changed test case in the target use case library may be found according to attribute information of the use case (for example, according to a function module corresponding to the use case, label information of the use case, a format of test data of the use case, a test procedure of the use case, and other attribute information).
According to the update maintenance method of the common case library, the state information of the changed test case is obtained, and then the target common case library corresponding to the changed test case is searched, so that the target common case library is updated and maintained according to the state information of the changed test case. Therefore, the public example library can be updated and maintained conveniently and rapidly, and the labor consumption in the updating and maintaining process of the public example library is reduced.
Fig. 2 is a flowchart of a second embodiment of a method for updating and maintaining a common instance library provided in the present application. On the basis of the above embodiment, when the state information of the changed test case is a modified state or a deleted state, step S102 may include:
s201, determining a first common example corresponding to the changed test example according to the corresponding relation between the common example and the test example in the pre-established common example library.
Specifically, in one possible implementation manner of the present application, the correspondence between the common use case and the test use case in the pre-established common use case library is obtained according to the following method:
(1) When a preset screening condition input by a user is received, screening candidate common cases meeting the screening condition from a prestored common case library, and presenting the candidate common cases to the user.
Specifically, before performing the software test, the user needs to select a common case according to the current test requirement. For example, the user may select candidate commonalities by presetting a screening condition. The preset screening conditions are set by a user according to actual needs, and in the step, the preset screening conditions are not limited. For example, the filtering attributes may include at least one of the following attributes: functional modules corresponding to the common cases, testing priority, label information, testing data format and testing steps. The combination mode can comprise the following steps: and, or the like. It should be noted that, the test priority may include: key, high, medium, low, tag information may include: forward use cases, reverse use cases, abnormal use cases, and the like.
For example, in one embodiment, the preset screening conditions are: the label information is as follows: the format of the forward case or test data is word or test priority, and at this time, candidate common cases meeting the screening conditions are screened out from a pre-stored common case library. For example, in one embodiment, a total of 5 candidate commonplace instances are screened out.
(2) When receiving a selection instruction which is input by a user and is used for selecting a target common example needed by the current test from the candidate common examples, instantiating the target common example to obtain a first test example corresponding to the target common example, and recording the corresponding relation between the target common example and the first test example.
Specifically, when candidate common cases are screened out, the screened out common cases are presented to the user, and the user further selects the target common cases needed by the current test. For example, a user selects a target common case required by a current test according to a current test environment or a current test scene, further inputs a selection instruction of selecting the target common case required by the current test from among candidate common cases, and when receiving the selection instruction of selecting the target common case required by the current test from among the candidate common cases, the device instantiates the target common case to obtain a first test case corresponding to the target common case and records a corresponding relation between the target common case and the first test case.
It should be noted that, regarding the instantiation of the common case, the specific implementation process and implementation principle of obtaining the test case corresponding to the common case may be referred to the description in the prior art, which is not repeated herein. In addition, through the method, the corresponding relation between the public use cases and the test use cases in the public use case library which is established in advance can be obtained. For example, table 1 shows the correspondence between the common cases and the test cases in the pre-established common case library according to an exemplary embodiment of the present application. Wherein 1,2,3,4 are the identification information of the test case, A1, B2, A5 are the identification information of the public case, and the first capital letter in the identification information is the identification information of the public case library to which the public case belongs.
Table 1 correspondence between common cases and test cases in a common case library previously established
Common example Test case
A1 1
B2 2
A5 3
…… ……
Specifically, in this step, the first common example corresponding to the changed test example may be determined according to the correspondence between the common example and the test example in the common example library that is established in advance. For example, in one embodiment, the changed test case is test case 1, and at this time, it is determined that the first common case corresponding to the changed test case is common case A1.
S202, determining a common instance library to which the first common instance belongs as the target common instance library.
In this step, in combination with the above example, the common example library a to which the common example A1 belongs is determined as the target common example library.
According to the method provided by the embodiment, when the common example is instantiated, the corresponding relation between the common example and the test example in the common example library is established in advance. Thus, when the state information of the changed test case is in the modified state or the deleted state during searching the target common case library corresponding to the changed test case, the search can be directly performed according to the corresponding relation, and the searching efficiency can be improved.
Optionally, in one possible implementation manner of the present application, when the state information of the changed test case is a new state, the searching the target common case library corresponding to the changed test case includes:
and searching a target common case library corresponding to the changed test case according to the functional module corresponding to the changed test case.
In particular, the specific implementation process and implementation principle of this step may be referred to the description of the foregoing embodiments, and will not be repeated herein.
Fig. 3 is a flowchart of a third embodiment of a method for updating and maintaining a common instance library provided in the present application. On the basis of the foregoing embodiment, the method provided in this embodiment, step S103 may include:
s301, when the state information of the changed test case is a modification state, presenting a preset first candidate operation to a user; the first candidate operation includes an accept modification operation, an accept new addition operation, and a reject operation.
S302, when the state information of the changed test case is in a new state or a deleted state, presenting a preset second candidate operation to a user; the second candidate operation includes an accept operation and a reject operation.
And S303, when receiving a selection instruction which is input by a user and selects a target operation from the first candidate operation or the second candidate operation, updating and maintaining the target common example library according to the selection instruction.
Specifically, when the state information of the changed test case is a modification state, the first candidate operation presented to the user includes a modification operation, a new addition operation and a rejection operation. That is, based on the presented first candidate operation, the user may input a selected instruction to opt-in to accept the modification operation or a selected instruction to opt-in to accept the new addition operation or a selected instruction to opt-in to reject the operation.
Further, when the selected instruction input by the user is a selected instruction for receiving the modification operation, updating the common example corresponding to the changed test example in the target common example library to the changed test example at the moment;
when the selected instruction input by the user is the selected instruction for receiving the new operation, the changed test case is added into the target common case library.
And when the selected instruction is a selected instruction of the selected refusing operation, determining not to update the target common case library.
In addition, when the state information of the changed test case is a modification state, the second candidate operation presented to the user comprises an accept operation and a reject operation. That is, based on the presented second candidate operation, the user may input a selected instruction to select an accept operation or a selected instruction to select a reject operation.
Further, when the selected instruction input by the user is a selected instruction of the selected accepting operation, the common case corresponding to the changed test case in the target common case library is deleted when the state information of the changed test case is in a deleted state, and the changed test case is added to the target common case library when the state information of the changed test case is in a newly added state.
And when the selected instruction is a selected instruction of the selected refusing operation, determining not to update the target common case library.
It should be noted that, in one possible implementation, the first candidate operation or the second candidate operation may be presented to the user through an interface display.
According to the method provided by the embodiment, the corresponding candidate operation is presented to the user according to the state information of the changed test case. In this way, the user selects the target operation, and then the maintenance target common example library is updated according to the selected instruction of the selected target operation input by the user. Therefore, based on the selection of the user, the accurate maintenance of the target common example library can be realized on the basis of reducing manpower.
Fig. 4 is a flowchart of a fourth embodiment of a method for updating and maintaining a common instance library in the present application. Referring to fig. 4, the method provided in this embodiment may include:
s401, acquiring state information of the changed test case; the state information includes a new state, a modified state, and a deleted state.
S402, judging whether the state information of the changed test case is in a new state, if so, executing step S403, and if not, executing step S404.
S403, searching a target common example library corresponding to the changed test example according to the functional module corresponding to the changed test example.
S404, according to the corresponding relation between the public example and the test example in the public example library which is established in advance, determining a first public example corresponding to the changed test example, and determining the public example library to which the first public example belongs as a target public example library.
S405, judging whether the state information of the changed test case is a modified state, if so, executing step S406, otherwise, executing step S408.
S406, presenting a preset first candidate operation to a user; the first candidate operation includes an accept modification operation, an accept new addition operation, and a reject operation.
S407, when a selection instruction of receiving a modification operation from the first candidate operation selection is received, updating the first common example corresponding to the changed test example in the target common example library to the changed test example; when receiving a selection instruction which is input by a user and selects to accept a new operation from the first candidate operation, adding the changed test case into the target common case library; and when receiving a selection instruction of selecting a reject operation from the first candidate operation, which is input by a user, determining not to update the target common example library.
S408, presenting a preset second candidate operation to a user; the second candidate operation includes an accept operation and a reject operation.
S409, when receiving a selection instruction of selecting an accepting operation from the second candidate operation, which is input by a user, deleting the first common example corresponding to the changed test case in the target common example library when the state information of the changed test case is a deleted state, and adding the changed test case to the target common example library when the state information of the changed test case is a newly added state; and when receiving a selection instruction of selecting a reject operation from the second candidate operation, which is input by a user, determining not to update the target common example library.
Specifically, the specific implementation process and implementation principle of steps S401 to S409 may refer to the description in the foregoing embodiments, and are not repeated herein.
S410, marking the changed test cases as processed test cases.
Specifically, in this embodiment, after updating the maintenance target common case library according to the state information of the changed test case, by marking the changed test case as a processed test case, it is possible to avoid the repeated processing of the changed test case.
The method provided by the embodiment can update and maintain the common instance library conveniently and rapidly, and reduces the labor consumption in the updating and maintaining process of the common instance library.
Corresponding to the embodiment of the update maintenance method of the common example library, the application also provides an embodiment of the update maintenance device of the common example library.
The embodiment of the updating and maintaining device of the common instance library can be applied to computer equipment. The apparatus embodiments may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking software implementation as an example, the device in a logic sense is formed by reading corresponding computer program instructions in a nonvolatile memory into a memory by a processor of a computer device where the device is located for operation. In terms of hardware, as shown in fig. 5, a hardware structure diagram of a computer device where a common instance library update maintenance device is located in an exemplary embodiment of the present application is shown, and in addition to the storage 510, the processor 520, the memory 530 and the network interface 540 shown in fig. 5, the computer device where the device is located in the embodiment generally may include other hardware according to the actual function of the common instance library update maintenance device, which is not described herein again.
Fig. 6 is a schematic structural diagram of a first embodiment of a device for updating and maintaining a common instance library provided in the present application. Referring to fig. 6, the update maintenance apparatus for a common instance library provided in this embodiment may include an acquisition module 610, a search module 620 and a processing module 630, where,
the acquiring module 610 is configured to acquire status information of the changed test case; the state information comprises a new state, a modified state and a deleted state;
the searching module 620 is configured to search a target common case library corresponding to the changed test case; the functional module corresponding to the changed test case is the same as the functional module corresponding to at least one common case in the target common case library;
the processing module 630 is configured to update and maintain the target common instance library according to the status information of the changed test instance.
The device of the present embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and its implementation principle and technical effects are similar, and are not described here again.
Further, the state information of the changed test case is a modified state or a deleted state, and the search module 620 is configured to determine, according to a correspondence between a common case and a test case in a pre-established common case library, a first common case corresponding to the changed test case, and determine, as the target common case library, a common case library to which the first common case belongs.
Further, the state information of the changed test case is a new state, and the searching module 620 is configured to search a target common case library corresponding to the changed test case according to the functional module corresponding to the changed test case.
Further, the processing module 630 is specifically configured to:
when the state information of the changed test case is in a modified state, presenting a preset first candidate operation to a user; the first candidate operation comprises a modification operation, a new addition operation and a rejection operation;
when the state information of the changed test case is in a new state or a deleted state, presenting a preset second candidate operation to a user; the second candidate operation includes an accept operation and a reject operation;
and when receiving a selection instruction which is input by a user and selects a target operation from the first candidate operation or the second candidate operation, updating and maintaining the target common instance library according to the selection instruction.
Further, when receiving a selection instruction input by the user to select a target operation from the first candidate operations, the processing module 630 is specifically configured to:
when the selected instruction is a selected instruction for receiving modification operation, updating a common example corresponding to the changed test case in the target common example library into the changed test case;
when the selected instruction is selected to accept the selected instruction of the new operation, the changed test case is added into the target common case library;
and when the selected instruction is a selected instruction of a selected refusing operation, determining not to update the target common case library.
Further, when receiving a selection instruction input by the user to select a target operation from the second candidate operations, the processing module 630 is specifically configured to:
when the selected instruction is a selected instruction of a selected accepting operation, deleting the common case corresponding to the changed test case in the target common case library when the state information of the changed test case is a deleting state, and adding the changed test case to the target common case library when the state information of the changed test case is a newly added state;
and when the selected instruction is a selected instruction of a selected refusing operation, determining not to update the target common case library.
Further, the corresponding relation between the public case and the test case in the pre-established public case library is obtained according to the following method:
when a preset screening condition input by a user is received, selecting a candidate common example meeting the screening condition from a pre-stored common example library, and presenting the candidate common example to the user;
when a selection instruction of a target common example needed by a current test in the candidate common examples is received, which is input by a user, the target common example is instantiated to obtain a first test example corresponding to the target common example, and the corresponding relation between the target common example and the first test example is recorded.
Further, the processing module 630 is further configured to mark the changed test case as a processed test case after updating and maintaining the target common case library according to the state information of the changed test case.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the update maintenance method of any of the common instance libraries provided herein.
In particular, computer-readable storage media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disk or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks.
With continued reference to fig. 5, the present application further provides a computer device, including a memory 510, a processor 520, and a computer program stored in the memory 510 and capable of running on the processor 520, where the steps of the update maintenance method of any one of the common instance libraries provided in the present application are implemented when the processor 520 executes the program.
The foregoing description of the preferred embodiments of the present invention is not intended to limit the invention to the precise form disclosed, and any modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A method for updating and maintaining a common use case library, the method comprising:
acquiring state information of the changed test case; the state information comprises a new state, a modified state and a deleted state;
searching a target common case library corresponding to the changed test case, including: searching a target common case library corresponding to the changed test case according to the functional module corresponding to the changed test case when the state information of the changed test case is in a new state; the functional module corresponding to the changed test case is the same as the functional module corresponding to at least one common case in the target common case library;
updating and maintaining the target common case library according to the state information of the changed test case, including:
when the state information of the changed test case is in a modified state, presenting a preset first candidate operation to a user; the first candidate operation comprises a modification operation, a new addition operation and a rejection operation;
when the state information of the changed test case is in a new state or a deleted state, presenting a preset second candidate operation to a user; the second candidate operation includes an accept operation and a reject operation;
when receiving a selection instruction which is input by a user and selects a target operation from the first candidate operation or the second candidate operation, updating and maintaining the target common case library according to the selection instruction, wherein the method comprises the following steps of: when the selected instruction is selected to accept the selected instruction of the new operation, the changed test case is added into the target common case library; when the selected instruction is a selected instruction of a selected accepting operation, deleting the common case corresponding to the changed test case in the target common case library when the state information of the changed test case is a deleting state, and adding the changed test case to the target common case library when the state information of the changed test case is a newly added state; and when the selected instruction is a selected instruction of a selected refusing operation, determining not to update the target common case library.
2. The method of claim 1, wherein the state information of the changed test case is a modified state or a deleted state, and the searching the target common case library corresponding to the changed test case comprises:
determining a first common example corresponding to the changed test example according to the corresponding relation between the common example and the test example in a pre-established common example library;
and determining the public use case library to which the first public use case belongs as the target public use case library.
3. The method of claim 1, wherein upon receiving a user-entered selection instruction to select a target operation from the first candidate operation, updating the target community repository based on the selection instruction, comprises:
when the selected instruction is a selected instruction for receiving modification operation, updating a common example corresponding to the changed test case in the target common example library into the changed test case;
and when the selected instruction is a selected instruction of a selected refusing operation, determining not to update the target common case library.
4. The method according to claim 2, wherein the correspondence between the common cases and the test cases in the pre-established common case library is obtained by:
when a preset screening condition input by a user is received, selecting a candidate common example meeting the screening condition from a pre-stored common example library, and presenting the candidate common example to the user;
when a selection instruction of a target common example needed by a current test in the candidate common examples is received, which is input by a user, the target common example is instantiated to obtain a first test example corresponding to the target common example, and the corresponding relation between the target common example and the first test example is recorded.
5. The method of claim 1, wherein after maintaining the target common instance library based on the status information update of the changed test instance, the method further comprises:
and marking the changed test cases as processed test cases.
6. The utility model relates to a device for updating and maintaining a public use case library, which is characterized by comprising an acquisition module, a search module and a processing module, wherein,
the acquisition module is used for acquiring the state information of the changed test case; the state information comprises a new state, a modified state and a deleted state;
the searching module is used for searching a target common case library corresponding to the changed test case; the functional module corresponding to the changed test case is the same as the functional module corresponding to at least one common case in the target common case library;
the processing module is configured to update and maintain the target common case library according to the state information of the changed test case, and includes:
when the state information of the changed test case is in a modified state, presenting a preset first candidate operation to a user; the first candidate operation comprises a modification operation, a new addition operation and a rejection operation;
when the state information of the changed test case is in a new state or a deleted state, presenting a preset second candidate operation to a user; the second candidate operation includes an accept operation and a reject operation;
when receiving a selection instruction which is input by a user and selects a target operation from the first candidate operation or the second candidate operation, updating and maintaining the target common case library according to the selection instruction, wherein the method comprises the following steps of: and when the selected instruction is selected to accept the selected instruction of the new operation, adding the changed test case into the target common case library.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any of claims 1-5.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-5 when the program is executed by the processor.
CN201810362072.9A 2018-04-20 2018-04-20 Updating and maintaining method and device for public use case library and computer equipment Active CN110389890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810362072.9A CN110389890B (en) 2018-04-20 2018-04-20 Updating and maintaining method and device for public use case library and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810362072.9A CN110389890B (en) 2018-04-20 2018-04-20 Updating and maintaining method and device for public use case library and computer equipment

Publications (2)

Publication Number Publication Date
CN110389890A CN110389890A (en) 2019-10-29
CN110389890B true CN110389890B (en) 2024-01-23

Family

ID=68284103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810362072.9A Active CN110389890B (en) 2018-04-20 2018-04-20 Updating and maintaining method and device for public use case library and computer equipment

Country Status (1)

Country Link
CN (1) CN110389890B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795297B (en) * 2019-10-31 2023-04-28 杭州迪普科技股份有限公司 Electronic equipment testing method and device
CN113190439B (en) * 2021-04-22 2024-03-22 北京百度网讯科技有限公司 Execution method and device of test case and electronic equipment
CN113220578A (en) * 2021-05-17 2021-08-06 上海中通吉网络技术有限公司 Method for generating function test case
CN115964305B (en) * 2023-03-16 2023-06-23 广州嘉为科技有限公司 Cross-project test case library management method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331366A (en) * 2014-10-30 2015-02-04 北京思特奇信息技术股份有限公司 Test case design efficiency promotion method and system
US20160085663A1 (en) * 2014-09-23 2016-03-24 Red Hat, Inc. Automatic identification of software test cases
CN106021093A (en) * 2016-05-05 2016-10-12 北京思特奇信息技术股份有限公司 Test case reuse method and system
CN106033388A (en) * 2015-03-11 2016-10-19 阿里巴巴集团控股有限公司 A test use case library management method and system
CN107544905A (en) * 2017-08-22 2018-01-05 中国农业银行股份有限公司 The optimization method and system of regression test case collection
CN107729251A (en) * 2017-10-23 2018-02-23 中国联合网络通信集团有限公司 Testing case management and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160085663A1 (en) * 2014-09-23 2016-03-24 Red Hat, Inc. Automatic identification of software test cases
CN104331366A (en) * 2014-10-30 2015-02-04 北京思特奇信息技术股份有限公司 Test case design efficiency promotion method and system
CN106033388A (en) * 2015-03-11 2016-10-19 阿里巴巴集团控股有限公司 A test use case library management method and system
CN106021093A (en) * 2016-05-05 2016-10-12 北京思特奇信息技术股份有限公司 Test case reuse method and system
CN107544905A (en) * 2017-08-22 2018-01-05 中国农业银行股份有限公司 The optimization method and system of regression test case collection
CN107729251A (en) * 2017-10-23 2018-02-23 中国联合网络通信集团有限公司 Testing case management and device

Also Published As

Publication number Publication date
CN110389890A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN110389890B (en) Updating and maintaining method and device for public use case library and computer equipment
CN111898739B (en) Data screening model construction method, data screening method, device, computer equipment and storage medium based on meta learning
CN108255838B (en) Method and system for establishing intermediate data warehouse for big data analysis
CN112800165A (en) Industrial cluster positioning method and device based on clustering algorithm and electronic equipment
US20220039001A1 (en) Network search method and apparatus, device and storage medium
CN104360934A (en) Mobile terminal and processing method for notification of application program of mobile terminal
CN103365778B (en) A kind of method and apparatus testing control
CN106469175A (en) Data processing method and device
CN117290236A (en) Software testing method, device, computer equipment and computer readable storage medium
US20040010441A1 (en) Metrics analyzer tool and method
CN111737608A (en) Enterprise information retrieval result ordering method and device
CN111897737B (en) Missing detection method and device for program test of micro-service system
CN110177006B (en) Node testing method and device based on interface prediction model
US20230334832A1 (en) Image analyzing device
CN109885467B (en) Data fluctuation alarming method and device, storage medium and electronic equipment
CN110866003B (en) Index value number estimation method and device and electronic equipment
US8639668B2 (en) Structured requirements management
CN107102938B (en) Test script updating method and device
CN112328951A (en) Processing method of experimental data of analysis sample
CN110795297B (en) Electronic equipment testing method and device
CN117192343B (en) Chip testing method based on auxiliary system, electronic equipment and medium
US11599434B2 (en) System for recommending tests for mobile communication devices maintenance release certification
CN108304430B (en) Method for modifying database
US20230143489A1 (en) Data analysis apparatus and data analysis method
CN110019186A (en) The method and device of data storage

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