CN107395464A - A kind of server test method, apparatus and API gateway - Google Patents

A kind of server test method, apparatus and API gateway Download PDF

Info

Publication number
CN107395464A
CN107395464A CN201710810925.6A CN201710810925A CN107395464A CN 107395464 A CN107395464 A CN 107395464A CN 201710810925 A CN201710810925 A CN 201710810925A CN 107395464 A CN107395464 A CN 107395464A
Authority
CN
China
Prior art keywords
server
online service
service request
request
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710810925.6A
Other languages
Chinese (zh)
Inventor
陆小双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710810925.6A priority Critical patent/CN107395464A/en
Publication of CN107395464A publication Critical patent/CN107395464A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of server test method, apparatus and API gateway, including:Receive the online service request that client is sent to aol server;Online service request is replicated, the online service request that duplication is obtained is sent to tested server;Obtained online service is replicated based on the response of tested server and asks obtained request response results, it is determined that the test result of tested server.Because the application is that tested server is tested using online service request, and service request in the true line that online service request is transmitted between client and aol server during progress online interaction, produced problem during being transmitted on line can be accurately reflected, therefore, the mode that the online service request sent in the application using client to aol server is tested being tested server, it is possible to increase the accuracy tested being tested server.

Description

A kind of server test method, apparatus and API gateway
Technical field
The present invention relates to communication technical field, and in particular to a kind of server test method, apparatus and API (Application Programming Interface, application programming interface) gateway.
Background technology
The equipment that server is to provide the service of calculating, server mainly interacts with client, for handling client The service request of transmission, and return to corresponding response message to client.Because server needs to provide highly reliable service, because This, server requires higher in disposal ability, stability, reliability, security, scalability, manageability etc., service Device is required for before formal on-line running by diversified test, to ensure that server meets design requirement.
In the prior art all by the way of entering under line to test to server, in online lower test, extremely taken due to sending The service request of business device is not that client is sent in true line, but the service request simulated by simulator, and is passed through The service request of simulator simulation, produced problem during outlet upload is passed often can not be accurately embodied, it is thus, existing In technology, the server tested under line is passed through after reaching the standard grade, the problem of various still occurs.Therefore, existing skill Art server is entered the mode tested under line there is test accuracy it is low the problem of.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of server test method, apparatus and API gateway, can solve the problem that existing There is technology to enter the problem of test accuracy existing for the mode tested under line is low to server.
To achieve the above object, the embodiment of the present invention provides following technical scheme:
A kind of server test method, including:
Receive the online service request that client is sent to aol server;
Online service request is replicated, and the online service request that duplication is obtained is sent to tested service Device;
The request response results that the online service request obtained based on the tested server response duplication is returned, really The test result of the fixed tested server.
Preferably, after being replicated to online service request, in addition to:
Online service request is sent to aol server.
Preferably, after online service request is sent to aol server, in addition to:
Receive the aol server and respond response results on the line that the online service request returns, and be transmitted to client End.
Preferably, it is described based on the tested server response request for replicating obtained online service request return Response results, determining the process of the test result of the tested server includes:
Receive the online service that the tested server response duplication obtains and ask obtained request response results;
Based on the request response results, the test result of the tested server is determined.
Preferably, the process bag for being based on the request response results, determining the test result of the tested server Include:
Based on response time for including in the request response results, the test result of the tested server is determined;
And/or;
Based on the response error rate that includes in the request response results, the test result of the tested server is determined;
And/or;
Identified based on the errored response included in the request response results, determine the test knot of the tested server Fruit.
Preferably, the request that the online service obtained in the reception tested server response duplication asks to obtain rings After answering result, in addition to:
Forbid returning to the request response results to the client.
Preferably, the process for receiving the online service request that client is sent to aol server includes:
Receive the online service for meeting the first preset protocol request that client is sent to aol server;
The online service request for meeting the first preset protocol is converted into the online service for meeting the second preset protocol Request.
A kind of server test device, including:
Online service request receiving module, the online service request of aol server is sent to for receiving client;
Replication module is asked in online service, for being replicated to online service request;
First sending module, tested server is sent to for obtained online service request will to be replicated;
Test result determining module, for the online service request obtained based on the tested server response duplication The request response results of return, determine the test result of the tested server.
Preferably, in addition to:
Second sending module, for online service request to be sent to aol server.
Preferably, in addition to:
Response results receiving module on line, respond what the online service request returned for receiving the aol server Response results on line;
Response results forwarding module on line, for response results on the line to be transmitted into client.
Preferably, the test result determining module is specifically used for:
Receive the online service that the tested server response duplication obtains and ask obtained request response results;Base In the request response results, the test result of the tested server is determined.
Preferably, the test result determining module includes:
First test result determination sub-module, for based on response time for including in the request response results, it is determined that The test result of the tested server;
And/or;
Second test result determination sub-module, for based on the response error rate that includes in the request response results, really The test result of the fixed tested server;
And/or;
3rd test result determination sub-module, for being identified based on the errored response included in the request response results, Determine the test result of the tested server.
Preferably, in addition to:
Disabled module, for forbidding returning to the request response results to the client.
Preferably, the online service request receiving module includes:
Online service request receiving submodule, meet the first default association for receive that client is sent to aol server The online service request of view;
Modular converter is asked in online service, for the online service request for meeting the first preset protocol to be converted into according with Close the online service request of the second preset protocol.
A kind of API gateway, including:Server test device as described above.
Based on above-mentioned technical proposal, the embodiment of the invention discloses a kind of server test method, apparatus and API gateway, Including:Receive the online service request that client is sent to aol server;Online service request is replicated, and will Replicate obtained online service request and be sent to tested server;The line obtained based on the tested server response duplication The request response results that upper service request obtains, determine the test result of the tested server.Because the application is to replicate Obtained online service request is sent to tested server, and on the line obtained based on the tested server response duplication The request response results that service request obtains, determine the test result of the tested server.I.e. the application is to utilize to take on line Business request is tested tested server, and online service request carries out online interaction between client and aol server During service request in the true line transmitted, produced problem during being transmitted on line can be accurately reflected, therefore, the present invention The mode that the online service request sent in embodiment using client to aol server is tested being tested server, energy It is enough to improve the accuracy tested being tested server.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of server test system Organization Chart provided in an embodiment of the present invention;
Fig. 2 is the signaling process figure of server test method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of server test method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another server test method provided in an embodiment of the present invention;
Fig. 5 is the processing framework figure of API gateway provided in an embodiment of the present invention;
Fig. 6 is a kind of structured flowchart of server test device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 is a kind of server test system Organization Chart provided in an embodiment of the present invention, reference picture 1, and the system can wrap Include:Client 10, API gateway 20, aol server 30 and tested server 40;Aol server 30 and tested server 40 can be cluster server, be erected at network side, and aol server is relative with tested server, and aol server is to use In the server for carrying out business processing on normal line, tested server is the server for being tested its performance.Visitor Family end 10 can be loaded on the user equipmenies such as smart mobile phone, tablet personal computer, notebook computer, be provided with application software thereon, Application software can be any type, such as game class application software, social class application software, shopping class application software etc..API Gateway 20 is one of core component important in micro services framework.
Based on system shown in Figure 1 framework, Fig. 2 shows the signaling flow of server test method provided in an embodiment of the present invention Cheng Tu, with reference to shown in Fig. 1 and Fig. 2, the flow can include:
Step S10:Client sends online service request to API gateway;
Step S20:API gateway replicates to online service request;
Step S30:The online service request that API gateway obtains duplication is sent to tested server;
Step S40:API gateway sends online service request to aol server;
Step S50:Aol server responds online service request, to the API gateway line of return on response results;
Step S60:Response results on line are transmitted to client by API gateway;
Step S70:Tested server response is described to replicate obtained online service request, and returning to request to API gateway rings Answer result;
Step S80:API gateway is based on the request response results, determines the test result of the tested server.
It should be noted that the above-mentioned steps S30 and step S40 in the embodiment of the present invention can be performed simultaneously, also may be used Successively to perform, execution sequence is not intended to limit.The online service request that i.e. API gateway obtains duplication is sent to tested server While, online service request is sent to aol server;Can also API gateway first will replicate obtain online service request Tested server is sent to, then online service request is sent to aol server;First online service can be asked with API gateway Transmission is asked to aol server, then the online service request that duplication is obtained is sent to tested server.
Optionally, due to being taken in the embodiment of the present invention using asynchronous I O process pattern, API gateway on line is received On the line that business device returns after response results, you can response results on line are transmitted into client, and without waiting for tested clothes Business device returns to request response results, and the request response results for being tested server return can't be to client transmission, that is to say, that The request response results that tested server returns can't have an impact to client.
Because the application is will to replicate obtained online service request to be sent to tested server, and it is based on the tested clothes Obtained request response results are asked in the online service that the business device response duplication obtains, and determine the test of the tested server As a result.I.e. the application is that tested server is tested using online service request, and online service request for client with Service request in the true line transmitted between aol server during progress online interaction, can accurately reflect on line and transmit Produced problem in journey, therefore, sent in the embodiment of the present invention using client to the online service request pair of aol server The mode that tested server is tested, it is possible to increase the accuracy tested being tested server.
Fig. 3 shows a kind of flow chart of server test method, and this method can be realized by API gateway, reference picture 3, institute The method of stating can include:
Step S100, the online service request that client is sent to aol server is received;
It should be noted that online service request is carried out between client and aol server on normal line at business The service request transmitted during reason, produced problem during being transmitted on line can be accurately reflected.
Optionally, the API gateway in the embodiment of the present invention can support multi-protocols, such as:RPC(Remote Procedure Call, remote procedure call) agreement and HTTP (Hyper Text Transfer Protocol, hypertext Host-host protocol) etc., the embodiment of the present invention is not specifically limited.
Optionally, the API gateway in the embodiment of the present invention can also carry out the conversion of agreement, specifically, described receive visitor The process that family end is sent to the online service request of aol server includes:Receive client and be sent to meeting for aol server The online service request of first preset protocol;The online service request for meeting the first preset protocol is converted into meeting second The online service request of preset protocol, after converting, follow-up online service request all meets the second preset protocol Online service is asked.
Such as:The online service for meeting RPC agreements can be asked in the embodiment of the present invention, be converted into meeting HTTP forms Online service request, specific transfer process can be:Extract on the protocol type and line of online service request of RPC agreements Content in service request, the Content Transformation during the online service is asked are met into the content for meeting HTTP forms The online service request of HTTP forms.
Step S110, online service request is replicated, and the online service request that duplication is obtained is sent to Tested server;
The online service request for replicating to obtain in the embodiment of the present invention is the duplication version of online service request, this hair API gateway in bright embodiment can be replicated directly in application layer to online service request, obtain online service request Version is replicated, without the participation of network protocol stack, it is not necessary to any improvement is carried out to the network protocol stack of bottom, had Ease for use and versatility.
Step S120, rung based on the tested server response request for replicating obtained online service request return Result is answered, determines the test result of the tested server.
It should be noted that tested server can respond described after the online service request for replicating and obtaining is received Replicate obtained online service request, generation request response results.
API gateway in the embodiment of the present invention can receive tested described replicate of server response and be taken on obtained line The request response results that business request obtains;And the request response results are based on, determine the test result of the tested server. On the other hand, can be by technical staff in tested server side, the line obtained based on the tested server response duplication The request response results that upper service request obtains, determine the test result of the tested server.
It should be noted that the application can use various ways, based on the request response results, determine described tested The test result of server, specifically, several ways are listed below in the application, determine the test knot of the tested server Fruit:
Based on response time for including in the request response results, the test result of the tested server is determined;When In the case that the response time included in response results exceedes default response time threshold value, show that tested server obtains to duplication Online service request response timeout, the test result for determining the tested server is response timeout.It should be noted that Default response time threshold value can be set by technical staff according to the performance and model that are tested server, and the application, which is not done, to be had Body limits.
And/or;
Based on the response error rate that includes in the request response results, the test result of the tested server is determined; The probability that response error rate makes a mistake for request response, the response error rate can carry to be returned in response results are asked API gateway, responded by response error rate with default by way of error rate threshold is compared in the embodiment of the present invention, it is determined that The test result of the tested server.Default response error rate threshold can be by performance of the technical staff according to tested server And model is set, the application is not specifically limited.
And/or;
Identified based on the errored response included in the request response results, determine the test knot of the tested server Fruit.In the case of asking to identify comprising errored response in response results, show to take on the line that tested server obtains duplication Business request response mistake, also, different errored responses mark type indicate tested server generate it is different types of Mistake is responded, the type for the errored response mark that technical staff can be same according to this determines that the problem of tested server has lacks Fall into, so as to complete the test to being tested server.
In addition, whether to API gateway can also return to response results, i.e. quilt according to tested server in the embodiment of the present invention Survey the online service request whether server obtains to duplication and produce response, to determine the test result of the tested server.
It should be noted that the test result that server is tested in the embodiment of the present invention embodies the request of tested server The performance of disposal ability, stability, reliability, security, scalability, manageability etc..
Because the application is will to replicate obtained online service request to be sent to tested server, and it is based on the tested clothes Obtained request response results are asked in the online service that the business device response duplication obtains, and determine the test of the tested server As a result.I.e. the application is that tested server is tested using online service request, and online service request for client with Service request in the true line transmitted between aol server during progress online interaction, can accurately reflect on line and transmit Produced problem in journey, therefore, sent in the embodiment of the present invention using client to the online service request pair of aol server The mode that tested server is tested, it is possible to increase the accuracy tested being tested server.
Optionally, Fig. 4 shows the flow chart of another server test method, and this method can be realized by API gateway, ginseng According to Fig. 4, methods described can include:
Step S200, the online service request that client is sent to aol server is received;
Step S210, online service request is replicated, and the online service request that duplication is obtained is sent to Tested server;
Step S220, online service request is sent to aol server;
It should be noted that due to carrying out service interaction on normal line between client and aol server, API gateway has intercepted client and has been sent to after the online service request of aol server, in order to ensure client with being taken on line Service interaction is normally carried out in the top-stitching of device of being engaged in, and API gateway still needs online service request being forwarded to aol server.
Step S230, receive the aol server and respond response results on the line that the online service request returns, and It is transmitted to client;
Optionally, aol server can respond the online service request, generation after online service request is received Response results on line, and response results on line are returned into API gateway, API gateway again returns to response results on the line Client, so as to complete between client and aol server service interaction on normal line.
Step S240, rung based on the tested server response request for replicating obtained online service request return Result is answered, determines the test result of the tested server.
It is to ring after the online service request that duplication obtains is received due to tested server in the embodiment of the present invention The online service request for replicating and obtaining is answered, generation request response results, the request response results are to be returned to API Gateway.API gateway responds the request sound for replicating obtained online service and asking to obtain by receiving the tested server Result is answered, is then based on the request response results, determines the test result of the tested server.
It should be noted that API gateway responds described replicate in the reception tested server in the embodiment of the present invention To online service ask obtained request response results after, in addition to:Forbid returning to the request sound to the client Result is answered, that is, the request response results that tested server returns can't be to client transmission.
In the embodiment of the present invention aol server response is being received using asynchronous I O process pattern, API gateway On the line that the online service request returns after response results, you can so that response results on the line are transmitted into client, nothing Need to wait for tested server and return to request response results, do not interfere with interacting between client and aol server.Moreover, by Surveying the request response results that server returns can't equally ensure that caused by tested server to client transmission, this aspect Request response results will not have an impact to service interaction in the normal line between client and aol server, that is, this hair It is bright in test process is carried out to tested server, will not be to environmental effects on line.
Optionally, the processing framework of API gateway as shown in Figure 5, the API gateway in the embodiment of the present invention pass through introducing Handler Pipeline (processing pipeline) pattern carries out operation processing, the duplication of online service request is carried out, mainly comprising four The Handler Pipeline of type, including:
Prologue Handler Pipeline (front and continued processing pipeline), the actual processing logic called before performing, in reality The calling on border performs before occurring, and user can add customized processing logic thereto, such as:The selection logic of server Deng.
Process Handler Pipeline (process processing pipeline), initiate the logic actually called, function include but Service request duplication, dynamic routing etc. are not limited to, user can carry out logical extension, and user herein can ask online service multiple After system, the online service request that duplication is obtained is sent to tested server.
Epilogue Handler Pipeline (subsequent treatment pipeline), the actual processing logic called after performing, in reality The calling on border performs after occurring, and user can add self-defined processing logic thereto, such as:Flow rate calculation handles logic Deng.
Error Handler Pipeline (error handle pipeline), error handling logic, in above three In the case that Handler Pipeline execution goes wrong, Error Handler Pipeline are jumped to, are returned to client Return error handle result.
It should be noted that the calling in the present invention between client and API gateway is pure asynchronous mode, Process Calling between Handler Pipeline and aol server or tested server is also pure asynchronous mode.
Server test device provided in an embodiment of the present invention is introduced below, server test dress described below Put, can be with above-described server test method mutually to should refer to.Server test device described below, it is believed that It is that API gateway is to realize server test method provided in an embodiment of the present invention, the functional module framework of required setting.
Fig. 6 is the structured flowchart of server test device provided in an embodiment of the present invention, and the device can be applied to API nets Close, reference picture 6, the device can include:
Online service request receiving module 100, the online service request of aol server is sent to for receiving client;
Replication module 110 is asked in online service, for being replicated to online service request;
First sending module 120, tested server is sent to for obtained online service request will to be replicated;
Test result determining module 130, for the online service obtained based on the tested server response duplication The request response results returned are asked, determine the test result of the tested server.
Also include:
Second sending module, for online service request to be sent to aol server.
Also include:
Response results receiving module on line, respond what the online service request returned for receiving the aol server Response results on line;
Response results forwarding module on line, for response results on the line to be transmitted into client.
The test result determining module is specifically used for:
Receive the online service that the tested server response duplication obtains and ask obtained request response results;Base In the request response results, the test result of the tested server is determined.
The test result determining module includes:
First test result determination sub-module, for based on response time for including in the request response results, it is determined that The test result of the tested server;
And/or;
Second test result determination sub-module, for based on the response error rate that includes in the request response results, really The test result of the fixed tested server;
And/or;
3rd test result determination sub-module, for being identified based on the errored response included in the request response results, Determine the test result of the tested server.
Also include:
Disabled module, for forbidding returning to the request response results to the client.
The online service request receiving module includes:
Online service request receiving submodule, meet the first default association for receive that client is sent to aol server The online service request of view;
Modular converter is asked in online service, for the online service request for meeting the first preset protocol to be converted into according with Close the online service request of the second preset protocol.
A kind of API gateway, including:Server test device as described above.
In summary:
The embodiment of the invention discloses a kind of server test method, apparatus and API gateway, including:Receive client hair Give the online service request of aol server;Online service request is replicated, and will replicate on obtained line and take Business request is sent to tested server;The online service obtained based on the tested server response duplication asks what is obtained Response results are asked, determine the test result of the tested server.Because the application is will to replicate obtained online service to ask Ask and be sent to tested server, and asked based on what the online service that the tested server response duplication obtains asked to obtain Response results are sought, determine the test result of the tested server.I.e. the application is to tested service using online service request Device is tested, and online service request for client and aol server between progress online interaction during transmit it is true Online service is asked, and can be accurately reflected produced problem during being transmitted on line, therefore, client be utilized in the embodiment of the present invention End sends the mode tested to the online service request of aol server being tested server, it is possible to increase to tested service The accuracy that device is tested.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (15)

  1. A kind of 1. server test method, it is characterised in that including:
    Receive the online service request that client is sent to aol server;
    Online service request is replicated, and the online service request that duplication is obtained is sent to tested server;
    Based on the tested server response request response results for replicating obtained online service request return, institute is determined State the test result of tested server.
  2. 2. according to the method for claim 1, it is characterised in that after being replicated to online service request, also Including:
    Online service request is sent to aol server.
  3. 3. according to the method for claim 2, it is characterised in that sent by online service request to aol server Afterwards, in addition to:
    Receive the aol server and respond response results on the line that the online service request returns, and be transmitted to client.
  4. 4. according to the method for claim 1, it is characterised in that described that described replicate is responded based on the tested server The request response results that the online service request arrived returns, determining the process of the test result of the tested server includes:
    Receive the online service that the tested server response duplication obtains and ask obtained request response results;
    Based on the request response results, the test result of the tested server is determined.
  5. 5. according to the method for claim 4, it is characterised in that it is described to be based on the request response results, determine the quilt Surveying the process of the test result of server includes:
    Based on response time for including in the request response results, the test result of the tested server is determined;
    And/or;
    Based on the response error rate that includes in the request response results, the test result of the tested server is determined;
    And/or;
    Identified based on the errored response included in the request response results, determine the test result of the tested server.
  6. 6. according to the method for claim 4, it is characterised in that obtained receiving the tested server response duplication Online service ask obtained request response results after, in addition to:
    Forbid returning to the request response results to the client.
  7. 7. according to the method described in claim 1-6 any one, it is characterised in that the reception client, which is sent on line, to be taken The process of the online service request of business device includes:
    Receive the online service for meeting the first preset protocol request that client is sent to aol server;
    The online service that the online service request for meeting the first preset protocol is converted into meeting the second preset protocol is asked.
  8. A kind of 8. server test device, it is characterised in that including:
    Online service request receiving module, the online service request of aol server is sent to for receiving client;
    Replication module is asked in online service, for being replicated to online service request;
    First sending module, tested server is sent to for obtained online service request will to be replicated;
    Test result determining module, the online service for being obtained based on the tested server response duplication ask to return Request response results, determine the test result of the tested server.
  9. 9. device according to claim 8, it is characterised in that also include:
    Second sending module, for online service request to be sent to aol server.
  10. 10. device according to claim 9, it is characterised in that also include:
    Response results receiving module on line, the line for responding the online service request for receiving the aol server and returning Response results;
    Response results forwarding module on line, for response results on the line to be transmitted into client.
  11. 11. device according to claim 8, it is characterised in that the test result determining module is specifically used for:
    Receive the online service that the tested server response duplication obtains and ask obtained request response results;Based on institute Request response results are stated, determine the test result of the tested server.
  12. 12. device according to claim 11, it is characterised in that the test result determining module includes:
    First test result determination sub-module, for based on response time for including in the request response results, it is determined that described The test result of tested server;
    And/or;
    Second test result determination sub-module, for based on the response error rate included in the request response results, determining institute State the test result of tested server;
    And/or;
    3rd test result determination sub-module, for being identified based on the errored response included in the request response results, it is determined that The test result of the tested server.
  13. 13. device according to claim 11, it is characterised in that also include:
    Disabled module, for forbidding returning to the request response results to the client.
  14. 14. according to the device described in claim 8-13 any one, it is characterised in that the online service request receiving module Including:
    Online service request receiving submodule, first preset protocol of meeting of aol server is sent to for receiving client Online service is asked;
    Modular converter is asked in online service, and the online service request for meeting the first preset protocol by described is converted into meeting the The online service request of two preset protocols.
  15. A kind of 15. application programming interface API gateway, it is characterised in that including:As above claim 8-14 any one institute The server test device stated.
CN201710810925.6A 2017-09-11 2017-09-11 A kind of server test method, apparatus and API gateway Pending CN107395464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710810925.6A CN107395464A (en) 2017-09-11 2017-09-11 A kind of server test method, apparatus and API gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710810925.6A CN107395464A (en) 2017-09-11 2017-09-11 A kind of server test method, apparatus and API gateway

Publications (1)

Publication Number Publication Date
CN107395464A true CN107395464A (en) 2017-11-24

Family

ID=60352174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710810925.6A Pending CN107395464A (en) 2017-09-11 2017-09-11 A kind of server test method, apparatus and API gateway

Country Status (1)

Country Link
CN (1) CN107395464A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194604A (en) * 2018-06-05 2019-01-11 平安科技(深圳)有限公司 Interface automatic method, system, computer equipment and storage medium
CN109710535A (en) * 2018-12-29 2019-05-03 苏州思必驰信息科技有限公司 Service method of calibration and system for voice dialogue platform
CN110798380A (en) * 2019-10-23 2020-02-14 北京奇艺世纪科技有限公司 Data acquisition method, system, device, test equipment and test server
CN111258897A (en) * 2020-01-15 2020-06-09 网银在线(北京)科技有限公司 Service platform testing method, device and system
CN111274150A (en) * 2020-02-07 2020-06-12 北京字节跳动网络技术有限公司 Service instance access method and device and electronic equipment
CN111382058A (en) * 2018-12-29 2020-07-07 北京字节跳动网络技术有限公司 Service testing method and device, server and storage medium
CN112363879A (en) * 2020-11-20 2021-02-12 上海连尚网络科技有限公司 Cache server performance test method, device, equipment and medium
CN113381913A (en) * 2021-08-13 2021-09-10 飞狐信息技术(天津)有限公司 Traffic processing method, gateway, traffic comparison system and device
CN113630310A (en) * 2020-05-06 2021-11-09 北京农信互联科技集团有限公司 Distributed high-availability gateway system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001183A (en) * 2007-01-10 2007-07-18 网之易信息技术(北京)有限公司 Test method and system for network application software
CN103580943A (en) * 2012-08-03 2014-02-12 亿赞普(北京)科技有限公司 Network software online testing method and system
CN104410542A (en) * 2014-11-18 2015-03-11 小米科技有限责任公司 Method and device for simulation test
CN105005521A (en) * 2015-06-26 2015-10-28 腾讯科技(北京)有限公司 Test method and apparatus
CN106375139A (en) * 2015-07-23 2017-02-01 腾讯科技(北京)有限公司 Request copying method, apparatus and system
CN106470136A (en) * 2015-08-21 2017-03-01 腾讯科技(北京)有限公司 Platform test method and platform testing system
CN106789432A (en) * 2016-12-28 2017-05-31 中软信息系统工程有限公司 Test system based on autonomous controllable cloud platform technology

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001183A (en) * 2007-01-10 2007-07-18 网之易信息技术(北京)有限公司 Test method and system for network application software
CN103580943A (en) * 2012-08-03 2014-02-12 亿赞普(北京)科技有限公司 Network software online testing method and system
CN104410542A (en) * 2014-11-18 2015-03-11 小米科技有限责任公司 Method and device for simulation test
CN105005521A (en) * 2015-06-26 2015-10-28 腾讯科技(北京)有限公司 Test method and apparatus
CN106375139A (en) * 2015-07-23 2017-02-01 腾讯科技(北京)有限公司 Request copying method, apparatus and system
CN106470136A (en) * 2015-08-21 2017-03-01 腾讯科技(北京)有限公司 Platform test method and platform testing system
CN106789432A (en) * 2016-12-28 2017-05-31 中软信息系统工程有限公司 Test system based on autonomous controllable cloud platform technology

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194604A (en) * 2018-06-05 2019-01-11 平安科技(深圳)有限公司 Interface automatic method, system, computer equipment and storage medium
CN109710535B (en) * 2018-12-29 2022-04-12 思必驰科技股份有限公司 Service verification method and system for voice conversation platform
CN109710535A (en) * 2018-12-29 2019-05-03 苏州思必驰信息科技有限公司 Service method of calibration and system for voice dialogue platform
CN111382058B (en) * 2018-12-29 2024-02-02 北京字节跳动网络技术有限公司 Service testing method and device, server and storage medium
CN111382058A (en) * 2018-12-29 2020-07-07 北京字节跳动网络技术有限公司 Service testing method and device, server and storage medium
CN110798380A (en) * 2019-10-23 2020-02-14 北京奇艺世纪科技有限公司 Data acquisition method, system, device, test equipment and test server
CN111258897A (en) * 2020-01-15 2020-06-09 网银在线(北京)科技有限公司 Service platform testing method, device and system
CN111274150B (en) * 2020-02-07 2023-08-22 北京字节跳动网络技术有限公司 Service instance access method and device and electronic equipment
CN111274150A (en) * 2020-02-07 2020-06-12 北京字节跳动网络技术有限公司 Service instance access method and device and electronic equipment
CN113630310A (en) * 2020-05-06 2021-11-09 北京农信互联科技集团有限公司 Distributed high-availability gateway system
CN113630310B (en) * 2020-05-06 2024-02-02 北京农信数智科技有限公司 Distributed high-availability gateway system
CN112363879A (en) * 2020-11-20 2021-02-12 上海连尚网络科技有限公司 Cache server performance test method, device, equipment and medium
CN113381913A (en) * 2021-08-13 2021-09-10 飞狐信息技术(天津)有限公司 Traffic processing method, gateway, traffic comparison system and device

Similar Documents

Publication Publication Date Title
CN107395464A (en) A kind of server test method, apparatus and API gateway
CN105099811B (en) Interface testing method and device
CN108365961B (en) The response method and server that interface call method and terminal device, interface call
CN109542796A (en) Test method and Related product
CN106921957B (en) The recognition methods of secondary number of distributing telephone numbers and device
CN107332750A (en) A kind of service deployment method, device and network element
CN106357609B (en) A kind of method and system, public network server and private clound equipment creating user
US7822803B2 (en) Testing using asynchronous automated virtual agent behavior
CN103716356B (en) Storing process operating method, device and system based on web
CN104731465B (en) Business provides method, apparatus and system
CN104503768B (en) A kind of application programming interface call method and equipment
CN110034972A (en) Server stress test method and device
WO2022007406A1 (en) K8s-based service deployment method, apparatus, device, and medium
CN109189502A (en) A kind of message treatment method and relevant device based on instant messaging public platform
CN104636460B (en) A kind of Item Information method for pushing and device
CN108076042A (en) User information acquiring method, server and computer-readable medium
CN105635124B (en) Flow control methods and device
CN107171889A (en) Network application interface test method and device and electronic equipment
CN109819023A (en) Distributed transaction processing method and Related product
CN109274705A (en) Service providing method, apparatus and system based on user identity
CN106888446B (en) Methods, devices and systems for verification information recipient's property right identity
CN109889468A (en) Transmission method, system, device, equipment and the storage medium of network data
CN108345508A (en) Interface calls test method and device
CN104980511B (en) A kind of game data access method, system and game web page server
CN110532810A (en) Information processing method, device, electronic equipment and readable storage medium storing program for executing

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124