CN110399294A - Method for generating test case, device, computer equipment and storage medium - Google Patents
Method for generating test case, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110399294A CN110399294A CN201910559964.2A CN201910559964A CN110399294A CN 110399294 A CN110399294 A CN 110399294A CN 201910559964 A CN201910559964 A CN 201910559964A CN 110399294 A CN110399294 A CN 110399294A
- Authority
- CN
- China
- Prior art keywords
- data
- case
- test
- fixed field
- keyword
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 174
- 238000000034 method Methods 0.000 title claims abstract description 84
- 238000005516 engineering process Methods 0.000 claims abstract description 70
- 230000008569 process Effects 0.000 claims abstract description 49
- 238000011017 operating method Methods 0.000 claims abstract description 33
- 238000012545 processing Methods 0.000 claims abstract description 11
- 230000004044 response Effects 0.000 claims abstract description 11
- 238000006243 chemical reaction Methods 0.000 claims abstract description 10
- 238000004590 computer program Methods 0.000 claims description 29
- 238000005194 fractionation Methods 0.000 claims description 12
- 239000002245 particle Substances 0.000 claims description 7
- 230000011218 segmentation Effects 0.000 claims description 6
- 238000011430 maximum method Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 4
- 235000013399 edible fruits Nutrition 0.000 description 3
- 238000005266 casting Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000013479 data entry Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000007789 sealing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect 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
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/26—Speech to text systems
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Machine Translation (AREA)
Abstract
This application involves the field of test technology, applied to Test cases technology industry, a kind of method for generating test case, device, computer equipment and storage medium are provided, wherein, method includes: that response test use-case generates request, default test case template is read, the fixed field that test case template carries use-case title, use case description, operating procedure, expected results and priority is preset;The data inputting process for executing fixed field carries out voice conversion process to Test cases technology voice data, obtains the Characters data of fixed field;By the corresponding write-in of the Characters data of fixed field into default test case template, test case is generated.In whole process, is carried out using the fixed field including use-case title, use case description, operating procedure, expected results and priority as processing, using voice input mode by data inputting, efficiently realize Test cases technology.
Description
Technical field
This application involves the field of test technology, more particularly to a kind of method for generating test case, device, computer equipment
And storage medium.
Background technique
Test case in soft project is one group of condition or variable, and tester determines application software or software according to it
Whether system correctly works.
The softwares such as system, tool, control and Games Software need to meet the needs of different user, will do it more
Sampleization design and adjustment, and end user to be made to please oneself software, most strong behave is exactly the expectation to end user
It is expressly recited, to be verified and confirmed that its validity, test case reflect the demand to be verified to these expectations.
As it can be seen that there are substantial worths in soft project for test case.
However, traditional Test cases technology majority is write by the way of being manually entered, data entry process
It is time-consuming, and it is easy to appear input error, cause entire test case that can not generate.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of efficient method for generating test case, device, meter
Calculate machine equipment and storage medium.
A kind of method for generating test case, which comprises
Response test use-case generates request, reads default test case template, and the default test case template, which carries, to be used
Example title, use case description, operating procedure, the fixed field of expected results and priority;
The data inputting process of the fixed field is executed, and pushes fixed field when data inputting process executes initial
The speech message of title;
The Test cases technology voice data for acquiring input carries out voice conversion to the Test cases technology voice data
Processing, obtains the Characters data of the fixed field;
By the corresponding write-in of the Characters data of the fixed field into the default test case template, test is generated
Use-case.
The data inputting process for executing the fixed field in one of the embodiments, pushes fixed field name
The speech message of title includes:
By use-case title, use case description, operating procedure, expected results and priority successively as execution field;
The data inputting process for executing field is executed, push executes the speech message of field name.
The Test cases technology voice data of the acquisition input in one of the embodiments, to the test case
It generates voice data and carries out voice conversion process, the Characters data for obtaining the fixed field include:
The Test cases technology voice data for acquiring input, is converted to textual data for the Test cases technology voice data
According to;
It identifies the keyword in the text data, the keyword is encapsulated as program code segments, obtains fixed field
Characters data.
The keyword in the identification text data includes: in one of the embodiments,
Obtain predetermined keyword database;
Word segmentation processing is carried out to the text data using Forward Maximum Method method, obtains multiple words;
The multiple word is scanned in the predetermined keyword database, lookup is present in the default key
Word in word database is as keyword.
The keyword includes Rule of judgment in one of the embodiments, described that the keyword is encapsulated as program
Code segment includes:
Choose default clause corresponding with Rule of judgment in the keyword;
According to the default clause, the keyword is encapsulated as program code segments.
In one of the embodiments, before the keyword in the identification text data, further includes:
Word fractionation is carried out to the text data, obtains word split result;
Filter modal particle in the word split result, the word after being split;
It is described to identify that the keyword in the text data includes:
Keyword in word after identifying the fractionation.
A kind of Test cases technology device, described device include:
Data read module generates request for response test use-case, reads default test case template, the default survey
Example template on probation carries the fixed field of use-case title, use case description, operating procedure, expected results and priority;
Voice pushing module pushes the language of fixed field title for executing the data inputting process of the fixed field
Sound message;
Data inputting module, for acquiring the Test cases technology voice data of input, to the Test cases technology language
Sound data carry out voice conversion process, obtain the Characters data of the fixed field;
Test cases technology module, for the Characters data of the fixed field to be corresponded to write-in to the default survey
In example template on probation, test case is generated.
Voice pushing module is also used to use-case title, use case description, operating procedure, pre- in one of the embodiments,
Phase result and priority are successively as execution field;The data inputting process for executing field is executed, push executes field
The speech message of title.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device is realized when executing the computer program such as the step of the above method.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of above-mentioned method is realized when row.
Above-mentioned method for generating test case, device, computer equipment and storage medium, based on carry use-case title, use
Example description, operating procedure, expected results and priority generate multiple fixations in the default test case template of interior fixed field
The Test cases technology voice data of input is converted to text data by speech recognition technology by the executive process of field, will
The corresponding write-in of text data is inputted into the fixed field position of default test case template using Multiprocessing and voice
Mode realizes efficiently producing for test case.
Detailed description of the invention
Fig. 1 is the applied environment figure of method for generating test case in one embodiment;
Fig. 2 is the flow diagram of method for generating test case in one embodiment;
Fig. 3 is the flow diagram of method for generating test case in another embodiment;
Fig. 4 is the structural block diagram of Test cases technology device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Method for generating test case provided by the present application can be applied in application environment as shown in Figure 1.Wherein user
APP (Application, application program) end 102 is operated, proposition currently needs to carry out Test cases technology request (can
To be to click in 102 display interface of the end APP to start the virtual push button write), 102 response test use-case of the end APP generates request, reads
Default test case template is taken, use-case title, use case description, operating procedure, expected knot are provided in the test case template
The fixed field of fruit and priority, the end APP 102 executes above-mentioned fixed field and corresponds to process, and will be worked as by voice mode
The fixed field title of preceding execution is broadcasted to user, and user inputs the corresponding test of current fixed field by voice input mode
Use-case writes data, and 102 collecting test use-case of the end APP writes voice data, Test cases technology voice data is converted to text
Notebook data obtains the corresponding Characters data of each fixed field, by the corresponding Characters data pair of each fixed field
It should be written into default test case template, generate test case.Non-essential, the end APP 102 can also use the test of generation
Example pushes to the end PC 104 connected to it.
In one embodiment, as shown in Fig. 2, providing a kind of method for generating test case, it is applied to Fig. 1 in this way
In the end APP for be illustrated, comprising the following steps:
S200: response test use-case generates request, reads default test case template, and default test case template, which carries, to be used
Example title, use case description, operating procedure, the fixed field of expected results and priority.
User operates at the terminal, proposes currently to need to carry out Test cases technology request, terminal response test use-case is raw
At request, read pre-stored test case template, carried in the test case template use-case title, use case description,
The fixed field of operating procedure, expected results and priority is provided with these processes to be treated, when user's operation is complete
When these processes, epicycle Test cases technology is completed.In practical applications, user can operate on the end APP, click
" starting test is write " virtual push button in the operation interface of the end APP, the end APP respond the newly-increased test case request, read default
Default test case template is showed user by test case template, and at interface, fixed display is retouched including use-case title, use-case
It states, the fixed field of operating procedure, expected results, priority, these fixed fields are used to characterize epicycle Test cases technology will
It is completed according to this point of multiple processes.Specifically, use-case title is for distinguishing each use-case, can to automatically generate at random and
Unique number can write relevant text of test case type etc. to be current;Use case description is write for brief introduction description
The purposes and purpose of test case;When operating procedure refers to operation test case, the operating procedure needed to be implemented, correspondence is being write
When, it needs that corresponding data are written for these operating procedures;It is to be achieved that expected results refer to that operation test case needs later
Expected results, corresponding when writing, self-test and school when needing that corresponding data are written to run for the expected results
It tests;Priority refers to that current test case is performed corresponding priority, general to assign priority higher test case pair
Answer execution priority higher.
S400: the data inputting process of fixed field is executed, and pushes fixed word when data inputting process executes initial
The speech message of name section.
The end APP is pushed by way of voice mode casting when the speech message for executing fixed field title, and enters language
Sound data acquisition state.Specifically, the end APP is according to use-case title, use case description, operating procedure, expected results, priority
Sequence is successively as execution field.When push executes " use-case title " fixed field process corresponding speech message, the end APP voice
The speech message of " typing of use-case title " is broadcasted, user will be current collected by voice input data to the end APP, the end APP
Position corresponding to use-case title is written in voice data, and when use-case name field process typing is completed, voice push in the end APP is held
The speech message in row use case description process enemy camp, the end APP voice broadcast " use case description " voice repeat aforesaid operations, until complete
Corresponding speech message casting is carried out at use-case title, use case description, operating procedure, expected results and priority.
S600: acquiring the Test cases technology voice data of input, carries out voice to Test cases technology voice data and turns
Processing is changed, the Characters data of fixed field are obtained.
Text data is converted into using speech recognition technology for the Test cases technology voice data of typing, it will be literary
Notebook data is written into corresponding fixed field.By taking " use-case title " fixed field as an example, the push of the end APP executes " use-case title "
The corresponding speech message of process acquires Test cases technology voice data currently entered, by the test case of acquisition to user
It generates voice data and is converted to text data, text data is written into " use-case title ", the end APP will be in Test cases technology
The data of typing are shown on interface, that is, complete the data inputting of " use-case title " this process.It is held again for other fixed fields
The above-mentioned same operation of row obtains the Characters of fixed field until completing the write-in that all fixed fields correspond to text data
Data.
S800: it by the corresponding write-in of the Characters data of fixed field into default test case template, generates test and uses
Example.
When all fixed fields are completed at the end APP carries out corresponding text data typing, that is, it is raw that entire test case is completed
The required data inputting in is generated and is surveyed by the corresponding write-in of the Characters data of fixed field into default test case template
Example on probation.In practical applications, the end APP can show the state of current logging data, such as display " use-case in the display interface
Title ", " use case description ", " operating procedure " corresponding text data typing, wait the corresponding text of " expected results ", " priority "
Data inputting, when the end APP perceives " use-case title ", " use case description ", " operating procedure ", " expected results ", " priority " text
Notebook data typing when, generate " submissions " virtual push button, user click " submission " virtual push button, the end APP generation test case.
Above-mentioned method for generating test case, based on carry use-case title, use case description, operating procedure, expected results with
And priority generates the executive process of multiple fixed fields, is known by voice in the default test case template of interior fixed field
The Test cases technology voice data of input is converted to text data by other technology, by the corresponding write-in of text data to default test
In the fixed field position of use-case template, the efficient life of test case is realized by the way of Multiprocessing and voice input
At.
The data inputting process for executing fixed field in one of the embodiments, pushes the voice of fixed field title
Message includes: by use-case title, use case description, operating procedure, expected results and priority successively as execution field;It executes
The data inputting process of field is executed, push executes the speech message of field name.
Successively push use-case title, use case description, operating procedure, expected results and the preferential corresponding speech message carried out
To user.In practical applications, can be when the corresponding text data write-in of current fixed field be completed, just push executes next
The corresponding speech message of fixed field process.Such as the current field that executes is " use-case title ", is inputted when collecting user speech
When " use-case title " corresponding voice data, Test cases technology voice data is converted into text data, text data is write
Enter to " use-case title " corresponding position, reselection " use case description " corresponds to process as field, push " use case description " is executed
Speech message successively executes until completing " priority " fixed field corresponds to text data write-in.In the present embodiment, orderly choosing
Fixed field is selected as current and executes field, the orderly push of data is completed so that follow-up data is orderly acquired and handled, improves
The efficiency of Test cases technology.
As shown in figure 3, step S600 includes: in one of the embodiments,
S620: acquiring the Test cases technology voice data of input, and Test cases technology voice data is converted to text
Data.
S640: keyword is encapsulated as program code segments by the keyword in identification text data.
S660: code segment is written into corresponding fixed field, obtains the Characters data of fixed field.
Keyword be encapsulated as program code segments refer to that keyword is encapsulated as the program generation that automation framework is able to carry out
Code section.Wherein, each keyword is corresponding has corresponding program code segments predetermined, as keyword " click " can seal
Dress is program code segments " tap () ", keyword " home button " can be encapsulated as program code segments " findElementByName
(' homepage ') ", keyword " enter homepage and recommend the page " can be encapsulated as program code segments AssertTrue
(findElementByName (' recommendation ')) .isVisible ().Specifically, keyword can be by the key that constructs in advance
Word database identifies, include the keyword of common Test cases technology in predetermined keyword database, including before
" home button ", " click ", " enter homepage and recommend the page " etc., can be according to the actual situation for the database constructed in advance
Needs be updated.Further, predetermined keyword database can first be obtained;Using Forward Maximum Method method to textual data
According to word segmentation processing is carried out, multiple words are obtained;Multiple words are scanned in predetermined keyword database, lookup is present in
Word in predetermined keyword database is as keyword.
Keyword includes Rule of judgment in one of the embodiments, and it includes: choosing that keyword, which is encapsulated as program code segments,
Take default clause corresponding with Rule of judgment in keyword;According to default clause, keyword is encapsulated as program code segments.
In more complicated example, keyword may also include Rule of judgment.And hence it is also possible to include sealing Rule of judgment
The step of dress is program code segments.Specifically, default clause corresponding with Rule of judgment may be selected, then according to default clause
Keyword is encapsulated as program code segments.For example, for more complicated clause, it will usually definition have it is some as if,
The Rule of judgment such as while.In text information, contain " if ... execute ... ", " if ... execute ... and otherwise execute ... ",
If clause such as " if ... ... execute ... ", the keyword identified can be packaged for above-mentioned clause.As " if
Homepage clicks advertisement, into advertisement page if it is operation position ", the keyword identified be " if ", " in homepage ", " such as
Fruit ", " being operation position ", " click ", " advertisement ", " entering advertisement page ", then when being packaged, judge that it belongs to " such as
Executed if fruit ... ... ... " clause, it thus can be encapsulated as program code segments if (isHomePage) { if (isBanner)
{view.tap();Assert.assert (findElementByName (' advertisement ') .isVisible ());}}.
In one of the embodiments, before the keyword in identification text data, further includes: carry out word to text data
Language is split, and obtains word split result;Filter modal particle in word split result, the word after being split;Identify textual data
Keyword in includes: keyword in the word identified after splitting.
In the present embodiment, it is filtered processing for the word split out, filters wherein modal particle, avoids excessive data
Keyword into next step identifies operation, improves keyword recognition efficiency, the final efficiency for improving Test cases technology.
In one of the embodiments, according to logging data, after generating test case, further includes: push the survey of generation
Example is tried out to the end PC.
The test case of generation can be pushed to the end PC after generating test case by the end APP.In practical applications,
When needing using test case, user operates at the end PC, and the end PC is shown according to set of uses case, clicks some set of uses case and enters, and shows
Show that use-case list, paging are shown, supports export.In simple terms, in practical applications, data friendship is carried out between the end APP and the end PC
Mutually, the end APP increases test use cases newly, increases test case newly under set of uses case into use-case new added pages and shows fixed word
Section: use-case title, use case description, operating procedure, expected results, priority (can be modified to default value) etc.;Each fixed field,
Using voice recording mode, it is converted to text importing automatically in corresponding field, clicks and submits, automatically generates use-case number,
Submitter can modify use-case, and support is write manually;Use-case writes completion.The end PC is shown according to set of uses case, clicks some use-case
Collection is entered, and is shown that test case list, paging are shown, is supported export.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes
As shown in figure 4, a kind of Test cases technology device, device include:
Data read module 200 generates request for response test use-case, reads default test case template, presets and survey
Example template on probation carries the fixed field of use-case title, use case description, operating procedure, expected results and priority;
Voice pushing module 400 pushes the voice of fixed field title for executing the data inputting process of fixed field
Message;
Data inputting module 600, for acquiring the Test cases technology voice data of input, to Test cases technology voice
Data carry out voice conversion process, obtain the Characters data of fixed field;
Test cases technology module 800, for using the corresponding write-in of the Characters data of fixed field to default test
In example template, test case is generated.
Above-mentioned Test cases technology device, based on carry use-case title, use case description, operating procedure, expected results with
And priority generates the executive process of multiple fixed fields, is known by voice in the default test case template of interior fixed field
The Test cases technology voice data of input is converted to text data by other technology, by the corresponding write-in of text data to default test
In the fixed field position of use-case template, the efficient life of test case is realized by the way of Multiprocessing and voice input
At.
In one of the embodiments, voice pushing module 400 be also used to by use-case title, use case description, operating procedure,
Expected results and priority are successively as execution field;The data inputting process of field is executed, push executes field name
The speech message of title.
Data inputting module 600 is also used to acquire the Test cases technology voice number of input in one of the embodiments,
According to Test cases technology voice data is converted to text data;It identifies the keyword in text data, keyword is encapsulated as
Program code segments;Code segment is written into corresponding fixed field, the Characters data of fixed field are obtained.
Data inputting module 600 is also used to obtain predetermined keyword database in one of the embodiments,;Using forward direction
Maximum matching method carries out word segmentation processing to text data, obtains multiple words;By multiple words in predetermined keyword database
It scans for, searches the word being present in predetermined keyword database as keyword.
Keyword includes Rule of judgment in one of the embodiments, and data inputting module 600 is also used to choose and key
The corresponding default clause of Rule of judgment in word;According to default clause, keyword is encapsulated as program code segments.
Data inputting module 600 is also used to carry out word fractionation to text data in one of the embodiments, obtains word
Language split result;Filter modal particle in word split result, the word after being split;It is crucial in word after identification fractionation
Word.
Above-mentioned Test cases technology device in one of the embodiments, further include:
Test case pushing module, for pushing the test case generated to the end PC.
Specific about Test cases technology device limits the limit that may refer to above for method for generating test case
Fixed, details are not described herein.Modules in above-mentioned Test cases technology device can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 5.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is used to store the interface data of default Test cases technology.The network interface of the computer equipment be used for
External terminal passes through network connection communication.To realize a kind of Test cases technology side when the computer program is executed by processor
Method.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor perform the steps of when executing computer program
Response test use-case generates request, reads default test case template, presets test case template and carries use-case name
Title, use case description, operating procedure, the fixed field of expected results and priority;
The data inputting process of fixed field is executed, and pushes fixed field title when data inputting process executes initial
Speech message;
The Test cases technology voice data for acquiring input carries out at voice conversion Test cases technology voice data
Reason, obtains the Characters data of fixed field;
By the corresponding write-in of the Characters data of fixed field into default test case template, test case is generated.
In one embodiment, it is also performed the steps of when processor executes computer program
By use-case title, use case description, operating procedure, expected results and priority successively as execution field;It executes
The data inputting process of field is executed, push executes the speech message of field name.
In one embodiment, it is also performed the steps of when processor executes computer program
The Test cases technology voice data for acquiring input, is converted to text data for Test cases technology voice data;
It identifies the keyword in text data, keyword is encapsulated as program code segments;Code segment is written to corresponding fixed field
In, obtain the Characters data of fixed field.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain predetermined keyword database;Word segmentation processing is carried out to text data using Forward Maximum Method method, is obtained more
A word;Multiple words are scanned in predetermined keyword database, lookup is present in predetermined keyword database
Word is as keyword.
In one embodiment, it is also performed the steps of when processor executes computer program
Choose default clause corresponding with Rule of judgment in keyword;According to default clause, keyword is encapsulated as program
Code segment.
In one embodiment, it is also performed the steps of when processor executes computer program
Word fractionation is carried out to text data, obtains word split result;Modal particle in word split result is filtered, is obtained
Word after fractionation;Keyword in word after identification fractionation.
In one embodiment, it is also performed the steps of when processor executes computer program
The test case generated is pushed to the end PC.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Response test use-case generates request, reads default test case template, presets test case template and carries use-case name
Title, use case description, operating procedure, the fixed field of expected results and priority;
The data inputting process of fixed field is executed, and pushes fixed field title when data inputting process executes initial
Speech message;
The Test cases technology voice data for acquiring input carries out at voice conversion Test cases technology voice data
Reason, obtains the Characters data of fixed field;
By the corresponding write-in of the Characters data of fixed field into default test case template, test case is generated.
In one embodiment, it is also performed the steps of when computer program is executed by processor
By use-case title, use case description, operating procedure, expected results and priority successively as execution field;It executes
The data inputting process of field is executed, push executes the speech message of field name.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The Test cases technology voice data for acquiring input, is converted to text data for Test cases technology voice data;
It identifies the keyword in text data, keyword is encapsulated as program code segments;Code segment is written to corresponding fixed field
In, obtain the Characters data of fixed field.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain predetermined keyword database;Word segmentation processing is carried out to text data using Forward Maximum Method method, is obtained more
A word;Multiple words are scanned in predetermined keyword database, lookup is present in predetermined keyword database
Word is as keyword.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Choose default clause corresponding with Rule of judgment in keyword;According to default clause, keyword is encapsulated as program
Code segment.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Word fractionation is carried out to text data, obtains word split result;Modal particle in word split result is filtered, is obtained
Word after fractionation;Keyword in word after identification fractionation.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The test case generated is pushed to the end PC.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, computer program to can be stored in a non-volatile computer readable
It takes in storage medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, this Shen
Please provided by any reference used in each embodiment to memory, storage, database or other media, may each comprise
Non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not
Therefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art, In
Under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection scope of the application.
Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of method for generating test case, which comprises
Response test use-case generates request, reads default Test cases technology template, and the default test case template, which carries, to be used
Example title, use case description, operating procedure, the fixed field of expected results and priority;
The data inputting process of the fixed field is executed, and pushes fixed field title when data inputting process executes initial
Speech message;
The Test cases technology voice data for acquiring input carries out at voice conversion the Test cases technology voice data
Reason, obtains the Characters data of the fixed field;
By the corresponding write-in of the Characters data of the fixed field into the default test case template, generates test and use
Example.
2. the method according to claim 1, wherein the data inputting process for executing the fixed field,
Push fixed field title speech message include:
By use-case title, use case description, operating procedure, expected results and priority successively as execution field;
The data inputting process for executing field is executed, push executes the speech message of field name.
3. the method according to claim 1, wherein it is described acquisition input Test cases technology voice data,
Voice conversion process is carried out to the Test cases technology voice data, obtains the Characters data packet of the fixed field
It includes:
The Test cases technology voice data for acquiring input, is converted to text data for the Test cases technology voice data;
It identifies the keyword in the text data, the keyword is encapsulated as program code segments and obtains the text of fixed field
Logging data obtains the Characters data of fixed field.
4. according to the method described in claim 3, it is characterized in that, the keyword in the identification text data includes:
Obtain predetermined keyword database;
Word segmentation processing is carried out to the text data using Forward Maximum Method method, obtains multiple words;
The multiple word is scanned in the predetermined keyword database, lookup is present in the predetermined keyword number
According to the word in library as keyword.
5. described by the pass according to the method described in claim 3, it is characterized in that, the keyword includes Rule of judgment
Keyword is encapsulated as program code segments
Choose default clause corresponding with Rule of judgment in the keyword;
According to the default clause, the keyword is encapsulated as program code segments.
6. according to the method described in claim 3, it is characterized in that, before keyword in the identification text data,
Further include:
Word fractionation is carried out to the text data, obtains word split result;
Filter modal particle in the word split result, the word after being split;
It is described to identify that the keyword in the text data includes:
Keyword in word after identifying the fractionation.
7. a kind of Test cases technology device, which is characterized in that described device includes:
Data read module generates request for response test use-case, reads default test case template, and the default test is used
Example template carries the fixed field of use-case title, use case description, operating procedure, expected results and priority;
Voice pushing module, for executing the data inputting process of the fixed field, the voice of push fixed field title disappears
Breath;
Data inputting module, for acquiring the Test cases technology voice data of input, to the Test cases technology voice number
According to voice conversion process is carried out, the Characters data of the fixed field are obtained;
Test cases technology module, for using the corresponding write-in of the Characters data of the fixed field to the default test
In example template, test case is generated.
8. device as claimed in claim 7, which is characterized in that voice pushing module be also used to by use-case title, use case description,
Operating procedure, expected results and priority are successively as execution field;The data inputting process for executing field is executed, is pushed away
Send the speech message for executing field name.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910559964.2A CN110399294A (en) | 2019-06-26 | 2019-06-26 | Method for generating test case, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910559964.2A CN110399294A (en) | 2019-06-26 | 2019-06-26 | Method for generating test case, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110399294A true CN110399294A (en) | 2019-11-01 |
Family
ID=68322610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910559964.2A Pending CN110399294A (en) | 2019-06-26 | 2019-06-26 | Method for generating test case, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110399294A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110874326A (en) * | 2019-11-21 | 2020-03-10 | 望海康信(北京)科技股份公司 | Test case generation method and device, computer equipment and storage medium |
CN111176996A (en) * | 2019-12-25 | 2020-05-19 | 平安普惠企业管理有限公司 | Test case generation method and device, computer equipment and storage medium |
CN111899740A (en) * | 2020-07-23 | 2020-11-06 | 深圳慕智科技有限公司 | Voice recognition system crowdsourcing test case generation method based on test requirements |
CN112102813A (en) * | 2020-07-31 | 2020-12-18 | 南京航空航天大学 | Method for generating voice recognition test data based on context in user comment |
CN112231229A (en) * | 2020-11-09 | 2021-01-15 | 恩亿科(北京)数据科技有限公司 | Web UI (user interface) automatic testing method and system, electronic equipment and readable storage medium |
CN112261214A (en) * | 2020-10-21 | 2021-01-22 | 广东商路信息科技有限公司 | Network voice communication automatic test method and system |
CN112527280A (en) * | 2020-12-16 | 2021-03-19 | 平安银行股份有限公司 | Interface display method and device, server and readable storage medium |
CN112908357A (en) * | 2021-01-19 | 2021-06-04 | 广州橙行智动汽车科技有限公司 | Instrument sound testing method and device, testing equipment and storage medium |
CN112925701A (en) * | 2019-12-06 | 2021-06-08 | 北京车和家信息技术有限公司 | Test case editing method, vehicle testing method and device |
CN113157572A (en) * | 2021-04-16 | 2021-07-23 | 中国工商银行股份有限公司 | Test case generation method and system, electronic equipment and storage medium |
CN113326206A (en) * | 2021-06-29 | 2021-08-31 | 中国农业银行股份有限公司 | Method, apparatus, storage medium, and program product for testing data processing system |
CN114327373A (en) * | 2020-09-29 | 2022-04-12 | 腾讯科技(深圳)有限公司 | Method for generating use case steps, related device, equipment and storage medium |
CN114328276A (en) * | 2022-03-10 | 2022-04-12 | 北京车智赢科技有限公司 | Test case generation method and device, and test case display method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180011780A1 (en) * | 2016-07-08 | 2018-01-11 | Accenture Global Solutions Limited | Web application test script generation to test software functionality |
CN108399131A (en) * | 2018-03-13 | 2018-08-14 | 百度在线网络技术(北京)有限公司 | Automatic test cases generation method and device |
CN109473093A (en) * | 2018-12-13 | 2019-03-15 | 平安科技(深圳)有限公司 | Audio recognition method, device, computer equipment and storage medium |
CN109522218A (en) * | 2018-10-19 | 2019-03-26 | 平安科技(深圳)有限公司 | Interface test method, device, computer equipment and storage medium |
CN109614324A (en) * | 2018-12-03 | 2019-04-12 | 北京云测网络科技有限公司 | A kind of method for generating test case and device |
CN109815127A (en) * | 2018-12-21 | 2019-05-28 | 浙江数链科技有限公司 | Automatized script conversion method, device, computer equipment and storage medium |
-
2019
- 2019-06-26 CN CN201910559964.2A patent/CN110399294A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180011780A1 (en) * | 2016-07-08 | 2018-01-11 | Accenture Global Solutions Limited | Web application test script generation to test software functionality |
CN108399131A (en) * | 2018-03-13 | 2018-08-14 | 百度在线网络技术(北京)有限公司 | Automatic test cases generation method and device |
CN109522218A (en) * | 2018-10-19 | 2019-03-26 | 平安科技(深圳)有限公司 | Interface test method, device, computer equipment and storage medium |
CN109614324A (en) * | 2018-12-03 | 2019-04-12 | 北京云测网络科技有限公司 | A kind of method for generating test case and device |
CN109473093A (en) * | 2018-12-13 | 2019-03-15 | 平安科技(深圳)有限公司 | Audio recognition method, device, computer equipment and storage medium |
CN109815127A (en) * | 2018-12-21 | 2019-05-28 | 浙江数链科技有限公司 | Automatized script conversion method, device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
杨卫华 等, 武汉:湖北科学技术出版社 * |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110874326A (en) * | 2019-11-21 | 2020-03-10 | 望海康信(北京)科技股份公司 | Test case generation method and device, computer equipment and storage medium |
CN110874326B (en) * | 2019-11-21 | 2023-10-27 | 望海康信(北京)科技股份公司 | Test case generation method and device, computer equipment and storage medium |
CN112925701B (en) * | 2019-12-06 | 2024-04-19 | 北京车和家信息技术有限公司 | Test case editing method, vehicle testing method and device |
CN112925701A (en) * | 2019-12-06 | 2021-06-08 | 北京车和家信息技术有限公司 | Test case editing method, vehicle testing method and device |
CN111176996A (en) * | 2019-12-25 | 2020-05-19 | 平安普惠企业管理有限公司 | Test case generation method and device, computer equipment and storage medium |
CN111899740A (en) * | 2020-07-23 | 2020-11-06 | 深圳慕智科技有限公司 | Voice recognition system crowdsourcing test case generation method based on test requirements |
CN112102813A (en) * | 2020-07-31 | 2020-12-18 | 南京航空航天大学 | Method for generating voice recognition test data based on context in user comment |
CN112102813B (en) * | 2020-07-31 | 2023-10-03 | 南京航空航天大学 | Speech recognition test data generation method based on context in user comment |
CN114327373A (en) * | 2020-09-29 | 2022-04-12 | 腾讯科技(深圳)有限公司 | Method for generating use case steps, related device, equipment and storage medium |
CN112261214A (en) * | 2020-10-21 | 2021-01-22 | 广东商路信息科技有限公司 | Network voice communication automatic test method and system |
CN112231229A (en) * | 2020-11-09 | 2021-01-15 | 恩亿科(北京)数据科技有限公司 | Web UI (user interface) automatic testing method and system, electronic equipment and readable storage medium |
CN112527280A (en) * | 2020-12-16 | 2021-03-19 | 平安银行股份有限公司 | Interface display method and device, server and readable storage medium |
CN112527280B (en) * | 2020-12-16 | 2023-11-07 | 平安银行股份有限公司 | Interface display method, device, server and readable storage medium |
CN112908357A (en) * | 2021-01-19 | 2021-06-04 | 广州橙行智动汽车科技有限公司 | Instrument sound testing method and device, testing equipment and storage medium |
CN113157572A (en) * | 2021-04-16 | 2021-07-23 | 中国工商银行股份有限公司 | Test case generation method and system, electronic equipment and storage medium |
CN113157572B (en) * | 2021-04-16 | 2024-02-23 | 中国工商银行股份有限公司 | Test case generation method, system, electronic equipment and storage medium |
CN113326206A (en) * | 2021-06-29 | 2021-08-31 | 中国农业银行股份有限公司 | Method, apparatus, storage medium, and program product for testing data processing system |
CN113326206B (en) * | 2021-06-29 | 2023-11-21 | 中国农业银行股份有限公司 | Test method, apparatus, storage medium and program product for data processing system |
CN114328276A (en) * | 2022-03-10 | 2022-04-12 | 北京车智赢科技有限公司 | Test case generation method and device, and test case display method and device |
CN114328276B (en) * | 2022-03-10 | 2022-05-20 | 北京车智赢科技有限公司 | Test case generation method and device, and test case display method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110399294A (en) | Method for generating test case, device, computer equipment and storage medium | |
CN109086199B (en) | Method, terminal and storage medium for automatically generating test script | |
CN110209652A (en) | Tables of data moving method, device, computer equipment and storage medium | |
CN111984239B (en) | Page configuration method, page configuration device, server and storage medium | |
CN114328276B (en) | Test case generation method and device, and test case display method and device | |
CN108629567A (en) | Declaration information processing method, device, computer equipment and storage medium | |
CN111488145A (en) | Micro-service code generation system and method based on service domain data model base | |
CN109408372A (en) | Common component test method, device, computer equipment and storage medium | |
CN110287104A (en) | Method for generating test case, device, terminal and computer readable storage medium | |
CN110297761A (en) | Acquisition methods, device, computer equipment and the storage medium of returned data | |
CN109361628A (en) | Message assemble method, device, computer equipment and storage medium | |
CN110209388A (en) | The generation method of applet file | |
CN110162730A (en) | Information processing method, device, computer equipment and storage medium | |
CN103631709A (en) | Method and system for testing double-kernel browser | |
CN107341100A (en) | The collocation method and device of camera parameter | |
CN109815126A (en) | Method for testing software, device, computer equipment and storage medium | |
WO2019019955A1 (en) | Gesture test method and apparatus, computer device and storage medium | |
CN109815127A (en) | Automatized script conversion method, device, computer equipment and storage medium | |
CN112784527B (en) | Document merging method and device and electronic equipment | |
CN113849415A (en) | Control testing method and device, storage medium and electronic equipment | |
CN112114794B (en) | Automatic generation method and device of website application program and computer storage medium | |
CN114371866A (en) | Version reconfiguration test method, device and equipment of service system | |
CN112445461A (en) | Business rule generation method and device, electronic equipment and readable storage medium | |
CN113126979B (en) | Visual business building system capable of achieving secondary programming by separating from server | |
CN111651360B (en) | Test method, test device, electronic equipment and medium |
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: 20191101 |