CN109614312A - Method for generating test case, device, electronic equipment and storage medium - Google Patents

Method for generating test case, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109614312A
CN109614312A CN201811238893.8A CN201811238893A CN109614312A CN 109614312 A CN109614312 A CN 109614312A CN 201811238893 A CN201811238893 A CN 201811238893A CN 109614312 A CN109614312 A CN 109614312A
Authority
CN
China
Prior art keywords
test case
test
user
retrieval request
data library
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811238893.8A
Other languages
Chinese (zh)
Inventor
何新荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811238893.8A priority Critical patent/CN109614312A/en
Publication of CN109614312A publication Critical patent/CN109614312A/en
Pending legal-status Critical Current

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

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

A kind of method for generating test case, comprising: receive test case retrieval request;Test case corresponding with test case retrieval request is searched in test case data library according to test case retrieval request;The test case by inquiring in test case data library is shown in the user interface;When receiving the operational order of duplication test case of user's input, the test case shown in user interface is replicated;And the modification that user carries out in the test case of duplication is received, and the modified test case of user is carried out saving to generate new test case.The present invention also provides a kind of Test cases technology device, electronic equipment and storage mediums.The present invention can pass through input test use-case search condition, the test case needed is retrieved, directly new test case is generated by copying and modifying test case template, writes test case without tester, Test Sample Design efficiency is improved, while also reducing the difficulty for generating test case.

Description

Method for generating test case, device, electronic equipment and storage medium
Technical field
The present invention relates to testing fields, and in particular to a kind of method for generating test case, device, electronic equipment and storage are situated between Matter.
Background technique
With the continuous development of software industry, software newly developed becomes increasingly complex, and function is more and more, so that software is surveyed Examination also becomes to become increasingly complex.In software test procedure, to guarantee to test quality, it usually needs design and write a large amount of survey Example on probation.However, testing example design needs higher technical level and working experience abundant, and test case is carried out Write and modify the plenty of time for generally requiring to expend tester, excessively labor intensive.On the other hand, due to multiple to be tested Often there is intimate module in software, corresponding test case is also more similar, if rewriting test every time Use-case, and substantially reduce testing efficiency.
Summary of the invention
In view of the foregoing, it is necessary to propose a kind of method for generating test case, device, electronic equipment and storage medium, Test Sample Design efficiency is improved, while also reducing the difficulty for generating test case.
The first aspect of the present invention provides a kind of method for generating test case, which comprises
Receive test case retrieval request;
It is searched in test case data library according to the test case retrieval request and the test case retrieval request Corresponding test case;
The display test case by being inquired in test case data library in the user interface;
When receiving the operational order of duplication test case of user's input, the survey shown in the user interface is replicated Example on probation;And
The modification that user carries out in the test case of the duplication is received, and the modified test case of user is carried out It saves to generate new test case.
Preferably, the method also includes:
When receiving the operational order by the new test case importing automatization test system, by the new survey Example on probation is directed into automatization test system, so that the automatization test system is according to the new test case to be tested Software carries out automatic test.
Preferably, before showing test case in replicating the user interface, the method also includes:
Judge whether active user has the permission of duplication test case;
If active user has the permission for obtaining test case, user is allowed to replicate the test case;
If active user does not have the permission for obtaining test case, user is not allowed to replicate the test case, and Display reminding information in user interface prompts user not have the permission of duplication test case.
Preferably, the method packet of corresponding test case is searched in test case data library according to test case retrieval request It includes:
By the test case retrieval request received compared with the search condition in the test case data library pair;
Judge in the test case data library with the presence or absence of the retrieval item to match with the test case retrieval request Part;
If it exists, then the corresponding test case of the search condition is obtained;
If it does not exist, then prompt information is generated for prompting user not retrieve corresponding test case.
Preferably, the method also includes: find in the test case data library and the test case retrieved After requesting the test case to match, the test case is cached into buffer zone.
Preferably, it when receiving test case retrieval request again, is searched and the test from the buffer zone The test case that use-case retrieval request matches, when not found in the buffer zone and the test case retrieval request When the test case to match, the survey to match with the test case retrieval request is searched from the test case data library Example on probation.
Preferably, described to survey the method also includes adding test case in test case data library The step of addition test case, includes: in examination case data library
Receive the operational order that user adds test case;
Show that test case adds frame in test case management platform;
Receive the newly-increased test case and the corresponding search condition of the newly-increased test case of user's input;And
The newly-increased test case and the corresponding search condition of the test case are stored to the test case number According to library.
The second aspect of the present invention provides a kind of Test cases technology device, and described device includes:
Receiving module, for receiving test case retrieval request;
Enquiry module, for being searched in test case data library according to the test case retrieval request and the test The corresponding test case of use-case retrieval request;
Display module, for showing the test case by inquiring in test case data library in the user interface;
Replication module, for replicating the user when receiving the operational order of duplication test case of user's input The test case shown in interface;And
Modified module, the modification carried out in the test case of the duplication for receiving user, and after user is modified Test case save to generating new test case.
The third aspect of the present invention provides a kind of electronic equipment, and the electronic equipment includes processor and memory, described Processor is for realizing the method for generating test case when executing the computer program stored in the memory.
The fourth aspect of the present invention provides a kind of computer readable storage medium, deposits on the computer readable storage medium Computer program is contained, the computer program realizes the method for generating test case when being executed by processor.
Method for generating test case, device, electronic equipment and storage medium of the present invention, pass through input test use-case Search condition retrieves the test case of needs, directly generates new test case, nothing by copying and modifying test case template It needs tester to write test case, improves Test Sample Design efficiency, while also reducing the difficulty for generating test case.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart for the method for generating test case that the embodiment of the present invention one provides.
Fig. 2 is the functional block diagram of Test cases technology device provided by Embodiment 2 of the present invention.
Fig. 3 is the schematic diagram for the electronic equipment that the embodiment of the present invention three provides.
The present invention that the following detailed description will be further explained with reference to the above drawings.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, the embodiment of the present invention and embodiment In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " and " third " etc. are For distinguishing different objects, not for description particular order.In addition, term " includes " and their any deformations, it is intended that Non-exclusive include in covering.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising For the intrinsic other step or units of these process, methods, product or equipment.
The method for generating test case application of the embodiment of the present invention is in the electronic device.It is described for needing into test case The electronic equipment of generation can directly integrate Test cases technology function provided by method of the invention on an electronic device, Or installation is for realizing the client of method of the invention.For another example, method provided by the present invention can also be with software development The form of kit (Software Development Kit, SDK) operates in the equipment such as server, is mentioned in the form of SDK For the interface of Test cases technology function, Test cases technology is can be realized by the interface provided in electronic equipment or other equipment Function.
Embodiment one
Fig. 1 is the flow chart for the method for generating test case that the embodiment of the present invention one provides.It is described according to different requirements, Execution sequence in flow chart can change, and certain steps can be omitted.
Step S01, test case retrieval request is received.
In one embodiment, the case generation method is applied in a test case management platform.The test is used Example management platform is used to provide man-machine interactive interface towards tester by customer terminal webpage or Web page, and tester can be with It is connected on the test case management platform by terminal devices such as mobile phone or computers.The test case management platform is used for It receives, storage, manage the test case that tester writes, while also being inquired for tester, replicate, generating new test Example.Specifically, the test case management platform shows a Test cases technology interface, the Test cases technology interface Zhong Bao A frame retrieval is included for inputting search key, the method for the test case retrieval request of reception user's input are as follows: logical for user It crosses and reads the keyword that inputs in the frame retrieval to receive the retrieval request of user's input.
The search key can be text, such as when user needs to inquire the login function for test software or looks into When asking the test case of function, keyword " login function ", " query function " etc. can be inputted in the frame retrieval.The inspection Rope keyword can also be specific fields or function in automatic test script, naturally it is also possible to be for identifying test case Identifier etc..
In another embodiment, the method for receiving the test case retrieval request of user's input, which may is that, obtains user The operational order inputted in tested application interface, the subsystem of analysis user's selection, and the subsystem that the user is selected System is used as test case retrieval request.For example, user inputs username and password in the login interface of tested application program When, the acquisition selected subsystem of user is login interface, then it is determined that the retrieval request is to inquire the test of login function The request of use-case.
In other embodiments, the method for receiving the test case retrieval request of user's input may also is that offer test Use-case search interface includes multiple selection menus or button, the menu that detecting user selects in the test case search interface Or button determines the test case retrieval request of the input.
Step S02, it is searched in test case data library according to the test case retrieval request and the test case The corresponding test case of retrieval request.
In one embodiment, a plurality of types of test case templates, each survey are stored in the test case data library The corresponding search condition of example template on probation, the search condition is corresponding with the test case retrieval request, for example, described Search condition can be keyword " login function ", " query function " etc..
Searching the method for corresponding test case in test case data library according to test case retrieval request specifically can be with Include:
1) by the test case retrieval request received compared with the search condition in the test case data library pair;
2) judge in the test case data library with the presence or absence of the retrieval to match with the test case retrieval request Condition;
3) the corresponding test case of the search condition if it exists, is then obtained;
4) prompt information if it does not exist, is then generated for prompting user not retrieve corresponding test case.
In one embodiment, the method can also include that the step of test case is added in test case data library It is rapid:
1) operational order that user adds test case is received;
2) show that test case adds frame in test case management platform;
3) the newly-increased test case and the corresponding search condition of the newly-increased test case of user's input are received;And
4) the newly-increased test case and the corresponding search condition of the test case are stored to the test case Database.
In one embodiment, the method also includes: find and the test in the test case data library After the test case that use-case retrieval request matches, also the test case is cached into buffer zone.
When receiving test case retrieval request again, first examined by being searched in the buffer zone with the test case Rope requests the test case to match, matches when not finding in the buffer zone with the test case retrieval request Test case when, then go to search the test to match with the test case retrieval request in the test case data library and use Example.In this way, can reduce the pressure in test case data library, test case retrieval rate is improved.
Step S03, the test case by inquiring in test case data library is shown in the user interface.
Step S04, it when receiving the operational order of duplication test case of user's input, replicates in the user interface The test case of display.
In one embodiment, also display one replicates test case while showing test case in the user interface Button, when the user clicks when the button, can be completed test case duplication.
In one embodiment, before showing test case in replicating the user interface, the method can also be wrapped Include following steps:
1) judge whether active user has the permission of duplication test case, for example, use when passing through logging in system by user Name in an account book determines whether user has the permission of duplication test case by the role of user to judge the role of user, or Person verifies the permission of user by modes such as identifying codes;
If 2) active user has the permission for obtaining test case, user is allowed to replicate the test case;
If 3) active user does not have the permission for obtaining test case, user is not allowed to replicate the test case, and Display reminding information in the user interface prompts user not have the permission of duplication test case.
The permission obtained by setting test case, can prevent test case from leaking, effective protection test case is one Determine to use in extent of competence.
Step S05, the modification that carries out in the test case of the duplication of user is received, and by the modified test of user Use-case carries out saving to generate new test case.
In one embodiment, the test case is made of being write by automatic test script language, described new Test case can directly for automatization test system run to complete automatic test.
In a preferred embodiment of the present invention, the method can with comprising steps of
When receiving the operational order by new test case importing automatization test system, the new test is used Example is directed into automatization test system, so that the automatization test system is according to the test case of the importing to be tested soft Part carries out automatic test.
In conclusion method for generating test case provided by the invention includes, test case retrieval request is received;According to institute It states test case retrieval request and searches test case corresponding with the test case retrieval request in test case data library; The display test case by being inquired in test case data library in the user interface;When the duplication for receiving user's input When the operational order of test case, the test case shown in the user interface is replicated;And user is received in the duplication The modification carried out in test case, and the modified test case of user is carried out saving to generate new test case.It is logical The test case of needs can be retrieved by input test use-case search condition by crossing the present invention, directly by copying and modifying survey The new test case of example template generation on probation, writes test case without tester, improves Test Sample Design efficiency, simultaneously Also reduce the difficulty for generating test case.
The above is only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, for For those skilled in the art, without departing from the concept of the premise of the invention, improvement, but these can also be made It all belongs to the scope of protection of the present invention.
Below with reference to the 2nd to 3 figure, respectively the functional module to the electronic equipment for realizing above-mentioned method for generating test case and Hardware configuration is introduced.
Embodiment two
Fig. 2 is the functional block diagram in Test cases technology device preferred embodiment of the present invention.
In some embodiments, the Test cases technology device 20 is run in electronic equipment.The test case is raw It may include multiple functional modules as composed by program code segments at device 20.It is each in the Test cases technology device 20 The program code of a program segment can store in memory, and as performed by least one processor, (be detailed in Fig. 1 with execution And its associated description) Test cases technology function.
In the present embodiment, function of the Test cases technology device 20 according to performed by it can be divided into multiple Functional module.The functional module may include: receiving module 201, enquiry module 202, display module 203, replication module 204 And modified module 205.The so-called module of the present invention refers to that one kind performed by least one processor and can be completed The series of computation machine program segment of fixed function, storage is in memory.In some embodiments, the function about each module It will be described in detail in subsequent embodiment.
The receiving module 201 receives test case retrieval request.
In one embodiment, the case generation method is applied in a test case management platform.The test is used Example management platform is used to provide man-machine interactive interface towards tester by customer terminal webpage or Web page, and tester can be with It is connected on the test case management platform by terminal devices such as mobile phone or computers.The test case management platform is used for It receives, storage, manage the test case that tester writes, while also being inquired for tester, replicate, generating new test Example.Specifically, the test case management platform shows a Test cases technology interface, the Test cases technology interface Zhong Bao A frame retrieval is included for inputting search key, the method for the test case retrieval request of reception user's input are as follows: logical for user It crosses and reads the keyword that inputs in the frame retrieval to receive the retrieval request of user's input.
The search key can be text, such as when user needs to inquire the login function for test software or looks into When asking the test case of function, keyword " login function ", " query function " etc. can be inputted in the frame retrieval.The inspection Rope keyword can also be specific fields or function in automatic test script, naturally it is also possible to be for identifying test case Identifier etc..
In another embodiment, the method for receiving the test case retrieval request of user's input, which may is that, obtains user The operational order inputted in tested application interface, the subsystem of analysis user's selection, and the subsystem that the user is selected System is used as test case retrieval request.For example, user inputs username and password in the login interface of tested application program When, the acquisition selected subsystem of user is login interface, then it is determined that the retrieval request is to inquire the test of login function The request of use-case.
In other embodiments, the method for receiving the test case retrieval request of user's input may also is that offer test Use-case search interface includes multiple selection menus or button, the menu that detecting user selects in the test case search interface Or button determines the test case retrieval request of the input.
The enquiry module 202 is searched in test case data library and the survey according to the test case retrieval request The corresponding test case of example retrieval request on probation.
In one embodiment, a plurality of types of test case templates, each survey are stored in the test case data library The corresponding search condition of example template on probation, the search condition is corresponding with the test case retrieval request, for example, described Search condition can be keyword " login function ", " query function " etc..
Searching the method for corresponding test case in test case data library according to test case retrieval request specifically can be with Include:
1) by the test case retrieval request received compared with the search condition in the test case data library pair;
2) judge in the test case data library with the presence or absence of the retrieval to match with the test case retrieval request Condition;
3) the corresponding test case of the search condition if it exists, is then obtained;
4) prompt information if it does not exist, is then generated for prompting user not retrieve corresponding test case.
In one embodiment, the enquiry module 202 can add test case in test case data library, described Test case is added in test case data library includes:
1) operational order that user adds test case is received;
2) show that test case adds frame in test case management platform;
3) the newly-increased test case and the corresponding search condition of the newly-increased test case of user's input are received;And
4) the newly-increased test case and the corresponding search condition of the test case are stored to the test case Database.
In one embodiment, the enquiry module 202 can also be found and institute in the test case data library After stating the test case that test case retrieval request matches, also the test case is cached into buffer zone.
When receiving test case retrieval request again, first examined by being searched in the buffer zone with the test case Rope requests the test case to match, matches when not finding in the buffer zone with the test case retrieval request Test case when, then go to search the test to match with the test case retrieval request in the test case data library and use Example.In this way, can reduce the pressure in test case data library, test case retrieval rate is improved.
Display module 203 is used for the test by inquiring in test case data library of display in the user interface Example.
Replication module 204 is used to replicate the use when receiving the operational order of duplication test case of user's input The test case shown in the interface of family.
In one embodiment, also display one replicates test case while showing test case in the user interface Button, when the user clicks when the button, can be completed test case duplication.
In one embodiment, before showing test case in replicating the user interface, the replication module 204 is also It can be with:
1) judge whether active user has the permission of duplication test case, for example, use when passing through logging in system by user Name in an account book determines whether user has the permission of duplication test case by the role of user to judge the role of user, or Person verifies the permission of user by modes such as identifying codes;
If 2) active user has the permission for obtaining test case, user is allowed to replicate the test case;
If 3) active user does not have the permission for obtaining test case, user is not allowed to replicate the test case, and Display reminding information in the user interface prompts user not have the permission of duplication test case.
The permission obtained by setting test case, can prevent test case from leaking, effective protection test case is one Determine to use in extent of competence.
Modified module 205 modifies user for receiving the modification that user carries out in the test case of the duplication Test case afterwards carries out saving to generate new test case.
In one embodiment, the test case is made of being write by automatic test script language, described new Test case can directly for automatization test system run to complete automatic test.
In a preferred embodiment of the present invention, modified module 205 can also import new test case automatically when receiving When changing the operational order of test macro, the new test case is directed into automatization test system, so that the automation Test macro treats test software according to the test case of the importing and carries out automatic test.
In conclusion Test cases technology device 20 of the present invention, including receiving module 201, enquiry module 202, Display module 203, replication module 204 and modified module 205.The receiving module 201 is for receiving test case retrieval request; The enquiry module 202 is used for being searched in test case data library according to the test case retrieval request with the test The corresponding test case of example retrieval request;The display module 203 is described by test case number for display in the user interface According to the test case inquired in library;The replication module 204 is used for the behaviour when the duplication test case for receiving user's input When instructing, the test case shown in the user interface is replicated;And the modified module 205 is for receiving user described The modification carried out in the test case of duplication, and the modified test case of user is carried out to save to generate new test use Example.The test case of needs can be retrieved by input test use-case search condition through the invention, directly by replicating and repairing Change test case template and generate new test case, writes test case without tester, improve Test Sample Design efficiency, The difficulty for generating test case is also reduced simultaneously.
The above-mentioned integrated unit realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, double screen equipment or the network equipment etc.) or processor (processor) execute the present invention The part of a embodiment the method.
Fig. 3 is the schematic diagram for the electronic equipment that the embodiment of the present invention three provides.
The electronic equipment 3 includes: memory 31, at least one processor 32, is stored in the memory 31 and can The computer program 33 and at least one communication bus 34 run at least one described processor 32.
At least one described processor 32 realizes that above-mentioned method for generating test case is real when executing the computer program 33 Apply the step in example.
Illustratively, the computer program 33 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 31, and are executed by least one described processor 32, to complete this hair It is bright.One or more of module/units can be the series of computation machine program instruction section that can complete specific function, described Instruction segment is for describing implementation procedure of the computer program 33 in the electronic equipment 3.
The electronic equipment 3 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) etc. application program is installed equipment.It will be understood by those skilled in the art that the schematic diagram 3 is only The example of electronic equipment 3 does not constitute the restriction to electronic equipment 3, may include components more more or fewer than diagram, or Certain components or different components are combined, such as the electronic equipment 3 can also include input-output equipment, network insertion Equipment, bus etc..
At least one described processor 32 can be central processing unit (Central Processing Unit, CPU), It can also be other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..The processor 32 can be microprocessor or the processor 32 is also possible to any conventional place Device etc. is managed, the processor 32 is the control centre of the electronic equipment 3, is set using various interfaces and the entire electronics of connection Standby 3 various pieces.
The memory 31 can be used for storing the computer program 33 and/or module/unit, and the processor 32 passes through Operation executes the computer program and/or module/unit being stored in the memory 31, and calls and be stored in memory Data in 31 realize the various functions of the electronic equipment 3.The memory 31 can mainly include storing program area and storage Data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound plays Function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as sound according to electronic equipment 3 Frequency evidence, phone directory etc.) etc..In addition, memory 31 may include high-speed random access memory, it can also include non-volatile Memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other Volatile solid-state part.
If the integrated module/unit of the electronic equipment 3 is realized in the form of SFU software functional unit and as independent Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program At the computer program can be stored in a computer readable storage medium, and the computer program is held by processor When row, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, institute Stating computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..It is described Computer-readable medium may include: any entity or device, recording medium, U that can carry the computer program code Disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs It is bright, the content that the computer-readable medium includes can according in jurisdiction make laws and patent practice requirement into Row increase and decrease appropriate, such as do not include electric load according to legislation and patent practice, computer-readable medium in certain jurisdictions Wave signal and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that arriving, disclosed electronic equipment and method can be with It realizes by another way.For example, electronic equipment embodiment described above is only schematical, for example, the list The division of member, only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in same treatment unit It is that each unit physically exists alone, can also be integrated in same unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other units or, odd number is not excluded for plural number.The multiple units stated in system claims Or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to indicate name Claim, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit of the technical scheme of the invention range.

Claims (10)

1. a kind of method for generating test case, which is characterized in that the described method includes:
Receive test case retrieval request;
It is searched in test case data library according to the test case retrieval request corresponding with the test case retrieval request Test case;
The display test case by being inquired in test case data library in the user interface;
When receiving the operational order of duplication test case of user's input, replicates the test shown in the user interface and use Example;And
The modification that user carries out in the test case of the duplication is received, and the modified test case of user is saved To generate new test case.
2. method for generating test case as described in claim 1, which is characterized in that the method also includes:
When receiving the operational order by the new test case importing automatization test system, the new test is used Example is directed into automatization test system, so that the automatization test system treats test software according to the new test case Carry out automatic test.
3. method for generating test case as claimed in claim 2, which is characterized in that show survey in replicating the user interface Before example on probation, the method also includes:
Judge whether active user has the permission of duplication test case;
If active user has the permission for obtaining test case, user is allowed to replicate the test case;
If active user does not have the permission for obtaining test case, user is not allowed to replicate the test case, and in user Display reminding information in interface prompts user not have the permission of duplication test case.
4. method for generating test case as described in claim 1, which is characterized in that tested according to test case retrieval request The method for corresponding to test case is searched in case data library includes:
By the test case retrieval request received compared with the search condition in the test case data library pair;
Judge in the test case data library with the presence or absence of the search condition to match with the test case retrieval request;
If it exists, then the corresponding test case of the search condition is obtained;
If it does not exist, then prompt information is generated for prompting user not retrieve corresponding test case.
5. method for generating test case as claimed in claim 4, which is characterized in that the method also includes: in the test After finding the test case to match with the test case retrieval request in case data library, the test case is cached Into buffer zone.
6. method for generating test case as claimed in claim 5, which is characterized in that asked when receiving test case retrieval again When asking, the test case to match with the test case retrieval request is searched from the buffer zone, when in the caching When not finding the test case to match with the test case retrieval request in region, from the test case data library Search the test case to match with the test case retrieval request.
7. method for generating test case as claimed in claim 4, which is characterized in that the method also includes in test case number According to the step of adding test case in library, described the step of test case is added in test case data library, includes:
Receive the operational order that user adds test case;
Show that test case adds frame in test case management platform;
Receive the newly-increased test case and the corresponding search condition of the newly-increased test case of user's input;And
The newly-increased test case and the corresponding search condition of the test case are stored to the test case data library.
8. a kind of Test cases technology device, which is characterized in that described device includes:
Receiving module, for receiving test case retrieval request;
Enquiry module, for being searched in test case data library according to the test case retrieval request and the test case The corresponding test case of retrieval request;
Display module, for showing the test case by inquiring in test case data library in the user interface;
Replication module, for replicating the user interface when receiving the operational order of duplication test case of user's input The test case of middle display;And
Modified module, the modification carried out in the test case of the duplication for receiving user, and by the modified survey of user Example on probation carries out saving to generate new test case.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, and the processor is for holding Realize that test case as claimed in any of claims 1 to 7 in one of claims is raw when the computer program stored in the row memory At method.
10. a kind of computer readable storage medium, computer program, feature are stored on the computer readable storage medium It is, the computer program realizes that test case as claimed in any of claims 1 to 7 in one of claims is raw when being executed by processor At method.
CN201811238893.8A 2018-10-23 2018-10-23 Method for generating test case, device, electronic equipment and storage medium Pending CN109614312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811238893.8A CN109614312A (en) 2018-10-23 2018-10-23 Method for generating test case, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811238893.8A CN109614312A (en) 2018-10-23 2018-10-23 Method for generating test case, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109614312A true CN109614312A (en) 2019-04-12

Family

ID=66002779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811238893.8A Pending CN109614312A (en) 2018-10-23 2018-10-23 Method for generating test case, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109614312A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694739A (en) * 2020-06-05 2020-09-22 深圳市铭墨科技有限公司 Interface test method, device, equipment and storage medium
CN113190434A (en) * 2021-04-12 2021-07-30 成都安易迅科技有限公司 Test case generation method and device, storage medium and computer equipment
CN113220563A (en) * 2021-04-12 2021-08-06 成都安易迅科技有限公司 Test case generation method and system, storage medium and computer equipment
CN114048084A (en) * 2022-01-11 2022-02-15 深圳佑驾创新科技有限公司 Method and device for generating test case schema of schematic diagram and storage medium
CN114840412A (en) * 2022-03-25 2022-08-02 网宿科技股份有限公司 Method for operating test tool, electronic device, and storage medium
CN117785698A (en) * 2023-12-27 2024-03-29 广州极点三维信息科技有限公司 Software test case method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
US20080184206A1 (en) * 2007-01-31 2008-07-31 Oracle International Corporation Computer-implemented methods and systems for generating software testing documentation and test results management system using same
CN103336849A (en) * 2013-07-24 2013-10-02 昆明理工大学 Method and device for increasing retrieval speed in database retrieval system
CN104331369A (en) * 2014-11-21 2015-02-04 北京奇虎科技有限公司 Browser-based webpage detection method and device, and server
CN107885660A (en) * 2017-10-31 2018-04-06 平安科技(深圳)有限公司 Fund system automatic test management method, device, equipment and storage medium
CN107908540A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and medium
CN107908548A (en) * 2017-10-10 2018-04-13 深圳市买买提乐购金融服务有限公司 A kind of method and apparatus for generating test case
CN107943695A (en) * 2017-11-21 2018-04-20 郑州云海信息技术有限公司 Testing case management, device, equipment and computer-readable recording medium
CN108595324A (en) * 2018-04-09 2018-09-28 中国银行股份有限公司 Test cases reuse management method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
US20080184206A1 (en) * 2007-01-31 2008-07-31 Oracle International Corporation Computer-implemented methods and systems for generating software testing documentation and test results management system using same
CN103336849A (en) * 2013-07-24 2013-10-02 昆明理工大学 Method and device for increasing retrieval speed in database retrieval system
CN104331369A (en) * 2014-11-21 2015-02-04 北京奇虎科技有限公司 Browser-based webpage detection method and device, and server
CN107908540A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and medium
CN107908548A (en) * 2017-10-10 2018-04-13 深圳市买买提乐购金融服务有限公司 A kind of method and apparatus for generating test case
CN107885660A (en) * 2017-10-31 2018-04-06 平安科技(深圳)有限公司 Fund system automatic test management method, device, equipment and storage medium
CN107943695A (en) * 2017-11-21 2018-04-20 郑州云海信息技术有限公司 Testing case management, device, equipment and computer-readable recording medium
CN108595324A (en) * 2018-04-09 2018-09-28 中国银行股份有限公司 Test cases reuse management method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
卜国峰等: "软件测试用例的复用研究", 《四川兵工学报》 *
张志国等: "面向复用的航天测控软件测试用例建模研究", 《飞行器测控学报》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694739A (en) * 2020-06-05 2020-09-22 深圳市铭墨科技有限公司 Interface test method, device, equipment and storage medium
CN113190434A (en) * 2021-04-12 2021-07-30 成都安易迅科技有限公司 Test case generation method and device, storage medium and computer equipment
CN113220563A (en) * 2021-04-12 2021-08-06 成都安易迅科技有限公司 Test case generation method and system, storage medium and computer equipment
CN113220563B (en) * 2021-04-12 2023-11-17 成都安易迅科技有限公司 Test case generation method, system, storage medium and computer equipment
CN113190434B (en) * 2021-04-12 2024-03-08 成都安易迅科技有限公司 Test case generation method and device, storage medium and computer equipment
CN114048084A (en) * 2022-01-11 2022-02-15 深圳佑驾创新科技有限公司 Method and device for generating test case schema of schematic diagram and storage medium
CN114048084B (en) * 2022-01-11 2022-04-26 深圳佑驾创新科技有限公司 Method and device for generating test case schema of schematic diagram and storage medium
CN114840412A (en) * 2022-03-25 2022-08-02 网宿科技股份有限公司 Method for operating test tool, electronic device, and storage medium
CN117785698A (en) * 2023-12-27 2024-03-29 广州极点三维信息科技有限公司 Software test case method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109614312A (en) Method for generating test case, device, electronic equipment and storage medium
US11113475B2 (en) Chatbot generator platform
US11580179B2 (en) Method and system for service agent assistance of article recommendations to a customer in an app session
CN109446099A (en) Automatic test cases generation method, device, medium and electronic equipment
CN108920135B (en) User-defined service generation method and device, computer equipment and storage medium
CN108196877B (en) The method and apparatus and calculating equipment of component release management
CN106844730A (en) The display methods and device of file content
CN109359194A (en) Method and apparatus for predictive information classification
CN112433944A (en) Service testing method, device, computer equipment and storage medium
CN109828906A (en) UI automated testing method, device, electronic equipment and storage medium
CN110866029A (en) sql statement construction method, device, server and readable storage medium
CN112860744A (en) Business process processing method and device
CN107301179A (en) The method and apparatus of data base read-write separation
CN107341235A (en) Report form inquiring method, device, medium and electronic equipment
CN109308258A (en) Building method, device, computer equipment and the storage medium of test data
US11663113B2 (en) Real time fault localization using combinatorial test design techniques and test case priority selection
CN105871998A (en) Data displaying method and device
CN105630960B (en) The method and apparatus of testing field Task conversational system
CN116501315A (en) Low-code software development system, method and equipment based on DevOps domain
CN115422202A (en) Service model generation method, service data query method, device and equipment
CN108415849A (en) Method and apparatus for test application
CN109766228A (en) Verification method and device on a kind of line based on interface
US11194966B1 (en) Management of concepts and intents in conversational systems
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN115701591A (en) Business process testing method, device, medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190412