CN106155891A - Interface test method, interface description data library generating method and device - Google Patents

Interface test method, interface description data library generating method and device Download PDF

Info

Publication number
CN106155891A
CN106155891A CN201510155540.1A CN201510155540A CN106155891A CN 106155891 A CN106155891 A CN 106155891A CN 201510155540 A CN201510155540 A CN 201510155540A CN 106155891 A CN106155891 A CN 106155891A
Authority
CN
China
Prior art keywords
interface
tested
data
response
field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510155540.1A
Other languages
Chinese (zh)
Other versions
CN106155891B (en
Inventor
王跃乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510155540.1A priority Critical patent/CN106155891B/en
Publication of CN106155891A publication Critical patent/CN106155891A/en
Application granted granted Critical
Publication of CN106155891B publication Critical patent/CN106155891B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Embodiments providing a kind of interface test method, interface description data library generating method and device, this interface test method includes: generate the request data for interface to be tested;Described request data is sent to the server at described interface place to be tested;Receive the response data for described request data that described server returns;And response data corresponding to the interface name that obtains described interface to be tested from interface description data storehouse describes;The described response data received is verified by the constraints utilizing the field value of each response field of the response field collection in the described response data obtained description and this response field concentration to meet, it is thus achieved that the result.Owing to including response field collection and the constraints that correct response data should include, expand the information that existing interface describes, can accurately express implicit constrained condition, thus it is ensured that the quality passing through the interface after interface testing is of a relatively high and stability is preferable.

Description

Interface test method, interface description data library generating method and device
Technical field
The application relates to software testing technology field, particularly relates to a kind of interface test method, interface describes number According to library generating method and device.
Background technology
Interface refers to the rule of communication between same system difference in functionality layer.At service interface (with service Mode externally provides an interface) prevailing instantly, in interface system end to end, it is ensured that front and back end is entered The quality of the mutual interface of row and being stably particularly important, and the quality of interface and stability are at interface exploitation During verified by interface testing, this proposes with regard to the accuracy of the result of docking port test Higher requirement.
In existing interface testing, owing in same service system, the front end exploitation of service software is (the most general Refer to the exploitation of client) and rear end exploitation (refer to here server end exploitation) be often the most parallel, therefore, The test of the interface of front end exploitation and the test to the interface of rear end exploitation are also parallel.Front and back end interface is surveyed Examination engineer is based on the software merit providing standard in a interface description to the test of each interface of exploitation Energy and the information such as parameter, return value are carried out respectively, and it is front end developer and rear end exploitation that this interface describes Interact the basis of operation between person, also construct bipartite a kind of modality for co-operation based on contract, Both sides are that interface testing can the basis that carries out of precise and high efficiency to the concordance that contract understands.
But, the function provided due to interface generally has taking of applicable range of application and scene, such as parameter Value scope, operation call order etc.;Some of function provided at docking port is also set up in the test of docking port On implicit assumption, existing interface lacks enough information in describing, it is impossible to accurately express what these implied Constrained condition, therefore, describes based on existing interface and carries out interface testing, often result in interface testing The accuracy of test result relatively low.
Summary of the invention
The embodiment of the present application provides a kind of interface test method, interface description data library generating method and device, Interface testing is carried out, the standard of the test result of the interface testing caused in order to solve to describe based on existing interface The problem that really property is relatively low.
A kind of interface test method, including:
Generate the request data for interface to be tested;
Described request data is sent to the server at described interface place to be tested;
Receive the response data for described request data that described server returns;And
The response data obtaining the interface name of described interface to be tested from interface description data storehouse corresponding is retouched Stating, described interface description data storehouse includes that the response data of interface name and correspondence thereof describes, described response Data describe that to include that response field collection that correct response data should include and this response field are concentrated every The constraints that the field value of one response field should meet;
Utilize obtain described response data describe in response field collection and this response field concentrate each The described response data received is verified by the constraints that the field value of response field should meet, it is thus achieved that test Card result.
A kind of interface description data library generating method based on above-mentioned interface test method, including:
According to interface code to be tested, generate the interface testing script of described interface to be tested;Set up generation The interface testing script of described interface to be tested and the incidence relation of the interface name of this interface to be tested, and Being stored in interface description data storehouse by this incidence relation, described interface code to be tested is according to described request Data genaration;And
Using generating for the request data of interface to be tested as the interface testing use-case of this interface to be tested, build The incidence relation of the interface name of this interface testing use-case vertical and described interface to be tested, and this association is closed System is stored in interface description data storehouse;And
Using the described response data of reception as the test data of interface to be tested, set up this interface testing data With the incidence relation of the interface name of this interface to be tested, and this incidence relation is stored in interface describes number According in storehouse;And
Generate the interface testing for described interface to be tested according to described the result to report, set up this interface The incidence relation of the interface name of test report and this interface to be tested, and this incidence relation is stored in connects In mouth descriptive data base, the report of described interface testing includes the request data of the interface to be tested having verified that, tests One or more in card result, the result state and the result Failure Causes Analysis, described checking knot Really state includes successfully and failure.
A kind of interface test device, including:
Request data signal generating unit, for generating the request data for interface to be tested;
Transmitting element, for being sent to the server at described interface place to be tested by described request data;
Receive unit, for receiving the response data for described request data that described server returns;
Acquiring unit is corresponding for obtaining the interface name of described interface to be tested from interface description data storehouse Response data describe, described interface description data storehouse includes that the response data of interface name and correspondence thereof is retouched Stating, described response data describes response field collection and this response word including that correct response data should include The constraints that the field value of each response field of Duan Jizhong should meet;
Authentication unit, the response field collection in utilizing the described response data of acquisition to describe and this response word The described response data received is entered by the constraints that the field value of each response field of Duan Jizhong should meet Row checking, it is thus achieved that the result.
A kind of interface description data storehouse based on above-mentioned interface test device generating means, including:
First incidence relation sets up unit, for according to interface code to be tested, generates described interface to be tested Interface testing script;Set up interface testing script and this interface to be tested of the interface described to be tested generated The incidence relation of interface name, described interface code to be tested generates according to described request data;
Second incidence relation sets up unit, for treating generating the request data for interface to be tested as this The interface testing use-case of test interface, sets up the interface name of this interface testing use-case and described interface to be tested Incidence relation;
3rd incidence relation sets up unit, for the described response data that will receive as the survey of interface to be tested Examination data, set up the incidence relation of these interface testing data and the interface name of this interface to be tested;
4th incidence relation sets up unit, for generating for described interface to be tested according to described the result Interface testing report, set up associating of the report of this interface testing and the interface name of this interface to be tested System, the request data of interface to be tested that the report of described interface testing includes having verified that, the result, checking One or more in result phase and the result Failure Causes Analysis, described the result state includes into Merit and failure;
Memory element, for the interface by the interface testing script of described interface to be tested with this interface to be tested The incidence relation of the incidence relation of title, interface testing use-case and the interface name of described interface to be tested, connect The incidence relation of the interface name of mouth test report and this interface to be tested and the interface name of interface to be tested Incidence relation be stored in interface description data storehouse.
In the embodiment of the present application, interface description data storehouse includes the response data of interface name and correspondence thereof Describing, this response data describes response field collection and this response word including that correct response data should include The constraints that the field value of each response field of Duan Jizhong should meet;This allows for carrying out interface testing Time, the response data that can obtain the interface name of interface to be tested from interface description data storehouse corresponding is retouched State, and then utilize the response field collection in the described response data description of this acquisition and constraints to reception Described response data is verified, it is thus achieved that the result.Due to the sound in the interface description data storehouse of the application Answer data to describe response field collection and the constraints including that correct response data should include, expanded existing The information that describes of interface, and make accurately to express implicit constrained condition and be possibly realized, therefore, Improve the accuracy of the result, it is ensured that the quality passing through the interface after interface testing is of a relatively high And stability is preferable.
Accompanying drawing explanation
The interface test method schematic diagram that Fig. 1 provides for the embodiment of the present application one;
The structural representation of the interface test device that Fig. 2 provides for the embodiment of the present application two;
The If-test interface testing platform that utilizes that Fig. 3 provides for the embodiment of the present application three performs the mistake of interface testing The schematic diagram of journey;
The interface test method schematic diagram that Fig. 4 provides for the embodiment of the present application four;
Fig. 5 uses example to illustrate for the interface test method that the embodiment of the present application four provides in detailed programs Figure;
The structural representation of the interface test device that Fig. 6 provides for the embodiment of the present application five;
The structural representation of the interface description data storehouse generating means that Fig. 7 provides for the embodiment of the present application six.
Detailed description of the invention
The interface test method of the embodiment of the present application is corresponding based on the interface name comprising interface proposed Carrying out on the basis of the interface description data storehouse that response data describes, the description of this response data includes correct Response field collection and this response field that response data should include concentrate the field value of each response field to answer The constraints met;This allows for when carrying out interface testing, can obtain from interface description data storehouse The response data that the interface name of interface to be tested is corresponding describes, and then utilizes the described response data of this acquisition The described response data received is verified by response field collection and constraints in description, it is thus achieved that checking knot Really.Include that correct response data should be wrapped owing to the response data in the interface description data storehouse of the application describes The response field collection included and constraints, expanded the information that existing interface describes, and made accurate table Reach implicit constrained condition to be possibly realized, this improves the accuracy of the result, it is ensured that suitable Profit is by the quality of the interface after interface testing is of a relatively high and stability is preferable.
Below in conjunction with Figure of description, the preferred embodiment of the application is illustrated, it will be appreciated that this place The preferred embodiment described is merely to illustrate and explains the application, is not used to limit the application.And not In the case of conflict, the embodiment in the application and the feature in embodiment can be mutually combined.
Embodiment one
As it is shown in figure 1, the interface test method schematic diagram that it is the embodiment of the present application one, test side here Method can be understood as simulant-client, and (such as, browser, the Webview in the App of mobile terminal is (under iOS Claim UIWebview)) interface that server end is actual is tested, comprise the following steps:
Step 101: generate the request data for interface to be tested;
Concrete, described request data comprises the steps that and asks name, the url of request, request type (get/post), Multiple data in required parameter value (get parameter value/post parameter value) etc.;
Such as: assume that request data is http://example.com/demo.htm?SearchNo=0, this this Request in request data is entitled: demo, and the url of request is http://example.com/demo, asks class Type is get request, and required parameter is searchNo, and the value of this required parameter is 0.
Required parameter value in request data in this step 101 can be artificial setting, it is also possible to be logical Cross what the constraints that testing tool utilizes correct request data to meet automatically generated.
Step 102: described request data is sent to the server at described interface place to be tested;
In this step 102, after request data is sent to described server, described server pass through described in treat Test interface receives described request data, carries out at computing according to the required parameter value in described request data Reason;And result namely response data are returned to described request data sender.
Preferably, step 102 specifically comprises the steps that
According to described request data, generate the interface testing code of described interface to be tested;
The described interface testing code generated by operation realizes sending the data to described to be measured try Mouthful.
It should be noted that above-mentioned steps 101 and step 102 are structure and simulate transmission request data to The process of interface to be tested;
Here, described interface to be tested can also be generated according to the interface testing code described to be tested generated Interface testing script, script here is executable script, can make in the continuous integrating of follow-up code With.
Step 103: receive the response data for described request data that described server returns;
Step 104: obtain the sound that the interface name of described interface to be tested is corresponding from interface description data storehouse Data are answered to describe;
It is in system database that described interface description data storehouse can be left in, it is also possible to leave code trustship in On server, it is simple to front and back end developer and tester share;
Described interface description data storehouse includes that the response data of interface name and correspondence thereof describes, described response Data describe and comprise the steps that the response field collection that correct response data should include, and this response field is concentrated The constraints that should meet of the field value of each response field;
The number of the response field that described response field is concentrated can be one, it is also possible to is multiple, by software The concrete interface of developer's design determines;
Assume that the response field that the correct response data of a certain interface should include concentrates the number of response field Being 2, respectively response field 1 and response field 2, the most now, the response data of this interface describes bag Include response field 1, constraints that the field value of response field 1 should meet, and response field 2, ring Answer the constraints that the field value of field 2 should meet;
Here response field can be understood as the field that response data must include;
Concrete, setting syntax format is followed/is met in the description in described interface description data storehouse, in order to survey Interface testing scheme in the trial work tool automated execution embodiment of the present invention one, further, the language of this setting Method form is to carry out for the syntax format used output to the parameter of interface or the parameter of interface output The syntax format of checking, such as: assume to export the syntax format of the parameter of the parameter to interface or interface output For JSON, (JavaScript Object Notiation, the data of lightweight based on Java Script language are handed over Change form), then this syntax format set is as JSON Schema (JSON framework);Assume that output is to connecing The syntax format of the parameter of the parameter of mouth or interface output is blueprint (source data interchange format), then This syntax format set is as blueprint Schema (blueprint framework).
Step 105: the response field collection in utilizing the described response data obtained to describe and this response field collection In the constraints that should meet of the field value of each response field the described response data received is tested Card, it is thus achieved that the result.
Concrete, this setting syntax format described can comprise and is made up of the semantic function of key word and correspondence thereof Semantic label, the constraints that the field value of response field should meet is by the key word preset and the constraint of correspondence The semantic label that conditional function is constituted represents;
Here constraints function is the semantic function that default key word is corresponding;
Additionally, described interface description data storehouse can also include the specification of described setting syntax format, in order to Whether the syntax format utilizing this specification response data to receiving meets the specification of this setting syntax format is entered Row checking.
It should be noted that semantic label here be the application on the basis of in accordance with described syntax format, Extension semantic label out, extends exclusively for the expression of constraints of the application.
Now, the concrete proof procedure of step 105 can include three below step:
Step a1: determine that the response field in the described response data description of acquisition concentrates each response word included Section;
Step b1: for each response field determined, according to described default key word, from the institute obtained State during response data describes and determine the constraints function that the field value of this response field is corresponding;
Step c1: judge set that in the described response data received, whole fields of comprising are constituted whether with obtain The set equality that response field collection in the described data response description taken is constituted, and the word of each response field Whether segment value is satisfied by the constraints function of correspondence;
Step d1: if the whole fields comprised in the described response data the received set constituted and the institute obtained State the set equality that the response field collection during data response describes is constituted, and the field value of each response field is the fullest The constraints function that foot is corresponding, it is determined that be proved to be successful;Otherwise, it is determined that authentication failed.
Above-mentioned steps c1 and step d1, concrete execution process can but be not limited to following manner:
For each response field, the following operation of execution:
Judge whether the described response data received comprises this response field and whether this response field has Field value;
If comprising this response field and there is field value, then judge whether this field value meets this response field Constraints function;
If the whole response field comprised in described response data during data response describes, during data response describes Whole response field be all contained in described response data and the field value of each response field be satisfied by right The constraints answered, it is determined that be proved to be successful;Otherwise, it determines authentication failed.
If the whole responses not comprised in the described response data received in the described data response description of acquisition Field, or comprise the partial response field in the described data response description of acquisition, or each response field Field value be not satisfied by correspondence constraints function, it is determined that authentication failed.
Below above-mentioned semantic label is illustrated, for mockjs semantic label, it then follows IETF JSON The specification (this specification defining syntax format) of Schema Draft-04 (ietf draft JSON pattern) Two examples of semantic label and form are as follows:
Example 1:
It is that property value is character string and value is natural number less than 100 more than 60 that this example 1 describes. Wherein, $ schema, type are the key word in JSON Schema specification, http://my.site/myschema# For the value of key word $ schema, show the url at the specification place that this natural description information follows;string For the value of type, represent that this natural data type is character string type;
" iftest ": "@natural (60,100) ", this sentence describes, it is simply that a semantic label, is wherein by " closing Keyword " and " semantic function " composition, it may be assumed that " key word ": " semantic function ", iftest is key word, @natural (60,100) is semantic function, and@is method function for character string natural identified thereafter, should Natural includes minima and two parameters of maximum, and in example 1, minima is 60, and maximum is 100, This demonstrate natural span.
The key word preset, is the self-defining key word of the application, and above-mentioned iftest key word is to existing JSON The extension of the key word in Schema specification, iftest to be used represent itself ask preset Key word, it is possible to use (certainly, other word here refers in JSON Schema specification other words Word outside key word) represent default key word.
Example 2:
In this example 2, " iftest ": "@host_tmall (" ^detail ") " this describes also is a semantic mark Sign.Data type that what this example 2 represented is be character string uri (uniform resource identifier, Uniform Resource Identifier), and this uri comprises the line heaven cat url (uniform that key word is " detail " Resoure locator: uniform resource locator) description information.
Following table (1) enumerates the basic method function of basic data type and offer, needs explanation Be that type is not limited thereto, method function can also constantly extend:
Table (1)
Traffic ID (bizNum) method that this Method type of type of service in above-mentioned table (1) includes Function and no-protocol url (url_no_protocol) method function extend according to practical business, are also The method function provided in the embodiment of the present application can constantly extend, and the method function extended can have more Many business dependencys, and then have more practical business using value.
Such as: " iftest ": "@bizNUm (3,5) ", what this semantic label described is business id, long Degree is 3 to 5;
" iftest ": "@url_no_protocol ", what this semantic label described is a http request, does not has Protocol header, remaining holding is the same with url, such as: http request be //www.tmall.com time be exactly school Test successfully, verify unsuccessfully when http request is http://www.tmall.com.
Owing to the proof procedure to the correctness of the response data received in above-mentioned steps a1 to step d1 is Based on the semantic label of each response field in request descriptive data base (by the key word preset and the pact of correspondence Bundle conditional function is constituted) carry out, therefore, above-mentioned verification mode is properly termed as semantization checking.
Additionally, on the basis of the embodiment of the present application one, it is contemplated that the request data needs of interface have and must fill out The field value of field (or the field that must include) meets certain constraints, if by this constraints If being described in interface description data storehouse, being beneficial to automatically test chemical industry tool according to this this and utilizing this about Bundle condition automatic imitation generates the request data for test, then can be as far as possible by the request data making generation The all test points of covering, and the quality of request data for test can be improved, the most correspondingly ensure that The availability of the response data obtained, promotes the accuracy of test result the most further, simultaneously can be the most effective Ground finds the defect that interface to be tested exists, and illustrates this preferred version below by embodiment two.
Embodiment two
As in figure 2 it is shown, it is the interface test method schematic diagram in the embodiment of the present invention two, institute in the method State the response data description not only including in interface description data storehouse that interface name, interface name are corresponding, also wrap Including request type corresponding to interface name and request data describes, described request data describes and includes correct asking Seek the constraints that the field value of request field that data should include and request field should meet;Basis at this Upper described interface test method comprises the following steps:
Step 201: obtain the interface name corresponding requests of described interface to be tested from interface description data storehouse Data describe and request type;
Step 202: each request field comprised in describing according to the described request data obtained and each request The constraints that the field value of field should meet, generate request type be obtain described request type for The request data of described interface to be tested;
Owing to request data describes request field and the request field including that correct request data should include The constraints that should meet of field value, therefore, when knowing that acquisition request data describes, it is possible to know The constraints that the field value of its each request field comprised and each request field should meet, and then utilize each Request field and corresponding constraints, generate request type be the described request type that obtains for described The request data of interface to be tested.
Preferably, the description in described interface description data storehouse meets setting syntax format, these setting grammer lattice Formula comprises the semantic label being made up of the semantic function of key word and correspondence thereof, and the field value of request field should be expired The semantic label that the constraints of foot is made up of the constraints function of the key word preset and correspondence represents;
Now, step 202 specifically can comprise the following steps that
Step a2: according to described default key word, determine each from the described request data obtained describes The constraints function that the field value of request field is corresponding;
Step b2: generating request type according to the constraints function that the field value of each request field is corresponding is The request data for described interface to be tested of the described request type obtained.
Preferably, described step b2 comprises the steps that
Step b21: generate required parameter according to the constraints function that the field value of each request field is corresponding Value, this required parameter value is parameter value that business is relevant or the unrelated parameter value of business;
Step b22: utilize each request field and corresponding required parameter value to generate the institute that request type is acquisition State the request data for described interface to be tested of request type.
Step 203: described request data is sent to the server at described interface place to be tested;
Step 204: receive the response data for described request data that described server returns;
Step 205: obtain the sound that the interface name of described interface to be tested is corresponding from interface description data storehouse Data are answered to describe;
Step 206: the response field collection in utilizing the described response data obtained to describe and this response field collection In the constraints that should meet of the field value of each response field the described response data received is tested Card, it is thus achieved that the result.
The specific implementation process of above-mentioned steps 203 to step 206 and the step 102 in embodiment one are to step The specific implementation process of 105 is identical, repeats no more here.
The scheme implementing the embodiment of the present invention one or embodiment two can be a test device.Lead to below Cross shown in embodiment three a specific example the application is implemented process to be described in detail.
Embodiment three
With test device for interface testing platform in the embodiment of the present application three, interface description data is abided by described in storehouse The predetermined data form followed is JSON, and test environment is the client server ring by http protocol communication As a example by border, by Fig. 3 and a specific example, the scheme of the embodiment of the present invention two is described in detail.
If-test (If is the abbreviation of InterFace) interface testing platform in Fig. 3 includes: If-HttpTest Module, If-Builder module and If-Validator module;Wherein:
If-httptest module is used to truly simulate http in the case of specific context environment and business scenario please Seeking the module of data, this http request is based on apache commons httpclient3.0.1.
If-validator module is used to the data response that docking port returns and carries out the module that verifies, this module based on Json-schema-validator Open Framework, introduces mockjs semantic label, adds self-defined key word " iftest ", self-defined key word here is default key word, thus provides extendible semantization Verification mode;
If-builder module is used to the request data according to interface and describes the mould of automatization's generation required parameter value Block;
Interface by docking port entitled http://example.com/demo.htm enters as a example by testing below Row explanation:
Assume that request type corresponding for http://example.com/demo.htm in interface description data storehouse is get Request, request data describes and response data describes and is respectively herein below:
1) request data describes:
It is this interface name of http://example.com/demo.htm that above-mentioned request data describes the implication represented Represented by interface request data in the parameter that must fill out be called searchNo, here must fill out parameter namely this Sending out the request field in embodiment two, this searchNo can be described as " search numbering ", the number of this search numbering Be character string type according to type, span be in 0 less than 5 natural number;
2) response data is described as:
Above-mentioned 2) response data describes to express and is meant that: three response field comprising core: ItemId/detail/pic, these three response field is all necessary, it is impossible to lack, and secondly, itemId is one The numeral of individual 11, detail needs picture http://detail.tmall.com/item.htm?Id=15179732651&q=iphoney " equally, pic is a picture Link, and picture pixels is: 344x228.
The process that above-mentioned interface testing platform carries out interface testing comprises the following steps:
The first step: it is treating of http://example.com/demo.htm that If-builder module obtains interface name The request data of test interface describes, 1 as given by above-mentioned) request data description, this interface name is also It is the get request of http;
Second step: If-builder module is according to above-mentioned 1 obtained) request data description, determine and wherein comprise Request field for search numbering searchNo, this request field is also must fill out parameter field;Above-mentioned 1) What request data comprised in describing must fill out what parameter field use this key word of required indicated, only searches One field of rope numbering;
3rd step: if-builder module is according to this keyword preset of iftest, from above-mentioned 1) request data In description, the constraints function of searchNo is@natural (0,5);
4th step: it is searchNo that if-builder module has one must fill out parameter according to request, and searchNo Value be only 0 to 5 natural number, the required parameter value of generation is: 0,5, do not fill out parameter, null, -1、6、xyz;As shown in table (2), naturally it is also possible to include other value, the required parameter generated here Value is that category determines, in theory for these parameter values just can represent all of parameter value.
Table (2)
5th step, if-builder module respectively connects according to searchNo with according to what each required parameter value actually generated Shown in mouth request data such as table (3):
Table (3)
case1 http://example.com/demo?SearchNo=0
case2 http://example.com/demo?SearchNo=5
case3 http://example.com/demo
case4 http://example.com/demo?SearchNo=
case5 http://example.com/demo?SearchNo=-1
case6 http://example.com/demo?SearchNo=6
case7 http://example.com/demo?SearchNo=xyz
6th step: If-httptest module is respectively by each request data (request data in case1 to case6) It is sent to the system under test (SUT) service end (System Under Test, SUT) at described interface place to be tested, also I.e. server;
Here If-httptest module sends request data, sends for simulation.
7th step: If-validator module receives the response for described request data that described server returns Data;Assume now for http://example.com/demo?The response of this request data of searchNo=0 Data are as follows:
3) response data:
Above-mentioned 3) meaning that response data represents be return response in comprise itemId, detail, pic this three Individual response field, and the field value of itemId field is 12323231451, the field value of detail field For " http://detail.tmall.com/item.htm?Id=15179732651&q=iphone ", this field of pic Field value be: "http://g.ald.alicdn.com/bao/uploaded/TB1Y7t4FVXXXXc0XFXXtKXbFXXX.jpg "。
8th step: If-validator module obtains the interface of described interface to be tested from interface description data storehouse The response data description that title is corresponding, such as above-mentioned 2) response data description.
9th step: If-validator module determines that the response field in the described response data description of acquisition is concentrated Each response field be respectively as follows: itemId, detail and pic;
Tenth step: If-validator module is according to this key word preset of iftest, from the described response obtained Data determine that the field value of this response field of itemId should meet constraints function and be in describing @bizNum(11,11);The constraints function that the field value of this response field of detail should meet is @url('http://detail.tmall.com/item.htm?Id=15179732651&q=iphone', ' all'), this constraint The url that the meaning is this detail place that condition represents should include the title of server, in this server Path, goods number and query argument, in this constraints ' all' represent all of protocol name, domain name, Path, goods number and query argument in this server be intended to http://detail.tmall.com/item.htm?Matching in id=15179732651&q=iphone, for this This example in embodiment three matching here refers to identical;The field value of this response field of pic should Meeting constraints function is@img (' 344x228');
11st step: If-validator module utilizes itemId and@bizNum (11,11), detail in the 9th step With@url (' http://detail.tmall.com/item.htm?Id=15179732651&q=iphone', ' all'), pic and @img (' 344x228') is to above-mentioned 3) response data verifies, now understands above-mentioned 3) response data packet Include itemId, detail and pic these three response field, and the field value of each response field all meets accordingly Constraints, therefore, it is thus achieved that the result for being proved to be successful.
If service end returns following situation 1, situation 2 or situation 3, then the result is failure:
Situation 1:
Situation 2:
Situation 3:
In situation 1, itemId is not 11 figure places, and therefore, the result is authentication failed;Detail in situation 2 In the address of server that is given be http://detail.taobao.com rather than Http:// detail.tmall.com, therefore, the result is authentication failed;In situation 3, pic is This is a Picture, this is a string character string rather than an image link, and therefore, the result is authentication failed;
Additionally, run the embodiment of the present invention one to embodiment three interface test method during or fortune After row, the data of the output of each step also can also serve as carrying out this interface to be tested of interface testing Interface describe, in Fig. 3, the content in the dotted line frame in interface description data storehouse is the data that step produces, Below by embodiment four, this scheme is illustrated.
Embodiment four
On the basis of the interface test method described in embodiment one to embodiment three, described interface test method Can also include the steps of any one in 1 to step 4 or multiple step:
Step 1: using generate for interface to be tested request data as this interface to be tested interface survey Example on probation;Set up the incidence relation of this interface testing use-case and the interface name of described interface to be tested.
Step 2: according to described interface code to be tested, generate the interface testing script of described interface to be tested; Set up the pass of the interface testing script of the interface described to be tested generated and the interface name of this interface to be tested Connection relation.
Step 3: generate the interface testing for described interface to be tested according to described the result and report, and Set up the incidence relation of the report of this interface testing and the interface name of this interface to be tested, described interface testing report Accuse the request data of interface to be tested, the result, the result state and the result including having verified that One or more in Failure Causes Analysis, described the result state includes successfully and failure.
Step 4: using the described response data that receives as the test data of interface to be tested;Set up this interface The incidence relation of the interface name of test data and this interface to be tested.
It is to facilitate statement it should be noted that above with the literary style of step 1 to step 4, has respectively walked Between Zhou and in no particular order order.
Add after each step sets up incidence relation in above-mentioned steps 1 to step 4 and store this incidence relation extremely During the step in interface description data storehouse, it is also possible to be formed in interface arbitrary in embodiment one to embodiment three and survey Interface description data library generating method on the basis of method for testing.
The process of above-mentioned steps 1 to step 4 can as shown in Figure 4, and show in Fig. 4 is a circulation, After a certain interface A is tested, it is thus achieved that the complete interface description data (bag of this interface A Include the interface requests data description of interface A, the description of interface response data, interface testing data, interface testing Use-case, interface testing script and interface testing report), follow-up code continuous integrating (Code Continuous When testing for this interface A time Integration), it is also possible to directly utilize acquired this interface A Complete interface description data.The most here circulation refers to should in the continuous integrating of follow-up code The circulation of interface test method, the continuous integrating of code here is a kind of practice of software, when integrated New code or after have modified original code, the carrying out of automatization is verified and regression test, it is ensured that integrated After quality.
By the scheme of the embodiment of the present invention four, in interface description data storehouse, originally requested content data describe and response Data describe, and after the interface of each test is described in and smoothly completes once test comprehensively, all can obtain this and connect Mouthful include the report of interface testing use-case, interface testing, interface testing data and interface testing script, enter one Step enrich interface interface describe, and due to this part of interface to be tested interface describe may be also used in after The lasting concentration of this continuous interface code, the interface that therefore have activated interface to be tested describes so that interface is retouched State and possess accuracy, maintainability, testability, verifiability, so that project team member can be strong Rely on this part of interface specification and launch follow-up work, solve front and back end research and development and each depart from the other side's environment Efficiently test, reduces front and back end and links up cost, improve joint debugging efficiency, and can develop stable efficiently Automatic test script ensures the quality of interface Life cycle and stable, and then ensures interface quality or even whole Individual software system and the quality of product, promote efficiency of research and development, reduces R&D costs.
Below the above-mentioned interface testing use-case obtained, interface testing report, interface testing data and interface are surveyed Training this specifically the most how the use in interface continuous integrating illustrate:
The continuous integrating of code can be divided into front-end code continuous integrating and back-end code continuous integrating, and code is held Two key elements of needs that sequel becomes, the executable script of the first, it two is task scheduling system;Each Script can be performed and can be compared to an executable test case, test case includes: test data, expection Results (assertion verification point) etc., after script performs, it is possible to obtain the test report corresponding to this use-case Accuse;And task scheduling system, current industry main flow is hudson platform, and effect is exactly at specified conditions The lower script that automatically triggers performs, and does not specifically repeat at this.At present in the scene of this patent, device generates Performed script (junit test script) required in back-end code continuous integrating, is put into this script In the projects of one java, then on hudson platform after configuration, code can be realized and persistently return Return test, then provided the user the foundation judging code continuous integrating quality by test report;Equally The interface testing data produced in this device, provide test data for front-end code continuous integrating, can be used for Front-end code continuous integrating or UI Automation regression testing.
Fig. 5 is given the example that the scheme of the embodiment of the present application is used in detailed programs:
Idiographic flow is described as follows:
The first step: the common provisioning interface in front and back end describes and (mainly includes that interface requests describes and interface rings Should describe), by certain mode (being currently third party's interface management platform) interface described and recorded and connect In mouth descriptive data base;
Second step: test gets involved docking port description and tests, and increases semantic label according to practical situation;
Above-mentioned docking port describes and tests, and is exactly " static test " described in soft project in fact.This In mainly test interface describe the most perfect, if appropriate, if to meet best practices, if to meet Business convention and specification, be the process of a checking.
3rd step: front end, rear end, test the concurrent working of full decoupling and test oneself, If-Test is passed through in test Platform carries out test script exploitation;
4th step: by the stable automatic test script that can be used for continuous integrating, can feed back timely The life state of current interface, and return number really by the service end of simulation true request transmission acquisition According to, back feeding describes in interface, and providing for further expanding function may (such as: persistently returning of front-end code Return).
Embodiment five
Based on the same inventive concept with embodiment one to embodiment four, the embodiment of the present application five provides one to connect Mouthful test device, its structural representation as shown in Figure 6, including: request data signal generating unit 61, send single Unit 62, reception unit 63, acquiring unit 64 and authentication unit 65, wherein:
Request data signal generating unit 61, for generating the request data for interface to be tested;
Transmitting element 62, for being sent to the server at described interface place to be tested by described request data;
Receive unit 63, for receiving the response data for described request data that described server returns;
Acquiring unit 64, for obtaining the interface name pair of described interface to be tested from interface description data storehouse The response data answered describes, and described interface description data storehouse includes the response data of interface name and correspondence thereof Describing, described response data describes response field collection and this response including that correct response data should include The constraints that the field value of each response field in sets of fields should meet;
Authentication unit 65, the response field collection in utilizing the described response data of acquisition to describe and this response The constraints that the field value of each response field in sets of fields should the meet described response data to receiving Verify, it is thus achieved that the result.
Preferably, the description in described interface description data storehouse meets setting syntax format, these setting grammer lattice Formula comprises the semantic label being made up of the semantic function of key word and correspondence thereof, and the field value of response field should be expired The semantic label that the constraints of foot is made up of the constraints function of the key word preset and correspondence thereof represents;
Described authentication unit 65, specifically for determine acquisition described response data describe in response field collection The each response field included;For each response field determined, according to described default key word, from The described response data obtained determines the constraints function that the field value of this response field is corresponding in describing;Sentence The set that in the described response data that disconnecting is received, whole fields of comprising are constituted whether with the described data obtained The set equality that response field collection in response description is constituted, and the field value of each response field is the fullest The constraints function that foot is corresponding;If the set that the whole fields comprised in the described response data received are constituted The set equality that response field collection in describing with the described data response obtained is constituted, and each response field Field value is satisfied by the constraints function of correspondence, it is determined that be proved to be successful;Otherwise, it is determined that authentication failed.
Preferably, described interface description data storehouse also includes the request type of interface name and correspondence thereof and asks Ask data to describe, described request data describe include request field collection that correct request data should include and The constraints that each request field that this request field is concentrated should meet;
Described request data signal generating unit 61, described to be tested specifically for obtaining from interface description data storehouse The interface name corresponding requests data of interface describe and request type;Describe according to the described request data obtained In the constraints that should meet of the field value of each request field field of comprising and each request field, generating please The request data for described interface to be tested asking type to be the described request type obtained.
Preferably, the description in described interface description data storehouse meets setting syntax format, these setting grammer lattice Formula comprises the semantic label being made up of the semantic function of key word and correspondence thereof, and the field value of request field should be expired The semantic label that the constraints of foot is made up of the constraints function of the key word preset and correspondence represents;Institute State request data signal generating unit 61, including: constraints function obtains subelement and request data generates son list Unit;
Described constraints function obtains subelement, for according to described default key word, from the institute obtained State during request data describes and determine the constraints function that the field value of each request field is corresponding;
Described request data generates subelement, for the constraint bar corresponding according to the field value of each request field Part function generates the number of request for described interface to be tested that request type is the described request type obtained According to.
Preferably, described request data generates subelement, specifically for the field value according to each request field Corresponding constraints function generates required parameter value, this required parameter value be parameter value that business is relevant or The parameter value that business is unrelated;Each request field and corresponding required parameter value is utilized to generate request type for obtaining The request data for described interface to be tested of described request type.
Preferably, described device also includes:
First incidence relation sets up unit 66, for using generate for interface to be tested request data as The interface testing use-case of this interface to be tested;Set up the interface of this interface testing use-case and described interface to be tested The incidence relation of title.
Preferably, described transmitting element 62, specifically for according to described request data, generate described to be tested The interface testing code of interface;The described interface testing code generated by operation realizes sending described data To described interface to be tested;
Preferably, described device also includes:
Second incidence relation sets up unit 67, for according to described interface code to be tested, generates described to be measured Try the interface testing script of mouth;The interface testing script setting up the interface described to be tested generated is to be measured with this Try the incidence relation of interface name of mouth.
Preferably, described device also includes:
3rd incidence relation sets up unit 68, using the described response data that receives as the test of interface to be tested Data;Set up the incidence relation of these interface testing data and the interface name of this interface to be tested.
Preferably, described device also includes:
4th incidence relation sets up unit 69, generates for described interface to be tested according to described the result Interface testing is reported, and sets up associating of this interface testing report interface name with this interface to be tested System, the request data of interface to be tested that the report of described interface testing includes having verified that, the result, checking One or more in result phase and the result Failure Causes Analysis, described the result state includes into Merit and failure.
In the embodiment of the present application five, the process that implements of each unit refers in embodiment one to embodiment four The description of interface test method part, repeats no more here.
Embodiment six
Based on the same inventive concept with embodiment one to embodiment four, the embodiment of the present application six is based on embodiment Interface test device in five provides a kind of interface description data storehouse generating means, its structural representation such as Fig. 7 Shown in, including: the first incidence relation is set up unit the 71, second incidence relation and is set up unit 72, SAN GUAN Connection relation is set up unit the 73, the 4th incidence relation and is set up unit 74 and memory element 75;Wherein:
First incidence relation sets up unit 71, for according to interface code to be tested, generates described to be measured try The interface testing script of mouth;The interface testing script setting up the interface described to be tested generated to be measured is tried with this The incidence relation of the interface name of mouth, described interface code to be tested generates according to described request data;
Second incidence relation sets up unit 72, for generating the request data for interface to be tested as this The interface testing use-case of interface to be tested, sets up the interface name of this interface testing use-case and described interface to be tested The incidence relation claimed;
3rd incidence relation sets up unit 73, and the described response data being used for receiving is as interface to be tested Test data, set up the incidence relation of these interface testing data and the interface name of this interface to be tested;
4th incidence relation sets up unit 74, to be measured tries for described for generating according to described the result The interface testing report of mouth, sets up associating of this interface testing report interface name with this interface to be tested System, the request data of interface to be tested that the report of described interface testing includes having verified that, the result, checking One or more in result phase and the result Failure Causes Analysis, described the result state includes into Merit and failure;
Memory element 75, for by the interface testing script of described interface to be tested and connecing of this interface to be tested The incidence relation of mouthful incidence relation of title, interface testing use-case and the interface name of described interface to be tested, The incidence relation of the interface name of interface testing report and this interface to be tested and the interface name of interface to be tested The incidence relation claimed is stored in interface description data storehouse.
In the embodiment of the present application six, the process that implements of each unit refers in embodiment one to embodiment four The description of interface test method part, repeats no more here.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive the present invention Embodiment can be realized by hardware, it is also possible to the mode of the general hardware platform adding necessity by software is real Existing.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product Come, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk, Portable hard drive etc.) in, including some instructions with so that computer equipment (can be personal computer, Server, or the network equipment etc.) perform the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the mould in accompanying drawing Block or flow process are not necessarily implemented necessary to the present invention.
The module that it will be appreciated by those skilled in the art that in embodiment in terminal can according to embodiment describe into Row is distributed in the terminal of embodiment, it is also possible to carry out respective change be disposed other than one of the present embodiment or In multiple terminals.The module of above-described embodiment can merge into a module, it is also possible to is further split into many Individual submodule.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. an interface test method, it is characterised in that including:
Generate the request data for interface to be tested;
Described request data is sent to the server at described interface place to be tested;
Receive the response data for described request data that described server returns;And
The response data obtaining the interface name of described interface to be tested from interface description data storehouse corresponding is retouched Stating, described interface description data storehouse includes that the response data of interface name and correspondence thereof describes, described response Data describe that to include that response field collection that correct response data should include and this response field are concentrated each The constraints that the field value of response field should meet;
Response field collection in utilizing the described response data obtained to describe and each sound of this response field concentration The described response data received is verified by the constraints answering the field value of field to meet, it is thus achieved that checking Result.
2. the method for claim 1, it is characterised in that the description in described interface description data storehouse Meeting setting syntax format, this setting syntax format comprises and is made up of the semantic function of key word and correspondence thereof Semantic label, the constraints that the field value of response field should meet is by the key word preset and the pact of correspondence thereof The semantic label that bundle conditional function is constituted represents;
Response field collection in utilizing the described response data obtained to describe and each sound of this response field concentration The described response data received is verified by the constraints answering the field value of field to meet, it is thus achieved that checking As a result, including:
Determine that the response field in the described response data description of acquisition concentrates each response field included;
For each response field determined, according to described default key word, from the described number of responses obtained According to the constraints function that the field value determining this response field in describing is corresponding;
Judge set that in the described response data received, whole fields of comprising are constituted whether with obtain described in Data response describe in the set equality that constitutes of response field collection, and whether the field value of each response field It is satisfied by the constraints function of correspondence;
If the set that the whole fields comprised in the described response data received are constituted rings with the described data obtained The set equality that response field collection in should describing is constituted, and the field value of each response field is satisfied by correspondence Constraints function, it is determined that be proved to be successful;Otherwise, it is determined that authentication failed.
3. the method for claim 1, it is characterised in that also include in described interface description data storehouse Interface name and the request type of correspondence and request data thereof describe, and the description of described request data includes correct Request field collection that request data should include and the pact that each request field that this request field is concentrated should meet Bundle condition;
Generate the request data for interface to be tested, including:
Obtain from interface description data storehouse described interface to be tested interface name corresponding requests data describe and Request type;
Each request field field of comprising and each request field in describing according to the described request data obtained The constraints that field value should meet, generates treating for described of the described request type that request type is acquisition The request data of test interface.
4. method as claimed in claim 3, it is characterised in that the description in described interface description data storehouse Meeting setting syntax format, this setting syntax format comprises and is made up of the semantic function of key word and correspondence thereof Semantic label, the constraints that the field value of request field should meet is by the key word preset and the constraint of correspondence The semantic label that conditional function is constituted represents;
The each request field comprised in describing according to the described request data obtained and the field of each request field The constraints that value should meet generates the request data for described interface to be tested, including:
According to described default key word, from the described request data obtained describes, determine each request field Constraints function corresponding to field value;
The constraints function that field value according to each request field is corresponding generates the institute that request type is acquisition State the request data for described interface to be tested of request type.
5. method as claimed in claim 4, it is characterised in that according to the field value pair of each request field The constraints function answered generate request type be the described request type that obtains for described interface to be tested Request data, including:
The constraints function that field value according to each request field is corresponding generates required parameter value, this request Parameter value is parameter value that business is relevant or the unrelated parameter value of business;
Each request field and corresponding required parameter value is utilized to generate request type for the described request type obtained The request data for described interface to be tested.
6. the method as described in claim 1-5 is arbitrary, it is characterised in that described method also includes:
Using the request data for interface to be tested that generates as the interface testing use-case of this interface to be tested;
Set up the incidence relation of this interface testing use-case and the interface name of described interface to be tested.
7. the method as described in claim 1-5 is arbitrary, it is characterised in that described request data is sent to Described interface to be tested, including:
According to described request data, generate the interface testing code of described interface to be tested;
The described interface testing code generated by operation realizes sending the data to described to be measured try Mouthful;
Described method also includes:
According to described interface code to be tested, generate the interface testing script of described interface to be tested;
Set up the interface testing script of the interface described to be tested generated and the interface name of this interface to be tested Incidence relation.
8. the method as described in claim 1-5 is arbitrary, it is characterised in that described method also includes:
Generate the interface testing for described interface to be tested according to described the result to report, and set up this and connect The incidence relation of the interface name of mouth test report and this interface to be tested, the report of described interface testing includes The request data of interface to be tested, the result, the result state and the result failure cause of checking One or more in analysis, described the result state includes successfully and failure.
9. the method as described in claim 1-5 is arbitrary, it is characterised in that described method also includes:
Using the described response data that receives as the test data of interface to be tested;
Set up the incidence relation of these interface testing data and the interface name of this interface to be tested.
10. an interface description data storehouse based on the arbitrary described interface test method of claim 1-5 generates Method, it is characterised in that including:
According to interface code to be tested, generate the interface testing script of described interface to be tested;Set up generation The interface testing script of described interface to be tested and the incidence relation of the interface name of this interface to be tested, and Being stored in interface description data storehouse by this incidence relation, described interface code to be tested is according to described request Data genaration;And
Using generating for the request data of interface to be tested as the interface testing use-case of this interface to be tested, build The incidence relation of the interface name of this interface testing use-case vertical and described interface to be tested, and this association is closed System is stored in interface description data storehouse;And
Using the described response data of reception as the test data of interface to be tested, set up this interface testing data With the incidence relation of the interface name of this interface to be tested, and this incidence relation is stored in interface describes number According in storehouse;And
Generate the interface testing for described interface to be tested according to described the result to report, set up this interface The incidence relation of the interface name of test report and this interface to be tested, and this incidence relation is stored in connects In mouth descriptive data base, the report of described interface testing includes the request data of the interface to be tested having verified that, tests One or more in card result, the result state and the result Failure Causes Analysis, described checking knot Really state includes successfully and failure.
11. 1 kinds of interface test devices, it is characterised in that including:
Request data signal generating unit, for generating the request data for interface to be tested;
Transmitting element, for being sent to the server at described interface place to be tested by described request data;
Receive unit, for receiving the response data for described request data that described server returns;
Acquiring unit is corresponding for obtaining the interface name of described interface to be tested from interface description data storehouse Response data describe, described interface description data storehouse includes that the response data of interface name and correspondence thereof is retouched Stating, described response data describes response field collection and this response word including that correct response data should include The constraints that the field value of each response field of Duan Jizhong should meet;
Authentication unit, the response field collection in utilizing the described response data of acquisition to describe and this response word The described response data received is carried out by the constraints that the field value of each response field of Duan Jizhong should meet Checking, it is thus achieved that the result.
12. 1 kinds of interface description data storehouse based on the interface test device described in claim 11 generating means, It is characterized in that, including:
First incidence relation sets up unit, for according to interface code to be tested, generates described interface to be tested Interface testing script;Set up interface testing script and this interface to be tested of the interface described to be tested generated The incidence relation of interface name, described interface code to be tested generates according to described request data;
Second incidence relation sets up unit, for treating generating the request data for interface to be tested as this The interface testing use-case of test interface, sets up the interface name of this interface testing use-case and described interface to be tested Incidence relation;
3rd incidence relation sets up unit, for the described response data that will receive as the survey of interface to be tested Examination data, set up the incidence relation of these interface testing data and the interface name of this interface to be tested;
4th incidence relation sets up unit, for generating for described interface to be tested according to described the result Interface testing report, set up the incidence relation of the report of this interface testing and the interface name of this interface to be tested, The request data of interface to be tested that the report of described interface testing includes having verified that, the result, the result One or more in state and the result Failure Causes Analysis, described the result state include successfully and Failure;
Memory element, for the interface by the interface testing script of described interface to be tested with this interface to be tested The incidence relation of the incidence relation of title, interface testing use-case and the interface name of described interface to be tested, connect The incidence relation of mouthful test report and the interface name of this interface to be tested and the interface name of interface to be tested Incidence relation is stored in interface description data storehouse.
CN201510155540.1A 2015-04-02 2015-04-02 Interface test method, interface description data library generating method and device Active CN106155891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510155540.1A CN106155891B (en) 2015-04-02 2015-04-02 Interface test method, interface description data library generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510155540.1A CN106155891B (en) 2015-04-02 2015-04-02 Interface test method, interface description data library generating method and device

Publications (2)

Publication Number Publication Date
CN106155891A true CN106155891A (en) 2016-11-23
CN106155891B CN106155891B (en) 2019-07-05

Family

ID=57338358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510155540.1A Active CN106155891B (en) 2015-04-02 2015-04-02 Interface test method, interface description data library generating method and device

Country Status (1)

Country Link
CN (1) CN106155891B (en)

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776345A (en) * 2017-01-16 2017-05-31 北京恒华伟业科技股份有限公司 A kind of interface delivery system and interface docking method of testing
CN106909492A (en) * 2017-03-07 2017-06-30 北京盛世全景科技股份有限公司 The method for tracing and device of business datum
CN107122296A (en) * 2017-04-18 2017-09-01 上海雷腾软件股份有限公司 The method and apparatus that data for test interface are asserted
CN107171889A (en) * 2017-05-27 2017-09-15 北京金山安全软件有限公司 Network application interface test method and device and electronic equipment
CN107403112A (en) * 2017-07-31 2017-11-28 北京京东尚科信息技术有限公司 Data verification method and its equipment
CN107608902A (en) * 2017-10-23 2018-01-19 中国联合网络通信集团有限公司 Routine interface method of testing and device
CN107741911A (en) * 2017-11-01 2018-02-27 广州爱九游信息技术有限公司 Interface test method, device, client and computer-readable recording medium
CN108038125A (en) * 2017-11-07 2018-05-15 平安科技(深圳)有限公司 Automatic control methods, device, equipment and the storage medium of fund system test value
CN108628750A (en) * 2018-05-16 2018-10-09 无线生活(杭州)信息科技有限公司 A kind of test code process method and device
CN108664396A (en) * 2018-05-08 2018-10-16 平安普惠企业管理有限公司 Bank's interactive interface verification method, device, computer equipment and storage medium
CN108664388A (en) * 2017-03-31 2018-10-16 北京京东尚科信息技术有限公司 Dynamic field data return to test system, method, electronic equipment and the readable storage medium storing program for executing of interface
CN108733569A (en) * 2018-05-25 2018-11-02 北京五八信息技术有限公司 A kind of automatic interface testing method, device, storage medium and equipment
CN108804267A (en) * 2018-05-30 2018-11-13 平安普惠企业管理有限公司 Database polling method, device, computer equipment and storage medium
CN108874654A (en) * 2017-05-15 2018-11-23 阿里巴巴集团控股有限公司 Idempotent validity test method, device and equipment, readable medium
CN108900369A (en) * 2018-05-31 2018-11-27 武汉虹信技术服务有限责任公司 A kind of interface test method based on post request
CN108897687A (en) * 2018-06-29 2018-11-27 泰华智慧产业集团股份有限公司 A kind of API automated testing method and system based on data-driven
CN109032956A (en) * 2018-09-11 2018-12-18 郑州云海信息技术有限公司 A kind of interface test method and device
CN109062784A (en) * 2018-07-06 2018-12-21 北京大学 Interface parameters code constraint entrance localization method and system
CN109165127A (en) * 2018-08-29 2019-01-08 北京奇艺世纪科技有限公司 Localization method, device and the electronic equipment of problem interface
CN109189622A (en) * 2018-08-21 2019-01-11 上海起作业信息科技有限公司 Interface test method and device, electronic equipment, storage medium
CN109298997A (en) * 2018-08-08 2019-02-01 平安科技(深圳)有限公司 Interface test method, system, computer equipment and storage medium
CN109308266A (en) * 2018-11-30 2019-02-05 北京微播视界科技有限公司 Construction method, test method, device, equipment and the medium of test case
CN109376079A (en) * 2018-09-26 2019-02-22 深圳壹账通智能科技有限公司 The test method and server that interface calls
CN109495334A (en) * 2017-09-13 2019-03-19 杭州海康威视系统技术有限公司 A kind of test method and device
CN109726098A (en) * 2018-03-16 2019-05-07 平安科技(深圳)有限公司 Interface test method, device and computer readable storage medium
CN109800168A (en) * 2019-01-24 2019-05-24 北京奇艺世纪科技有限公司 The test method and device of the action event data of software
CN109857634A (en) * 2018-12-15 2019-06-07 中国平安人寿保险股份有限公司 Interface testing parameter verification method, apparatus, electronic equipment and storage medium
CN109889402A (en) * 2019-01-23 2019-06-14 北京字节跳动网络技术有限公司 Method and apparatus for generating information
CN109902026A (en) * 2019-03-27 2019-06-18 北京奇艺世纪科技有限公司 A kind of processing method and test platform of interface testing information
CN110109656A (en) * 2019-03-25 2019-08-09 平安科技(深圳)有限公司 Interface analogy method, device, computer equipment and storage medium
CN110334021A (en) * 2019-06-25 2019-10-15 深圳前海微众银行股份有限公司 Generation method, device, equipment and the storage medium of interface testing case
CN110489349A (en) * 2019-09-23 2019-11-22 四川长虹电器股份有限公司 A kind of interface test method based on JSON configuration file
CN110543428A (en) * 2019-09-09 2019-12-06 中国工商银行股份有限公司 Application system testing method and device
CN110554929A (en) * 2018-06-04 2019-12-10 百度在线网络技术(北京)有限公司 Data verification method and device, computer equipment and storage medium
WO2020000706A1 (en) * 2018-06-25 2020-01-02 平安科技(深圳)有限公司 Database comparison-based interface testing method and system, device and storage medium
CN110704328A (en) * 2019-10-15 2020-01-17 北京城市网邻信息技术有限公司 Interface testing method and device, electronic equipment and readable storage medium
CN110990276A (en) * 2019-11-29 2020-04-10 泰康保险集团股份有限公司 Automatic testing method and device for interface field and storage medium
CN111555928A (en) * 2020-04-14 2020-08-18 珠海格力电器股份有限公司 Method and device for monitoring system abnormity, computer equipment and storage medium
CN111950252A (en) * 2020-07-31 2020-11-17 上海中通吉网络技术有限公司 HTTP response message format verification method, device and equipment
CN112346775A (en) * 2020-09-21 2021-02-09 杭州数智政通科技有限公司 General index data processing method, electronic device and storage medium
CN112835782A (en) * 2020-12-22 2021-05-25 北京健康之家科技有限公司 Interface access test method and system
CN112860552A (en) * 2021-02-02 2021-05-28 北京房江湖科技有限公司 Key word system operation method and device
CN112965909A (en) * 2021-03-19 2021-06-15 湖南大学 Test data, test case generation method and system, and storage medium
CN113687965A (en) * 2021-10-25 2021-11-23 深圳市工易付电子科技有限公司 Data interaction method, device, equipment and storage medium
CN113886221A (en) * 2021-09-13 2022-01-04 前海飞算云智软件科技(深圳)有限公司 Test script generation method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN103312551A (en) * 2012-03-12 2013-09-18 腾讯科技(深圳)有限公司 Test method and test device of common gateway interface
US20150039591A1 (en) * 2013-07-30 2015-02-05 International Business Machines Corporation Method and apparatus for proliferating testing data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN103312551A (en) * 2012-03-12 2013-09-18 腾讯科技(深圳)有限公司 Test method and test device of common gateway interface
US20150039591A1 (en) * 2013-07-30 2015-02-05 International Business Machines Corporation Method and apparatus for proliferating testing data

Cited By (62)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776345A (en) * 2017-01-16 2017-05-31 北京恒华伟业科技股份有限公司 A kind of interface delivery system and interface docking method of testing
CN106909492A (en) * 2017-03-07 2017-06-30 北京盛世全景科技股份有限公司 The method for tracing and device of business datum
CN108664388A (en) * 2017-03-31 2018-10-16 北京京东尚科信息技术有限公司 Dynamic field data return to test system, method, electronic equipment and the readable storage medium storing program for executing of interface
CN107122296A (en) * 2017-04-18 2017-09-01 上海雷腾软件股份有限公司 The method and apparatus that data for test interface are asserted
CN108874654A (en) * 2017-05-15 2018-11-23 阿里巴巴集团控股有限公司 Idempotent validity test method, device and equipment, readable medium
CN108874654B (en) * 2017-05-15 2022-08-16 创新先进技术有限公司 Idempotent validity test method, device and equipment and readable medium
CN107171889A (en) * 2017-05-27 2017-09-15 北京金山安全软件有限公司 Network application interface test method and device and electronic equipment
CN107403112A (en) * 2017-07-31 2017-11-28 北京京东尚科信息技术有限公司 Data verification method and its equipment
CN107403112B (en) * 2017-07-31 2020-07-31 北京京东尚科信息技术有限公司 Data checking method and equipment thereof
CN109495334A (en) * 2017-09-13 2019-03-19 杭州海康威视系统技术有限公司 A kind of test method and device
CN109495334B (en) * 2017-09-13 2021-05-28 杭州海康威视系统技术有限公司 Test method and device
CN107608902A (en) * 2017-10-23 2018-01-19 中国联合网络通信集团有限公司 Routine interface method of testing and device
CN107741911A (en) * 2017-11-01 2018-02-27 广州爱九游信息技术有限公司 Interface test method, device, client and computer-readable recording medium
CN108038125A (en) * 2017-11-07 2018-05-15 平安科技(深圳)有限公司 Automatic control methods, device, equipment and the storage medium of fund system test value
WO2019090825A1 (en) * 2017-11-07 2019-05-16 平安科技(深圳)有限公司 Automatic comparison method, apparatus and device for fund system testing values and storage medium
CN109726098A (en) * 2018-03-16 2019-05-07 平安科技(深圳)有限公司 Interface test method, device and computer readable storage medium
CN108664396A (en) * 2018-05-08 2018-10-16 平安普惠企业管理有限公司 Bank's interactive interface verification method, device, computer equipment and storage medium
CN108628750A (en) * 2018-05-16 2018-10-09 无线生活(杭州)信息科技有限公司 A kind of test code process method and device
CN108628750B (en) * 2018-05-16 2021-11-05 无线生活(杭州)信息科技有限公司 Test code processing method and device
CN108733569A (en) * 2018-05-25 2018-11-02 北京五八信息技术有限公司 A kind of automatic interface testing method, device, storage medium and equipment
CN108733569B (en) * 2018-05-25 2022-09-02 北京五八信息技术有限公司 Interface automatic testing method and device, storage medium and equipment
CN108804267A (en) * 2018-05-30 2018-11-13 平安普惠企业管理有限公司 Database polling method, device, computer equipment and storage medium
CN108900369A (en) * 2018-05-31 2018-11-27 武汉虹信技术服务有限责任公司 A kind of interface test method based on post request
CN110554929A (en) * 2018-06-04 2019-12-10 百度在线网络技术(北京)有限公司 Data verification method and device, computer equipment and storage medium
WO2020000706A1 (en) * 2018-06-25 2020-01-02 平安科技(深圳)有限公司 Database comparison-based interface testing method and system, device and storage medium
CN108897687B (en) * 2018-06-29 2022-04-01 泰华智慧产业集团股份有限公司 API automatic testing method and system based on data driving
CN108897687A (en) * 2018-06-29 2018-11-27 泰华智慧产业集团股份有限公司 A kind of API automated testing method and system based on data-driven
CN109062784B (en) * 2018-07-06 2021-04-27 北京大学 Interface parameter constraint code entry positioning method and system
CN109062784A (en) * 2018-07-06 2018-12-21 北京大学 Interface parameters code constraint entrance localization method and system
CN109298997A (en) * 2018-08-08 2019-02-01 平安科技(深圳)有限公司 Interface test method, system, computer equipment and storage medium
WO2020029375A1 (en) * 2018-08-08 2020-02-13 平安科技(深圳)有限公司 Interface testing method and system, and computer device and storage medium
CN109189622A (en) * 2018-08-21 2019-01-11 上海起作业信息科技有限公司 Interface test method and device, electronic equipment, storage medium
CN109165127B (en) * 2018-08-29 2022-09-02 北京奇艺世纪科技有限公司 Problem interface positioning method and device and electronic equipment
CN109165127A (en) * 2018-08-29 2019-01-08 北京奇艺世纪科技有限公司 Localization method, device and the electronic equipment of problem interface
CN109032956A (en) * 2018-09-11 2018-12-18 郑州云海信息技术有限公司 A kind of interface test method and device
CN109376079A (en) * 2018-09-26 2019-02-22 深圳壹账通智能科技有限公司 The test method and server that interface calls
CN109308266A (en) * 2018-11-30 2019-02-05 北京微播视界科技有限公司 Construction method, test method, device, equipment and the medium of test case
CN109857634A (en) * 2018-12-15 2019-06-07 中国平安人寿保险股份有限公司 Interface testing parameter verification method, apparatus, electronic equipment and storage medium
CN109889402A (en) * 2019-01-23 2019-06-14 北京字节跳动网络技术有限公司 Method and apparatus for generating information
CN109800168A (en) * 2019-01-24 2019-05-24 北京奇艺世纪科技有限公司 The test method and device of the action event data of software
CN110109656A (en) * 2019-03-25 2019-08-09 平安科技(深圳)有限公司 Interface analogy method, device, computer equipment and storage medium
CN109902026A (en) * 2019-03-27 2019-06-18 北京奇艺世纪科技有限公司 A kind of processing method and test platform of interface testing information
CN110334021B (en) * 2019-06-25 2023-04-18 深圳前海微众银行股份有限公司 Interface test case generation method, device, equipment and storage medium
CN110334021A (en) * 2019-06-25 2019-10-15 深圳前海微众银行股份有限公司 Generation method, device, equipment and the storage medium of interface testing case
CN110543428A (en) * 2019-09-09 2019-12-06 中国工商银行股份有限公司 Application system testing method and device
CN110543428B (en) * 2019-09-09 2023-11-24 中国工商银行股份有限公司 Application system testing method and device
CN110489349A (en) * 2019-09-23 2019-11-22 四川长虹电器股份有限公司 A kind of interface test method based on JSON configuration file
CN110704328A (en) * 2019-10-15 2020-01-17 北京城市网邻信息技术有限公司 Interface testing method and device, electronic equipment and readable storage medium
CN110990276A (en) * 2019-11-29 2020-04-10 泰康保险集团股份有限公司 Automatic testing method and device for interface field and storage medium
CN111555928A (en) * 2020-04-14 2020-08-18 珠海格力电器股份有限公司 Method and device for monitoring system abnormity, computer equipment and storage medium
CN111950252A (en) * 2020-07-31 2020-11-17 上海中通吉网络技术有限公司 HTTP response message format verification method, device and equipment
CN112346775B (en) * 2020-09-21 2024-02-02 杭州数智政通科技有限公司 Index data general processing method, electronic device and storage medium
CN112346775A (en) * 2020-09-21 2021-02-09 杭州数智政通科技有限公司 General index data processing method, electronic device and storage medium
CN112835782A (en) * 2020-12-22 2021-05-25 北京健康之家科技有限公司 Interface access test method and system
CN112860552A (en) * 2021-02-02 2021-05-28 北京房江湖科技有限公司 Key word system operation method and device
CN112860552B (en) * 2021-02-02 2023-12-15 贝壳找房(北京)科技有限公司 Keyword mechanism operation method and device
CN112965909A (en) * 2021-03-19 2021-06-15 湖南大学 Test data, test case generation method and system, and storage medium
CN112965909B (en) * 2021-03-19 2024-04-09 湖南大学 Test data, test case generation method and system and storage medium
CN113886221B (en) * 2021-09-13 2022-09-23 前海飞算云智软件科技(深圳)有限公司 Test script generation method and device, storage medium and electronic equipment
CN113886221A (en) * 2021-09-13 2022-01-04 前海飞算云智软件科技(深圳)有限公司 Test script generation method and device, storage medium and electronic equipment
CN113687965B (en) * 2021-10-25 2022-03-01 深圳市工易付电子科技有限公司 Data interaction method, device, equipment and storage medium
CN113687965A (en) * 2021-10-25 2021-11-23 深圳市工易付电子科技有限公司 Data interaction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106155891B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN106155891A (en) Interface test method, interface description data library generating method and device
CN107908541B (en) Interface testing method and device, computer equipment and storage medium
CN106649103B (en) A kind of method and system of Android application program Automated Black Box Testing
CN105099811B (en) Interface testing method and device
Sriparasa JavaScript and JSON essentials
CN107329890A (en) Test method and device based on Mock and server
CN107122297A (en) The method and apparatus that request message for test interface is generated
CN106776307A (en) Method for testing software and system
CN110427331A (en) The method for automatically generating performance test script based on interface testing tool
CN106648556A (en) Front end and back end integrated development testing method and device
JP2021039718A (en) Automated application programming interface (API) specification creation
CN112395184A (en) Information acquisition method, equipment and computer storage medium
CN110532779A (en) A kind of method, apparatus of Hole Detection, terminal and storage medium
Saadatmand et al. OSLC Tool Integration and Systems Engineering--The Relationship between the Two Worlds
CN105117340B (en) URL detection methods and device for iOS browser application quality evaluations
CN106201865A (en) A kind of application programming interface API method of testing, device and terminal unit
CN108804315A (en) Applied to the test method of dynamic development, device, electronic equipment and storage medium
Bartolini et al. Data flow-based validation of web services compositions: Perspectives and examples
CN106776266A (en) The collocation method and terminal device of testing tool
CN109818822A (en) A kind of test method and system of the data readback using deep learning mechanism
KR102165037B1 (en) Code coverage measuring apparatus, code coverage measuring method of the code coverage mearusing apparatus, and code coverage measuring system
Achkar Model based testing of web applications
Akhigbe et al. Consistency Analysis for User Requirements Notation Models.
Sohan et al. SpyREST in action: An automated RESTful API documentation tool
Zhu et al. Using category theory to verify implementation against design in concurrent systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant