CN107070735A - Method, test terminal and the system of asynchronous interface test - Google Patents

Method, test terminal and the system of asynchronous interface test Download PDF

Info

Publication number
CN107070735A
CN107070735A CN201611265709.XA CN201611265709A CN107070735A CN 107070735 A CN107070735 A CN 107070735A CN 201611265709 A CN201611265709 A CN 201611265709A CN 107070735 A CN107070735 A CN 107070735A
Authority
CN
China
Prior art keywords
http
asynchronous
test
data
request
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
CN201611265709.XA
Other languages
Chinese (zh)
Other versions
CN107070735B (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.)
Shenzhen one ledger science and Technology Service Co., Ltd.
Original Assignee
Shanghai Billion Through Internet 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 Shanghai Billion Through Internet Technology Co Ltd filed Critical Shanghai Billion Through Internet Technology Co Ltd
Priority to CN201611265709.XA priority Critical patent/CN107070735B/en
Priority to PCT/CN2017/091257 priority patent/WO2018120722A1/en
Publication of CN107070735A publication Critical patent/CN107070735A/en
Application granted granted Critical
Publication of CN107070735B publication Critical patent/CN107070735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/3684Test management for test design, e.g. generating new test cases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a kind of method of asynchronous interface test, test terminal and system, the method for the asynchronous interface test includes:Test terminal sends predetermined HTTP request one by one to asynchronous HTTP callback interfaces equipment to be measured;The corresponding return HTTP data of each HTTP request that service terminal receives that the asynchronous HTTP callback interfaces equipment sends, and the return HTTP data are sent to the test terminal;The test terminal obtains the standard HTTP data corresponding with the HTTP request prestored, and the asynchronous HTTP callback interfaces are tested according to the return HTTP data and the standard HTTP data that are received.The present invention can realize the test to asynchronous HTTP callback interfaces, improve the security for the personal information that unified utilization and management are carried out based on crawler technology.

Description

Method, test terminal and the system of asynchronous interface test
Technical field
The present invention relates to method, test terminal and the system of communication technical field, more particularly to a kind of test of asynchronous interface.
Background technology
At present, user browses information, shopping etc. using internet progress can produce substantial amounts of personal information, including individual People's credit information, purchase and consumption record etc..In order to which these scattered personal information are carried out unified utilization and management, through user In the case of permission, many service providers, which have captured these personal information using crawler technology, gets off to be aggregated to an APP Under account.In order to improve security, the scheme used is:The personal information of crawl is sent to third party by service provider, So that third party is stored, even if so supervisory engineering staff can not consult these personal information.In this scenario, it is necessary to The firsthand data without computing uninterruptedly returned with asynchronous HTTP callback interfaces, the firsthand data is put in storage.
The existing testing scheme for HTTP interface is typically to be directed to synchronous HTTP interface, and is built upon storage In the case of data are addressable, and asynchronous HTTP callback interfaces do not return data to called side directly, but directly storage arrives peace In full database, called side can not directly obtain the firsthand data of return, therefore, it is impossible to be carried out to asynchronous HTTP callback interfaces Test so that the personal information based on crawler technology with and management there is great potential safety hazard.
The content of the invention
It is an object of the invention to provide a kind of method of asynchronous interface test, test terminal and system, it is intended to realization pair The test of asynchronous HTTP callback interfaces, improves the security for the personal information that unified utilization and management are carried out based on crawler technology.
To achieve the above object, the present invention provides a kind of method of asynchronous interface test, the side of the asynchronous interface test Method includes:
S1, test terminal sends predetermined HTTP request one by one to asynchronous HTTP callback interfaces equipment to be measured;
S2, each HTTP request of the service terminal reception asynchronous HTTP callback interfaces equipment transmission is corresponding to be returned HTTP data, and the return HTTP data are sent to the test terminal;
S3, the test terminal obtains the standard HTTP data corresponding with the HTTP request prestored, according to what is received Return to HTTP data and the standard HTTP data are tested the asynchronous HTTP callback interfaces.
Preferably, the step S1 includes:
S11, the test terminal sends first predetermined HTTP request to asynchronous HTTP callback interfaces equipment to be measured Afterwards, the corresponding response message of first predetermined HTTP request that the asynchronous HTTP callback interfaces equipment is returned is received;
S12, if the response message is asks successful information, sends to asynchronous HTTP callback interfaces equipment to be measured Next predetermined HTTP request.
Preferably, the step S12 further comprises:
If the response message analyzes in the successful information of request whether include keyword to ask successful information Segment information;
Whether if including critical field information in the successful information of request, it is pre- to analyze the critical field information Fixed field information, if predetermined field information, then sends next predetermined to asynchronous HTTP callback interfaces equipment to be measured HTTP request.
Preferably, the step S3 includes:
The return HTTP data received are compared S31, the test terminal with corresponding standard HTTP data;
S32, if having the return HTTP data and corresponding standard HTTP data inconsistent, generates the survey of test crash Test result information;
S33, if all return HTTP data are consistent with corresponding standard HTTP data, generation is successfully tested Test result information.
Preferably, also include after the step S2:
S4, the service terminal enters line discipline computing to the return HTTP data based on predetermined data rule, and will Return HTTP data storages after regular computing are into predetermined third party's safety database.
To achieve the above object, the present invention also provides a kind of method testing end tested based on above-mentioned asynchronous interface End, the test terminal includes:
Sending module, for sending predetermined HTTP request one by one to asynchronous HTTP callback interfaces equipment to be measured;
Test module, each HTTP for receiving the asynchronous HTTP callback interfaces equipment transmission in service terminal please Seek corresponding return HTTP data, and the return HTTP data be sent to after the test terminal, obtain prestore with this The corresponding standard HTTP data of HTTP request, according to the return HTTP data and the standard HTTP data received to described different Step HTTP callback interfaces are tested.
Preferably, the sending module makes a reservation for specifically for sending first to asynchronous HTTP callback interfaces equipment to be measured HTTP request after, receive first predetermined HTTP request that the asynchronous HTTP callback interfaces equipment returns corresponding Response message;If the response message is asks successful information, under being sent to asynchronous HTTP callback interfaces equipment to be measured One predetermined HTTP request.
Preferably, if the sending module is further used for the response message to ask successful information, analysis is described Ask whether include critical field information in successful information;If including critical field information in the successful information of request, Whether be predetermined field information, if predetermined field information if then analyzing the critical field information, then to be measured asynchronous HTTP callback interfaces equipment sends next predetermined HTTP request.
Preferably, the test module is specifically for the return HTTP data and corresponding standard HTTP data that will be received It is compared;If having the return HTTP data and corresponding standard HTTP data inconsistent, the test of test crash is generated Object information;If all return HTTP data are consistent with corresponding standard HTTP data, what generation was successfully tested Test result information.
To achieve the above object, the present invention also provides a kind of system of asynchronous interface test, the asynchronous interface test System includes service terminal and above-mentioned test terminal, and the service terminal is used to receive the asynchronous HTTP callback interfaces equipment Corresponding the returns HTTP data of each HTTP request sent, and the returns HTTP data are sent to described test end End.
The beneficial effects of the invention are as follows:The present invention sends HTTP from test terminal to asynchronous HTTP callback interfaces equipment please Ask, asynchronous HTTP callback interfaces send it to service terminal after the corresponding return HTTP data of the HTTP request are got, So that return HTTP data can be sent to test terminal by service terminal, test terminal is based on return HTTP data and mark Quasi- HTTP data are tested asynchronous HTTP callback interfaces, realize the test to asynchronous HTTP callback interfaces, are improved and are based on climbing Worm technology carries out the security of the personal information of unified utilization and management.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for the method first embodiment that asynchronous interface of the present invention is tested;
Fig. 2 is the refinement schematic flow sheet of step S1 shown in Fig. 1;
Fig. 3 is the refinement schematic flow sheet of step S3 shown in Fig. 1;
Fig. 4 is the schematic flow sheet for the method second embodiment that asynchronous interface of the present invention is tested;
Fig. 5 tests the structural representation of the embodiment of terminal one for the present invention.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
As shown in figure 1, Fig. 1 is the schematic flow sheet of the embodiment of method one of asynchronous interface of the present invention test, this is asynchronous to connect The method of mouth test comprises the following steps:
Step S1, test terminal sends predetermined HTTP request one by one to asynchronous HTTP callback interfaces equipment to be measured;
In the present embodiment, test terminal can be that mobile phone, computer, tablet personal computer, personal digital assistant etc. are any suitable Electronic equipment.For asynchronous HTTP callback interfaces to be tested, test terminal sends predetermined HTTP request to it one by one, should Predetermined HTTP request be prestore in HTTP request for test, test terminal this be used for test HTTP request it is corresponding Standard HTTP data, or can be got by other approach this be used for test the corresponding standard HTTP numbers of HTTP request According to.Such as HTTP request for being used to test is the request of a certain webpage of acquisition request or picture resource, then corresponding standard HTTP data are the data of the webpage or picture resource.
Wherein, sent in test terminal to asynchronous HTTP callback interfaces equipment to be measured after predetermined HTTP request, this is different Step HTTP callback interfaces can make an immediate response, and return to request success or failure information and give test terminal, at this moment the HTTP request and Corresponding response process terminates, but really the effective corresponding data of the HTTP request, it is necessary to a period of time predetermined processing The Http interface IP addresses specified can be just returned to afterwards, that is, are tested terminal and received the response message of request success or failure information Afterwards, it is necessary to which a period of time can just receive the corresponding data of the HTTP request.
Step S2, each HTTP request that service terminal receives the asynchronous HTTP callback interfaces equipment transmission is corresponding HTTP data are returned, and the return HTTP data are sent to the test terminal;
In the present embodiment, asynchronous HTTP callback interfaces equipment is obtained after the HTTP request that test terminal is sent is received Then return HTTP data are sent to service terminal by the corresponding return HTTP data of the HTTP request, specifically, asynchronous Return HTTP data are sent to the predetermined corresponding service terminal in Http addresss of service, the service by HTTP callback interfaces equipment Terminal for example can be HTTP server.
In order that the corresponding return of HTTP request that terminal can obtain obtaining through asynchronous HTTP callback interfaces must be tested Return HTTP data are sent to test terminal by HTTP data, the service terminal, so that test terminal is based on return HTTP Data are tested.
Step S3, the test terminal obtains the standard HTTP data corresponding with the HTTP request prestored, according to being connect The return HTTP data of receipts and the standard HTTP data are tested the asynchronous HTTP callback interfaces.
In the present embodiment, the corresponding standard HTTP data of above-mentioned HTTP request are previously stored with test terminal, or The corresponding standard HTTP data of the HTTP request are obtained from other equipment by way of network service.Receiving service eventually Hold after the return HTTP data sent, asynchronous HTTP is adjusted back based on the return HTTP data and standard HTTP data received Interface is tested.
Specific test process can judge whether return HTTP data and standard HTTP data are identical, if both phases It is same then be successfully tested, the corresponding information that is successfully tested is generated so that tester checks, if test crash, similarly generates correspondence Test crash information, to remind tester.
Compared with prior art, the present embodiment sends HTTP request from test terminal to asynchronous HTTP callback interfaces equipment, Asynchronous HTTP callback interfaces send it to service terminal after the corresponding return HTTP data of the HTTP request are got, with Just return HTTP data can be sent to test terminal by service terminal, and test terminal is based on return HTTP data and standard HTTP data are tested asynchronous HTTP callback interfaces, realize the test to asynchronous HTTP callback interfaces, are improved and are based on reptile Technology carries out the security of the personal information of unified utilization and management.
In a preferred embodiment, as shown in Fig. 2 on the basis of above-mentioned Fig. 1 embodiment, the step S1 bags Include:
S11, the test terminal sends first predetermined HTTP request to asynchronous HTTP callback interfaces equipment to be measured Afterwards, the corresponding response message of first predetermined HTTP request that the asynchronous HTTP callback interfaces equipment is returned is received;
S12, if the response message is asks successful information, sends to asynchronous HTTP callback interfaces equipment to be measured Next predetermined HTTP request.
In the present embodiment, test terminal sends first predetermined HTTP to asynchronous HTTP callback interfaces equipment to be measured please After asking, asynchronous HTTP callback interfaces return to corresponding response message to it, if the response message is asks successful information, Then test terminal can continue to send next HTTP request to asynchronous HTTP callback interfaces equipment, then receive asynchronous HTTP and return The corresponding response message of the next HTTP request that interface equipment is returned is adjusted, by that analogy, HTTP request is sent one by one, until All predetermined HTTP requests have been sent to asynchronous HTTP callback interfaces equipment.
If the response message is the information of request failure, the prompting message of test terminal generation HTTP request failure, So that tester makes the processing of correlation in time.
Preferably, if whether above-mentioned response message is analyzed and wrapped in the successful information of the request to ask successful information Information containing critical field, the critical field information for example can be to characterize asynchronous HTTP callback interfaces equipment to only exist in test mode Rather than in running order information, to prevent asynchronous HTTP callback interfaces equipment due to being produced easily in different states The information obscured;If asking to include critical field information in successful information, whether analysis of key field information is predetermined Field information, for example, analyze the information that the critical field information only exists in test mode for asynchronous HTTP callback interfaces equipment, if For predetermined field information, then next predetermined HTTP request is sent to asynchronous HTTP callback interfaces equipment to be measured, then The corresponding response message of the next HTTP request for receiving that asynchronous HTTP callback interfaces equipment returns, by that analogy, one by one HTTP request is sent, until all predetermined HTTP requests have been sent to asynchronous HTTP callback interfaces equipment;If above-mentioned Ask not including critical field information in successful information, then generate prompting message, so that tester makes correlation in time Processing, and no longer send HTTP request to asynchronous HTTP callback interfaces equipment to be measured.
In a preferred embodiment, as shown in figure 3, on the basis of above-mentioned Fig. 1 embodiment, the step S3 bags Include:
The return HTTP data received are compared S31, the test terminal with corresponding standard HTTP data;
S32, if having the return HTTP data and corresponding standard HTTP data inconsistent, generates the survey of test crash Test result information;
S33, if all return HTTP data are consistent with corresponding standard HTTP data, generation is successfully tested Test result information.
In the present embodiment, in test terminal according to the return HTTP data and the standard HTTP data received to described When asynchronous HTTP callback interfaces are tested, each return HTTP data are compared with corresponding standard HTTP data, for example, X1 asks corresponding return HTTP data to be Y1, and X2 asks corresponding return HTTP data to be Y2;X1 asks corresponding standard HTTP data are Z1, and X2 asks corresponding standard HTTP data to be Z2;Then Y1 is compared with Z1, Y2 and Z2 is compared Right, if Y1 is consistent with Z1, and Y2 is consistent with Z2, then is successfully tested, and generates the test result being successfully tested, if returning HTTP data and corresponding standard HTTP data are inconsistent, then test crash, generate the test result of test crash.
In a preferred embodiment, as shown in figure 4, on the basis of above-mentioned Fig. 1 embodiment, after the step S2 Also include:
S4, the service terminal enters line discipline computing to the return HTTP data based on predetermined data rule, and will Return HTTP data storages after regular computing are into predetermined third party's safety database.
In the present embodiment, line discipline computing can be entered to returning to HTTP data based on predetermined data rule, for example, to returning Return HTTP data and computing is encrypted, or computing etc. is encrypted again to returning after HTTP data are compressed, wherein, encryption Algorithm such as can be using symmetric encipherment algorithm or other AESs.Then by the return HTTP after regular computing Data storage is for example preserved into independent third party's safety database into predetermined third party's safety database.
As shown in figure 5, the embodiment of method testing terminal one that Fig. 5 is tested for the present invention based on above-mentioned asynchronous interface Structural representation, the test terminal includes:
Sending module 101, for sending predetermined HTTP request one by one to asynchronous HTTP callback interfaces equipment to be measured;
In the present embodiment, test terminal can be that mobile phone, computer, tablet personal computer, personal digital assistant etc. are any suitable Electronic equipment.For asynchronous HTTP callback interfaces to be tested, test terminal sends predetermined HTTP request to it one by one, should Predetermined HTTP request be prestore in HTTP request for test, test terminal this be used for test HTTP request it is corresponding Standard HTTP data, or can be got by other approach this be used for test the corresponding standard HTTP numbers of HTTP request According to.Such as HTTP request for being used to test is the request of a certain webpage of acquisition request or picture resource, then corresponding standard HTTP data are the data of the webpage or picture resource.
Wherein, sent in test terminal to asynchronous HTTP callback interfaces equipment to be measured after predetermined HTTP request, this is different Step HTTP callback interfaces can make an immediate response, and return to request success or failure information and give test terminal, at this moment the HTTP request and Corresponding response process terminates, but really the effective corresponding data of the HTTP request, it is necessary to a period of time predetermined processing The Http interface IP addresses specified can be just returned to afterwards, that is, are tested terminal and received the response message of request success or failure information Afterwards, it is necessary to which a period of time can just receive the corresponding data of the HTTP request.
Test module 102, for receiving each described of the asynchronous HTTP callback interfaces equipment transmission in service terminal The corresponding return HTTP data of HTTP request, and the return HTTP data are sent to after the test terminal, acquisition prestores Standard HTTP data corresponding with the HTTP request, according to the return HTTP data and the standard HTTP data pair received The asynchronous HTTP callback interfaces are tested.
In the present embodiment, asynchronous HTTP callback interfaces equipment is obtained after the HTTP request that test terminal is sent is received Then return HTTP data are sent to service terminal by the corresponding return HTTP data of the HTTP request, specifically, asynchronous Return HTTP data are sent to the predetermined corresponding service terminal in Http addresss of service, the service by HTTP callback interfaces equipment Terminal for example can be HTTP server.
In order that the corresponding return of HTTP request that terminal can obtain obtaining through asynchronous HTTP callback interfaces must be tested Return HTTP data are sent to test terminal by HTTP data, the service terminal, so that test terminal is based on return HTTP Data are tested.
In the present embodiment, the corresponding standard HTTP data of above-mentioned HTTP request are previously stored with test terminal, or The corresponding standard HTTP data of the HTTP request are obtained from other equipment by way of network service.Receiving service eventually Hold after the return HTTP data sent, asynchronous HTTP is adjusted back based on the return HTTP data and standard HTTP data received Interface is tested.
Specific test process can judge whether return HTTP data and standard HTTP data are identical, if both phases It is same then be successfully tested, the corresponding information that is successfully tested is generated so that tester checks, if test crash, similarly generates correspondence Test crash information, to remind tester.
In a preferred embodiment, above-mentioned sending module 101 to asynchronous HTTP callback interfaces to be measured specifically for setting Preparation is sent after first predetermined HTTP request, and receive the asynchronous HTTP callback interfaces equipment return described first makes a reservation for The corresponding response message of HTTP request;If the response message is asks successful information, returned to asynchronous HTTP to be measured Interface equipment is adjusted to send next predetermined HTTP request.
In the present embodiment, test terminal sends first predetermined HTTP to asynchronous HTTP callback interfaces equipment to be measured please After asking, asynchronous HTTP callback interfaces return to corresponding response message to it, if the response message is asks successful information, Then test terminal can continue to send next HTTP request to asynchronous HTTP callback interfaces equipment, then receive asynchronous HTTP and return The corresponding response message of the next HTTP request that interface equipment is returned is adjusted, by that analogy, HTTP request is sent one by one, until All predetermined HTTP requests have been sent to asynchronous HTTP callback interfaces equipment.
If the response message is the information of request failure, the prompting message of test terminal generation HTTP request failure, So that tester makes the processing of correlation in time.
Preferably, if whether above-mentioned response message is analyzed and wrapped in the successful information of the request to ask successful information Information containing critical field, the critical field information for example can be to characterize asynchronous HTTP callback interfaces equipment to only exist in test mode Rather than in running order information, to prevent asynchronous HTTP callback interfaces equipment due to being produced easily in different states The information obscured;If asking to include critical field information in successful information, whether analysis of key field information is predetermined Field information, for example, analyze the information that the critical field information only exists in test mode for asynchronous HTTP callback interfaces equipment, if For predetermined field information, then next predetermined HTTP request is sent to asynchronous HTTP callback interfaces equipment to be measured, then The corresponding response message of the next HTTP request for receiving that asynchronous HTTP callback interfaces equipment returns, by that analogy, one by one HTTP request is sent, until all predetermined HTTP requests have been sent to asynchronous HTTP callback interfaces equipment;If above-mentioned Ask not including critical field information in successful information, then generate prompting message, so that tester makes correlation in time Processing, and no longer send HTTP request to asynchronous HTTP callback interfaces equipment to be measured.
In a preferred embodiment, above-mentioned test module 102 specifically for the return HTTP data that will be received with it is right The standard HTTP data answered are compared;If having the return HTTP data and corresponding standard HTTP data inconsistent, give birth to Into the test result information of test crash;If all return HTTP data are consistent with corresponding standard HTTP data, Then generate the test result information being successfully tested.
In the present embodiment, in test terminal according to the return HTTP data and the standard HTTP data received to described When asynchronous HTTP callback interfaces are tested, each return HTTP data are compared with corresponding standard HTTP data, for example, X1 asks corresponding return HTTP data to be Y1, and X2 asks corresponding return HTTP data to be Y2;X1 asks corresponding standard HTTP data are Z1, and X2 asks corresponding standard HTTP data to be Z2;Then Y1 is compared with Z1, Y2 and Z2 is compared Right, if Y1 is consistent with Z1, and Y2 is consistent with Z2, then is successfully tested, and generates the test result being successfully tested, if returning HTTP data and corresponding standard HTTP data are inconsistent, then test crash, generate the test result of test crash.
The system that the present invention provides a kind of test of asynchronous interface, the system of the asynchronous interface test include service terminal and Above-mentioned test terminal, each HTTP that the service terminal is used to receive the asynchronous HTTP callback interfaces equipment transmission please Corresponding return HTTP data are sought, and the return HTTP data are sent to the test terminal.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of method of asynchronous interface test, it is characterised in that the method for the asynchronous interface test includes:
S1, test terminal sends predetermined HTTP request one by one to asynchronous HTTP callback interfaces equipment to be measured;
S2, the corresponding return HTTP of each HTTP request that service terminal receives that the asynchronous HTTP callback interfaces equipment sends Data, and the return HTTP data are sent to the test terminal;
S3, the test terminal obtains the standard HTTP data corresponding with the HTTP request prestored, according to the return received HTTP data and the standard HTTP data are tested the asynchronous HTTP callback interfaces.
2. the method for asynchronous interface test according to claim 1, it is characterised in that the step S1 includes:
S11, the test terminal is sent after first predetermined HTTP request to asynchronous HTTP callback interfaces equipment to be measured, is connect Receive the corresponding response message of first predetermined HTTP request that the asynchronous HTTP callback interfaces equipment is returned;
S12, if the response message is asks successful information, sends next to asynchronous HTTP callback interfaces equipment to be measured Individual predetermined HTTP request.
3. the method for asynchronous interface test according to claim 2, it is characterised in that the step S12 further comprises:
If whether the response message is analyzed in the successful information of request comprising critical field letter to ask successful information Breath;
Whether if including critical field information in the successful information of request, it is predetermined to analyze the critical field information Field information, if predetermined field information, then sends next predetermined to asynchronous HTTP callback interfaces equipment to be measured HTTP request.
4. the method for asynchronous interface test according to claim 1, it is characterised in that the step S3 includes:
The return HTTP data received are compared S31, the test terminal with corresponding standard HTTP data;
S32, if having the return HTTP data and corresponding standard HTTP data inconsistent, generates the test knot of test crash Fruit information;
S33, if all return HTTP data are consistent with corresponding standard HTTP data, generates the survey being successfully tested Test result information.
5. according to any one of Claims 1-4 asynchronous interface test method, it is characterised in that the step S2 it Also include afterwards:
S4, the service terminal enters line discipline computing to the return HTTP data based on predetermined data rule, and will be through rule Then the return HTTP data storages after computing are into predetermined third party's safety database.
6. a kind of method testing terminal of the asynchronous interface test based on described in claim 1, it is characterised in that the test Terminal includes:
Sending module, for sending predetermined HTTP request one by one to asynchronous HTTP callback interfaces equipment to be measured;
Test module, for receiving each HTTP request pair that the asynchronous HTTP callback interfaces equipment is sent in service terminal The return HTTP data answered, and by the return HTTP data be sent to it is described test terminal after, obtain prestore with the HTTP Corresponding standard HTTP data are asked, according to the return HTTP data and the standard HTTP data received to described asynchronous HTTP callback interfaces are tested.
7. test terminal according to claim 6, it is characterised in that the sending module is specifically for to be measured asynchronous HTTP callback interfaces equipment is sent after first predetermined HTTP request, receives what the asynchronous HTTP callback interfaces equipment was returned The corresponding response message of first predetermined HTTP request;If the response message is asks successful information, to treating The asynchronous HTTP callback interfaces equipment surveyed sends next predetermined HTTP request.
8. test terminal according to claim 7, it is characterised in that if the sending module is further used for the response Information analyzes in the successful information of request whether include critical field information to ask successful information;If the request Critical field information is included in successful information, then whether analyze the critical field information is predetermined field information, if Predetermined field information, then send next predetermined HTTP request to asynchronous HTTP callback interfaces equipment to be measured.
9. test terminal according to claim 6, it is characterised in that the test module is specifically for by returning for being received HTTP data are returned to be compared with corresponding standard HTTP data;If having the return HTTP data and corresponding standard HTTP numbers According to inconsistent, then the test result information of test crash is generated;If all the return HTTP data and corresponding standard HTTP data are consistent, then generate the test result information being successfully tested.
10. a kind of system of asynchronous interface test, it is characterised in that the system of the asynchronous interface test include service terminal and Test terminal described in any one of claim 6 to 9, the service terminal is used to receive the asynchronous HTTP callback interfaces equipment Corresponding the returns HTTP data of each HTTP request sent, and the returns HTTP data are sent to described test end End.
CN201611265709.XA 2016-12-30 2016-12-30 Method, test terminal and the system of asynchronous interface test Active CN107070735B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611265709.XA CN107070735B (en) 2016-12-30 2016-12-30 Method, test terminal and the system of asynchronous interface test
PCT/CN2017/091257 WO2018120722A1 (en) 2016-12-30 2017-06-30 Asynchronous interface testing method, terminal, device, system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611265709.XA CN107070735B (en) 2016-12-30 2016-12-30 Method, test terminal and the system of asynchronous interface test

Publications (2)

Publication Number Publication Date
CN107070735A true CN107070735A (en) 2017-08-18
CN107070735B CN107070735B (en) 2018-04-20

Family

ID=59624105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611265709.XA Active CN107070735B (en) 2016-12-30 2016-12-30 Method, test terminal and the system of asynchronous interface test

Country Status (2)

Country Link
CN (1) CN107070735B (en)
WO (1) WO2018120722A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848000A (en) * 2018-05-07 2018-11-20 深圳壹账通智能科技有限公司 Network request test method, device, computer equipment and storage medium
CN108920346A (en) * 2018-06-05 2018-11-30 北京奇安信科技有限公司 Web server interface time-consuming statistical method and device
CN109165165A (en) * 2018-09-04 2019-01-08 中国平安人寿保险股份有限公司 Interface test method, device, computer equipment and storage medium
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN110069395A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 A kind of method, apparatus, storage medium and computer equipment for simulating asynchronous interface
CN111274137A (en) * 2020-01-16 2020-06-12 北大方正集团有限公司 Asynchronous interface detection method, asynchronous interface detection system and readable storage medium
WO2021027422A1 (en) * 2019-08-12 2021-02-18 珠海格力电器股份有限公司 Data collection-based interface service function monitoring method, and system
CN117370216A (en) * 2023-12-08 2024-01-09 天津华来科技股份有限公司 Callback interface performance test method based on python language

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651342A (en) * 2019-03-04 2020-09-11 复旦大学 HTTP interface automation testing framework based on Charles recording session
CN110032511A (en) * 2019-03-19 2019-07-19 深圳市买买提信息科技有限公司 A kind of interface test method and interface testing equipment
CN110297761A (en) * 2019-05-23 2019-10-01 深圳壹账通智能科技有限公司 Acquisition methods, device, computer equipment and the storage medium of returned data
CN110377471B (en) * 2019-07-17 2022-08-23 江苏满运软件科技有限公司 Interface verification data generation method and device, storage medium and electronic equipment
CN111581109A (en) * 2020-05-15 2020-08-25 杭州安恒信息技术股份有限公司 Method, system and equipment for checking interface return data
CN111860719B (en) * 2020-07-21 2023-10-27 上海仪电数字技术股份有限公司 Serialization processing method for product to be tested
CN111913820B (en) * 2020-08-11 2023-04-07 傲普(上海)新能源有限公司 Method for processing http overtime task
CN112416708B (en) * 2020-11-17 2023-09-22 中国工商银行股份有限公司 Asynchronous call link monitoring method and system
CN115632817B (en) * 2022-09-22 2023-09-05 浪潮卓数大数据产业发展有限公司 Method and device for preventing climbing of An Zhuo Duan

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217425A (en) * 2008-01-04 2008-07-09 中兴通讯股份有限公司 Web testing method and device
US20080282112A1 (en) * 2000-03-16 2008-11-13 Akamai Technologies, Inc. Method and apparatus for testing request-response service using live connection traffic
CN101572632A (en) * 2009-03-04 2009-11-04 公安部第三研究所 Method for testing management end interface of information security management system
CN103188111A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Testing method and testing system for virtual leased line circuit
CN106095673A (en) * 2016-06-07 2016-11-09 深圳市泰久信息系统股份有限公司 Automated testing method based on WEB interface and system
CN205786933U (en) * 2016-07-19 2016-12-07 湖北广兴通信科技有限公司 One kind of multiple style interface testing moulds

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8271837B2 (en) * 2010-06-07 2012-09-18 Salesforce.Com, Inc. Performing asynchronous testing of an application occasionally connected to an online services system
CN104572469B (en) * 2015-01-23 2017-12-05 广东能龙教育股份有限公司 A kind of automatic interface testing method and system based on simulation http request
CN104615534B (en) * 2015-01-28 2017-08-01 广州酷狗计算机科技有限公司 interface test method and device
CN105162646B (en) * 2015-07-29 2018-09-11 北京京东尚科信息技术有限公司 A kind of multi-protocol interface test system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282112A1 (en) * 2000-03-16 2008-11-13 Akamai Technologies, Inc. Method and apparatus for testing request-response service using live connection traffic
CN101217425A (en) * 2008-01-04 2008-07-09 中兴通讯股份有限公司 Web testing method and device
CN101572632A (en) * 2009-03-04 2009-11-04 公安部第三研究所 Method for testing management end interface of information security management system
CN103188111A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Testing method and testing system for virtual leased line circuit
CN106095673A (en) * 2016-06-07 2016-11-09 深圳市泰久信息系统股份有限公司 Automated testing method based on WEB interface and system
CN205786933U (en) * 2016-07-19 2016-12-07 湖北广兴通信科技有限公司 One kind of multiple style interface testing moulds

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848000A (en) * 2018-05-07 2018-11-20 深圳壹账通智能科技有限公司 Network request test method, device, computer equipment and storage medium
CN108920346A (en) * 2018-06-05 2018-11-30 北京奇安信科技有限公司 Web server interface time-consuming statistical method and device
CN109165165A (en) * 2018-09-04 2019-01-08 中国平安人寿保险股份有限公司 Interface test method, device, computer equipment and storage medium
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN110069395A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 A kind of method, apparatus, storage medium and computer equipment for simulating asynchronous interface
CN110069395B (en) * 2019-03-12 2023-07-25 平安科技(深圳)有限公司 Method and device for simulating asynchronous interface, storage medium and computer equipment
WO2021027422A1 (en) * 2019-08-12 2021-02-18 珠海格力电器股份有限公司 Data collection-based interface service function monitoring method, and system
CN111274137A (en) * 2020-01-16 2020-06-12 北大方正集团有限公司 Asynchronous interface detection method, asynchronous interface detection system and readable storage medium
CN117370216A (en) * 2023-12-08 2024-01-09 天津华来科技股份有限公司 Callback interface performance test method based on python language

Also Published As

Publication number Publication date
WO2018120722A1 (en) 2018-07-05
CN107070735B (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107070735B (en) Method, test terminal and the system of asynchronous interface test
CN112333198B (en) Secure cross-domain login method, system and server
US10498735B2 (en) Visualization of access information
EP2860906B1 (en) Identity authentication method and device
EP3242455A1 (en) Method and device for identifying user identity
CN107135073A (en) Interface interchange method and apparatus
CN109190409B (en) Method, device, equipment and readable storage medium for recording information propagation path
CN104618315B (en) A kind of method, apparatus and system of verification information push and Information Authentication
US9544317B2 (en) Identification of potential fraudulent website activity
CN108696490A (en) The recognition methods of account permission and device
CN107342966B (en) Authority credentials distribution method and device
CN109257321A (en) Safe login method and device
CN108322416A (en) A kind of safety certification implementation method, apparatus and system
CN110198248A (en) The method and apparatus for detecting IP address
CN105657474A (en) Anti-stealing link method and system using identity-based signature in video application
CN107203576A (en) Information synchronization method and device
CN105701198B (en) Page verification method and device
CN111224834A (en) Simulation test method, simulation test device, server and storage medium
US20220210657A1 (en) Identity network representation of communications device subscriber in a digital domain
CN113822664B (en) Method, device, system, terminal, server and medium for opening offline payment
CN108234415A (en) For verifying the method and apparatus of user
CN114978934A (en) Information desensitization method and apparatus, electronic device, and computer-readable storage medium
CN110248326B (en) Data processing method and device
CN111897620A (en) Interaction method and device and electronic equipment
CN104917726B (en) The method and apparatus of authentication

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
CB02 Change of applicant information

Address after: 200030 Shanghai City Kai Xuhui District No. 166, 9 layers and 10 layers

Applicant after: Shanghai Financial Technologies Ltd

Address before: 200135 Pudong, Pudong New Area, China (Shanghai) free trade zone, No. 2250 South Road, Shanghai, building 2, room D121

Applicant before: Shanghai billion through Internet Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180601

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Shenzhen one ledger science and Technology Service Co., Ltd.

Address before: 200030 Xuhui District, Shanghai Kai Bin Road 166, 9, 10 level.

Patentee before: Shanghai Financial Technologies Ltd

TR01 Transfer of patent right
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1242866

Country of ref document: HK