CN106815140A - A kind of interface test method and device - Google Patents
A kind of interface test method and device Download PDFInfo
- Publication number
- CN106815140A CN106815140A CN201510872690.4A CN201510872690A CN106815140A CN 106815140 A CN106815140 A CN 106815140A CN 201510872690 A CN201510872690 A CN 201510872690A CN 106815140 A CN106815140 A CN 106815140A
- Authority
- CN
- China
- Prior art keywords
- test
- interface
- test case
- screening conditions
- tested
- 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
- 238000010998 test method Methods 0.000 title claims abstract description 10
- 238000012360 testing method Methods 0.000 claims abstract description 506
- 238000012216 screening Methods 0.000 claims abstract description 207
- 230000002452 interceptive effect Effects 0.000 claims abstract description 49
- 238000000034 method Methods 0.000 claims abstract description 33
- 230000009471 action Effects 0.000 claims description 12
- 230000009286 beneficial effect Effects 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000013100 final test Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of interface test method and device.Wherein methods described includes:Each test case is configured to an independent test case file;Show screening conditions setting option on test interactive interface, so that user sets screening conditions;Receive the screening conditions that user is set on the test interactive interface;Determine tested interface according to the screening conditions and determine test case file;Identified tested interface is tested according to identified test case file.The beneficial effect of the technical scheme is:The screening conditions of tested interface and test case are provided the user, only need to some test interfaces carried out with the test under specified conditions, in the case of being not required to use all test cases, the test case of test needed for need to only selecting, it is required for, to being tested the shortcoming that interface carries out the test of all test cases, having saved time and resource when overcoming once test in office in the prior art.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of interface test method and device.
Background technology
Developer software, system etc. are carried out functional development and build when, to ensure the stabilization of function
Property and availability, it is necessary to test interfaces such as component interface, web service interfaces, these interfaces are surveyed
Examination generally requires to be completed using different, polytype test case.For example, having for testing just
The test case of permanent current journey, has the test case for testing abnormal flow, also in the case of test limits
Test case, etc., these test cases can also be increased newly and safeguarded with the change of demand.
However, in specific certain interface testing, simultaneously whole work(may need not be carried out to the interface
Can test, for example, this interface testing need to only test the limiting case of the interface, then now and be not required to
The interface is tested with the test case of normal flow and the test case of abnormal flow.But it is existing
In technology, what test case for interface can not often be screened for, docking port carries out testing just necessary
The corresponding all test cases of the interface are all tested one time, are so lost time very much and resource,
There is no need.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes above mentioned problem or at least part of to provide one kind
The interface test method and device that solve the above problems.
According to one aspect of the present invention, there is provided a kind of interface test method, including:Each is tested
Use-case is configured to an independent test case file;Show that screening conditions are set on test interactive interface
, so that user sets screening conditions;Receive the screening bar that user is set on the test interactive interface
Part;Determine tested interface according to the screening conditions and determine test case file;According to identified
Test case file is tested identified tested interface.
Alternatively, it is described to show that screening conditions setting option includes on test interactive interface:Interacted in test
Show interface screening set, interface operation type screening set item and test case screening set on interface
.
Alternatively, the user's screening conditions of setting on the test interactive interface that receive include:Connect
Receive interface screening conditions, interface operation type screening conditions that user is set on the test interactive interface
With test case screening conditions;It is described to determine tested interface according to the screening conditions and determine that test is used
Example includes:Determine tested interface according to interface screening conditions;According to interface operation type screening conditions, survey
Example screening conditions and identified tested interface on probation, determine test case.
Alternatively, it is described true according to interface operation type screening conditions, test case screening conditions and institute
Fixed tested interface, determines that test case includes:According to interface operation type screening conditions, test case
Screening conditions and identified tested interface polls test case index data base, it is determined that corresponding test
Use-case;Wherein, the index information of test case is saved in test case index data, per bar rope fuse
Breath one test case of correspondence, every index information includes one or more in following information:Test is used
The applicable interface identifier of example, the action type information of test interface and test case other description informations.
Alternatively, it is described true according to interface operation type screening conditions, test case screening conditions and institute
Fixed tested interface polls test case index data base, it is determined that corresponding test case includes:From test
The first test use cases for meeting the interface operation type screening conditions are inquired in use-case index data base
Close;The second test for meeting the test case screening conditions is inquired from test case index data base
Use-case set;The 3rd of the tested interface suitable for determined by is inquired from test case index data base
Test case set;Take the first test case set, the second test case set and the 3rd test use cases
The common factor of conjunction.
Alternatively, the method is further included:Each test case file is traveled through, from each test case text
Test case index information is extracted in part and is saved in test case index data base.
Alternatively, test case file determined by the basis is tested identified tested interface
Including:Configuration testing logic script;The test logic script is run, by the test logic script according to one
Fixed test logic calls identified test case file to test identified tested interface.
According to another aspect of the present invention, there is provided a kind of interface test device, including:Test case is matched somebody with somebody
Unit is put, is suitable to for each test case to be configured to an independent test case file;Screening Treatment list
Unit, is suitable to show screening conditions setting option on test interactive interface, so that user sets screening conditions;
Receive the screening conditions that user is set on the test interactive interface;Determine quilt according to the screening conditions
Survey interface and determine test case file;Test cell, is suitable to the test case file according to determined by
Identified tested interface is tested.
Alternatively, the Screening Treatment unit, is suitable to show interface screening set on test interactive interface
Item, interface operation type screening set item and test case screening set.
Alternatively, the Screening Treatment unit, is suitable to receive user's setting on the test interactive interface
Interface screening conditions, interface operation type screening conditions and test case screening conditions;Sieved according to interface
Condition is selected to determine tested interface;According to interface operation type screening conditions, test case screening conditions and
Identified tested interface, determines test case.
Alternatively, the device is further included:Database Unit, is suitable to preserve test case index data
Storehouse;The Screening Treatment unit, is suitable to according to interface operation type screening conditions, test case screening bar
Part and identified tested interface polls test case index data base, it is determined that corresponding test case;
Wherein, the index information of test case, every index information correspondence are saved in test case index data
One test case, every index information includes one or more in following information:Test case is applicable
Interface identifier, the action type information of test interface and test case other description informations.
Alternatively, the Screening Treatment unit, is suitable to be inquired from test case index data base and meets
First test case set of the interface operation type screening conditions;From test case index data base
Inquire the second test case set for meeting the test case screening conditions;From test case index number
According to the 3rd test case set that the tested interface suitable for determined by is inquired in storehouse;Take the first test use
The common factor of example set, the second test case set and the 3rd test case set.
Alternatively, the device is further included:Index information collecting unit, is suitable to travel through each test case
File, test case index information is extracted from each test case file and test case rope is saved in
In drawing database.
Alternatively, the test cell, is suitable to configuration testing logic script;The test logic script is run,
Identified test case file is called to being determined according to certain test logic by the test logic script
Tested interface tested.
From the foregoing, technical scheme, is configured to each test case independent test and uses
Example text part, and test interactive interface is provided the user, show that screening conditions set on the test interactive interface
Item is put, the screening conditions set according to user determine tested interface and determine test case file, profit
Identified tested interface is tested with the test case file for determining.The beneficial effect of the technical scheme
It is really:The screening conditions of tested interface and test case are provided the user, some need to only have been tested
Interface carries out the test under specified conditions, that is, in the case of being not required to use all test cases, only need selection
The test case of required test, is required for tested when overcoming once test in office in the prior art
Interface carries out the shortcoming of the test of all test cases, has saved time and resource.
Described above is only the general introduction of technical solution of the present invention, in order to better understand skill of the invention
Art means, and can be practiced according to the content of specification, and it is of the invention above and other in order to allow
Objects, features and advantages can become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this
Field those of ordinary skill will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment,
And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals
Identical part.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of interface test method according to an embodiment of the invention;
Fig. 2 shows a kind of structural representation of interface test device according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without
Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly
Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
Fig. 1 shows a kind of flow chart of interface test method according to an embodiment of the invention, such as schemes
Shown in 1, the method includes:
Step S110, an independent test case file is configured to by each test case.
Test case (Test Case) is one group of test input, the execution worked out for certain special objective
Condition and expected results, to test whether certain Program path or verification meet certain particular demands
Data.In the prior art, developer uses when interface testing is carried out, sometimes and writes code
Mode, will test case be combined with test logic after form one group of specific code and enter line interface again
Test.In the present embodiment, it is necessary to test case is configured into independent file rather than one group of code, really
Protect test case disconnected from each other with test logic, i.e., test case file is not comprising test logic.
Step S120, screening conditions setting option is shown on test interactive interface, is screened so that user is set
Condition.
For example, the options for user that screening conditions are set to choose is chosen, can set according to demand
Once can at most choose several etc..
Step S130, receives the screening conditions that user is set on test interactive interface.
Step S140, determines tested interface and determines test case file according to screening conditions.
, wherein it is desired to ensure tested interface at least one, when tested interface has multiple, it is necessary to carry out
Relevant configuration, each tested interface needs the test case chosen using which to be tested.
Step S150, tests identified tested interface according to identified test case file.
It can be seen that, each test case is configured to independent test case file by the method shown in Fig. 1,
And test interactive interface is provided the user, screening conditions setting option, root are shown on the test interactive interface
The screening conditions set according to user determine tested interface and determine test case file, using what is determined
Test case file is tested identified tested interface.The beneficial effect of the technical scheme is:
The screening conditions of tested interface and test case are provided the user, some test interfaces need to only have been carried out
Test under specified conditions, that is, in the case of being not required to use all test cases, only need to select required test
Test case, overcome and in office in the prior art be required for carrying out tested interface when once testing
The shortcoming of the test of all test cases, has saved time and resource.
In one embodiment of the invention, in the method shown in Fig. 1, show on test interactive interface
Screening conditions setting option includes:Show interface screening set, interface operation class on test interactive interface
Type screening set and test case screening set.
For example, can provide the information of total interface in interface screening set, such as title is chosen for user.
Further, for an interface chosen, the hook of interface operation type screening set is carried out to it
Choosing, the action type of such as interface includes increasing, deletes, changes, searching four kinds, is now handed in test
Mutual interface provides this four, if user this time needs to carry out the interface test of locating function, just may be used
This is searched only to choose.In test case screening set, user can be chosen such as formal flow
One or more in test case, abnormal flow test case, limiting case test case.Wherein,
The title of each test case screening set and the function of correspondence test case can be set according to the actual requirements
Fixed and division.
In one embodiment of the invention, in the method shown in Fig. 1, user is received on test interaction circle
The screening conditions set on face include:Receive user test interactive interface on set interface screening conditions,
Interface operation type screening conditions and test case screening conditions;According to screening conditions determine tested interface with
And determine that test case includes:Determine tested interface according to interface screening conditions;According to interface operation type
Screening conditions, test case screening conditions and identified tested interface, determine test case.
For example, the interface screening conditions that user is set are interface A, then it is tested interface and is determined as interface A;
The interface operation type that user is set is to search, and test case is normal flow test case, then final
The test case of determination is corresponding with interface A, and interface operation type is that the normal flow test searched is used
Example.
Specifically, in one embodiment of the invention, screened according to interface operation type in the above method
Condition, test case screening conditions and identified tested interface, determine that test case includes:According to
Interface operation type screening conditions, test case screening conditions and identified tested interface polls test
Use-case index data base, it is determined that corresponding test case;Wherein, saved in test case index data
The index information of test case, every index information one test case of correspondence, every index information includes
One or more in following information:Test case applicable interface identifier, the action type of test interface
Information and test case other description informations.
For example, the index information that test case is included can include:The title (i.e. title) of test case,
When test purpose (limiting case, normal flow etc.), test case creation time, test case are changed
Between, etc..These index informations can serve as the screening conditions of test case, for example, user needs
The interface that adjustment had been done to the same day is tested, and some are tested to be directed to this interface redjustment and modification
Use-case is tested, and now just can meet test case modification time in test interactive interface selection be
The same day all test cases of this test case screening conditions are tested, and (certain test case also needs full
Interface operation type screening conditions and identified tested interface that sufficient user is set).In addition, each is surveyed
Example on probation might not be suitable to test all of interface, so index information can also be including the survey
The action type information of the applicable interface identifier of example on probation and test interface.
In one embodiment of the invention, in the above method, according to interface operation type screening conditions,
Test case screening conditions and identified tested interface polls test case index data base, determine phase
The test case answered includes:Inquired from test case index data base and meet the screening of interface operation type
First test case set of condition;Inquired from test case index data base and meet test case sieve
Select the second test case set of condition;Inquired from test case index data base suitable for being determined
Tested interface the 3rd test case set;Take the first test case set, the second test case set
With the common factor of the 3rd test case set.
For example, it is interface A that user sets tested interface, interface operation type is lookup, test case sieve
The test case for selecting condition to be normal flow, according to above three screening conditions, indexes from from test case
First, second, and third test case set corresponding with above-mentioned condition difference is inquired in database, and
These three collection conjunction are occured simultaneously, it is final so as to once be determined according to the above-mentioned screening conditions of user's setting
Test case.
In one embodiment of the invention, the above method is further included:Each test case file is traveled through,
Test case index information is extracted from each test case file and test case index data is saved in
In storehouse.
Setting up index data base needs to extract the index information of each test case file, in index data base
In only store the index information of use-case without storage test case file in itself, to save memory space.
In one embodiment of the invention, in the above method, according to identified test case file pair
Identified tested interface carries out test to be included:Configuration testing logic script;The test logic script is run,
Identified test case file is called to being determined according to certain test logic by the test logic script
Tested interface tested.
After test case file determination, due to test case file in itself and not comprising test logic,
Therefore need to its configuration testing logic script, the test interface that can be specifically set according to user operates class
Type, test case screening conditions are configured accordingly, and the final test logic script is according to certain survey
Examination logic calls identified test case file to test identified tested interface.
Fig. 2 shows a kind of structural representation of interface test device according to an embodiment of the invention,
As shown in Fig. 2 interface test device 200 includes:
Test case dispensing unit 210, is suitable to for each test case to be configured to an independent test use
Example text part.
In the present embodiment, it is necessary to test case is configured into independent file rather than one group of code, it is ensured that
Test case is disconnected from each other with test logic, i.e., test case file is not comprising test logic.
Screening Treatment unit 220, is suitable to show screening conditions setting option on test interactive interface, for
User sets screening conditions;Receive the screening conditions that user is set on test interactive interface;According to screening
Condition determines tested interface and determines test case file.
For example, the options for user that screening conditions are set to choose is chosen, can set according to demand
Once can at most choose several etc.., wherein it is desired to ensure tested interface at least one, tested
, it is necessary to carry out relevant configuration when interface has multiple, each tested interface needs the test chosen using which
Use-case is tested.
Test cell 230, is suitable to the test case file according to determined by and identified tested interface is entered
Row test.
It can be seen that, each test case is configured to independent test case file by the device shown in Fig. 2,
And test interactive interface is provided the user, screening conditions setting option, root are shown on the test interactive interface
The screening conditions set according to user determine tested interface and determine test case file, using what is determined
Test case file is tested identified tested interface.The beneficial effect of the technical scheme is:
The screening conditions of tested interface and test case are provided the user, some test interfaces need to only have been carried out
Test under specified conditions, that is, in the case of being not required to use all test cases, only need to select required test
Test case, overcome and in office in the prior art be required for carrying out tested interface when once testing
The shortcoming of the test of all test cases, has saved time and resource.
In one embodiment of the invention, in the device shown in Fig. 2, Screening Treatment unit 220 is fitted
In displaying interface screening set, interface operation type screening set and test on test interactive interface
Use-case screening set.
In one embodiment of the invention, in the device shown in Fig. 2, Screening Treatment unit 220 is fitted
In the interface screening conditions, the interface operation type screening conditions that receive user's setting on test interactive interface
With test case screening conditions;Determine tested interface according to interface screening conditions;According to interface operation type
Screening conditions, test case screening conditions and identified tested interface, determine test case.
In one embodiment of the invention, said apparatus are further included:Database Unit, is suitable to protect
Deposit test case index data base;The Screening Treatment unit, is suitable to screen bar according to interface operation type
Part, test case screening conditions and identified tested interface polls test case index data base, really
Fixed corresponding test case;Wherein, the index information of test case is saved in test case index data,
Every index information one test case of correspondence, every index information includes the one kind or many in following information
Kind:The applicable interface identifier of test case, the action type information of test interface and test case other retouch
State information.
In one embodiment of the invention, in said apparatus, Screening Treatment unit is suitable to be used from test
The the first test case set for meeting interface operation type screening conditions is inquired in example index data base;From
The the second test case set for meeting test case screening conditions is inquired in test case index data base;
The 3rd test use cases of the tested interface suitable for determined by are inquired from test case index data base
Close;Take the common factor of the first test case set, the second test case set and the 3rd test case set.
In one embodiment of the invention, said apparatus are further included:Index information collecting unit,
It is suitable to travel through each test case file, test case index information is extracted from each test case file
And be saved in test case index data base.
In one embodiment of the invention, in said apparatus, test cell is suitable to configuration testing logic
Script;The test logic script is run, institute is called according to certain test logic by the test logic script
The test case file of determination is tested identified tested interface.
It should be noted that the specific embodiment of above-mentioned each device embodiment is implemented with foregoing corresponding method
The specific embodiment of example is identical, will not be repeated here.
In sum, technical scheme, independent test case is configured to by each test case
File, and test interactive interface is provided the user, show that screening conditions are set on the test interactive interface
, the screening conditions set according to user determine tested interface and determine test case file, utilize
The test case file of determination is tested identified tested interface, and specifically, screening conditions are set
Item can include interface screening set, interface operation type screening set item and test case screening set
, according to interface operation type screening conditions, test case screening conditions and identified tested interface
Inquiry test case index data base, it is determined that corresponding test case.The beneficial effect of the technical scheme exists
In:The screening conditions of tested interface and test case are provided the user, only need to be to some test interfaces
The test under specified conditions is carried out, that is, in the case of being not required to use all test cases, needed for need to only selecting
The test case of test, is required for being tested interface when overcoming once test in office in the prior art
The shortcoming of the test of all test cases is carried out, time and resource has been saved.
It should be noted that:
Algorithm and display be not solid with any certain computer, virtual bench or miscellaneous equipment provided herein
There is correlation.Various fexible units can also be used together with based on teaching in this.As described above,
It is obvious to construct the structure required by this kind of device.Additionally, the present invention is not also for any specific
Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein,
And the description done to language-specific above is to disclose preferred forms of the invention.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of without these details.In some instances, not
Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect
Or it is multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention is sometimes
It is grouped together into single embodiment, figure or descriptions thereof.However, should not be by the disclosure
Method be construed to reflect following intention:I.e. the present invention for required protection requirement ratio is in each claim
The middle more features of feature be expressly recited.More precisely, as the following claims reflect
As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows
Thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right
It is required that in itself all as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out certainly to the module in the equipment in embodiment
Adaptively change and they are arranged in one or more equipment different from the embodiment.Can be with
Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used
To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in unit exclude each other, can be using any combinations to this specification (including companion
With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or
All processes or unit of person's equipment are combined.Unless expressly stated otherwise, this specification (including companion
With claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equally or phase
Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it
Some included features are rather than further feature, but the group of the feature of different embodiments in its embodiment
Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in following power
In sharp claim, the one of any of embodiment required for protection mode can make in any combination
With.
All parts embodiment of the invention can be realized with hardware, or be processed with one or more
The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should
Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice
The some or all functions of some or all parts in the interface test device of the embodiment of the present invention.
The present invention is also implemented as some or all equipment for performing method as described herein
Or program of device (for example, computer program and computer program product).It is such to realize the present invention
Program can store on a computer-readable medium, or can have one or more signal shape
Formula.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or
Person provides in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention,
And those skilled in the art can design replacement in fact without departing from the scope of the appended claims
Apply example.In the claims, should not be configured to any reference symbol being located between bracket will to right
The limitation asked.Word "comprising" does not exclude the presence of element or step not listed in the claims.Positioned at unit
Word "a" or "an" before part does not exclude the presence of element as multiple.The present invention can be by means of
Include the hardware of some different elements and realized by means of properly programmed computer.Listing
If in the unit claim of equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.Can be by this
A little words are construed to title.
The invention discloses A1, a kind of interface test method, wherein, the method includes:
Each test case is configured to an independent test case file;
Show screening conditions setting option on test interactive interface, so that user sets screening conditions;
Receive the screening conditions that user is set on the test interactive interface;
Determine tested interface according to the screening conditions and determine test case file;
Identified tested interface is tested according to identified test case file.
A2, the method as described in A1, wherein, it is described to show that screening conditions set on test interactive interface
Putting item includes:
Show interface screening set, interface operation type screening set item on test interactive interface and survey
Example screening set on probation.
A3, the method as described in A1, wherein,
The user's screening conditions of setting on the test interactive interface that receive include:User is received to exist
Interface screening conditions, interface operation type screening conditions and the test set on the test interactive interface are used
Example screening conditions;
It is described to determine tested interface according to the screening conditions and determine that test case includes:According to interface
Screening conditions determine tested interface;According to interface operation type screening conditions, test case screening conditions with
And identified tested interface, determine test case.
A4, the method as described in A3, wherein, it is described according to interface operation type screening conditions, test
Use-case screening conditions and identified tested interface, determine that test case includes:
According to interface operation type screening conditions, test case screening conditions and identified tested interface
Inquiry test case index data base, it is determined that corresponding test case;
Wherein, the index information of test case, every index information are saved in test case index data
One test case of correspondence, every index information includes one or more in following information:Test case
Applicable interface identifier, the action type information of test interface and test case other description informations.
A5, the method as described in A4, wherein, it is described according to interface operation type screening conditions, test
Use-case screening conditions and identified tested interface polls test case index data base, it is determined that accordingly
Test case includes:
Inquired from test case index data base and meet the first of the interface operation type screening conditions
Test case set;
The second test for meeting the test case screening conditions is inquired from test case index data base
Use-case set;
The 3rd test that the tested interface suitable for determined by is inquired from test case index data base is used
Example set;
Take the common factor of the first test case set, the second test case set and the 3rd test case set.
A6, the method as described in A4, wherein, the method is further included:
Each test case file is traveled through, test case index information is extracted from each test case file
And be saved in test case index data base.
A7, the method as any one of A1-A6, wherein, test case determined by the basis
File carries out test to identified tested interface to be included:
Configuration testing logic script;
Run the test logic script, by the test logic script according to certain test logic call really
Fixed test case file is tested identified tested interface.
The invention also discloses B8, a kind of interface test device, wherein, the device includes:
Test case dispensing unit, is suitable to for each test case to be configured to an independent test case text
Part;
Screening Treatment unit, is suitable to show screening conditions setting option on test interactive interface, for user
Screening conditions are set;Receive the screening conditions that user is set on the test interactive interface;According to described
Screening conditions determine tested interface and determine test case file;
Test cell, is suitable to the test case file according to determined by and identified tested interface is surveyed
Examination.
B9, the device as described in B8, wherein,
The Screening Treatment unit, is suitable to show interface screening set, interface on test interactive interface
Action type screening set and test case screening set.
B10, the device as described in B8, wherein,
The Screening Treatment unit, is suitable to receive the interface sieve that user is set on the test interactive interface
Select condition, interface operation type screening conditions and test case screening conditions;It is true according to interface screening conditions
Surely it is tested interface;According to interface operation type screening conditions, test case screening conditions and identified
Tested interface, determines test case.
B11, the device as described in B10, wherein, the device is further included:Database Unit, fits
In preservation test case index data base;
The Screening Treatment unit, is suitable to according to interface operation type screening conditions, test case screening bar
Part and identified tested interface polls test case index data base, it is determined that corresponding test case;
Wherein, the index information of test case, every index information are saved in test case index data
One test case of correspondence, every index information includes one or more in following information:Test case
Applicable interface identifier, the action type information of test interface and test case other description informations.
B12, the device as described in B11, wherein,
The Screening Treatment unit, is suitable to be inquired from test case index data base and meets the interface
First test case set of action type screening conditions;Symbol is inquired from test case index data base
Close the second test case set of the test case screening conditions;Looked into from test case index data base
Ask out the 3rd test case set of the tested interface suitable for determined by;Take the first test case set,
Second test case set and the common factor of the 3rd test case set.
B13, the device as described in B11, wherein, the device is further included:
Index information collecting unit, is suitable to travel through each test case file, from each test case file
Extract test case index information and be saved in test case index data base.
B14, the device as any one of B8-B13, wherein,
The test cell, is suitable to configuration testing logic script;The test logic script is run, by the survey
Examination logic script calls identified test case file to identified tested according to certain test logic
Interface is tested.
Claims (10)
1. a kind of interface test method, wherein, the method includes:
Each test case is configured to an independent test case file;
Show screening conditions setting option on test interactive interface, so that user sets screening conditions;
Receive the screening conditions that user is set on the test interactive interface;
Determine tested interface according to the screening conditions and determine test case file;
Identified tested interface is tested according to identified test case file.
2. it is the method for claim 1, wherein described to show screening bar on test interactive interface
Part setting option includes:
Show interface screening set, interface operation type screening set item on test interactive interface and survey
Example screening set on probation.
3. the method for claim 1, wherein
The user's screening conditions of setting on the test interactive interface that receive include:User is received to exist
Interface screening conditions, interface operation type screening conditions and the test set on the test interactive interface are used
Example screening conditions;
It is described to determine tested interface according to the screening conditions and determine that test case includes:According to interface
Screening conditions determine tested interface;According to interface operation type screening conditions, test case screening conditions with
And identified tested interface, determine test case.
4. method as claimed in claim 3, wherein, it is described according to interface operation type screening conditions,
Test case screening conditions and identified tested interface, determine that test case includes:
According to interface operation type screening conditions, test case screening conditions and identified tested interface
Inquiry test case index data base, it is determined that corresponding test case;
Wherein, the index information of test case, every index information are saved in test case index data
One test case of correspondence, every index information includes one or more in following information:Test case
Applicable interface identifier, the action type information of test interface and test case other description informations.
5. method as claimed in claim 4, wherein, it is described according to interface operation type screening conditions,
Test case screening conditions and identified tested interface polls test case index data base, determine phase
The test case answered includes:
Inquired from test case index data base and meet the first of the interface operation type screening conditions
Test case set;
The second test for meeting the test case screening conditions is inquired from test case index data base
Use-case set;
The 3rd test that the tested interface suitable for determined by is inquired from test case index data base is used
Example set;
Take the common factor of the first test case set, the second test case set and the 3rd test case set.
6. method as claimed in claim 4, wherein, the method is further included:
Each test case file is traveled through, test case index information is extracted from each test case file
And be saved in test case index data base.
7. the method as any one of claim 1-6, wherein, test determined by the basis
Use-case file carries out test to identified tested interface to be included:
Configuration testing logic script;
Run the test logic script, by the test logic script according to certain test logic call really
Fixed test case file is tested identified tested interface.
8. a kind of interface test device, wherein, the device includes:
Test case dispensing unit, is suitable to for each test case to be configured to an independent test case text
Part;
Screening Treatment unit, is suitable to show screening conditions setting option on test interactive interface, for user
Screening conditions are set;Receive the screening conditions that user is set on the test interactive interface;According to described
Screening conditions determine tested interface and determine test case file;
Test cell, is suitable to the test case file according to determined by and identified tested interface is surveyed
Examination.
9. device as claimed in claim 8, wherein,
The Screening Treatment unit, is suitable to show interface screening set, interface on test interactive interface
Action type screening set and test case screening set.
10. device as claimed in claim 8, wherein,
The Screening Treatment unit, is suitable to receive the interface sieve that user is set on the test interactive interface
Select condition, interface operation type screening conditions and test case screening conditions;It is true according to interface screening conditions
Surely it is tested interface;According to interface operation type screening conditions, test case screening conditions and identified
Tested interface, determines test case.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510872690.4A CN106815140A (en) | 2015-12-02 | 2015-12-02 | A kind of interface test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510872690.4A CN106815140A (en) | 2015-12-02 | 2015-12-02 | A kind of interface test method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106815140A true CN106815140A (en) | 2017-06-09 |
Family
ID=59107590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510872690.4A Pending CN106815140A (en) | 2015-12-02 | 2015-12-02 | A kind of interface test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106815140A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391379A (en) * | 2017-07-28 | 2017-11-24 | 武汉斗鱼网络科技有限公司 | Interface automatic test approach and device |
CN107391382A (en) * | 2017-08-08 | 2017-11-24 | 北京云测信息技术有限公司 | A kind of Target Searching Method and device |
CN107423216A (en) * | 2017-06-21 | 2017-12-01 | 广州视源电子科技股份有限公司 | Debugging tool configuration method, readable storage medium and debugging tool configuration device |
CN107748717A (en) * | 2017-09-26 | 2018-03-02 | 深圳市牛鼎丰科技有限公司 | Automatic interface testing method, device, storage medium and computer equipment |
CN109344048A (en) * | 2018-08-17 | 2019-02-15 | 中国平安人寿保险股份有限公司 | A kind of test method, storage medium and server |
CN109558317A (en) * | 2018-11-22 | 2019-04-02 | 网易(杭州)网络有限公司 | The processing method and processing device of test case |
WO2019157884A1 (en) * | 2018-02-13 | 2019-08-22 | 论客科技(广州)有限公司 | Test case design method, apparatus and terminal, and readable storage medium |
CN110750434A (en) * | 2018-07-23 | 2020-02-04 | 北京奇虎科技有限公司 | Interface testing method and device, electronic equipment and computer readable storage medium |
-
2015
- 2015-12-02 CN CN201510872690.4A patent/CN106815140A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423216A (en) * | 2017-06-21 | 2017-12-01 | 广州视源电子科技股份有限公司 | Debugging tool configuration method, readable storage medium and debugging tool configuration device |
CN107423216B (en) * | 2017-06-21 | 2021-01-05 | 广州视源电子科技股份有限公司 | Debugging tool configuration method, readable storage medium and debugging tool configuration device |
CN107391379A (en) * | 2017-07-28 | 2017-11-24 | 武汉斗鱼网络科技有限公司 | Interface automatic test approach and device |
CN107391382A (en) * | 2017-08-08 | 2017-11-24 | 北京云测信息技术有限公司 | A kind of Target Searching Method and device |
CN107748717A (en) * | 2017-09-26 | 2018-03-02 | 深圳市牛鼎丰科技有限公司 | Automatic interface testing method, device, storage medium and computer equipment |
WO2019157884A1 (en) * | 2018-02-13 | 2019-08-22 | 论客科技(广州)有限公司 | Test case design method, apparatus and terminal, and readable storage medium |
CN110750434A (en) * | 2018-07-23 | 2020-02-04 | 北京奇虎科技有限公司 | Interface testing method and device, electronic equipment and computer readable storage medium |
CN109344048A (en) * | 2018-08-17 | 2019-02-15 | 中国平安人寿保险股份有限公司 | A kind of test method, storage medium and server |
CN109558317A (en) * | 2018-11-22 | 2019-04-02 | 网易(杭州)网络有限公司 | The processing method and processing device of test case |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106815140A (en) | A kind of interface test method and device | |
CN104050078B (en) | Test script generates system | |
CN104185840B (en) | It is used for being prioritized the mthods, systems and devices of multiple tests in lasting deployment streamline | |
KR100992169B1 (en) | bio information analysis process auto design system and thereof. | |
CN105468529B (en) | A kind of accurate traversal method of Android application UI controls and device | |
CN101526916B (en) | Method and system for using page-based object flow verification in regression test | |
CN104063458B (en) | A kind of method and device that correspondence solution is provided terminal fault problem | |
US7694239B2 (en) | Selection and deselection of objects at multiple levels of a hierarchy | |
CN104216822B (en) | A kind of processing method and processing device of abnormal information | |
RU2012150289A (en) | SEARCH-BASED SYSTEM MANAGEMENT | |
CN105095464B (en) | A kind of detection method and device of searching system | |
CN106897207A (en) | Ui testing method and apparatus | |
CN103714002A (en) | Project testing method and device based on configuration system | |
CN111198809A (en) | Interface automation test method and device | |
CN106815137A (en) | Ui testing method and apparatus | |
CN106874335A (en) | Behavioral data processing method, device and server | |
CN104462311A (en) | Information displaying method and device | |
CN105045719B (en) | Method and device based on the change prediction regression test failure for repairing defect | |
CN106201857A (en) | The choosing method of test case and device | |
CN106383908A (en) | Data object pushing method and device | |
CN109656964A (en) | The method, apparatus and storage medium of comparing | |
CN107168866A (en) | A kind of Parameter analysis of electrochemical method and device of configuration file | |
Ferraz et al. | Biological monitoring in the Amazon: recent progress and future needs | |
US10740119B2 (en) | Identifying a common action flow | |
CN105426541B (en) | A kind of storage method and device of general data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170609 |
|
WD01 | Invention patent application deemed withdrawn after publication |