CN110389890A - A kind of the updating maintenance method, apparatus and computer equipment in public use-case library - Google Patents
A kind of the updating maintenance method, apparatus and computer equipment in public use-case library Download PDFInfo
- Publication number
- CN110389890A CN110389890A CN201810362072.9A CN201810362072A CN110389890A CN 110389890 A CN110389890 A CN 110389890A CN 201810362072 A CN201810362072 A CN 201810362072A CN 110389890 A CN110389890 A CN 110389890A
- Authority
- CN
- China
- Prior art keywords
- case
- public use
- changed
- test case
- 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.)
- Granted
Links
- 238000012423 maintenance Methods 0.000 title claims abstract description 55
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000012360 testing method Methods 0.000 claims abstract description 201
- 238000012986 modification Methods 0.000 claims abstract description 31
- 230000004048 modification Effects 0.000 claims abstract description 31
- 238000012216 screening Methods 0.000 claims description 12
- 238000012217 deletion Methods 0.000 claims description 11
- 230000037430 deletion Effects 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 6
- 230000006399 behavior Effects 0.000 claims description 4
- 230000008859 change Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 238000001914 filtration Methods 0.000 description 3
- 238000012913 prioritisation Methods 0.000 description 3
- 238000012512 characterization method Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012956 testing procedure Methods 0.000 description 2
- IUVCFHHAEHNCFT-INIZCTEOSA-N 2-[(1s)-1-[4-amino-3-(3-fluoro-4-propan-2-yloxyphenyl)pyrazolo[3,4-d]pyrimidin-1-yl]ethyl]-6-fluoro-3-(3-fluorophenyl)chromen-4-one Chemical compound C1=C(F)C(OC(C)C)=CC=C1C(C1=C(N)N=CN=C11)=NN1[C@@H](C)C1=C(C=2C=C(F)C=CC=2)C(=O)C2=CC(F)=CC=C2O1 IUVCFHHAEHNCFT-INIZCTEOSA-N 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009469 supplementation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides the updating maintenance method, apparatus and computer equipment in a kind of public use-case library.The updating maintenance method in public use-case library provided by the present application, comprising: obtain the status information of the test case changed;The status information includes newly-increased state, modification state and deletes state;Search the public use-case library of target corresponding with the test case changed;At least one of the corresponding functional module of test case changed and the public use-case library of the target corresponding functional module of public use-case is identical;The public use-case library of target is safeguarded according to the state information updating of the test case changed.The updating maintenance method, apparatus and computer equipment in public use-case library provided by the present application can carry out convenient, rapidly updating maintenance for public use-case library, reduce the manpower consuming during the updating maintenance of public use-case library.
Description
Technical field
This application involves computer technology more particularly to a kind of the updating maintenance method, apparatus and calculating in public use-case library
Machine equipment.
Background technique
Software test is to operate under the defined conditions to program, to find program error, measures software quality, and
Whether the process that design requirement is assessed is able to satisfy to it.Currently, for guarantee software testing quality stability, by it is artificial because
Element is reduced to minimum, tests frequently with test case software.
It in recent years, is the reusability for improving use-case, use example can be shared by multiple projects, and tester has write many
Public use-case.But commons regular meeting is constantly adjusted with the needs of test process, therefore, it is necessary to updating maintenance commons
Example library.
Maintenance manually is updated to public use-case library currently, being completely dependent on, expends a large amount of manpower.
Summary of the invention
In view of this, the application provides the updating maintenance method, apparatus and computer equipment in a kind of public use-case library, with drop
Manpower during low public use-case library updating maintenance expends.
The application first aspect provides a kind of updating maintenance method in public use-case library, comprising:
Obtain the status information of the test case changed;The status information includes newly-increased state, modification state and deletes
Except state;
Search the public use-case library of target corresponding with the test case changed;The test case pair changed
At least one of the functional module answered and the public use-case library of the target corresponding functional module of public use-case is identical;
The public use-case library of target is safeguarded according to the state information updating of the test case changed.
The application second aspect provides a kind of updating maintenance device in public use-case library, including obtains module, searching module
And processing module, wherein
The acquisition module, for obtaining the status information of the test case changed;The status information includes newly-increased
State, modification state and deletion state;
The searching module, for searching the public use-case library of target corresponding with the test case changed;It is described
The public use-case at least one of the corresponding functional module of the test case changed and the public use-case library of the target is corresponding
Functional module is identical;
The processing module, for safeguarding that the target is public according to the state information updating of the test case changed
Share example library.
The application third aspect provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The step of updating maintenance method in any public use-case library that the application first aspect provides is realized when sequence is executed by processor.
The application fourth aspect provides a kind of computer equipment, including memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor, the processor realize what the application first aspect provided when executing described program
The step of updating maintenance method in any public use-case library.
The updating maintenance method, apparatus and computer equipment in public use-case library provided by the present application have been changed by obtaining
Test case status information, and then search corresponding with the above-mentioned test case changed the public use-case library of target, thus
The above-mentioned public use-case library of target is safeguarded according to the state information updating of the test case changed.In this way, public use-case can be directed to
Library carries out convenient, rapidly updating maintenance, reduces the manpower consuming during the updating maintenance of public use-case library.
Detailed description of the invention
Fig. 1 is the flow chart of the updating maintenance embodiment of the method one in public use-case library provided by the present application;
Fig. 2 is the flow chart of the updating maintenance embodiment of the method two in public use-case library provided by the present application;
Fig. 3 is the flow chart of the updating maintenance embodiment of the method three in public use-case library provided by the present application;
Fig. 4 is the flow chart of the updating maintenance embodiment of the method four in public use-case library provided by the present application;
Fig. 5 is computer equipment where the updating maintenance device in the public use-case library shown in one exemplary embodiment of the application
Hardware structure diagram;
Fig. 6 is the structural schematic diagram of the updating maintenance Installation practice one in public use-case library provided by the present application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
The application provides the updating maintenance method, apparatus and computer equipment in a kind of public use-case library, to reduce commons
Manpower during example library updating maintenance expends.
Several specific embodiments are given below, the technical solution of the application is discussed in detail.These are specific below
Embodiment can be combined with each other, the same or similar concept or process may be repeated no more in some embodiments.
Fig. 1 is the flow chart of the updating maintenance embodiment of the method one in public use-case library provided by the present application.Fig. 1 is please referred to,
Method provided in this embodiment may include:
The status information for the test case that S101, acquisition have been changed;Above-mentioned status information includes newly-increased state, modification state
With the state of deletion.
Specifically, during the test, according to the needs of test, user can make adjustment to test case.For example, newly-increased
When test object, corresponding test case is required supplementation with;When test object is deleted, need to delete extra test case;It surveys
When examination object has altered, need to modify corresponding test case.It should be noted that when user makes adjustment to test case
When, it will record the status information of the test case changed in equipment.Wherein, the status information of the test case changed includes
Newly-increased state, modification state and deletion state.Specifically, when the status information of a test case changed is newly-increased state
When, characterizing the test case is the test case newly increased in test process;When the status information for the test case that one has changed
When to modify state, during the test, user has made modification operation to the test case to characterization;When the test that one has changed
When the status information of use-case is delete operation, during the test, user has made delete operation to the test case to characterization.
S102, the public use-case library of target corresponding with the above-mentioned test case changed is searched;The above-mentioned test changed
At least one of the corresponding functional module of use-case and the public use-case library of the above-mentioned target corresponding functional module of public use-case is identical.
Specifically, the corresponding functional module of test case refers to: the test case is the test case of the functional module,
The test case is used to test the correlation function of the functional module.
It should be noted that recording in test case has the corresponding functional module of the test case, it is same in public use-case
Record has the corresponding functional module of the public use-case.It therefore,, can in this step in a kind of possible implementation of the application
By the corresponding functional module of the test case changed function mould corresponding with each public use-case in each public use-case library
Block is matched, and is found with the matched public use-case of the test case that has changed (wherein, if the corresponding function mould of a public use-case
Block functional module corresponding with the test case that this has been changed is identical, then the public use-case is and the test case changed
The public use-case matched), and then mesh will be determined as with public use-case library belonging to the matched public use-case of test case that has changed
Mark use-case library.
S103, the above-mentioned public use-case library of target is safeguarded according to the state information updating of the above-mentioned test case changed.
It can be newly-increased state in the status information of the test case changed in the possible implementation of the application one
When, the above-mentioned test case changed is added to the public use-case library of above-mentioned target;Believe in the state of the test case changed
When breath is modification state, the above-mentioned test case changed the public use-case new as one is added to above-mentioned target commons
Public use-case corresponding with the above-mentioned test case changed in above-mentioned target use-case library is either updated to by example library
State the test case changed;When the status information of the test case changed is deletion state, by above-mentioned target use-case library
In public use-case corresponding with the above-mentioned test case changed delete.
It should be noted that the public use-case corresponding with the above-mentioned test case changed in above-mentioned target use-case library refers to
: after the public use-case instantiation, the corresponding test case before changing of the above-mentioned test case changed can be obtained.
Specifically, in one embodiment of the application, it can be according to the attribute information of use-case (for example, according to the corresponding functional module of use-case, use-case
Label information, use-case test data format and use-case the attribute informations such as testing procedure), find in target use-case library
Public use-case corresponding with the test case changed.
The updating maintenance method in public use-case library provided in this embodiment, by the state for obtaining the test case changed
Information, and then the public use-case library of target corresponding with the above-mentioned test case changed is searched, thus according to the test changed
The state information updating of use-case safeguards the above-mentioned public use-case library of target.In this way, can be carried out for public use-case library it is convenient, rapidly
Updating maintenance reduces the manpower consuming during the updating maintenance of public use-case library.
Fig. 2 is the flow chart of the updating maintenance embodiment of the method two in public use-case library provided by the present application.In above-mentioned implementation
On the basis of example, when the status information of the above-mentioned test case changed is modification state or deletes state, step S102 can
To include:
Corresponding relationship between the public use-case in public use-case library that S201, basis pre-establish and test case, really
Fixed the first public use-case corresponding with the above-mentioned test case changed.
Specifically, the commons in the possible implementation of the application one, in the above-mentioned public use-case library pre-established
Corresponding relationship between example and test case obtains as follows:
(1) it when receiving the preset screening conditions of user's input, is filtered out from pre-stored public use-case library
Meet the public use-case of candidate of above-mentioned screening conditions, and the above-mentioned public use-case of candidate is presented to the user.
Specifically, user needs to select public use-case according to current testing requirement before carrying out software test.For example, with
It family can be by presetting screening conditions, the candidate public use-case of selection.Wherein, preset screening conditions are that user sets according to actual needs
Fixed, in this step, preset screening conditions are not defined.For example, screening attribute may include in properties extremely
One item missing: the corresponding functional module of public use-case, test prioritization, label information, the format and testing procedure of test data.Group
Conjunction mode may include: also, wait.It should be noted that test prioritization may include: crucial, high, medium and low, label
Information may include: positive use-case, reverse use-case, abnormal use-case etc..
For example, in one embodiment, preset screening conditions are as follows: label information are as follows: the lattice of positive use-case or test data
Formula is that word or test prioritization is height, meets above-mentioned screening item at this point, then filtering out from pre-stored public use-case library
The public use-case of candidate of part.For example, filtering out 5 public use-cases of candidate altogether in an embodiment.
(2) when the target commons for choosing current test to need from the above-mentioned public use-case of candidate for receiving user's input
When the selection instruction of example, the public use-case of above-mentioned target is instantiated, obtains the first test corresponding with the public use-case of above-mentioned target
Use-case, and record the corresponding relationship between the public use-case of above-mentioned target and above-mentioned first test case.
Specifically, the public use-case filtered out can be presented to the user when filtering out candidate public use-case, by user into
One step selects the public use-case of target that current test needs.For example, user can be according to preset test environment or present test field scape
The public use-case of target that current test needs is selected, and then inputs the target for choosing current test to need from candidate public use-case
The selection instruction of public use-case, further, equipment are receiving choosing and working as from the above-mentioned public use-case of candidate for user's input
When the selection instruction for the public use-case of target that preceding test needs, the public use-case of above-mentioned target is instantiated, is obtained and above-mentioned target
Corresponding first test case of public use-case, and record corresponding between the public use-case of above-mentioned target and above-mentioned first test case
Relationship.
It should be noted that related instantiate public use-case, the specific of test case corresponding with public use-case is obtained
Realization process and realization principle may refer to description in the prior art, not repeat herein.In addition, by the above method, just
The corresponding relationship between public use-case and test case in the available public use-case library pre-established.For example, table 1 is this
Apply for the public use-case in the public use-case library pre-established shown in an exemplary embodiment and corresponding between test case
Relationship.Wherein, 1,2,3,4 be the identification information of test case, and A1, B2, A5 is the identification information of public use-case, and the mark is believed
First capitalization in breath is the identification information in public use-case library belonging to the public use-case.
Corresponding relationship between the public use-case in public use-case library that table 1 pre-establishes and test case
Public use-case | Test case |
A1 | 1 |
B2 | 2 |
A5 | 3 |
…… | …… |
Specifically, in this step, it can be according to the public use-case in the public use-case library pre-established and between test case
Corresponding relationship, determine corresponding with the above-mentioned test case changed the first public use-case.For example, in one embodiment,
The test case of change is test case 1, at this point, determining that the first public use-case corresponding with the test case that this has been changed is public affairs
Share example A1.
S202, public use-case library belonging to the above-mentioned first public use-case is determined as the public use-case library of above-mentioned target.
In conjunction with above example, in this step, public use-case library A belonging to public use-case A1 is determined as target commons
Example library.
Method provided in this embodiment, when instantiating public use-case, by pre-establishing the public affairs in public use-case library
Share the corresponding relationship between example and test case.In this way, searching target commons corresponding with the test case changed
It, can direct basis correspondence pass when the status information of the test case changed is modification state or deletes state when example library
System is searched, and the efficiency of lookup can be improved.
Optionally, in the possible implementation of the application one, when the status information of the test case changed is newly-increased
State, it is described to search the public use-case library of target corresponding with the test case changed, comprising:
According to the corresponding functional module of the test case changed, search corresponding with the test case changed
The public use-case library of target.
Specifically, specific implementation process and realization principle in relation to the step may refer to the introduction in preceding embodiment,
Details are not described herein again.
Fig. 3 is the flow chart of the updating maintenance embodiment of the method three in public use-case library provided by the present application.In above-mentioned implementation
On the basis of example, method provided in this embodiment, step S103 may include:
S301, when the status information of the above-mentioned test case changed is modification state, will preset first candidate behaviour
It is presented to the user;Above-mentioned first candidate operations include receiving modification operation, receiving newly-increased operation and refusal operation.
S302, when the status information of the above-mentioned test case changed is newly-increased state or deletes state, will be preset
Second candidate operations are presented to the user;Above-mentioned second candidate operations include receiving operation and refusal operation.
S303, when receive user input choose target to grasp from above-mentioned first candidate operations or above-mentioned second candidate operations
When choosing instruction of work, chooses instruction, the public use-case library of the above-mentioned target of updating maintenance according to above-mentioned.
Specifically, the above-mentioned test case changed status information be modification state when, be presented to the user first
Candidate operations include receiving modification operation, receiving newly-increased operation and refusal operation.That is the first candidate operations based on presentation, user
It can input and choose receive modification operation instruction or choose is chosen to receive choosing instruction or refusal being chosen to operate for newly-increased operation
Choose instruction.
Further, instruction is chosen to choose and receiving when choosing instruction of modification operation, at this point, by mesh when user's input
The public use-case corresponding with the test case changed marked in public use-case library is updated to the above-mentioned test case changed;
Instruction is chosen to choose and receiving when choosing instruction of newly-increased operation, by the above-mentioned test changed when user's input
Use-case is added in the public use-case library of above-mentioned target.
Instruction is chosen to choose when choosing instruction of refusal operation when above-mentioned, and determination does not update the public use-case of above-mentioned target
Library.
In addition, second be presented to the user waits when the status information of the above-mentioned test case changed is modification state
Choosing behaviour includes receiving operation and refusal operation.That is the second candidate operations based on presentation, user, which can input, chooses receiving operation
Choose instruction or choose refusal operate choose instruction.
Further, it chooses instruction to receive when choosing instruction of operation to choose when user's input, has been changed above-mentioned
The status information of test case when being deletion state, will be used with the above-mentioned test changed in the public use-case library of above-mentioned target
The corresponding public use-case of example is deleted, and when the status information of the above-mentioned test case changed is newly-increased state, has been become above-mentioned
Test case more is added in the public use-case library of above-mentioned target.
Instruction is chosen to choose when choosing instruction of refusal operation when above-mentioned, and determination does not update the public use-case of above-mentioned target
Library.
It should be noted that in one possible implementation, it can be by way of interface display by the first candidate behaviour
Make or the second candidate operations are presented to the user.
Corresponding candidate operations are in by method provided in this embodiment according to the status information of the test case changed
Now give user.In this way, the instruction of choosing for choosing object run for being operated by user's selection target, and then being inputted according to user, more
The new maintenance public use-case library of target.In this way, the selection based on user, can realize target commons on the basis of reducing manpower
The accurate maintenance in example library.
Fig. 4 is the flow chart of the updating maintenance embodiment of the method four in the public use-case library of the application.Referring to figure 4., this implementation
Example provide method, may include:
The status information for the test case that S401, acquisition have been changed;Above-mentioned status information includes newly-increased state, modification state
With the state of deletion.
Whether S402, the status information for judging the above-mentioned test case changed are newly-increased state, if so, executing step
S403, if it is not, executing step S404.
S403, it is used according to the corresponding functional module of the above-mentioned test case changed, lookup and the above-mentioned test changed
The corresponding public use-case library of target of example.
Corresponding relationship between the public use-case in public use-case library that S404, basis pre-establish and test case, really
Fixed the first public use-case corresponding with the above-mentioned test case changed, and by public use-case belonging to the above-mentioned first public use-case
Library is determined as the public use-case library of target.
Whether S405, the status information for judging the above-mentioned test case changed are modification state, if so, executing step
S406, if it is not, executing step S408.
S406, preset first candidate operations are presented to the user;First candidate operations include receive modification operation,
Receive newly-increased operation and refusal operation.
S407, when receive user input from above-mentioned first candidate operations choose receive modification operation choose instruction
When, the above-mentioned first public use-case corresponding with the above-mentioned test case changed in the public use-case library of above-mentioned target is updated to
The above-mentioned test case changed;Receive the newly-increased choosing operated when receiving choosing from above-mentioned first candidate operations for user's input
When middle instruction, the above-mentioned test case changed is added in the public use-case library of above-mentioned target;When receive user input
When choosing instruction of refusal operation is chosen from above-mentioned first candidate operations, determination does not update the public use-case library of above-mentioned target.
S408, preset second candidate operations are presented to the user;Above-mentioned second candidate operations include receiving operation and refusing
Operation absolutely.
S409, when receive user input from above-mentioned second candidate operations choose receive operate when choosing instruction, In
When the status information of the above-mentioned test case changed is deletion state, by having become in the public use-case library of above-mentioned target with above-mentioned
The corresponding above-mentioned first public use-case of test case more is deleted, and is newly-increased in the status information of the above-mentioned test case changed
When state, the above-mentioned test case changed is added in the public use-case library of above-mentioned target;When receive user input from
Above-mentioned second candidate operations choose when choosing instruction of refusal operation, and determination does not update the public use-case library of above-mentioned target.
Specifically, the specific implementation process and realization principle of step S401 to S409 may refer to retouching in preceding embodiment
It states, details are not described herein again.
S410, the above-mentioned test case changed is labeled as processed test case.
Specifically, safeguarding target commons according to the state information updating of the test case changed in the present embodiment
After example library, by the way that the above-mentioned test case changed is labeled as processed test case, in this way, can avoid to having changed
Test case reprocessed.
Method provided in this embodiment can carry out convenient, rapidly updating maintenance for public use-case library, reduce commons
The manpower of example library updating maintenance process expends.
Corresponding with the embodiment of updating maintenance method in aforementioned public use-case library, present invention also provides public use-case libraries
Updating maintenance device embodiment.
The embodiment of the updating maintenance device in the public use-case library of the application can be using on a computing device.Device is implemented
Example can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example, as
Device on one logical meaning is by the processor of computer equipment where it by meter corresponding in nonvolatile memory
Calculation machine program instruction is read into memory what operation was formed.For hardware view, as shown in figure 5, exemplary for the application one
A kind of hardware structure diagram of computer equipment where implementing the updating maintenance device in the public use-case library exemplified, in addition to Fig. 5 institute
Except the memory 510, processor 520, memory 530 and the network interface 540 that show, the computer equipment in embodiment where device
Generally according to the actual functional capability of the updating maintenance device in the public use-case library, it can also include other hardware, this is repeated no more.
Fig. 6 is the structural schematic diagram of the updating maintenance Installation practice one in public use-case library provided by the present application.It please refers to
Fig. 6, the updating maintenance device in public use-case library provided in this embodiment may include obtaining module 610,620 He of searching module
Processing module 630, wherein
The acquisition module 610, for obtaining the status information of the test case changed;The status information includes new
Increasing state, modification state and deletion state;
The searching module 620, for searching the public use-case library of target corresponding with the test case changed;Institute
It is corresponding to state the public use-case of at least one of the corresponding functional module of the test case changed and the public use-case library of the target
Functional module it is identical;
The processing module 630, for safeguarding the mesh according to the state information updating of the test case changed
Mark public use-case library.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and technology
Effect is similar, and details are not described herein again.
Further, the status information of the test case changed is modification state or deletion state, the lookup
Module 620, for determining according to the public use-case in the public use-case library pre-established and the corresponding relationship between test case
The first public use-case corresponding with the test case changed, and by public use-case library belonging to the described first public use-case
It is determined as the public use-case library of the target.
Further, the status information of the test case changed is newly-increased state, and the searching module 620 is used
According to the corresponding functional module of test case changed, target corresponding with the test case changed is searched
Public use-case library.
Further, the processing module 630, is specifically used for:
When the status information of the test case changed is modification state, preset first candidate operations are presented
To user;First candidate operations include receiving modification operation, receiving newly-increased operation and refusal operation;
When the status information of the test case changed is newly-increased state or deletes state, preset second is waited
Selection operation is presented to the user;Second candidate operations include receiving operation and refusal operation;
When receive user input choose object run from first candidate operations or second candidate operations
When choosing instruction, instruction, the public use-case library of target described in updating maintenance are chosen according to described.
Further, when receive user's input choose object run from first candidate operations choose instruction
When, the processing module 630 is specifically used for:
Choose instruction to choose receiving to modify when choosing instruction of operation when described, it will be in the public use-case library of the target
Public use-case corresponding with the test case changed is updated to the test case changed;
Instruction is chosen to choose and receiving when choosing instruction of newly-increased operation when described, and the test case changed is added
It is added in the public use-case library of the target;
Instruction is chosen to choose when choosing instruction of refusal operation when described, and determination does not update the public use-case of the target
Library.
Further, when receive user's input choose object run from second candidate operations choose instruction
When, the processing module 630 is specifically used for:
Instruction is chosen to receive when choosing instruction of operation to choose when described, in the state of the test case changed
When information is deletion state, by the public use-case corresponding with the test case changed in the public use-case library of the target
It deletes, when the status information of the test case changed is newly-increased state, the test case changed is added
Into the public use-case library of the target;
Instruction is chosen to choose when choosing instruction of refusal operation when described, and determination does not update the public use-case of the target
Library.
Further, the public use-case in the public use-case library pre-established and the corresponding pass between test case
System obtains as follows:
When receiving the preset screening conditions of user's input, satisfaction is selected from pre-stored public use-case library
The public use-case of candidate of the screening conditions, and the public use-case of candidate is presented to the user;
When the public use-case of target for choosing current test to need from the public use-case of candidate for receiving user's input
Selection instruction when, the public use-case of the target is instantiated, the first test corresponding with the public use-case of the target is obtained and uses
Example, and record the corresponding relationship between the public use-case of the target and first test case.
Further, the processing module 630, the status information for the test case for being also used to change described in basis is more
After newly safeguarding the public use-case library of the target, the test case changed is labeled as processed test case.
The application also provides a kind of computer readable storage medium, is stored thereon with computer program, and described program is located
The step of reason device realizes the updating maintenance method in any public use-case library provided by the present application when executing.
Specifically, being suitable for storing computer program instructions and the computer readable storage medium of data including form of ownership
Nonvolatile memory, medium and memory devices, for example including semiconductor memory devices (such as EPROM, EEPROM and
Flash memory device), disk (such as internal hard drive or removable disk), magneto-optic disk and CD ROM and DVD-ROM disk.
Please continue to refer to Fig. 5, the application also provides a kind of computer equipment, including memory 510, processor 520 and deposits
The computer program that can be run on memory 510 and on processor 520 is stored up, when the processor 520 executes described program
The step of realizing the updating maintenance method in any public use-case library provided by the present application.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (11)
1. a kind of updating maintenance method in public use-case library, which is characterized in that the described method includes:
Obtain the status information of the test case changed;The status information includes newly-increased state, modification state and deletes shape
State;
Search the public use-case library of target corresponding with the test case changed;The test case changed is corresponding
At least one of functional module and the public use-case library of the target corresponding functional module of public use-case is identical;
The public use-case library of target is safeguarded according to the state information updating of the test case changed.
2. the method according to claim 1, wherein the status information of the test case changed is modification
State deletes state, described to search the public use-case library of target corresponding with the test case changed, comprising:
According to the public use-case in the public use-case library pre-established and the corresponding relationship between test case, it is determining with it is described
The corresponding first public use-case of the test case of change;
Public use-case library belonging to described first public use-case is determined as the public use-case library of the target.
3. the method according to claim 1, wherein the status information of the test case changed is newly-increased
State, it is described to search the public use-case library of target corresponding with the test case changed, comprising:
According to the corresponding functional module of the test case changed, mesh corresponding with the test case changed is searched
Mark public use-case library.
4. the method according to claim 1, wherein the state of the test case changed according to is believed
Breath updates the public use-case library of target, comprising:
When the status information of the test case changed is modification state, preset first candidate operations are presented to use
Family;First candidate operations include receiving modification operation, receiving newly-increased operation and refusal operation;
When the status information of the test case changed is newly-increased state or deletes state, by the preset second candidate behaviour
It is presented to the user;Second candidate operations include receiving operation and refusal operation;
When receive user input choose choosing for object run from first candidate operations or second candidate operations
When instruction, instruction, the public use-case library of target described in updating maintenance are chosen according to described.
5. according to the method described in claim 4, it is characterized in that, when receive user's input from first candidate operations
When choosing instruction of object run is chosen, it is described that instruction, the public use-case library of target described in updating maintenance, packet are chosen according to
It includes:
Choose instruction when described to choose and receiving when choosing instruction of modification operation, by the public use-case library of the target with institute
It states the corresponding public use-case of the test case changed and is updated to the test case changed;
Instruction is chosen to choose and receiving when choosing instruction of newly-increased operation when described, and the test case changed is added to
In the public use-case library of target;
Instruction is chosen to choose when choosing instruction of refusal operation when described, and determination does not update the public use-case library of the target.
6. according to the method described in claim 4, it is characterized in that, when receive user's input from second candidate operations
When choosing instruction of object run is chosen, it is described that instruction, the public use-case library of target described in updating maintenance, packet are chosen according to
It includes:
Instruction is chosen to receive when choosing instruction of operation to choose when described, in the status information of the test case changed
When to delete state, the public use-case corresponding with the test case changed in the public use-case library of the target is deleted
It removes, when the status information of the test case changed is newly-increased state, the test case changed is added to
In the public use-case library of target;
Instruction is chosen to choose when choosing instruction of refusal operation when described, and determination does not update the public use-case library of the target.
7. according to the method described in claim 2, it is characterized in that, public use-case in the public use-case library pre-established
Corresponding relationship between test case obtains as follows:
When receiving the preset screening conditions of user's input, selected described in satisfaction from pre-stored public use-case library
The public use-case of candidate of screening conditions, and the public use-case of candidate is presented to the user;
When the choosing for the public use-case of target for choosing current test to need from the public use-case of candidate for receiving user's input
When selecting instruction, the public use-case of the target is instantiated, the first test case corresponding with the public use-case of the target is obtained, and
Record the corresponding relationship between the public use-case of the target and first test case.
8. the method according to claim 1, wherein the state of the test case changed according to is believed
After ceasing the public use-case library of target described in updating maintenance, the method also includes:
The test case changed is labeled as processed test case.
9. a kind of updating maintenance device in public use-case library, which is characterized in that described device include obtain module, searching module and
Processing module, wherein
The acquisition module, for obtaining the status information of the test case changed;The status information include newly-increased state,
Modification state and deletion state;
The searching module, for searching the public use-case library of target corresponding with the test case changed;It is described to have become
The corresponding function of the public use-case at least one of the corresponding functional module of test case more and the public use-case library of the target
Module is identical;
The processing module, for safeguarding the target commons according to the state information updating of the test case changed
Example library.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed
The step of any one of claim 1-8 the method is realized when device executes.
11. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor realizes the step of any one of claim 1-8 the method when executing described program
Suddenly.
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 true CN110389890A (en) | 2019-10-29 |
CN110389890B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795297A (en) * | 2019-10-31 | 2020-02-14 | 杭州迪普科技股份有限公司 | Electronic equipment testing method and device |
CN113190439A (en) * | 2021-04-22 | 2021-07-30 | 北京百度网讯科技有限公司 | Test case execution method and device and electronic equipment |
CN113220578A (en) * | 2021-05-17 | 2021-08-06 | 上海中通吉网络技术有限公司 | Method for generating function test case |
CN115964305A (en) * | 2023-03-16 | 2023-04-14 | 广州嘉为科技有限公司 | Cross-project test case library management method and device and storage medium |
Citations (6)
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 |
-
2018
- 2018-04-20 CN CN201810362072.9A patent/CN110389890B/en active Active
Patent Citations (6)
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 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795297A (en) * | 2019-10-31 | 2020-02-14 | 杭州迪普科技股份有限公司 | Electronic equipment testing method and device |
CN110795297B (en) * | 2019-10-31 | 2023-04-28 | 杭州迪普科技股份有限公司 | Electronic equipment testing method and device |
CN113190439A (en) * | 2021-04-22 | 2021-07-30 | 北京百度网讯科技有限公司 | Test case execution method and device and electronic equipment |
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 |
CN115964305A (en) * | 2023-03-16 | 2023-04-14 | 广州嘉为科技有限公司 | Cross-project test case library management method and device and storage medium |
CN115964305B (en) * | 2023-03-16 | 2023-06-23 | 广州嘉为科技有限公司 | Cross-project test case library management method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110389890B (en) | 2024-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110389890A (en) | A kind of the updating maintenance method, apparatus and computer equipment in public use-case library | |
WO2018000607A1 (en) | Method and electronic apparatus for identifying test case failure causes | |
US20180260314A1 (en) | Smart advisory for distributed and composite testing teams based on production data and analytics | |
US10990510B2 (en) | Associating attribute seeds of regression test cases with breakpoint value-based fingerprints | |
CN110413282B (en) | Redundant resource processing method, device, equipment and storage medium | |
CN109710817A (en) | Electronic device information input method, device, computer equipment and storage medium | |
WO2019153503A1 (en) | Software test method, computer-readable storage medium, terminal device and apparatus | |
CN110046088A (en) | A kind of interface test method, device and equipment | |
CN109784657A (en) | Operation flow method for building up, device, storage medium and electronic equipment | |
CN106202374A (en) | A kind of data processing method and device | |
CN109508289B (en) | Test method and device and electronic equipment | |
CN114201271A (en) | Node determination method and device, computer equipment and storage medium | |
CN117176588B (en) | Method and device for constructing network topology, electronic equipment and storage medium | |
EP3312744A1 (en) | Information entry storage method, system, device, and computer readable storage medium | |
CN115685948B (en) | Data processing method, device, equipment and medium | |
CN110795297B (en) | Electronic equipment testing method and device | |
CN110298679A (en) | A kind of method and apparatus calculating the distance between sample data | |
CN112561389B (en) | Method and device for determining detection result of equipment and electronic equipment | |
CN110781194B (en) | Application program table data processing method and device, electronic equipment and storage medium | |
CN117376114A (en) | Parameter configuration method, device, computer equipment and storage medium | |
CN117557786B (en) | Material quality detection method, device, computer equipment and storage medium | |
JP5772246B2 (en) | Filter processing management device, filter processing management method, filter processing management program | |
CN109597812B (en) | Conference room batch online method and device, computer equipment and storage medium | |
US20230143489A1 (en) | Data analysis apparatus and data analysis method | |
US20230281644A1 (en) | System, method, and computer program for using machine learning to make site specific 5g network recommendations |
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 |