CN107070735B - 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
CN107070735B
CN107070735B CN201611265709.XA CN201611265709A CN107070735B CN 107070735 B CN107070735 B CN 107070735B CN 201611265709 A CN201611265709 A CN 201611265709A CN 107070735 B CN107070735 B CN 107070735B
Authority
CN
China
Prior art keywords
http
asynchronous
test
data
return
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.)
Active
Application number
CN201611265709.XA
Other languages
Chinese (zh)
Other versions
CN107070735A (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
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
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

    • 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
    • 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]

Abstract

Method, test terminal and system the present invention relates to a kind of test of asynchronous interface, the method for the asynchronous interface test include: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 give the return HTTP data sendings to the test terminal;The test terminal obtains the standard HTTP data corresponding with the HTTP request to prestore, 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 field of communication technology, more particularly to a kind of method of asynchronous interface test, test terminal and system.
Background technology
At present, user carries out browsing information, shopping etc. using internet can produce substantial amounts of personal information, including a 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, used scheme 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, which 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 acquire 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 are great security risk.
The content of the invention
Method, test terminal and system it is an object of the invention to provide a kind of test of asynchronous interface, 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 send predetermined HTTP request one by one to asynchronous HTTP callback interfaces equipment to be measured;
S2, the corresponding return of each HTTP request that service terminal receives that the asynchronous HTTP callback interfaces equipment sends HTTP data, and give the return HTTP data sendings to the test terminal;
S3, the test terminal obtains the standard HTTP data corresponding with the HTTP request to prestore, according to what is received Return to HTTP data and the standard HTTP data test the asynchronous HTTP callback interfaces.
Preferably, the step S1 includes:
S11, the test terminal send 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 returns is received;
S12, if the response message to ask successful information, is sent 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;
If including critical field information in the successful information of request, analyze whether the critical field information is pre- 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 with corresponding standard HTTP data for S31, the test terminal;
S32, if having, the return HTTP data and corresponding standard HTTP data are inconsistent, generate the survey of test crash Test result information;
S33, if all return HTTP data and corresponding standard HTTP data are consistent, generation is successfully tested Test result information.
Preferably, further included after the step S2:
S4, the service terminal based on predetermined data rule to the return HTTP data into line discipline computing, and will Return HTTP data after regular computing are stored into predetermined third party's safety database.
To achieve the above object, the present invention also provides a kind of method testing tested based on above-mentioned asynchronous interface is whole End, the test terminal include:
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 by the return HTTP data sendings to the test terminal after, 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 is specifically used for predetermined to asynchronous HTTP callback interfaces equipment transmission first to be measured HTTP request after, it is corresponding to receive first predetermined HTTP request that the asynchronous HTTP callback interfaces equipment returns 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 as the successful information of request, described in analysis Ask whether include critical field information in successful information;If including critical field information in the successful information of request, Then analyze whether the critical field information is predetermined field information, if predetermined field information, then to be measured asynchronous HTTP callback interfaces equipment sends next predetermined HTTP request.
Preferably, the test module is specifically used for the return HTTP data received and corresponding standard HTTP data It is compared;If having, the return HTTP data and corresponding standard HTTP data are inconsistent, generate the test of test crash Result information;If all return HTTP data and corresponding standard HTTP data are consistent, 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, 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 sendings are tested into end to described 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 To 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 sendings can be given test terminal by service terminal, test terminal is based on return HTTP data and mark Quasi- HTTP data test asynchronous HTTP callback interfaces, realize the test to asynchronous HTTP callback interfaces, improve 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 flow diagram of the method first embodiment of asynchronous interface of the present invention test;
Fig. 2 is the refinement flow diagram of step S1 shown in Fig. 1;
Fig. 3 is the refinement flow diagram of step S3 shown in Fig. 1;
Fig. 4 is the flow diagram of the method second embodiment of asynchronous interface of the present invention test;
Fig. 5 is the structure diagram of present invention test one embodiment of terminal.
Embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and 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 flow diagram for one embodiment of method that asynchronous interface of the present invention is tested, this is asynchronous to connect The method of mouth test comprises the following steps:
Step S1, test terminal send 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 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 is HTTP request for test, test in terminal prestore 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 this is used for the request of HTTP request for testing for a certain webpage of acquisition request or picture resource, then corresponding standard HTTP data are the data of the webpage or picture resource.
Wherein, after test terminal sends predetermined HTTP request to asynchronous HTTP callback interfaces equipment to be measured, 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 could be 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, it is corresponding that service terminal receives each HTTP request that the asynchronous HTTP callback interfaces equipment is sent HTTP data are returned, and give the return HTTP data sendings to the test terminal;
In the present embodiment, asynchronous HTTP callback interfaces equipment obtains after the HTTP request that test terminal is sent is received The corresponding return HTTP data of the HTTP request, it is specifically, asynchronous then by return HTTP data sendings to service terminal HTTP callback interfaces equipment gives return HTTP data sendings to the predetermined corresponding service terminal in Http addresss of service, the service Terminal for example can be HTTP server.
In order to enable test terminal can obtain the corresponding return of HTTP request obtained through asynchronous HTTP callback interfaces HTTP data, the service terminal give return HTTP data sendings to test terminal, so that test terminal is based on return HTTP Data are tested.
Step S3, the test terminal obtain the standard HTTP data corresponding with the HTTP request to prestore, according to being connect The return HTTP data of receipts and the standard HTTP data test the asynchronous HTTP callback interfaces.
In the present embodiment, test in terminal and be previously stored with the corresponding standard HTTP data of above-mentioned HTTP request, or The corresponding standard HTTP data of the HTTP request are obtained from other equipment by way of network service.Receiving service eventually After holding 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 sendings can be given test terminal by service terminal, and test terminal is based on return HTTP data and standard HTTP data test asynchronous HTTP callback interfaces, realize the test to asynchronous HTTP callback interfaces, and raising is 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 the embodiment of above-mentioned Fig. 1, the step S1 bags Include:
S11, the test terminal send 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 returns is received;
S12, if the response message to ask successful information, is sent 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 the successful information of request, 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 returns is adjusted, and so on, 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 relevant processing 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 that the asynchronous HTTP callback interfaces equipment of characterization only exists 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, such as the information that the critical field information only exists in test mode for asynchronous HTTP callback interfaces equipment is analyzed, 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, and so on, one by one HTTP request is sent, until all predetermined HTTP requests have been sent to asynchronous HTTP callback interfaces equipment;It is if above-mentioned Ask not including critical field information in successful information, then generate prompting message, for tester make in time it is relevant Processing, and no longer HTTP request is sent to asynchronous HTTP callback interfaces equipment to be measured.
In a preferred embodiment, as shown in figure 3, on the basis of the embodiment of above-mentioned Fig. 1, the step S3 bags Include:
The return HTTP data received are compared with corresponding standard HTTP data for S31, the test terminal;
S32, if having, the return HTTP data and corresponding standard HTTP data are inconsistent, generate the survey of test crash Test result information;
S33, if all return HTTP data and corresponding standard HTTP data are consistent, 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, It is Y1 that X1, which asks corresponding return HTTP data, and it is Y2 that X2, which asks corresponding return HTTP data,;X1 asks corresponding standard HTTP data are Z1, and it is Z2 that X2, which asks corresponding standard HTTP data,;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 the embodiment of above-mentioned Fig. 1, after the step S2 Further include:
S4, the service terminal based on predetermined data rule to the return HTTP data into line discipline computing, and will Return HTTP data after regular computing are stored into predetermined third party's safety database.
, can be based on predetermined data rule to returning to HTTP data into line discipline computing, for example, to returning in the present embodiment 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 use symmetric encipherment algorithm or other Encryption Algorithm.Then by the return HTTP after regular computing Data are stored into predetermined third party's safety database, such as are preserved into independent third party's safety database.
As shown in figure 5, Fig. 5 is one embodiment of method testing terminal that the present invention is tested based on above-mentioned asynchronous interface Structure diagram, the test terminal include:
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 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 is HTTP request for test, test in terminal prestore 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 this is used for the request of HTTP request for testing for a certain webpage of acquisition request or picture resource, then corresponding standard HTTP data are the data of the webpage or picture resource.
Wherein, after test terminal sends predetermined HTTP request to asynchronous HTTP callback interfaces equipment to be measured, 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 could be 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 by the return HTTP data sendings to it is described test terminal after, 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 obtains after the HTTP request that test terminal is sent is received The corresponding return HTTP data of the HTTP request, it is specifically, asynchronous then by return HTTP data sendings to service terminal HTTP callback interfaces equipment gives return HTTP data sendings to the predetermined corresponding service terminal in Http addresss of service, the service Terminal for example can be HTTP server.
In order to enable test terminal can obtain the corresponding return of HTTP request obtained through asynchronous HTTP callback interfaces HTTP data, the service terminal give return HTTP data sendings to test terminal, so that test terminal is based on return HTTP Data are tested.
In the present embodiment, test in terminal and be previously stored with the corresponding standard HTTP data of above-mentioned HTTP request, or The corresponding standard HTTP data of the HTTP request are obtained from other equipment by way of network service.Receiving service eventually After holding 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 is specifically used for setting to asynchronous HTTP callback interfaces to be measured After preparation send first predetermined HTTP request, receive described first that the asynchronous HTTP callback interfaces equipment returns and make a reservation for The corresponding response message of HTTP request;If the response message to ask successful information, is 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 the successful information of request, 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 returns is adjusted, and so on, 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 relevant processing 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 that the asynchronous HTTP callback interfaces equipment of characterization only exists 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, such as the information that the critical field information only exists in test mode for asynchronous HTTP callback interfaces equipment is analyzed, 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, and so on, one by one HTTP request is sent, until all predetermined HTTP requests have been sent to asynchronous HTTP callback interfaces equipment;It is if above-mentioned Ask not including critical field information in successful information, then generate prompting message, for tester make in time it is relevant Processing, and no longer HTTP request is sent to asynchronous HTTP callback interfaces equipment to be measured.
In a preferred embodiment, above-mentioned test module 102 be specifically used for will the return HTTP data that 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 and corresponding standard HTTP data are consistent, 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, It is Y1 that X1, which asks corresponding return HTTP data, and it is Y2 that X2, which asks corresponding return HTTP data,;X1 asks corresponding standard HTTP data are Z1, and it is Z2 that X2, which asks corresponding standard HTTP data,;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 give the return HTTP data sendings to the test terminal.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on, should all be included in the protection scope of the present invention.

Claims (6)

  1. A kind of 1. method of asynchronous interface test, it is characterised in that the method for the asynchronous interface test includes:
    S1, test terminal send 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 give the return HTTP data sendings to the test terminal;
    S3, the test terminal obtains the standard HTTP data corresponding with the HTTP request to prestore, according to the return received HTTP data and the standard HTTP data test the asynchronous HTTP callback interfaces;
    The step S1 includes:S11, the test terminal send first to asynchronous HTTP callback interfaces equipment to be measured and make a reservation for HTTP request after, it is corresponding to receive first predetermined HTTP request that the asynchronous HTTP callback interfaces equipment returns Response message;S12, if the response message to ask successful information, is sent out to asynchronous HTTP callback interfaces equipment to be measured Send next predetermined HTTP request;
    The step S12 further comprises:If the response message analyzes the request successfully letter to ask successful information Whether critical field information is included in breath;If including critical field information in the successful information of request, the pass is analyzed Whether key field information is predetermined field information, if predetermined field information, then to asynchronous HTTP callback interfaces to be measured Equipment sends next predetermined HTTP request, and the predetermined field information is for characterizing asynchronous HTTP callback interfaces equipment Only exist in the information of test mode.
  2. 2. 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 with corresponding standard HTTP data for S31, the test terminal;
    S32, if having, the return HTTP data and corresponding standard HTTP data are inconsistent, generate the test knot of test crash Fruit information;
    S33, if all return HTTP data and corresponding standard HTTP data are consistent, generates the survey being successfully tested Test result information.
  3. 3. the method for asynchronous interface test according to claim 1 or 2, it is characterised in that also wrapped after the step S2 Include:
    S4, the service terminal based on predetermined data rule to the return HTTP data into line discipline computing, and will through rule Then the return HTTP data after computing are stored into predetermined third party's safety database, and the rule computing is to returning to HTTP Computing is encrypted in data, or computing is encrypted again to returning after HTTP data are compressed.
  4. A kind of 4. 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 of the asynchronous HTTP callback interfaces equipment transmission in service terminal The return HTTP data answered, and by the return HTTP data sendings 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;
    The sending module is specifically used for sending 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 returns is received; If the response message to ask successful information, is sent next predetermined to asynchronous HTTP callback interfaces equipment to be measured HTTP request;
    If the sending module is further used for the response message to ask successful information, the request successfully letter is analyzed Whether critical field information is included in breath;If including critical field information in the successful information of request, the pass is analyzed Whether key field information is predetermined field information, if predetermined field information, then to asynchronous HTTP callback interfaces to be measured Equipment sends next predetermined HTTP request, and the predetermined field information is for characterizing asynchronous HTTP callback interfaces equipment Only exist in the information of test mode.
  5. 5. test terminal according to claim 4, it is characterised in that the test module is specifically used for returning what is received HTTP data are returned to be compared with corresponding standard HTTP data;If there are the return HTTP data and corresponding standard HTTP numbers According to inconsistent, then the test result information of test crash is generated;If all return HTTP data and corresponding standard HTTP data are consistent, then generate the test result information being successfully tested.
  6. A kind of 6. 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 claim 4 or 5, the service terminal are used to receive what the asynchronous HTTP callback interfaces equipment was sent The corresponding return HTTP data of each HTTP request, and give the return HTTP data sendings to the test terminal.
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 CN107070735A (en) 2017-08-18
CN107070735B true 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)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848000B (en) * 2018-05-07 2021-05-11 深圳壹账通智能科技有限公司 Network request testing method and 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
CN111651342A (en) * 2019-03-04 2020-09-11 复旦大学 HTTP interface automation testing framework based on Charles recording session
CN110069395B (en) * 2019-03-12 2023-07-25 平安科技(深圳)有限公司 Method and device for simulating asynchronous interface, storage medium and computer equipment
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
CN110445688B (en) * 2019-08-12 2021-04-23 珠海格力电器股份有限公司 Interface service function monitoring method and system based on data collection
CN111274137A (en) * 2020-01-16 2020-06-12 北大方正集团有限公司 Asynchronous interface detection method, asynchronous interface detection system and readable storage medium
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
CN117370216A (en) * 2023-12-08 2024-01-09 天津华来科技股份有限公司 Callback interface performance test method based on python language

Citations (3)

* 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
CN101572632A (en) * 2009-03-04 2009-11-04 公安部第三研究所 Method for testing management end interface of information security management system
CN106095673A (en) * 2016-06-07 2016-11-09 深圳市泰久信息系统股份有限公司 Automated testing method based on WEB interface and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6981180B1 (en) * 2000-03-16 2005-12-27 Akamai Technologies, Inc. Method and apparatus for testing request-response service using live connection traffic
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
CN205786933U (en) * 2016-07-19 2016-12-07 湖北广兴通信科技有限公司 One kind of multiple style interface testing moulds

Patent Citations (3)

* 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
CN101572632A (en) * 2009-03-04 2009-11-04 公安部第三研究所 Method for testing management end interface of information security management system
CN106095673A (en) * 2016-06-07 2016-11-09 深圳市泰久信息系统股份有限公司 Automated testing method based on WEB interface and system

Also Published As

Publication number Publication date
CN107070735A (en) 2017-08-18
WO2018120722A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
CN107070735B (en) Method, test terminal and the system of asynchronous interface test
CN103916244B (en) Verification method and device
CN107135073A (en) Interface interchange method and apparatus
CN108537046A (en) A kind of online contract signature system and method based on block chain technology
US20060075122A1 (en) Method and system for managing cookies according to a privacy policy
US9628566B2 (en) Communication of data of a web real-time communication via a carrier-grade environment
US9544317B2 (en) Identification of potential fraudulent website activity
CN109190409B (en) Method, device, equipment and readable storage medium for recording information propagation path
CN110335159B (en) Application information processing method, device and equipment and readable storage medium
US11403633B2 (en) Method for sending digital information
CN108696481A (en) leak detection method and device
CN107342966B (en) Authority credentials distribution method and device
CN109257321A (en) Safe login method and device
CN110198248A (en) The method and apparatus for detecting IP address
CN108322416A (en) A kind of safety certification implementation method, apparatus and system
CN108667770A (en) A kind of loophole test method, server and the system of website
CN109981647A (en) Method and apparatus for detecting Brute Force
CN105701198B (en) Page verification method and device
CN107203576A (en) Information synchronization method and device
CN109828924A (en) Test method, device and calculating equipment and medium
CN106878244B (en) Authenticity certification information providing method and device
CN106997560A (en) The method and apparatus that processing credit card is insured
CN108449186A (en) Safe verification method and device
US20220210657A1 (en) Identity network representation of communications device subscriber in a digital domain
US20220201476A1 (en) Authenticated communications device to tie real-world and digital identities

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