CN106598851A - Software interface test method and system - Google Patents

Software interface test method and system Download PDF

Info

Publication number
CN106598851A
CN106598851A CN201611108089.9A CN201611108089A CN106598851A CN 106598851 A CN106598851 A CN 106598851A CN 201611108089 A CN201611108089 A CN 201611108089A CN 106598851 A CN106598851 A CN 106598851A
Authority
CN
China
Prior art keywords
interface
raw requests
data structure
software interface
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611108089.9A
Other languages
Chinese (zh)
Inventor
马家麒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Pinwei Software Co Ltd
Original Assignee
Guangzhou Vipshop Information And Technology Co 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 Guangzhou Vipshop Information And Technology Co Ltd filed Critical Guangzhou Vipshop Information And Technology Co Ltd
Priority to CN201611108089.9A priority Critical patent/CN106598851A/en
Publication of CN106598851A publication Critical patent/CN106598851A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a software interface test method and system. The software interface test method comprises the following steps: receiving an original request sent by an automatic test case, and packaging the original request by a data structure of a first preset template; analyzing the original request according to the data structure of the first preset template to obtain reference data meeting the support of a tested interface; running a code of the tested interface according to the reference data to obtain original response, and packaging the original response by the data structure of a second preset template; analyzing the original response according to the data structure of the second preset template to obtain referred data; and when the referred data are matched with preset referred data, judging the test is passed. According to the software interface test method and system disclosed by the invention, the original request and the original response are packaged by the preset data structure, the request and response are sent to the interface in a unified manner, so that a tester can focus on the test operation without paying attention to the structures of the reference data and the referred data of the interface, and thus the test efficiency is improved.

Description

Software interface test approach and system
Technical field
The present invention relates to software test field, more particularly to software interface test approach and system.
Background technology
In existing method for testing software, during test software interface, need to send raw requests to the tested interface, state The service code of tested interface can return response according to raw requests, be judged according to the response and preset value, if Identical with preset value, test passes through.Multiple interfaces can be used in large project at present, each interface has and oneself specifically connects Receive the data form of parameter;Simultaneously the data form of the return value of each interface is also different, and in testing tester needs To these complicated interfaces enter ginseng and return value parsed just can further be operated respectively, testing efficiency is not high.
The content of the invention
Present invention is primarily targeted at providing a kind of software interface test approach and system, it is intended to reduce interface requests Complexity, improves testing efficiency.
For achieving the above object, a kind of software interface test approach that the present invention is provided is comprised the following steps:
The raw requests that automatic test cases send are received, and the original is encapsulated with the data structure of the first default template Begin to ask;
The raw requests are parsed according to the data structure of the described first default template and is met tested interface support Enter parameter evidence;
According to it is described enter join data run described in the code of tested interface obtain original response, and with the second default template Data structure encapsulate the original response;
The original response is parsed according to the data structure of the described second default template and obtains out parameter evidence;
When it is described go out join Data Matching set out in advance parameter according to when, discriminating test passes through.
Preferably, in the raw requests for receiving automatic test cases transmission, and with the data structure of the first default template Encapsulate includes before the raw requests:
Obtain the bag name that the code of the tested interface is located;
The IP address for receiving the raw requests is found in the first configuration file according to the bag name.
Preferably, it is described to receive the raw requests that automatic test cases send, and with the data knot of the first default template Structure is encapsulated to be included before the raw requests:
Obtain the species of the tested interface;
Raw requests addition is signed according to the species.
Preferably, it is described to receive the raw requests that automatic test cases send, and with the data knot of the first default template Structure is encapsulated to be included before the raw requests:
Judge that default specified location whether there is certificate file;
If so, then certificate signature carried out to the raw requests by SSL SSL;
If it is not, then being carried out the raw requests without certificate signature by SSL.
Preferably, the raw requests for sending in the reception automatic test cases, and with the data of the first default template Include before raw requests described in construction packages:
The second configuration file is obtained, second configuration file is provided with the version number of the code of the tested interface;
The operation version of the tested interface is selected according to the version number.
Additionally, for achieving the above object, the present invention also provides a kind of software interface test system to be included:
Receiver module, for receiving the raw requests of automatic test cases transmission, and with the data of the first default template Raw requests described in construction packages;
First parsing module, for according to it is described enter join data run described in the code of tested interface obtain original sound Should, and the original response is encapsulated with the data structure of the second default template;
Respond module, for parsing the original response according to the data structure of the described second default template parameter is obtained out According to;
Second parsing module, is gone out for parsing the original response according to the data structure of the described second default template Parameter evidence;
First judge module, for when it is described go out join Data Matching set out in advance parameter according to when, discriminating test passes through.
Preferably, the software interface test system also includes:
First acquisition module, the bag name that the code for obtaining the tested interface is located;
Searching modul, for finding the IP for receiving raw requests ground in the first configuration file according to the bag name Location.
Preferably, the software interface test system also includes:
Second acquisition module, for obtaining the species of the tested interface;
First signature blocks, for being signed to raw requests addition according to the species.
Preferably, also include:
Second judge module, for judging that default specified location whether there is certificate file;
Second signature blocks, for when judging that default specified location has certificate file, by SSL SSL Certificate signature has been carried out to the raw requests;
3rd signature blocks, for when judging that default specified location does not have certificate file, then by SSL to described Raw requests are carried out without certificate signature.
Preferably, the software interface test system also includes:
3rd acquisition module, for obtaining the second configuration file, second configuration file is provided with described tested try The version number of the code of mouth;
Selecting module, for selecting the operation version of the tested interface according to the version number.
The raw requests that automatic test cases send are received in technical solution of the present invention, and with the number of the first default template According to raw requests described in construction packages;The raw requests are parsed according to the data structure of the described first default template to be met What tested interface was supported enters parameter evidence;According to it is described enter join data run described in the code of tested interface obtain original sound Should, and the original response is encapsulated with the data structure of the second default template;According to the data structure of the described second default template Parse the original response and obtain out parameter evidence;When it is described go out join Data Matching set out in advance parameter according to when, discriminating test passes through.It is logical Cross and the raw requests and original response are packaged using default template, tester can be being docked using unified mode Mouth sends request, and the response of interface is obtained in a uniform manner, allows tester to be absorbed in the operation of test, without the need for concern Interface enters ginseng and goes out the data structure of ginseng in itself, reduces the complexity of code, improves efficiency.
Description of the drawings
Fig. 1 is the schematic flow sheet of invention software interface test method first embodiment;
Fig. 2 is to be found in the first configuration file according to bag name in invention software interface test method second embodiment Receive the refinement schematic flow sheet of the IP address of the raw requests;
Fig. 3 is to described original in invention software interface test method second embodiment according to the species of tested interface The refinement schematic flow sheet of request addition signature;
Fig. 4 is to carry out having the refinement flow process of certificate signature to illustrate in invention software interface test method second embodiment Figure;
Fig. 5 runs the thin of version for determine tested interface in invention software interface test method second embodiment Change schematic flow sheet;
Fig. 6 is the high-level schematic functional block diagram of invention software interface test system first embodiment;
Fig. 7 is the high-level schematic functional block diagram of invention software interface test system second embodiment;
Fig. 8 is the high-level schematic functional block diagram of invention software interface test system 3rd embodiment;
Fig. 9 is the high-level schematic functional block diagram of invention software interface test system fourth embodiment;
Figure 10 is the high-level schematic functional block diagram of the embodiment of invention software interface test system the 5th.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The present invention provides a kind of software interface test approach, with reference to Fig. 1, the first of invention software interface test method In embodiment, the software interface test approach includes:
Step S10, receives the raw requests that automatic test cases send, and with the data structure envelope of the first default template Fill the raw requests;
In test interface, default IP (referring to Internet protocol address) address corresponding to the interface is needed to send The request of http (HTML (Hypertext Markup Language)) or other agreements, or other agreement requests, such as Thrift (a kind of software frame) A kind of RPC (remote procedure call protocol) agreement, the form of the raw requests only meets the requirement of the interface, could touch Send out interface described carries out desired Business Processing to the request.And when many interfaces are tested, need to send each interface Request especially processed, special interface could be met for the requirement for entering ginseng.By using unified template to the original Beginning request is packaged so that without the structured data request for actually entering ginseng of the tested interface of concern during test.
Step S20, is met tested according to the data structure parsing raw requests of the described first default template What interface was supported enters parameter evidence;
Because each raw requests is the data being packaged using first template, described each raw requests Can carry out parsing according to the data structure of the described first default template and meet tested interface actually receivable parameter.Cause It is the same for the described first default template, so only need to set up a resolver both can be applicable to all of interface.
Step S30, according to it is described enter join data run described in the code of tested interface obtain original response, and with second The data structure of default template encapsulates the original response;
The data structure of each interface response is different, in order to the follow-up work of test it is convenient, it is pre- using second If template is packaged to the original response.
Step S40, parses the original response and obtains out parameter evidence according to the data structure of the described second default template;
Step S50, when it is described go out join Data Matching set out in advance parameter according to when, discriminating test passes through.
Specifically in the present embodiment:Described first default template is a kind of JSON (data interchange format of lightweight) lattice The data of formula, specifically, the described first default template is placed on all service parameters in entitled " params " corresponding value, please Mode is asked to be stored in entitled " method " corresponding value.The tested interface by the operation API of JSON (dedicated for Process the application programming interface of JSON data) " params " corresponding value described in acquisition, and to " params " correspondence Value carry out after Business Processing, finally returning that original response.If the original response is the response after business success, make It is packaged with the described second default template, the described second default template is also JSON data.If more specifically, interface operation Business is normal, then it is entitled in JSON data that the information in the original response is stored in the described second default template In " success_barcode_list " corresponding value;The original response is the response after service fail, the response In business information be stored in entitled " fail_item_list " corresponding value.By presetting template envelope with described second The preset data of dress is matched, if meeting the requirement of the preset data, test passes through.By to the raw requests It is packaged using default data structure with original response, tester can be asked with being sent using unified mode docking port Ask, the response of interface is obtained in a uniform manner, allow tester to be absorbed in the operation of data, without the need for paying close attention to interface itself Enter ginseng and go out the data structure of ginseng, reduce the complexity of code, improve efficiency.
Further, Fig. 2 is refer to, based on invention software interface test method first embodiment, in invention software In interface test method second embodiment, in the raw requests for receiving automatic test cases transmission, and with the first default template Data structure encapsulate and include before the raw requests:
Step S60, obtains the bag name that the code of the tested interface is located.
Step S70, the IP address for receiving the raw requests is found according to the bag name in the first configuration file.
Need code to specify the IP address of the test interface in testing, but due to the change of test environment, need The IP address is changed, is encoded using variable when coding, what the variable was pointed to is the first configuration text Specific one parameter in part.In the present embodiment, by the code file of the analysis tested interface, obtain described tested The bag of examination service interface is entitled:" com.vip.produc t.publish.service.ProductPublishService ", If test environment changes, the IP address of the tested interface sends change, then only need to change first configuration The value of corresponding parameter in file, looks for the Property Name to be in first configuration file Corresponding IP address in " com.vip.product.publish.service.Pr oductPublishService ", saves survey Examination personnel improve testing efficiency to testing the time that code is modified.
Further, Fig. 3 is refer to, based on invention software interface test method first embodiment, in invention software It is described to receive the raw requests that automatic test cases send in interface test method 3rd embodiment, and with the first default mould The data structure of plate is encapsulated to be included before the raw requests:
Step S80, obtains the species of the tested interface;
Step S90, signs according to the species to raw requests addition.
By using unified signature code, make each different types of signature that label are obtained using method of the same name Name, the raw requests only need to call corresponding endorsement method according to the type of the interface, you can to the raw requests Signed.
In the present embodiment, the raw requests are http request, because all types of signatures are connect using unification Mouthful, it is possible to signature operation is carried out using factory class, can be analyzed by the domain name to the interface or artificial defeated Enter to obtain the species of the interface, then signature type is obtained by kind of interface, you can using what is obtained from unified interface Then method name signs transferring out signature contents to the request.Specifically in the present embodiment, all of signature class The signature of type all uses the signature contents that the method for entitled " getSignedRquest " that obtain from base interface is obtained, Before the raw requests are sent every time, the signature factory class, then using the corresponding signature of the tested interface type Class, calls getSignedRquest methods to obtain after signature contents, then the signature contents are added in the raw requests, Save the raw requests carries out specific coding to obtain the operation of signing messages to every kind of signature, improves testing efficiency.
Further, Fig. 4 is refer to, based on invention software interface test method first embodiment, in invention software It is described to receive the raw requests that automatic test cases send in interface test method fourth embodiment, and with the first default mould The data structure of plate is encapsulated to be included before the raw requests:
Step S100, judges that default specified location whether there is certificate file;
If so, the raw requests have been carried out certificate signature by then execution step S110 by SSL SSL;
If it is not, the raw requests are carried out without certificate signature by then execution step S120 by SSL.
In order to further increase the safety for testing the interface, this software interface test approach is in the raw requests Meet the request of ssl protocol.Specifically, in the present embodiment, ssl protocol authentication document is deposited using specified folder, it is described Authentication document includes auth type and authentication password, produces automatically when raw requests are sent each time.Specifically, institute is first checked Specified address is stated with the presence or absence of certificate file, if there is then by SSL SSL having carried out card to the raw requests Bookmark name;If specified location does not have certificate file, the raw requests are carried out without certificate signature by SSL so that survey Examination personnel without pay close attention to again test described in raw requests certificate signature problem, improve testing efficiency.
Further, Fig. 5 is refer to, based on invention software interface test method first embodiment, in invention software In the embodiment of interface test method the 5th, in the raw requests that the reception automatic test cases send, and preset with first The data structure of template is encapsulated to be included before the raw requests:
Step S130, obtains the second configuration file, and second configuration file is provided with the code of the tested interface Version number;
Step S140, according to the version number operation version of the tested interface is selected.
Because the needs of test, for a tested interface, it is sometimes necessary to test the code of its earlier version, this The bright loading procedure by managing the tested interface, can be by loading the second configuration file before loading, and acquisition will add Carry the version number of the tested interface to confirm to load the code of tested interface.So that select to be run it is tested When version, it is only necessary to change configuration file and can be carried out, it is not necessary to changed from code library, test effect is improve Rate.
The present invention also provides a kind of software interface test system, with reference to Fig. 6, in invention software interface test system first In embodiment, the software interface test system that the present invention is provided includes:
Receiver module 10, for receiving the raw requests of automatic test cases transmission, and with the number of the first default template According to raw requests described in construction packages;
In test interface, need to send http to the corresponding preset IP address of the interface or other agreements are asked Ask, or framework standard is asked, the RPC agreements of such as Thrift, the form of the raw requests only meets the requirement of the interface, The interface could be triggered carries out desired Business Processing to the request.And when testing many interfaces, need to each interface The request of transmission is especially processed, and could meet special interface for the requirement for entering ginseng.By using unified template to institute State raw requests to be packaged so that without the structured data request for actually entering ginseng of the tested interface of concern during test.
First parsing module 20, for according to it is described enter join data run described in the code of tested interface obtain original sound Should, and the original response is encapsulated with the data structure of the second default template;
Because each raw requests is the data being packaged using first template, described each raw requests Can carry out parsing according to the data structure of the described first default template and meet tested interface actually receivable parameter.Cause It is the same for the described first default template, so only need to set up a resolver both can be applicable to all of interface.
Respond module 30, for parsing the original response according to the data structure of the described second default template ginseng is obtained out Data;
The data structure of ordinary circumstance each interface response is different, in order to the follow-up work of test is convenient, makes The original response is packaged with the second default template.
Second parsing module 40, obtains for parsing the original response according to the data structure of the described second default template Go out parameter evidence;
First judge module 50, for when it is described go out join Data Matching set out in advance parameter according to when, discriminating test passes through.
Specifically in the present embodiment:Described first default template is a kind of JSON (data interchange format of lightweight) lattice The data of formula, specifically, receiver module 10 is placed on all service parameters using the described first default template entitled In " params " corresponding value, request method is stored in entitled " method " corresponding value.First parsing module 20 By operation API (dedicated for processing the application programming interface of JSON data) " params " correspondence described in acquisition of JSON Value, and start " params " corresponding value described in the respond module 30 pairs and carry out after Business Processing, finally returning that original sound Should.If the original response is the response after business success, it is packaged using the described second default template, described the Two default templates are also JSON data.More specifically, if interface operation business is normal, the information in the original response is deposited The described second default template is placed on in entitled " success_barcode_list " corresponding value in JSON data;The original Beginning response is the response after service fail, and the business information in the response is stored in entitled " fail_item_list " In corresponding value.Judge module 50 by with matched with the preset data of the described second default template encapsulation, if met The requirement of the preset data, then test passes through.By using default data structure to the raw requests and original response It is packaged, tester can in a uniform manner obtain the response of interface to send request using unified mode docking port, Allow tester to be absorbed in the operation of data, enter to join and go out the data structure of ginseng in itself without the need for paying close attention to interface, reduce generation The complexity of code, improves efficiency.
Fig. 7 is refer to, based on invention software interface test system first embodiment, in invention software interface testing system In system second embodiment, the software interface test system also includes:
First acquisition module 60, the bag name that the code for obtaining the tested interface is located;
Searching modul 70, for finding the IP for receiving the raw requests in the first configuration file according to the bag name Address.
Need code to specify the IP address of the test interface in testing, but due to the change of test environment, need The IP address is changed, is encoded using variable when coding, what the variable was pointed to is the first configuration text Specific one parameter in part.In the present embodiment, the first acquisition module 60 obtain the tested service interface bag it is entitled: " com.vip.product.publish.service.Produ ctPublishService ", if test environment becomes Change, the IP address of the tested interface sends change, then only need to change corresponding parameter in first configuration file Value, the searching modul 70 can be looked in first configuration file Corresponding IP address in " com.vip.product.publish.service.ProductPublis hService ", eliminates Tester improves testing efficiency to testing the time that code is modified.
Fig. 8 is refer to, based on invention software interface test system first embodiment, in invention software interface testing system In system 3rd embodiment, the software interface test system also includes:
Second acquisition module 80, for obtaining the species of the tested interface;
First signature blocks 90, for being signed to raw requests addition according to the species.
By using unified signature code, make each different types of signature that label are obtained using method of the same name Name, the raw requests only need to call corresponding endorsement method according to the type of the interface, you can to the raw requests Signed.
In the present embodiment, the raw requests are http request, because all types of signatures are connect using unification Mouthful, it is possible to signature operation is carried out using factory class, the second acquisition module 80 can be carried out by the domain name to the interface Analysis is manually entered to obtain the species of interface, then obtains signature type by kind of interface, you can using from unification Then the method name that interface is obtained signs transferring out signature contents to the request.Specifically in the present embodiment, institute It is described that the signature of some signature types all uses that the method for entitled " getSignedRquest " that obtain from base interface obtains Signature contents, before raw requests are sent every time, the signature factory class passes through to obtain the interface type, then using described The corresponding signature class of tested interface type, the reception calls getSignedRquest methods to obtain after signature contents, and first Signature blocks 90 add the signature contents in the raw requests again, and save raw requests carries out special volume to every kind of signature Code improves testing efficiency to obtain the operation of signing messages.
Further, Fig. 9 is refer to, based on invention software interface test system first embodiment, in invention software In interface test system fourth embodiment, also include:
Second judge module 100, for judging that default specified location whether there is certificate file;
Second signature blocks 110, for when judging that default specified location has certificate file, by SSL SSL has carried out certificate signature to the raw requests;
3rd signature blocks 120, for when judging that default specified location does not have certificate file, then by SSL pair The raw requests are carried out without certificate signature.
In order to further increase the safety for testing the interface, this software interface test approach is in the raw requests Meet the request of ssl protocol.Specifically, in the present embodiment, ssl protocol authentication document is deposited using specified folder, it is described Authentication document includes auth type and authentication password, produces automatically when raw requests are sent each time.Specifically, second judges Module 100 checks that the specified address, with the presence or absence of certificate file, if there is then the second signature blocks 110 safe socket is passed through Layer SSL has carried out certificate signature to the raw requests;If specified location does not have certificate file, the 3rd signature blocks 120 The raw requests are carried out without certificate signature by SSL so that tester is without paying close attention to again raw requests described in test Certificate signature problem, improve testing efficiency.
Further, Figure 10 is refer to, based on invention software interface test system first embodiment, in invention software In the embodiment of interface test system the 5th, the software interface test system also includes:
3rd acquisition module 130, for obtaining the second configuration file, second configuration file is provided with described tested The version number of the code of interface;
Selecting module 140, for selecting the operation version of the tested interface according to the version number.
Because the needs of test, for a tested interface, it is sometimes necessary to test the code of its earlier version, this The bright loading procedure by managing the tested interface, the 3rd acquisition module 130 can be matched somebody with somebody by loading second before loading File is put, acquisition will be loaded after the version number of the tested interface, selecting module 140 loads the tested of the version to perform Try the code of mouth.So that when the tested version to be run is selected, it is only necessary to which changing configuration file just can enter OK, it is not necessary to changed from code library, improve testing efficiency.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of software interface test approach, it is characterised in that comprise the following steps:
Receive the raw requests that automatic test cases send, and with the data structure encapsulation of the first default template it is described it is original please Ask;
The raw requests are parsed according to the data structure of the described first default template and is met entering for tested interface support Parameter evidence;
According to it is described enter join data run described in the code of tested interface obtain original response, and with the number of the second default template According to original response described in construction packages;
The original response is parsed according to the data structure of the described second default template and obtains out parameter evidence;
When it is described go out join Data Matching set out in advance parameter according to when, discriminating test passes through.
2. software interface test approach as claimed in claim 1, it is characterised in that receiving the original that automatic test cases send Begin to ask, and to include before the data structure encapsulation raw requests of the first default template:
Obtain the bag name that the code of the tested interface is located;
The IP address for receiving the raw requests is found in the first configuration file according to the bag name.
3. software interface test approach as claimed in claim 1, it is characterised in that what the reception automatic test cases sent Raw requests, and to include before the data structure encapsulation raw requests of the first default template:
Obtain the species of the tested interface;
Raw requests addition is signed according to the species.
4. software interface test approach as claimed in claim 3, it is characterised in that what the reception automatic test cases sent Raw requests, and to include before the data structure encapsulation raw requests of the first default template:
Judge that default specified location whether there is certificate file;
If so, then certificate signature carried out to the raw requests by SSL SSL;
If it is not, then being carried out the raw requests without certificate signature by SSL.
5. the software interface test approach as described in any one of Claims 1-4, it is characterised in that survey in the reception automatization The raw requests that example on probation sends, and to include before the data structure encapsulation raw requests of the first default template:
The second configuration file is obtained, second configuration file is provided with the version number of the code of the tested interface;
The operation version of the tested interface is selected according to the version number.
6. a kind of software interface test system, it is characterised in that the software interface test system includes:
Receiver module, for receiving the raw requests of automatic test cases transmission, and with the data structure of the first default template Encapsulate the raw requests;
First parsing module, for according to it is described enter join data run described in the code of tested interface obtain original response, and The original response is encapsulated with the data structure of the second default template;
Respond module, for parsing the original response according to the data structure of the described second default template parameter evidence is obtained out;
Second parsing module, for parsing the original response according to the data structure of the described second default template parameter is obtained out According to;
First judge module, for when it is described go out join Data Matching set out in advance parameter according to when, discriminating test passes through.
7. software interface test system as claimed in claim 6, it is characterised in that the software interface test system also includes:
First acquisition module, the bag name that the code for obtaining the tested interface is located;
Searching modul, for finding the IP address for receiving the raw requests in the first configuration file according to the bag name.
8. software interface test system as claimed in claim 6, it is characterised in that the software interface test system also includes:
Second acquisition module, for obtaining the species of the tested interface;
First signature blocks, for being signed to raw requests addition according to the species.
9. software interface test system as claimed in claim 8, it is characterised in that also include:
Second judge module, for judging that default specified location whether there is certificate file;
Second signature blocks, for when judging that default specified location has certificate file, by SSL SSL to institute Stating raw requests has carried out certificate signature;
3rd signature blocks, for when judging that default specified location does not have certificate file, then by SSL to described original Request is carried out without certificate signature.
10. the software interface test system as described in any one of claim 6 to 9, it is characterised in that the software interface test system System also includes:
3rd acquisition module, for obtaining the second configuration file, second configuration file is provided with the tested interface The version number of code;
Selecting module, for selecting the operation version of the tested interface according to the version number.
CN201611108089.9A 2016-12-05 2016-12-05 Software interface test method and system Pending CN106598851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611108089.9A CN106598851A (en) 2016-12-05 2016-12-05 Software interface test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611108089.9A CN106598851A (en) 2016-12-05 2016-12-05 Software interface test method and system

Publications (1)

Publication Number Publication Date
CN106598851A true CN106598851A (en) 2017-04-26

Family

ID=58595848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611108089.9A Pending CN106598851A (en) 2016-12-05 2016-12-05 Software interface test method and system

Country Status (1)

Country Link
CN (1) CN106598851A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247665A (en) * 2017-05-18 2017-10-13 北京信安世纪科技有限公司 A kind of method of testing and system of C interface function
CN107480062A (en) * 2017-08-09 2017-12-15 深圳慧昱教育科技有限公司 A kind of method and apparatus of configuration testing use-case
CN107480053A (en) * 2017-07-21 2017-12-15 杭州销冠网络科技有限公司 A kind of Software Test Data Generation Method and device
CN107592238A (en) * 2017-08-07 2018-01-16 千寻位置网络有限公司 Automatic test approach and system, service terminal, the memory of interface
CN109634836A (en) * 2018-10-23 2019-04-16 平安科技(深圳)有限公司 Test data packaging method, device, equipment and storage medium
CN109753432A (en) * 2018-12-21 2019-05-14 瑞庭网络技术(上海)有限公司 A kind of interface performance test method, apparatus, server and system
CN110196813A (en) * 2019-06-06 2019-09-03 北京百度网讯科技有限公司 Interface test method, device, equipment and medium
CN110309071A (en) * 2019-06-27 2019-10-08 杭州数梦工场科技有限公司 Test the generation method and module, test method and system of code
CN110750442A (en) * 2019-09-06 2020-02-04 平安医疗健康管理股份有限公司 Test case generation method, device, equipment and storage medium
CN112631694A (en) * 2020-12-11 2021-04-09 远光软件股份有限公司 API (application programming interface) packaging calling method and system
CN113722115A (en) * 2020-05-26 2021-11-30 北京沃东天骏信息技术有限公司 Method, device, equipment and computer readable medium for calling interface

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method
CN101488085A (en) * 2008-01-17 2009-07-22 中兴通讯股份有限公司 Software interface test method and apparatus
CN102932205A (en) * 2012-11-19 2013-02-13 深圳市亚特尔科技有限公司 Automatic test method and test platform of network server-side interface
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
CN104484216A (en) * 2014-12-29 2015-04-01 广州唯品会网络技术有限公司 Method and device for generating service interface document and on-line test tool
CN104657270A (en) * 2015-02-28 2015-05-27 北京嘀嘀无限科技发展有限公司 Method and system for testing
CN105099811A (en) * 2015-06-03 2015-11-25 北京金山安全软件有限公司 Interface testing method and device
CN105224447A (en) * 2014-06-11 2016-01-06 联创汽车电子有限公司 Engine controller software diagnosis module test method and test macro
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN105897497A (en) * 2015-07-20 2016-08-24 广州华多网络科技有限公司 Interface test method, application device and service device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method
CN101488085A (en) * 2008-01-17 2009-07-22 中兴通讯股份有限公司 Software interface test method and apparatus
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
CN102932205A (en) * 2012-11-19 2013-02-13 深圳市亚特尔科技有限公司 Automatic test method and test platform of network server-side interface
CN105224447A (en) * 2014-06-11 2016-01-06 联创汽车电子有限公司 Engine controller software diagnosis module test method and test macro
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN104484216A (en) * 2014-12-29 2015-04-01 广州唯品会网络技术有限公司 Method and device for generating service interface document and on-line test tool
CN104657270A (en) * 2015-02-28 2015-05-27 北京嘀嘀无限科技发展有限公司 Method and system for testing
CN105099811A (en) * 2015-06-03 2015-11-25 北京金山安全软件有限公司 Interface testing method and device
CN105897497A (en) * 2015-07-20 2016-08-24 广州华多网络科技有限公司 Interface test method, application device and service device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247665A (en) * 2017-05-18 2017-10-13 北京信安世纪科技有限公司 A kind of method of testing and system of C interface function
CN107247665B (en) * 2017-05-18 2020-06-26 北京信安世纪科技股份有限公司 Method and system for testing C interface function
CN107480053A (en) * 2017-07-21 2017-12-15 杭州销冠网络科技有限公司 A kind of Software Test Data Generation Method and device
CN107592238A (en) * 2017-08-07 2018-01-16 千寻位置网络有限公司 Automatic test approach and system, service terminal, the memory of interface
CN107480062A (en) * 2017-08-09 2017-12-15 深圳慧昱教育科技有限公司 A kind of method and apparatus of configuration testing use-case
CN109634836A (en) * 2018-10-23 2019-04-16 平安科技(深圳)有限公司 Test data packaging method, device, equipment and storage medium
CN109753432A (en) * 2018-12-21 2019-05-14 瑞庭网络技术(上海)有限公司 A kind of interface performance test method, apparatus, server and system
CN110196813A (en) * 2019-06-06 2019-09-03 北京百度网讯科技有限公司 Interface test method, device, equipment and medium
CN110309071A (en) * 2019-06-27 2019-10-08 杭州数梦工场科技有限公司 Test the generation method and module, test method and system of code
CN110309071B (en) * 2019-06-27 2023-01-24 杭州数梦工场科技有限公司 Test code generation method and module, and test method and system
CN110750442A (en) * 2019-09-06 2020-02-04 平安医疗健康管理股份有限公司 Test case generation method, device, equipment and storage medium
CN113722115A (en) * 2020-05-26 2021-11-30 北京沃东天骏信息技术有限公司 Method, device, equipment and computer readable medium for calling interface
CN112631694A (en) * 2020-12-11 2021-04-09 远光软件股份有限公司 API (application programming interface) packaging calling method and system
CN112631694B (en) * 2020-12-11 2023-08-11 远光软件股份有限公司 API (application program interface) encapsulation calling method and system

Similar Documents

Publication Publication Date Title
CN106598851A (en) Software interface test method and system
US8219970B2 (en) XML push and remote execution of a wireless applications
US7546298B2 (en) Software, devices and methods facilitating execution of server-side applications at mobile devices
CN108574604B (en) Test method and device
US20150128103A1 (en) System and method for automating application programming interface integration
CN109376088B (en) Automatic test system and automatic test method
US7920852B2 (en) Compression of data transmitted between server and mobile device
US20060190569A1 (en) Facilitating mobile device awareness of the availability of new or updated server-side applications
US20100257600A1 (en) Automatic Mobile Device Configuration
CN106484611B (en) Fuzzy test method and device based on automatic protocol adaptation
CN109815107B (en) Method and device for automatic testing
CN104717647B (en) Professional ability method for authenticating, equipment and system
CN105718540A (en) Data loading method and apparatus
US8180866B2 (en) Device management apparatus and method for setting configuration-value therein
CN109634841A (en) Electronic device, automatic interface testing method and storage medium
CA2824123A1 (en) Method and apparatus for processing micro web log messages
CN105871911A (en) Service calling engine, method and system
CN107273226B (en) Method and device for integrating components in android system and calling integrated components
CN102841843B (en) Compatible determination methods and device
CN106294119B (en) Test scheduling system and method and terminal equipment
KR20110118000A (en) Apparatus for interoperability between web-browser and local-resources in the mobile device and method thereof
CN114385258B (en) Automatic test method, device, electronic equipment and storage medium
CN113918245A (en) Data calling method, device, equipment and computer readable storage medium
US20170075906A1 (en) Programmatic self-learning of inter-system document processing configurations
CN102075646B (en) Call center equipment control system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20171208

Address after: 510000 Guangzhou City, Guangzhou, Guangdong, Fangcun Avenue, one of the 314 self compiled

Applicant after: Guangzhou Pinwei Software Co., Ltd.

Address before: Liwan District Fangcun Huahai street Guangzhou city Guangdong province 510000 No. 20 self 1-5 building (only for office use)

Applicant before: Guangzhou VIPSHOP Information and Technology Co., Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426

RJ01 Rejection of invention patent application after publication