CN110471838A - Method of calibration, device, computer equipment and the storage medium of test case - Google Patents
Method of calibration, device, computer equipment and the storage medium of test case Download PDFInfo
- Publication number
- CN110471838A CN110471838A CN201910611744.XA CN201910611744A CN110471838A CN 110471838 A CN110471838 A CN 110471838A CN 201910611744 A CN201910611744 A CN 201910611744A CN 110471838 A CN110471838 A CN 110471838A
- Authority
- CN
- China
- Prior art keywords
- test case
- case
- error
- test
- preset
- 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
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
- 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/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
This application involves method of calibration, device, computer equipment and the storage mediums of a kind of test case based on research and development management.The described method includes: when detecting the operational order for calling test case in terminal, corresponding test case is obtained from test case data library according to operational order, the preset reference use-case that will acquire is compared with test case, generate comparison result, by parsing the first comparison result, there are Problem-Errors in acquisition test case, determine the position location of Problem-Error, according to the position location of Problem-Error and Problem-Error, it generates verification journal file and stores, by parsing the second comparison result, obtain the parsing result that there is no Problem-Error in test case, respond the operational order for calling test case.Mistake present in use-case can be detected in time using this method, and guarantee the specification of test case, further realize efficient test.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of method of calibration of test case, device, computer
Equipment and storage medium.
Background technique
With the development of computer technology and the extensive use to each software systems, for the normal operation for guaranteeing software systems
And application, the test carried out for different software system become more important.Existing test needs to be used by means of test mostly
Example is realized, for example, the editing machine that different developers use is different the realization of basic Python test case during,
Writing style is also inconsistent, it is thus possible to the problem of there is the test case write, being unable to satisfy the syntax gauge of Python, this
When executing all test cases by actuator, it may appear that because test case script is lack of standardization, test case is caused to execute mistake
It loses, so that entire implementation procedure is interrupted, reduces the working efficiency of software system test.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of school of test case that can be improved testing efficiency
Test method, apparatus, computer equipment and storage medium.
A kind of method of calibration of test case, which comprises
When detecting the operational order for calling test case, according to the operational order from test case data library
It is middle to obtain corresponding test case;
Preset reference use-case is obtained, and the preset reference use-case is compared with the test case, generates and compares
As a result;The reference use-case includes preset standard specification, for verifying to the test case;
The comparison result is parsed, when obtaining in the test case obtaining institute there are when the parsing result of Problem-Error
Problem-Error existing for test case is stated, determines position location of the Problem-Error in the test case, and according to institute
Problem-Error and the position location are stated, verification journal file is generated;
When parsing the comparison result, the parsing result that there is no Problem-Error in the test case is obtained, responds institute
State the operational order for calling test case.
The acquisition preset reference use-case in one of the embodiments, and by the preset reference use-case and the survey
Example on probation is compared, and generates comparison result, comprising:
Obtain the first standard criterion corresponding with the reference use-case and the second standard criterion;
The test case is traversed line by line, using first standard criterion to the first trip of the test case into
Row verification, judges whether the first trip of the test case is arranged preset character code sentence;
Using second standard criterion, the annotation section of the test case is verified, judges the test case
Annotation section whether default use-case information is set;The default use-case information includes use-case title, use-case settling time, developer
And use-case step;
When determining the not set preset characters code statement of the test case first trip according to first standard criterion, with
And according to second standard criterion, when determining the not set default use-case information of the annotation section of the test case, first is obtained
Comparison result;
When determining that preset characters code statement has been arranged in the test case first trip according to first standard criterion, with
And second is obtained when determining that default use-case information has been arranged in the annotation section of the test case according to second standard criterion
Comparison result.
The acquisition preset reference use-case in one of the embodiments, and by the preset reference use-case and the survey
Example on probation is compared, and generates comparison result, further includes:
Third standard criterion corresponding with the reference use-case is obtained, using the third standard criterion, to the test
The method that use-case carries is verified, and judges the test case, if carry preset initial method, the use-case side of execution
Method, restores initial method and class name in the use-case execution method and whether corresponding script file title is consistent;
When determining that the test case does not carry preset initial method, use-case is held according to the third standard criterion
Class name and corresponding script file title of the row method with recovery initial method and in the use-case execution method are inconsistent
When, obtain the first comparison result;
When according to the third standard criterion, determining that the test case carries preset initial method, use-case executes
When class name in method and recovery initial method and the use-case execution method is consistent with corresponding script file title, obtain
To the second comparison result.
It is described when detecting the operational order for calling test case in one of the embodiments, according to described
Operational order obtains corresponding test case from test case data library, comprising:
When detecting the operational order for calling test case, the operational order is identified, and obtain and the behaviour
Make to instruct corresponding user's operation;
Obtain the first mapping table of the user's operation and test case;
According to first mapping table, test corresponding with the user's operation is obtained from test case data library
Use-case.
The parsing comparison result in one of the embodiments, when obtaining in the test case, there are mistakes
When the parsing result of problem, Problem-Error existing for the test case is obtained, determines that the Problem-Error is used in the test
Position location in example, and according to the Problem-Error and the position location, generate verification journal file, comprising:
The comparison result is parsed, when obtaining in the test case there are when the parsing result of Problem-Error,
The first Problem-Error existing for the test case first trip is obtained, and first Problem-Error is positioned at head
Row obtains the position location of first Problem-Error;
It obtains the second Problem-Error existing for the test case annotation section and institute is obtained according to the default use-case information
State the position location of the second Problem-Error;
Third Problem-Error present in the method that the test case carries is obtained, and obtains the third Problem-Error
Position location.
In one of the embodiments, described according to the Problem-Error and the Problem-Error in the test
Position location in use-case, after generating verification journal file and storing, further includes:
The title of the test case is extracted, and the name of the test case is referred to as keyword;
The verification journal file is traversed according to the keyword, obtains Problem-Error corresponding with the keyword;
Reparation corresponding with the Problem-Error is matched from database to suggest;By the verification journal file and corresponding
It repairs and suggests, be sent to developer.
The title for extracting the test case in one of the embodiments, and by the title of the test case
As keyword, comprising:
Obtain the second mapping table of title and test case;
From second mapping table, corresponding with test case title is extracted, and by the test case
It is configured to receive the form into ginseng;
The name of the test case is referred to as keyword.
A kind of calibration equipment of test case, described device include:
Test case obtains module, for when detecting the operational order for calling test case, according to the behaviour
It instructs and obtains corresponding test case from test case data library;
Comparison module is carried out for obtaining preset reference use-case, and by the preset reference use-case and the test case
It compares, generates comparison result;The reference use-case includes preset standard specification, for verifying to the test case;
First parsing module, for parsing the comparison result, when obtaining in the test case, there are Problem-Errors
When parsing result, Problem-Error existing for the test case is obtained, determines the Problem-Error in the test case
Position location, and according to the Problem-Error and the position location, generate verification journal file;
Second parsing module, for obtaining not there is no Problem-Error in the test case when parsing the comparison result
Parsing result, response is described for calling the operational order of test case.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
When detecting the operational order for calling test case, according to the operational order from test case data library
It is middle to obtain corresponding test case;
Preset reference use-case is obtained, and the preset reference use-case is compared with the test case, generates and compares
As a result;The reference use-case includes preset standard specification, for verifying to the test case;
The comparison result is parsed, when obtaining in the test case obtaining institute there are when the parsing result of Problem-Error
Problem-Error existing for test case is stated, determines position location of the Problem-Error in the test case, and according to institute
Problem-Error and the position location are stated, verification journal file is generated;
When parsing the comparison result, the parsing result that there is no Problem-Error in the test case is obtained, responds institute
State the operational order for calling test case.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
When detecting the operational order for calling test case, according to the operational order from test case data library
It is middle to obtain corresponding test case;
Preset reference use-case is obtained, and the preset reference use-case is compared with the test case, generates and compares
As a result;The reference use-case includes preset standard specification, for verifying to the test case;
The comparison result is parsed, when obtaining in the test case obtaining institute there are when the parsing result of Problem-Error
Problem-Error existing for test case is stated, determines position location of the Problem-Error in the test case, and according to institute
Problem-Error and the position location are stated, verification journal file is generated;
When parsing the comparison result, the parsing result that there is no Problem-Error in the test case is obtained, responds institute
State the operational order for calling test case.
Method of calibration, device, computer equipment and the storage medium of above-mentioned test case, by will be from test case data
Corresponding test case is obtained in library and preset reference use-case is compared, and judges whether the specification of test case meets reference
The preset standard specification that use-case includes.It is tested by the specification to test case, avoids writing habit because of developer not
Together, test case is caused mistake occur, so that the case where test is interrupted.When obtaining the solution in test case there are Problem-Error
When analysing result, Problem-Error existing for test case is obtained, and determines position location of the Problem-Error in test case, exploitation
The journal file that personnel can generate according to Problem-Error and position location, solves Problem-Error present in test case in time,
Guarantee the smooth execution of test.And when parsing comparison result, the parsing result that there is no Problem-Error in test case is obtained, is rung
Applied to the operational order for calling test case, it will be used in actual test scene by the test case examined, ensure that survey
The specification of example on probation, and improve testing efficiency.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for calibration of test case in one embodiment;
Fig. 2 is the flow diagram of the method for calibration of test case in another embodiment;
Fig. 3 is the structural block diagram of the calibration equipment of test case in one embodiment;
Fig. 4 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.
The method of calibration of test case provided by the present application can be applied in the debugging terminal of development process.Wherein, when
When detecting the operational order for calling test case, corresponding survey is obtained from test case data library according to operational order
Example on probation.Preset reference use-case is obtained, and preset reference use-case is compared with test case, generates comparison result, is compared
It as a result include the first comparison result and the second comparison result.By parsing the first comparison result, obtain the presence of mistake in test case
The accidentally parsing result of problem, and Problem-Error existing for test case is obtained, determine positioning of the Problem-Error in test case
Position, and the position location according to Problem-Error and Problem-Error in test case generate verification journal file and deposit
Storage.By parsing the second comparison result, the parsing result that there is no Problem-Error in test case is obtained, and respond for calling
The operational order of test case.Wherein, terminal can be, but not limited to be various personal computers, laptop, smart phone,
Tablet computer and portable wearable device.
In one embodiment, as shown in Figure 1, providing a kind of method of calibration of test case, it is applied in this way
It is illustrated for terminal, comprising the following steps:
S102, when detecting the operational order for calling test case, according to operational order from test case data
Corresponding test case is obtained in library.
Specifically, when detecting the operational order for calling test case in terminal, operational order is identified, and obtain
User's operation corresponding with operational order, while the first mapping table of user's operation and test case is obtained, and according to
One mapping table obtains test case corresponding user's operation from test case data library.
Wherein, it when user is when terminal is executed to the test operation of different application, needs to call and different application journey
The corresponding test case of sequence.The test operation that terminal can be executed according to user, detects for calling the operation of test case to refer to
It enables, when detecting operational order, terminal can extract corresponding test from test case data library and use according to operational order
Example.For example user is on the mobile terminal device, when needing to test music player, will use music player and carries out sound
It is happy when playing, it is necessary first to middle acquisition audio file be locally stored from equipment, then select the audio file and click play is pressed
Button, in fact it could happen that be locally stored it is middle without any audio file the case where or audio file formats do not meet player requirement, cause
The case where playing failure, can first call the test case for music player to be tested, after excluding above-mentioned Problem-Error,
So that music player can be delivered to a large number of users carry out using.
Therefore, corresponding test case is needed to be implemented for the test operation of different application for user, by from
Corresponding test case is obtained in test case data library, and is tested, when user can be used corresponding application program,
The various abnormal problems that will appear record in advance, and mark or provide corresponding solution, can issue and mention in the respective cases
Show message, so that user can learn abnormal scheme truth condition of determining in time, is solved the problems, such as when according to the solution of offer.
S104 obtains preset reference use-case, and preset reference use-case is compared with test case, generates and compares knot
Fruit includes preset standard specification with reference to use-case, for verifying to test case.
Specifically, preset standard specification includes the first standard criterion, the second standard criterion and third standard criterion.Terminal is logical
Acquisition the first standard criterion corresponding with reference use-case, the second standard criterion and third standard criterion are crossed, to test case
Specification is verified.Wherein, the first standard criterion is for verifying the first trip of test case, the second standard criterion for pair
The annotation section of test case is verified, and the method that third standard criterion is used to carry test case verifies.
Wherein, according to the requirement of preset first standard criterion, all use-case first trips are to encode comment statement such as: #_*_
coding:utf-8_*_.It is verified for the annotation section of test case, according to the second standard criterion, program is used by reading
Section is annotated in example, the annotation of use-case is carried out judging whether to walk comprising use-case title, use-case settling time, developer and use-case
The information such as rapid.
According to third standard criterion, whether program is by judging in test case to include the side initial method i.e. init ()
Method, use-case execute method, that is, setup () method, and restore initial method, that is, teardown () method.Init () method
For prerequisite to be arranged, it is equivalent to initialization step.Setup () method refers to the step of use-case executes, i.e. verifying step
Suddenly.Teardown () method, for restoring test environment to original state, i.e. recovery initialization step.
Further, by being traversed line by line to test case, the first trip using the first standard criterion to test case
It is verified, judges whether the first trip of test case is arranged preset character code sentence.
Using the second standard criterion, the annotation section of test case is verified, judge test case annotation section whether
Default use-case information is set;Default use-case information includes use-case title, use-case settling time, developer and use-case step.
Third standard criterion corresponding with reference use-case is obtained, using third standard criterion, the side that test case is carried
Method is verified, and judges test case, and if preset initial method, use-case execution method are carried, initial method is restored,
And the class name in use-case execution method and corresponding script file title it is whether consistent.
When according to the first standard criterion, the not set preset characters code statement of discriminating test use-case first trip is marked according to second
Quasi- specification, the not set default use-case information of the annotation section of discriminating test use-case and when according to third standard criterion, discriminating test
Use-case does not carry preset initial method, use-case executes method and restores in initial method and use-case execution method
When class name and inconsistent corresponding script file title, the first comparison result is obtained.
When according to the first standard criterion, preset characters code statement has been arranged, according to the second mark in discriminating test use-case first trip
Quasi- specification, the annotation section of discriminating test use-case have been arranged default use-case information and when according to third standard criterion, discriminating tests
Use-case carries preset initial method, use-case executes method and restores the class in initial method and use-case execution method
When name is consistent with corresponding script file title, the second comparison result is obtained.
S106 parses comparison result, and when obtaining in test case, there are when the parsing result of Problem-Error, obtain test to use
Problem-Error present in example, determines position location of the Problem-Error in test case, soldier is according to Problem-Error and sprocket bit
It sets, generates verification journal file.
Specifically, terminal is not met in preset standard specification wherein by parsing comparison result when obtaining test case
At one, need to obtain Problem-Error existing for test case.Wherein, it when test case does not meet the first standard criterion, obtains
The first Problem-Error existing for test case first trip is taken, and by the first trip that is positioned at of the first Problem-Error, obtains the first mistake and asks
The position location of topic.When test case does not meet the second standard criterion, the second mistake existing for test case annotation section is obtained
Problem obtains the position location of the second Problem-Error according to default use-case information.When test case does not meet third standard criterion
When, third Problem-Error present in the method that test case carries is obtained, and obtain the position location of third Problem-Error.
Further, when the first trip of use-case, the coding comment statement being not added in preset standard specification, when verification, can be issued
Prompt, there is shown it is now abnormal, it according to standard criterion is verified for use-case the first row, it can be seen that there is abnormal problem
Position is the first row of use-case.
When the annotation section part of use-case, when only including that use-case information is preset in part, wherein default use-case information includes use-case
Title, use-case settling time, developer and use-case step.Program will acquire the default use-case information of missing, and judge specific
The default use-case information of missing obtains the position location of the default use-case information of missing in annotation section.
When not carrying preset initial method, use-case execution method in test case or restoring initial method, obtain
The method that must be lacked, and obtain deletion sites, the as position location of Problem-Error.Method is executed for use-case, also needs to judge
Whether class name and corresponding script file title are consistent in this method, and when inconsistent, the position location of Problem-Error is second party
Method present position.
S108 obtains the parsing result that there is no Problem-Error in test case when parsing comparison result, and responds and be used for
Call the operational order of test case.
Specifically, it when terminal parsing comparison result, obtains that Problem-Error, i.e. test case first trip are not present in test case
Preset characters code statement has been set, annotation section has been arranged default use-case information and has carried preset initial method, use
Example executes method and restores initial method, and when the class name in use-case execution method is consistent with corresponding script file title, whole
The operational order for being used to call test case that end response detects, completes the test operation of test case, will pass through inspection
Test case is applied in actual test scene.
In the method for calibration of above-mentioned test case, it is taken in and detects the operational order for calling test case in terminal
When, by the way that corresponding test case will be obtained from test case data library and preset reference use-case is compared, judge to test
Whether the specification of use-case meets the preset standard specification for including with reference to use-case.It is tested, is kept away by the specification to test case
Exempt to write habit difference because of developer, and test case is caused mistake occur, so that the problem of test is interrupted.When being tested
There are when the parsing result of Problem-Error in use-case, Problem-Error existing for test case is obtained, and determines that Problem-Error is being surveyed
Position location in example on probation, the journal file that developer can generate according to Problem-Error and position location, solves to survey in time
Problem-Error present in example on probation, guarantees the smooth execution of test.And when parsing comparison result, it obtains not depositing in test case
In the parsing result of Problem-Error, the operational order for calling test case is responded, will be used for by the test case examined
In actual test scene, the specification of test case ensure that, and improve testing efficiency.
In one embodiment, as shown in Fig. 2, providing a kind of method of calibration of test case, this method is according to mistake
Accidentally problem and position location further include the steps that following S202 to S206 after generating verification journal file:
S202 extracts the title of test case, and the name of test case is referred to as keyword.
S204 traverses verification journal file according to keyword, obtains Problem-Error corresponding with keyword.
Specifically, terminal is by extracting the title of test case, and the name of test case is referred to as keyword, available
Keyword traversal verification journal file, obtains Problem-Error corresponding with keyword from verification journal file.Such as
The test case camera001 of camera obtains the corresponding mistake of the test case using camera001 from verification journal file
Accidentally problem, including any problem or multiple problems in the first Problem-Error, the second Problem-Error and third Problem-Error.
Wherein, first trip of the first problem to application examples, i.e., when the first trip of use-case, the coding being not added in preset standard specification
Comment statement, when verification, can issue prompt, there is shown now abnormal.Second Problem works as use-case to the annotation section part of application examples
Annotation section part, when only including that use-case information is preset in part, verification issues abnormal prompt.Third problem corresponds to test case
The mode of carrying, i.e., when test case does not carry preset all methods, verification occurs abnormal.
S206 matches corresponding with Problem-Error reparations from database and suggests, and will verify journal file and corresponding
It repairs and suggests, be sent to developer.
Specifically, terminal is to multiple abnormal problems that after the verification of use-case, terminal be will acquire and corresponding abnormal
The positioning of problem, the also settable amending advice for solving abnormal problem will be more respectively using the name of different use-cases as keyword
In a abnormal problem, the positioning of corresponding abnormal problem and amending advice write-in journal file, verification log is formed, and be stored in this
In ground database, correspondence is finally sent to by Inner email according to the Author value (developer) of comment section in case script
The mailbox of developer.
Wherein, when detecting abnormal problem, if it find that liking four lattice sky in script with the personal habit of writing of developer
Case is replaced with tab key, can execute mistake, this mistake after tab key line feed is usually found during Python script execution
Actuator can be automatically repaired this kind of mistake after the completion of by entire script execution, and test case, which is worked as, detects this mistake
When, code self-healing is adjusted, by finding all mistakes, then all mistakes are traversed again, it is this when encountering
When the mistake of space, script file is just modified, is replaced.
The method of calibration of above-mentioned test case specification utilizes keyword by the way that the name of test case is referred to as keyword
Traversal verification journal file, obtains corresponding Problem-Error and position location, and matching is corresponding with Problem-Error from database
Reparation suggestion, and will verification journal file and corresponding reparations suggestion, be sent to developer, developer know Problem-Error and
When positioning, judge whether corresponding reparation suggestion is feasible, can correct the problem in test process in time, improve system
Stability.
In one embodiment, a kind of acquisition preset reference use-case is provided, and by preset reference use-case and test case
The step of being compared, generating comparison result, comprising:
Obtain the first standard criterion corresponding with reference use-case and the second standard criterion;Test case is carried out line by line time
It goes through, the first trip of test case is verified using the first standard criterion, it is preset to judge whether the first trip of test case is arranged
Character code sentence;Using the second standard criterion, the annotation section of test case is verified, judges the annotation section of test case
Whether use-case information is preset in setting;Default use-case information includes use-case title, use-case settling time, developer and use-case step
Suddenly;
When according to the first standard criterion, the not set preset characters code statement of discriminating test use-case first trip, and according to
Two standard criterions when the not set default use-case information of the annotation section of discriminating test use-case, obtain the first comparison result;
When according to the first standard criterion, preset characters code statement has been arranged in discriminating test use-case first trip, and according to
Two standard criterions when default use-case information has been arranged in the annotation section of discriminating test use-case, obtain the second comparison result.
Specifically, the first comparison result indicates to need to record Problem-Error there are Problem-Error in test case,
And position location of the Problem-Error in test case is obtained, according to the position location of Problem-Error and Problem-Error, generate school
Journal file is tested, developer can propose corresponding solution according to verification journal file.Second comparison result indicates test
Problem-Error is not present in use-case, can direct respective calls test case operational order, realize that the test to test case is grasped
Make.
Wherein, for verifying to the first trip of test case, the second standard criterion is used for test the first standard criterion
The annotation section of use-case is verified.For terminal according to the requirement of preset first standard criterion, all use-case first trips are coding note
Release sentence such as: #_*_coding:utf-8_*_.It is verified for the annotation section of test case, according to the second standard criterion, journey
Sequence annotates section by reading in use-case, judge whether comprising use-case title, use-case settling time, exploitation to the annotation of use-case
The information such as person and use-case step.
The following are the examples for giving file notes part:
”'@createTime:Created on 2016-7-26
@author:Jennifer
@Desc:
Steps:1、
2、
3、”'
The annotation section part of use-case file must include: createTime (use-case creation time), author (developer)
And Steps (use-case step), and when verifying use-case step, it is necessary to include such as " 1,2,3, " form the step of, when detecting not
When having corresponding step, then it represents that mistake occur, need misregistration information, including wrong line number or position location.
Further, when the first trip of use-case, the coding comment statement being not added in preset standard specification, when verification, can be issued
Prompt, there is shown it is now abnormal, it according to standard criterion is verified for use-case the first row, it can be seen that there is abnormal problem
Position is the first row of use-case.
When the annotation section part of use-case, when only including that use-case information is preset in part, wherein default use-case information includes use-case
Title, use-case settling time, developer and use-case step.Program will acquire the default use-case information of missing, and judge specific
The default use-case information of missing obtains the position location of the default use-case information of missing in annotation section.
Above-mentioned acquisition preset reference use-case, and preset reference use-case is compared with test case, generate comparison result
The step of, by obtaining the first standard criterion corresponding with reference use-case and the second standard criterion, and according to the first standard criterion
With the second standard criterion, test case is verified, when test case does not pass through the first standard criterion or not by the second mark
When the verification of quasi- specification, the first comparison result is generated, it is on the contrary then generate the second comparison result.Since the reference use-case of setting includes
Multiple preset standard criterions, are compared using reference use-case and test case, can determine whether test case, if existed not
Meet the situation with reference to the corresponding standard criterion of use-case, convenient for being modified in time to test case, improves testing efficiency.
In one embodiment, a kind of acquisition preset reference use-case is provided, and by preset reference use-case and test case
The step of being compared, generating comparison result, further includes:
Third standard criterion corresponding with reference use-case is obtained, using third standard criterion, the side that test case is carried
Method is verified, and judges test case, and if preset initial method, use-case execution method are carried, initial method is restored,
And the class name in use-case execution method and corresponding script file title it is whether consistent;
When according to third standard criterion, discriminating test use-case does not carry preset initial method, use-case executes method and
When restoring initial method and class name and inconsistent corresponding script file title in use-case execution method, the first ratio is obtained
To result;
When according to third standard criterion, discriminating test use-case carries preset initial method, use-case executes method and extensive
When class name in multiple initial method and use-case execution method is consistent with corresponding script file title, the second comparison knot is obtained
Fruit.
Wherein, according to third standard criterion, whether program is by judging in test case to include initial method i.e. init
() method, use-case execute method, that is, setup () method, and restore initial method, that is, teardown () method.init()
Method is equivalent to initialization step for prerequisite to be arranged.Setup () method refers to the step of use-case executes, that is, verifies
Step.Teardown () method, for restoring test environment to original state, i.e. recovery initialization step.When in test case
When not carrying preset initial method, use-case execution method or restoring initial method, the method for obtaining missing, and lacked
It is unsceptered to set, the as position location of Problem-Error.Method is executed for use-case, also needs to judge class name and corresponding foot in this method
Whether this document title is consistent, and when inconsistent, the position location of Problem-Error is second method present position.
Further, with the initial method in case script, i.e. init () method is equivalent to for prerequisite to be arranged
Initialization step, prerequisite refer to that test case during execution, needs to be arranged preset scene, usually exists
It is completed inside init () method, such as executes the use-case that Camera takes pictures, the movement of prerequisite needs to empty mobile phone figure
The movement of all pictures in library is exactly the prerequisite in a use-case.
The use-case at test case midpoint executes method, i.e. setup () method, refers to the step of use-case executes, that is, verifies
Step.Restore initial method, i.e. teardown () method, for restoring test environment to original state, that is, restores initialization
Step needs to return to original state mobile terminal device in teardown () method, and the operation needed to be implemented is will to answer
With closing, cache information is then removed, mobile terminal device is restored to the state before use-case executes.
For teardown () method, when the test case for executing a music, it is assumed that set the shape of mobile phone most initial
State is a new cell-phone, does not have any audio file in mobile phone, and the prerequisite for executing use-case is to need to be inserted into an audio
File is then the application for opening music player first in use-case step into the memory of mobile phone, opens music list, selection
Whether audio file, click play knob, verifying audio play whether have abnormal frame on success or the page;Label use-case is held
It is capable as a result, last return to original state mobile phone, music player is closed first, then removes cache information, is deleted
Mobile phone is restored to the state before use-case executes by the audio file of load.
Above-mentioned acquisition preset reference use-case, and preset reference use-case is compared with test case, generate comparison result
The step of, test case is carried out by obtaining third standard criterion corresponding with reference use-case, and according to third standard criterion
Verification generates the first comparison result when test case does not pass through the verification of third standard criterion, and on the contrary then generation second compares
As a result.Since the reference use-case of setting includes preset standard criterion, it is compared using reference use-case and test case, it can
Judge test case, if there is the situation not met with reference to the corresponding standard criterion of use-case, convenient for being modified in time, improve
Testing efficiency.
In one embodiment, provide it is a kind of when detecting the operational order for calling test case, according to behaviour
Instruct the step of obtaining corresponding test case from test case data library, comprising:
When detecting the operational order for calling test case in terminal, operational order is identified, and obtain and operate
Instruct corresponding user's operation;Obtain the first mapping table of user's operation and test case;According to the first mapping table,
Test case corresponding user's operation is obtained from test case data library.
Specifically, it when user is when terminal is executed to the test operation of different application, needs to call and different application
The corresponding test case of program.Wherein, terminal can obtain the first mapping relations of user's operation and test case from database
Table, and according to the first mapping table, test case corresponding user's operation is obtained from test case data library.
Further, the test operation that terminal can be executed according to user, detects for calling the operation of test case to refer to
It enables.When detecting operational order, terminal can extract corresponding test from test case data library and use according to operational order
Example.For example user is on the mobile terminal device, when needing to test music player, will use music player and carries out sound
It is happy when playing, it is necessary first to middle acquisition audio file be locally stored from equipment, then select the audio file and click play is pressed
Button, in fact it could happen that be locally stored it is middle without any audio file the case where or audio file formats do not meet player requirement, cause
The case where playing failure, can first call the test case for music player to be tested, after excluding above-mentioned Problem-Error,
So that music player can be delivered to a large number of users carry out using.
It is above-mentioned when detecting the operational order for calling test case, according to operational order from test case data library
The step of middle acquisition corresponding test case, for user for the test operation of different application, from test case data
Obtain corresponding test case in library, and tested, can by user use corresponding application program when, it may appear that it is various
Abnormal problem records in advance, and marks or provide corresponding solution, can issue prompting message in the respective cases, so that with
Family can learn abnormal scheme truth condition of determining in time, solve the problems, such as when according to the solution of offer.
In one embodiment, a kind of parsing comparison result is provided, it is wrong when obtaining existing in the test case
Accidentally when the parsing result of problem, Problem-Error existing for the test case is obtained, determines the Problem-Error in the test
Position location in use-case, and according to the Problem-Error and the position location, the step of verifying journal file is generated,
Include:
Comparison result is parsed, when obtaining test case and not meeting one of them in preset standard specification, needs to obtain
Problem-Error existing for test case.Wherein, it when test case does not meet the first standard criterion, obtains test case first trip and deposits
The first Problem-Error obtain the position location of the first Problem-Error and by the first trip that is positioned at of the first Problem-Error.Work as survey
When example on probation does not meet the second standard criterion, the second Problem-Error existing for test case annotation section is obtained, according to default use-case
Information obtains the position location of the second Problem-Error.When test case does not meet third standard criterion, obtains test case and take
Third Problem-Error present in the method for band, and obtain the position location of third Problem-Error.
Specifically, when the first trip of use-case, the coding comment statement being not added in preset standard specification, when verification, which can issue, to be mentioned
Show, there is shown it is now abnormal, it according to standard criterion is verified for use-case the first row, it can be seen that there is the position of abnormal problem
It is set to the first row of use-case.
When the annotation section part of use-case, when only including that use-case information is preset in part, wherein default use-case information includes use-case
Title, use-case settling time, developer and use-case step.Program will acquire the default use-case information of missing, and judge specific
The default use-case information of missing obtains the position location of the default use-case information of missing in annotation section.
When not carrying preset initial method, use-case execution method in test case or restoring initial method, obtain
The method that must be lacked, and obtain deletion sites, the as position location of Problem-Error.Method is executed for use-case, also needs to judge
Whether class name and corresponding script file title are consistent in this method, and when inconsistent, the position location of Problem-Error is second party
Method present position.
In above-mentioned steps, by parsing comparison result, obtain in institute's test case that there are first, second and third mistakes
Problem, and first, second and position location of the third Problem-Error in test case are determined respectively.It is every due to being accurate to
The positioning of a Problem-Error, the mistake in distinct methods that first trip, annotation section and test case including test case carry
Problem is conducive to the subsequent solution for Problem-Error, and solution can be applied to corresponding position location.
In one embodiment, a kind of title for extracting test case is provided, and the name of test case is referred to as closing
The step of key word, comprising:
Obtain the second mapping table of title and test case;From the second mapping table, extraction and test case
Corresponding title, and test case is configured to receive the form into ginseng;The name of test case is referred to as keyword.
Specifically, terminal obtains the second mapping table of title and test case from database, and maps from second
In relation table, title corresponding with test case is extracted.In turn, test case corresponding with title is obtained from database, and
Test case is configured to receive the form into ginseng.Since user can input the operational order to different application in terminal,
Corresponding test case is also inconsistent.For example, when user is taken pictures using camera on the mobile terminal device, corresponding test
The name of code of use-case is related to camera, and user using music player carry out music when, corresponding test case
Name of code then should be related to music.
Further, terminal is by way of being configured to receive ginseng for test case, when Run Script it is transmittable so
Required single or batch case script is read by all test cases under file where traverse path in the path of use-case,
And it is verified.For batch case script, it will can first read all test cases and put in a list, then execute again
The verification of test case.It, can be by the absolute path of the single script of acquisition, directly according to the exhausted of test case for single script
Corresponding test case is obtained to path, which is verified.
The title of said extracted test case, and in the step of name of test case is referred to as keyword, pass through acquisition
Second mapping table of title and test case, and from the second mapping table, title corresponding with test case is extracted,
And test case is configured to receive the form into ginseng, the name of test case is referred to as keyword.For the survey of different names
Example on probation, is referred to as keyword with name, is conducive to subsequent acquisition and verification to test case, further increases testing efficiency.
It should be understood that although each step in the flow chart of Fig. 1-2 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. 1-2
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.
In one embodiment, as shown in figure 3, providing a kind of calibration equipment of test case, including test case obtains
Modulus block 302, comparison module 304, the first parsing module 306 and the second parsing module 308, in which:
Test case obtains module 302, for when detecting the operational order for calling test case, according to operation
Instruction obtains corresponding test case from test case data library.
Comparison module 304 is compared for obtaining preset reference use-case, and by preset reference use-case with test case,
Comparison result is generated, includes preset standard specification with reference to use-case, for being verified to test case.
First parsing module 306, for parsing the comparison result, when obtaining in the test case, there are Problem-Errors
Parsing result when, obtain Problem-Error existing for the test case, determine the Problem-Error in the test case
Position location generate verification journal file and according to the Problem-Error and the position location;
Second parsing module 308, for obtaining not asking in the presence of mistake in the test case when parsing the comparison result
The parsing result of topic, response are described for calling the operational order of test case.
In the calibration equipment of above-mentioned test case, by the way that corresponding test case will be obtained from test case data library,
It is compared with preset reference use-case, judges whether the specification of test case meets the preset standard specification for including with reference to use-case.
It is tested by the specification to test case, avoids writing habit difference because of developer, and it is wrong to cause test case to occur
Accidentally, so that the problem of test is interrupted.When obtaining in test case, there are when the parsing result of Problem-Error, obtain test case to deposit
Problem-Error, and determine position location of the Problem-Error in test case, developer can be according to Problem-Error and fixed
The journal file that position position generates, solves Problem-Error present in test case in time, guarantees the smooth execution of test.And work as
Comparison result is parsed, the parsing result that there is no Problem-Error in test case is obtained, responds the behaviour for calling test case
It instructs, will be used in actual test scene by the test case examined, ensure that the specification of test case, and improve test
Efficiency.
In one embodiment, a kind of test case acquisition module is provided, is also used to:
When detecting the operational order for calling test case, operational order is identified, and obtain and operational order pair
The user's operation answered;Obtain the first mapping table of user's operation and test case;According to the first mapping table, from test
Test case corresponding user's operation is obtained in case data library.
Above-mentioned test case obtains module, for user for the test operation of different application, from test case number
According to obtaining corresponding test case in library, and tested, when user can be used corresponding application program, it may appear that it is each
Kind abnormal problem records in advance, and marks or provide corresponding solution, can issue prompting message in the respective cases, so that
User can learn abnormal scheme truth condition of determining in time, solve the problems, such as when according to the solution of offer.
In one embodiment, a kind of comparison module is provided, is also used to:
Obtain the first standard criterion corresponding with reference use-case and the second standard criterion;Test case is carried out line by line time
It goes through, the first trip of test case is verified using the first standard criterion, it is preset to judge whether the first trip of test case is arranged
Character code sentence;Using the second standard criterion, the annotation section of test case is verified, judges the annotation section of test case
Whether use-case information is preset in setting;Default use-case information includes use-case title, use-case settling time, developer and use-case step
Suddenly;
When according to the first standard criterion, the not set preset characters code statement of discriminating test use-case first trip, and according to
Two standard criterions when the not set default use-case information of the annotation section of discriminating test use-case, obtain the first comparison result;
When according to the first standard criterion, preset characters code statement has been arranged in discriminating test use-case first trip, and according to
Two standard criterions when default use-case information has been arranged in the annotation section of discriminating test use-case, obtain the second comparison result.
In above-mentioned comparison module, since the reference use-case of setting includes multiple preset standard criterions, used using reference
Example and test case are compared, and can determine whether test case, if there are the feelings not met with reference to the corresponding standard criterion of use-case
Shape improves testing efficiency convenient for being modified in time to test case.
In one embodiment, a kind of comparison module is additionally provided, is also used to:
Third standard criterion corresponding with reference use-case is obtained, using third standard criterion, the side that test case is carried
Method is verified, and judges test case, and if preset initial method, use-case execution method are carried, initial method is restored,
And the class name in use-case execution method and corresponding script file title it is whether consistent;
When according to third standard criterion, discriminating test use-case does not carry preset initial method, use-case executes method and
When restoring initial method and class name and inconsistent corresponding script file title in use-case execution method, the first ratio is obtained
To result;
When according to third standard criterion, discriminating test use-case carries preset initial method, use-case executes method and extensive
When class name in multiple initial method and use-case execution method is consistent with corresponding script file title, the second comparison knot is obtained
Fruit.
Above-mentioned comparison module is used since the reference use-case of setting includes third standard criterion using reference use-case and test
Example is compared, and can determine whether test case, if there is the situation not met with reference to the corresponding third standard criterion of use-case, be convenient for
Test case is adjusted in time, improves testing efficiency.
In one embodiment, a kind of first parsing module is provided, is also used to:
Comparison result is parsed, when obtaining obtaining the survey there are when the parsing result of Problem-Error in the test case
First Problem-Error existing for example first trip on probation, and by the first trip that is positioned at of first Problem-Error, it is wrong to obtain described first
The accidentally position location of problem;
The second Problem-Error existing for test case annotation section is obtained, according to default use-case information, the second mistake is obtained and asks
The position location of topic;
Third Problem-Error present in the method that test case carries is obtained, and obtains the sprocket bit of third Problem-Error
It sets.
Above-mentioned first parsing module, due to being accurate to the positioning of each Problem-Error, first trip, note including test case
The Problem-Error in the distinct methods that section and test case carry is released, the subsequent solution for Problem-Error is conducive to, can be incited somebody to action
Solution is applied to corresponding position location.
In one embodiment, a kind of sending module is provided, is used for:
The title of test case is extracted, and the name of test case is referred to as keyword;Verification day is traversed according to keyword
Will file obtains Problem-Error corresponding with keyword;Reparation corresponding with Problem-Error is matched from database to suggest;High-ranking officers
It tests journal file and corresponding reparation is suggested, be sent to developer.
Above-mentioned sending module traverses verification journal file using keyword, obtains corresponding Problem-Error and position location,
And reparation corresponding with Problem-Error is matched from database and is suggested, and will verify journal file and corresponding reparation suggestion, hair
It send to developer, when developer knows Problem-Error and positioning, judges whether corresponding reparation suggestion is feasible, can correct in time
The problem in test process improves the stability of system.
In one embodiment, a kind of test case title extraction unit is provided, is also used to:
Obtain the second mapping table of title and test case;From the second mapping table, extraction and test case
Corresponding title, and test case is configured to receive the form into ginseng;The name of test case is referred to as keyword.
Above-mentioned test case title extraction unit is referred to as keyword for the test case of different names with name, favorably
In subsequent acquisition and verification to test case, testing efficiency is further increased.
The specific restriction of calibration equipment about test case specification may refer to above for test case specification
The restriction of method of calibration, details are not described herein.Modules in the calibration equipment of above-mentioned test case specification can whole or portion
Divide and is realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of computer equipment
In processor in, can also be stored in a software form in the memory in computer equipment, in order to processor calling hold
The corresponding operation of the above modules of row.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 4.The computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of method of calibration of test case specification.The display screen of the computer equipment can be liquid crystal display or electronic ink
Water display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer equipment
Key, trace ball or the Trackpad being arranged on shell can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 4, 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, including memory and processor are provided, which is stored with
Computer program, the processor realize the step in above-mentioned each embodiment of the method when executing computer program.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes the step in above-mentioned each embodiment of the method when being executed by processor.
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
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including 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.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of method of calibration of test case, which comprises
When detecting the operational order for calling test case, obtained from test case data library according to the operational order
Take corresponding test case;
Preset reference use-case is obtained, and the preset reference use-case is compared with the test case, generates comparison result;
The reference use-case includes preset standard specification, for verifying to the test case;The comparison result is parsed, when
Into the test case there are when the parsing result of Problem-Error, Problem-Error existing for the test case is obtained, is determined
Position location of the Problem-Error in the test case, and according to the Problem-Error and the position location, it is raw
At verification journal file;
When parsing the comparison result, the parsing result that there is no Problem-Error in the test case is obtained, the use is responded
In the operational order for calling test case.
2. the method according to claim 1, wherein the acquisition preset reference use-case, and by the default ginseng
It examines use-case to be compared with the test case, generates comparison result, comprising:
Obtain the first standard criterion corresponding with the reference use-case and the second standard criterion;
The test case is traversed line by line, school is carried out to the first trip of the test case using first standard criterion
It tests, judges whether the first trip of the test case is arranged preset character code sentence;
Using second standard criterion, the annotation section of the test case is verified, judges the note of the test case
Release whether section is arranged default use-case information;The default use-case information include use-case title, use-case settling time, developer and
Use-case step;
When determining the not set preset characters code statement of the test case first trip, Yi Jigen according to first standard criterion
According to second standard criterion, when determining the not set default use-case information of the annotation section of the test case, the first comparison is obtained
As a result;
When determining that preset characters code statement, Yi Jigen has been arranged in the test case first trip according to first standard criterion
The second comparison is obtained when determining that default use-case information has been arranged in the annotation section of the test case according to second standard criterion
As a result.
3. according to the method described in claim 2, it is characterized in that, the acquisition preset reference use-case, and by the default ginseng
It examines use-case to be compared with the test case, generates comparison result, further includes:
Third standard criterion corresponding with the reference use-case is obtained, using the third standard criterion, to the test case
The method of carrying is verified, and judges the test case, if preset initial method, use-case execution method are carried, it is extensive
Whether multiple initial method and class name in the use-case execution method and corresponding script file title are consistent;
When determining that the test case does not carry preset initial method, the use-case side of execution according to the third standard criterion
Method and when restoring initial method and class name and inconsistent corresponding script file title in the use-case execution method, obtains
To the first comparison result;
When according to the third standard criterion, determining that the test case carries preset initial method, use-case executes method
When consistent with corresponding script file title with the class name that restores in initial method and the use-case execution method, the is obtained
Two comparison results.
4. method according to any one of claims 1 to 3, which is characterized in that it is described when detect for call test use
When the operational order of example, corresponding test case is obtained from test case data library according to the operational order, comprising:
When detecting the operational order for calling test case, the operational order is identified, and obtain and refer to the operation
Enable corresponding user's operation;
Obtain the first mapping table of the user's operation and test case;
According to first mapping table, test corresponding with the user's operation is obtained from test case data library and is used
Example.
5. according to the method described in claim 3, it is characterized in that, the parsing comparison result, when obtaining the test
There are when the parsing result of Problem-Error in use-case, Problem-Error existing for the test case is obtained, determines that the mistake is asked
The position location in the test case is inscribed, and according to the Problem-Error and the position location, generates verification log
File, comprising:
The comparison result is parsed, when obtaining obtaining the survey there are when the parsing result of Problem-Error in the test case
First Problem-Error existing for example first trip on probation, and by the first trip that is positioned at of first Problem-Error, it is wrong to obtain described first
The accidentally position location of problem;
The second Problem-Error existing for test case annotation section is obtained, according to the default use-case information, obtains described the
The position location of two Problem-Errors;
Third Problem-Error present in the method that the test case carries is obtained, and obtains determining for the third Problem-Error
Position position.
6. the method according to claim 1, wherein described according to the Problem-Error and the mistake
Position location of the problem in the test case, after generating verification journal file and storing, further includes:
The title of the test case is extracted, and the name of the test case is referred to as keyword;
The verification journal file is traversed according to the keyword, obtains Problem-Error corresponding with the keyword;
Reparation corresponding with the Problem-Error is matched from database to suggest;By the verification journal file and corresponding reparation
It is recommended that being sent to developer.
7. according to the method described in claim 6, it is characterized in that, the title for extracting the test case, and will be described
The name of test case is referred to as keyword, comprising:
Obtain the second mapping table of title and test case;
From second mapping table, title corresponding with the test case is extracted, and the test case is arranged
At the form received into ginseng;
The name of the test case is referred to as keyword.
8. a kind of calibration equipment of test case, which is characterized in that described device includes:
Test case obtains module, for being referred to according to the operation when detecting the operational order for calling test case
Order obtains corresponding test case from test case data library;
Comparison module is compared for obtaining preset reference use-case, and by the preset reference use-case with the test case,
Generate comparison result;The reference use-case includes preset standard specification, for verifying to the test case;
First parsing module, for parsing the comparison result, when obtaining the parsing in the test case there are Problem-Error
When as a result, Problem-Error existing for the test case is obtained, determines positioning of the Problem-Error in the test case
Position, and according to the Problem-Error and the position location, generate verification journal file;
Second parsing module, for obtaining the solution that there is no Problem-Error in the test case when parsing the comparison result
Analysis is as a result, response is described for calling the operational order of test case.
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 7 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 7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910611744.XA CN110471838A (en) | 2019-07-08 | 2019-07-08 | Method of calibration, device, computer equipment and the storage medium of test case |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910611744.XA CN110471838A (en) | 2019-07-08 | 2019-07-08 | Method of calibration, device, computer equipment and the storage medium of test case |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110471838A true CN110471838A (en) | 2019-11-19 |
Family
ID=68507173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910611744.XA Pending CN110471838A (en) | 2019-07-08 | 2019-07-08 | Method of calibration, device, computer equipment and the storage medium of test case |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471838A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110941562A (en) * | 2019-12-16 | 2020-03-31 | 卡斯柯信号(北京)有限公司 | Test case verification method and device and electronic equipment |
CN110990295A (en) * | 2019-12-19 | 2020-04-10 | 卡斯柯信号(北京)有限公司 | Test case verification method and device and electronic equipment |
CN111782540A (en) * | 2020-07-10 | 2020-10-16 | 中国工商银行股份有限公司 | Test processing method and device |
CN112650681A (en) * | 2020-12-28 | 2021-04-13 | 广州品唯软件有限公司 | Automatic testing method and device, electronic equipment and readable storage medium |
CN117707987A (en) * | 2024-02-06 | 2024-03-15 | 暗物智能科技(广州)有限公司 | Test case detection method and device, electronic equipment and storage medium |
-
2019
- 2019-07-08 CN CN201910611744.XA patent/CN110471838A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110941562A (en) * | 2019-12-16 | 2020-03-31 | 卡斯柯信号(北京)有限公司 | Test case verification method and device and electronic equipment |
CN110941562B (en) * | 2019-12-16 | 2023-10-31 | 卡斯柯信号(北京)有限公司 | Verification method and device for test cases and electronic equipment |
CN110990295A (en) * | 2019-12-19 | 2020-04-10 | 卡斯柯信号(北京)有限公司 | Test case verification method and device and electronic equipment |
CN110990295B (en) * | 2019-12-19 | 2023-10-31 | 卡斯柯信号(北京)有限公司 | Verification method and device for test cases and electronic equipment |
CN111782540A (en) * | 2020-07-10 | 2020-10-16 | 中国工商银行股份有限公司 | Test processing method and device |
CN111782540B (en) * | 2020-07-10 | 2023-08-22 | 中国工商银行股份有限公司 | Test processing method and device |
CN112650681A (en) * | 2020-12-28 | 2021-04-13 | 广州品唯软件有限公司 | Automatic testing method and device, electronic equipment and readable storage medium |
CN117707987A (en) * | 2024-02-06 | 2024-03-15 | 暗物智能科技(广州)有限公司 | Test case detection method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110471838A (en) | Method of calibration, device, computer equipment and the storage medium of test case | |
CN110941546A (en) | Automatic test method, device, equipment and storage medium for WEB page case | |
CN109522218A (en) | Interface test method, device, computer equipment and storage medium | |
CN110377336A (en) | Interface document generation method, device, computer equipment and storage medium | |
CN109308285A (en) | Database script management method, device, computer equipment and storage medium | |
CN108932122A (en) | Interface document generation method, device, computer equipment and storage medium | |
CN110209652A (en) | Tables of data moving method, device, computer equipment and storage medium | |
US20160283357A1 (en) | Call stack relationship acquiring method and apparatus | |
CN110109897A (en) | Database script generation method, device, computer equipment and storage medium | |
CN110209684A (en) | Tracking, device, system and the medium of database D DL change operation | |
CN111475324B (en) | Log information analysis method, device, computer equipment and storage medium | |
CN109783365A (en) | Automated testing method, device, computer equipment and storage medium | |
CN111666740A (en) | Flow chart generation method and device, computer equipment and storage medium | |
CN109271356A (en) | Log file formats processing method, device, computer equipment and storage medium | |
CN110134795A (en) | Generate method, apparatus, computer equipment and the storage medium of validation problem group | |
CN110532522A (en) | Error-detecting method, device, computer equipment and the storage medium of audio mark | |
CN106445815A (en) | Automated testing method and device | |
CN108399125B (en) | Automatic testing method and device, computer equipment and storage medium | |
US20220374345A1 (en) | Techniques for similarity determination across software testing configuration data entities | |
CN109359176A (en) | Data extraction method, device, computer equipment and storage medium | |
CN110020550A (en) | Check appraisal procedure, device and the equipment of platform | |
CN109491885A (en) | Test problem localization method, device, computer equipment and storage medium | |
CN116561003A (en) | Test data generation method, device, computer equipment and storage medium | |
CN113645357B (en) | Call quality inspection method, device, computer equipment and computer readable storage medium | |
CN113051095B (en) | Method and device for reproducing operation errors of client, electronic equipment and storage 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 |