CN105721251A - Reconfigurable testing pile service method and system - Google Patents

Reconfigurable testing pile service method and system Download PDF

Info

Publication number
CN105721251A
CN105721251A CN201610123758.3A CN201610123758A CN105721251A CN 105721251 A CN105721251 A CN 105721251A CN 201610123758 A CN201610123758 A CN 201610123758A CN 105721251 A CN105721251 A CN 105721251A
Authority
CN
China
Prior art keywords
server
call request
configuration
test pile
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610123758.3A
Other languages
Chinese (zh)
Other versions
CN105721251B (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 Qianhai Juzi Information Technology Co Ltd
Shenzhen Fenqile Network Technology Co Ltd
Original Assignee
Shenzhen Qianhai Juzi Information Technology Co Ltd
Shenzhen Fenqile Network 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 Shenzhen Qianhai Juzi Information Technology Co Ltd, Shenzhen Fenqile Network Technology Co Ltd filed Critical Shenzhen Qianhai Juzi Information Technology Co Ltd
Priority to CN201610123758.3A priority Critical patent/CN105721251B/en
Publication of CN105721251A publication Critical patent/CN105721251A/en
Application granted granted Critical
Publication of CN105721251B publication Critical patent/CN105721251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/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

The present invention discloses a reconfigurable testing pile service method and system The method comprises the steps that an invoke server acquires a service request, which is sent by a client, of a Hypertext Transfer Protocol, and generates a corresponding calling request according to the service request; the invoke server modifies a configuration file, and sends the calling request to a testing pile server according to a modified configuration file; and the invoke server receives a configuration result that is fed back by the testing pile server and corresponds to the calling request, and generates a corresponding service result according to the configuration result and transfers the service result to the client. The method and system disclosed by the present invention are capable of solving the technical problems that the process where the invoke server is provided with an interceptor is complex, and manual loading and management are complex in the prior art.

Description

A kind of method and system of configurable test pile service
Technical field
The present invention relates to field of computer technology, particularly relate to the method and system of a kind of configurable test pile service.
Background technology
HTML (Hypertext Markup Language) (HyperTextTransferProtocol, HTTP) is a kind of procotol being most widely used on the Internet.All of WWW file must comply with this standard.HTTP is the standard of a client and server end request and response.Client is terminal use, and server end is website.Generally, HTTP client initiate a request, set up a transmission control protocol (TransmissionControlProtocol, TCP) to server end designated port and connect.Server end then monitors, at that designated port, the request that client sends over.Once receive connection request, server end (to client) beams back a statusline, such as " HTTP/1.1200OK ", and the message of response, and the message of response is probably the file of request, error message or some other information.
Now, the request that client is initiated usually is sent to invoking server and increases a blocker at invoking server by client by the test of HTTP, intercept the request that client sends, and return, according to the request intercepted, the response results simulated, receive whether the process after response results meets intended needs with test client.The code that increase blocker is accomplished by calling server system is modified, and when amendment, need to manually trigger configuration file and reload, it is impossible to accomplishes to change and comes into force in real time, and complex management, it is easy to cause O&M accident.
Summary of the invention
In view of this, the embodiment of the present invention provides the method and system of a kind of configurable test pile service, to solve to increase blocker process complexity and the technical problem of manual loading, complex management at invoking server in prior art.
First aspect, the method embodiments providing the service of a kind of configurable test pile, including:
Invoking server obtains the service request of the HTML (Hypertext Markup Language) that client sends, and generates corresponding call request according to described service request;
Described invoking server amendment configuration file, and according to amended configuration file, described call request is sent to test pile server;
Described invoking server receives the configuration result corresponding with described call request of described test pile server feedback, and generates corresponding service result according to described configuration result and be sent to described client.
Second aspect, the embodiment of the present invention additionally provides the system of a kind of configurable test pile service, including:
Acquisition request module, is configured at invoking server, for obtaining the service request of the HTML (Hypertext Markup Language) that client sends, and generates corresponding call request according to described service request;
Modified module, is configured at described invoking server, is used for revising configuration file, and sends described call request to test pile server according to amended configuration file;
Receiver module, is configured at described invoking server, for receiving the configuration result corresponding with described call request of described test pile server feedback, and generates corresponding service result according to described configuration result and is sent to described client.
The method and system of the configurable test pile service that the embodiment of the present invention provides, the service request of the HTML (Hypertext Markup Language) that client sends is obtained by invoking server, generate call request and described call request is sent to test pile server by the configuration file according to amendment, without installing blocker in invoking server, not only simple and convenient, it is also possible to configuration modification is come into force in real time.Invoking server receives the configuration result corresponding with call request of described test pile server feedback, and send to client according to configuration result generation request results, process to call request is all undertaken by test pile server, owing to test pile server is unrelated with environment on line, it can thus be avoided because of the O&M accident of allocation problem generation, and call request all sends to test pile server, it is easy to management, is easy to search problem after generation problem.Have only to test pile server is modified, it is possible to the configuration result realizing call request changes, also make change more controllable.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is made made with reference to the following drawings, the other features, objects and advantages of the present invention will become more apparent upon:
The flow chart of the method for a kind of configurable test pile service that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of the method for a kind of configurable test pile service that Fig. 2 provides for the embodiment of the present invention two;
Test pile server in the method for a kind of configurable test pile service that Fig. 3 provides for the embodiment of the present invention three exports the configuration result flow chart to invoking server;
Test pile server in the method for a kind of configurable test pile service that Fig. 4 provides for the embodiment of the present invention resolves the flow chart of call request;
The flow chart of the method for a kind of configurable test pile service that Fig. 5 provides for the embodiment of the present invention four;
Test pile server in the method for a kind of configurable test pile service that Fig. 6 provides for the embodiment of the present invention resolves the flow chart of call request;
The structural representation of the system of a kind of configurable test pile service that Fig. 7 provides for the embodiment of the present invention five.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, but not limitation of the invention.It also should be noted that, for the ease of describing, accompanying drawing illustrate only part related to the present invention but not full content.
Embodiment one
The flow chart of the method for a kind of configurable test pile service that Fig. 1 provides for the embodiment of the present invention one.The service request that the present embodiment is applicable to that client is sent carries out the situation of intercept process.The system that the method for the configurable test pile service that the present embodiment provides can be serviced by configurable test pile performs, and this system can be realized by software and/or hardware, and is integrated in the terminal unit of correspondence.As it is shown in figure 1, the method includes:
S110, invoking server obtain the service request of the HTML (Hypertext Markup Language) that client sends, and generate corresponding call request according to described service request.
Exemplary, that client can be held for client terminal unit, for instance desktop computer, notebook computer, panel computer, mobile phone etc..Client can pass through the hypertext markup language content of the application program such as browser display web page server or file system, and allows user and these file interactions.The service request that client sends is inputted by application programs such as browsers for user, and generates the request following HTML (Hypertext Markup Language) through client particular procedure, and the mode of concrete particular procedure can be set according to practical situation.Invoking server is to receive the service request that client sends, and generates the equipment of corresponding call request by resolving the related service of other relevant servers of the service request call received.Every invoking server can receive the service request that at least one client sends.After call request can resolve the service request received for invoking server, what generate can send the request to target web server, it is possible to includes the URL of the invocation target webserver and IP address, call the data such as particular content of service.Wherein, the request of invoking server analysis service generates the concrete mode of corresponding call request and can be set according to practical situation, does not do any restriction here.
S120, described invoking server amendment configuration file, and according to amended configuration file, described call request is sent to test pile server.
Exemplary, after invoking server obtains call request, configuration file in read operation system, according to the data of configuration file, call request is sent to target device, wherein configuration file is be stored in the operating system of invoking server, to comprise particular data file, such as hosts file, it is possible to comprise the content such as webserver domain name and IP address mapping relation.Configuration file is modified by invoking server, it is ensured that can send call request to test pile server according to amended configuration file.Test pile server is the server that can perform particular test functionality.Preferably, the test pile server in the present embodiment can resolve call request, and searches the configuration generation configuration result relevant with call request in data base.Same invoking server can receive different service requests and generate different call request, but the subsequent treatment of request is called with reference to same configuration file, it is thus desirable to what illustrate is, in this step, configuration file is modified and is not limited to after generating a certain call request by invoking server, can also before receiving the service request that client sends, or real time modifying configuration file according to actual needs.
S130, described invoking server receive the configuration result corresponding with described call request of described test pile server feedback, and generate corresponding service result according to described configuration result and be sent to described client.
Exemplary, described configuration result is the analog response result for different call request set in advance.Wherein analog response result can be the error result set, and different call request is likely to corresponding different analog response results.When invoking server receives the configuration result of test pile server feedback, represent that test pile server have received call request and responds and generate configuration result.After invoking server receives configuration result, carry out configuration result resolving the corresponding service result of generation.Wherein, invoking server can call, according to configuration result, the service result that the service creation client of other relevant servers can respond, and parsing and method of calling that invoking server is concrete can be set according to practical situation, are not construed as limiting here.Client responds according to the service result received, if service result is error result, it is possible to according to client, the response results of error result tests out the client disposal ability for error result.It should be noted that, invoking server thinks after the configuration result received is analyzed that this configuration result can not send to client, now the result of test pile server feedback can not be sent to client by invoking server, but invoking server analyzes and processes voluntarily, it may be determined that invoking server is for the disposal ability of configuration result.
The method of the configurable test pile service that the embodiment of the present invention one provides, invoking server can pass through to resolve the service request obtained and generate corresponding call request, and according to amended configuration file, described call request is sent to test pile server, and receive the corresponding configuration result of test pile server feedback, carry out follow-up process.So, blocker both need not be installed in invoking server, it is also possible to the configuration file being modified invoking server makes configuration modification come into force in real time, it is possible to avoid the O&M accident because allocation problem produces.Call request all sends to test pile server, it is simple to management, is easy to search problem after generation problem.
Further, the method for the configurable test pile service that the present embodiment provides can also include:
Described test pile server receives the call request that described invoking server sends, and exports corresponding configuration result extremely described invoking server according to described call request.
Exemplary, after test pile server receives call request, call request carrying out parsing and obtains configuration result corresponding with call request, and send described configuration result to described invoking server, the simulated target webserver completes the response to call request.So only need test pile server is modified, it is possible to realize the configuration result of call request is changed, also make change more controllable.
Embodiment two
The flow chart of the method for a kind of configurable test pile service that Fig. 2 provides for the embodiment of the present invention two.Described invoking server, on the basis of embodiment one, is revised configuration file, and the transmission of described call request is optimized to test pile server according to amended configuration file by the present embodiment.With reference to Fig. 2, the method includes:
S210, invoking server obtain the service request of the HTML (Hypertext Markup Language) that client sends, and generate corresponding call request according to described service request.
S220, described invoking server obtain IP address and add instruction.
Exemplary, it can be obtain the IP address interpolation instruction that this invoking server sends that invoking server obtains the interpolation instruction of IP address, can also be obtain to carry out, with invoking server, the IP address interpolation instruction that other equipment of data interaction send, other equipment are preferably configuration service device, and wherein configuration service device is the hardware server possessing data and/or file management facilities.It is preferably invoking server and obtains the IP address interpolation instruction that configuration service device sends.The benefit that employing configuration service device sends the interpolation instruction of IP address to invoking server is: when in system, the quantity of invoking server is too much, amendment by the configuration file of the configuration service each invoking server of device unified management, modification time can be saved, promote the efficiency of amendment.Configuration service device can pass through, after visualization window obtains the interpolation instruction of IP address, this IP address is added instruction and send to invoking server, and wherein, visualization window is be illustrated on screen the window that can watch.Configuration service device can also generate IP address according to ad hoc rule and add instruction, and sends the interpolation instruction of this IP address to invoking server.IP address is added can comprise the IP address of the target device that call request sends and the addition manner of this IP address in instruction.Target device is the equipment that can receive and parse through call request, but is not limited to target web server.Preferably, target device is test pile server, and IP address is the IP address of test pile server.Invoking server obtains the time sequencing of IP address interpolation instruction and is not construed as limiting, and namely invoking server can obtain the interpolation instruction of IP address in real time.
S230, described invoking server add instruction according to described IP address, add the IP address of test pile server in described configuration file.
Exemplary, invoking server adds instruction according to IP address, adds the IP address of test pile server in configuration file, it is preferred that, described IP address is added, it is preferred to after the domain name of target web server, add IP address before or after the domain name of the target web server of configuration file.If configuration file has existed the IP address of other target devices, then now can add instruction according to the IP address obtained, replace the original IP address in configuration file with the new IP address obtained.Further, the process adding IP address can be shown by invoking server by visualization window, it is simple to user watches and manually modifies in adding procedure.
Described call request is sent to test pile server by S240, described invoking server according to described IP address.
Exemplary, if adding the IP address of test pile server in configuration file, then invoking server is when sending call request, will send described call request to test pile server according to the IP address in configuration file.Wherein, the concrete setting means of test pile server ip address can be set according to practical situation.
S250, described invoking server receive the configuration result corresponding with described call request of described test pile server feedback, and generate corresponding service result according to described configuration result and be sent to described client.
The method of the configurable test pile service that the embodiment of the present invention two provides, invoking server is after obtaining call request, instruction is added according to IP address, described configuration file adds the IP address of test pile server, described call request is sent to test pile server by invoking server, waits and respond during the configuration result receiving test pile server feedback.So can so that call request is all sent to test pile server, owing to test pile server is unrelated with environment on line, it can thus be avoided because of allocation problem produce O&M accident, and be easy to management, be easy to search problem after generation problem.
Embodiment three
Test pile server in the method for a kind of configurable test pile service that Fig. 3 provides for the embodiment of the present invention three exports the configuration result flow chart to invoking server.Described test pile server, on the basis of embodiment one, is received the call request that described invoking server sends by the present embodiment, and the step exporting corresponding configuration result extremely described invoking server according to described call request is optimized.As it is shown on figure 3, the test pile server output configuration result in the method for this configurable test pile service includes to invoking server:
S310, described test pile server receive the call request that described invoking server sends.
Exemplary, described test pile server can whole call request of sending of at least one invoking server of real-time reception.
S320, described test pile server check whether there is the configuration relevant to described call request, if existing, then exporting corresponding configuration result to described invoking server according to described configuration, otherwise, sending described call request to target web server.
Exemplary, after test pile server receives call request, checking whether data base exists the configuration relevant to described call request, if existing, then exporting corresponding configuration result to invoking server.If configuration not relevant to call request in test pile server, then described call request is sent to external interface, sent to target web server by external interface.Wherein, data base can be only fitted in test pile server, it is also possible to is arranged in other server.If data base is arranged in test pile server, then test pile server is when checking whether to exist the configuration relevant to call request, directly accesses the data base being arranged in test pile server.If data base is arranged in other servers, then test pile server needs to access other servers, and checks whether the data that there is coupling in the data base of other servers.In data base, the write of data and/or the type of storage can be controlled by configuration service device.Preferably, with reference to Fig. 4, this step may include that
S321, described test pile server resolve and call domain name in described call request.
Exemplary, call domain name and can include determining that the URL of target web server and the IP address of target web server.After test pile server receives call request, resolve and call request calls domain name, namely obtain URL and the IP address of target web server.
Whether S322, described test pile server are checked to exist in data base and are called the configuration of domain name corresponding domain name with described.
Exemplary, the data base that test pile server is checked prestores and a number of has called domain name.When resolve in call request call domain name after, test pile server checks whether to have in data base and identical calls domain name, namely check whether data base exists with call request call the corresponding domain name configuration of domain name.Test pile server can set that the configuration checking that the URL whether existed in data base with the target web server called in domain name and IP address are all mated, can also setting the configuration mated any one of the URL checking the target web server only existed in data base and call in domain name or IP address, concrete setting means can be set according to practical situation.Wherein, calling the configuration of domain name corresponding domain name if checking result data base exists with described, then perform S323, if data base being absent from configure with the described corresponding domain name of domain name of calling, then performing S325.
If S323 exists calls the configuration of domain name corresponding domain name with described, then the described call request of described test pile server parsing calls COS.
Exemplary, if checking, result is exist in data base to call the corresponding domain name configuration of domain name with described, then test pile server continues to call COS in parsing call request.Wherein, call COS and the type of service is provided for the invocation target webserver, for instance open the homepage of target web server, or play the services such as video.
Whether S324, described test pile server are checked to exist in described data base and are called the corresponding service configuration of COS with described, if existing, then according to default template, export configuration result corresponding with described call request extremely described invoking server, otherwise, described call request is sent to described target web server.
Exemplary, the data base that test pile server is checked has prestored a number of COS that calls, each COS correspondence of calling specifically presets template, and wherein different default templates can generate different configuration result.When the data base that test pile server is checked exists configure corresponding with calling domain name in call request, then continue to check whether data base exists and identical with this call request call COS, namely whether data base exist service configuration corresponding with calling COS in call request.If there is corresponding service configuration, then test pile server obtains this and calls the default template that COS is corresponding, and according to default template generation and export corresponding configuration result to described invoking server, wherein, described configuration result is analog response result.If being absent from service configuration corresponding with calling COS in the configuration file of call request in data base, then described call request is sent to external interface by test pile server, is sent to target web server by described external interface.Its external interface is the interface of test pile server and other server data transport, it is preferred to the interface that test pile server transmits with webserver data.
If S325 is absent from calling the configuration of domain name corresponding domain name with described, then described call request is sent to described target web server by described test pile server.
Exemplary, if the data base that checks of test pile server is absent from domain name corresponding with calling domain name in call request configuration, then described call request is sent to external interface, and sent to target web server by described external interface.After target web server receives call request, feedback response result is to external interface, and is sent to invoking server by external interface, invoking server resolve and generate service result.After can also being received call request by target web server, direct feedback result, to invoking server, is resolved by invoking server and generates service result.
The method of the configurable test pile service that the embodiment of the present invention three provides, test pile server resolves the call request received and checks whether there be configure corresponding with call request in data base, if data base being respectively present and the calling domain name and call that COS is corresponding to be configured of call request, then test pile server according to default template generation and exports the configuration result of correspondence to invoking server, if data base being absent from and calling domain name or calling that COS is corresponding to be configured in the configuration file of described call request, then described call request is sent to target web server by test pile server.Process to call request is all undertaken by test pile server, owing to test pile server is unrelated with environment on line, avoid the O&M accident because allocation problem produces, and call request is carried out shunting process by test pile server, it is easy to management, is easy to search problem after generation problem.
Embodiment four
The flow chart of the method for a kind of configurable test pile service that Fig. 5 provides for the embodiment of the present invention four.The present embodiment is a preferred exemplary.With reference to Fig. 5, the method includes:
S510, xxxService initiate request call api.yyy.com/service service.
Exemplary, xxxService is client, and api.yyy.com/service is third party's service of specific network server end.
S520, amendment invoking server hosts file.
Exemplary, hosts file is the configuration file in the operating system of invoking server, it is possible to revised the hosts file of invoking server by visualization window.The mode of amendment is obtain test pile server ip address from configuration service device add instruction and increase the IP address of test pile server in host file.Such as, api.yyy.com192.168.6.66.Namely at the URL (UniformResoureLocator of api.yyy.com/service, URL) 192.168.6.66 is added after api.yyy.com, wherein 192.168.6.66 is the IP address of test pile server, wherein, api.yyy.com is the URL of the third party's service being stored in advance in configuration file.It should be noted that before this step can be placed on S510.
S530, invoking server receive xxxService and initiate request call api.yyy.com/service service, and generate corresponding call request and be forwarded to test pile server.
Exemplary, invoking server generates corresponding call request after this service request is carried out dissection process after receiving the xxxService request calling api.yyy.com/service service initiated.Owing to increasing the IP address of test pile server in configuration file, described call request according to this IP address, can be sent to test pile server by invoking server.
After S540, test pile server receive call request, the configuration in comparison database, as there being relevant configuration in data base, then the configuration in data base is returned as a result, otherwise directly access external system.
Exemplary, if configuration not relevant to call request in data base, then described call request is sent to external system by test pile server by external interface, and external system can be the webserver corresponding for api.yyy.com.With reference to Fig. 6, this step includes:
S541, test pile server receive call request.
S542, test pile server are according to URL, IP address lookup data base.
Exemplary, in data base, inquire about corresponding configuration according to URL and the IP address in call request.Without relevant configuration, then performing S543, if there being relevant configuration, then performing S544.
S543, without relevant configuration, test pile server directly invokes external interface.
Exemplary, configure if not corresponding with URL and the IP address of call request in data base, then described call request is sent to external interface, sent to external equipment by external interface.
If S544 has relevant configuration, test pile server to judge whether and calls COS and mate.
Exemplary, if data base exists configure corresponding with URL and the IP address of call request, then test pile server judge whether data base exists with call request call the configuration that COS matches.If data base existing and calling the configuration that COS mates, then perform S546, otherwise perform S545.
If S545 does not mate with calling COS, then test pile server directly invokes external interface.
Exemplary, if it does not match, described call request is sent to external interface by test pile server, sent to external equipment by external interface.
If S546 mates with calling COS, then test pile server analytic parameter is used for filling template.
Exemplary, if there is configure corresponding with calling COS in data base, then test pile server resolves the parameter that configuration is corresponding, and the parameter of parsing is filled in template.
S547, according to template generation configuration result.
Exemplary, test pile server generates configuration result according to the parameter in template.
S548, result return called side, and flow process terminates.
Exemplary, described configuration result being fed back to the called side sending call request, i.e. invoking server, flow process terminates.
The method of the configurable test pile service that the embodiment of the present invention four provides, configuration file is revised by invoking server, described call request is sent to test pile server, if the data base that test pile server is checked exists configure corresponding with call request, then output configuration result is to called side, configure if not corresponding with call request in the data base that test pile server is checked, then described call request is sent to external equipment, make invoking server without arranging blocker, and it is easy to management, it is possible to avoid O&M accident.
Embodiment five
The structural representation of the system of a kind of configurable test pile service that Fig. 7 provides for the embodiment of the present invention five, as it is shown in fig. 7, described system includes invoking server 701 and test pile server 702.
Wherein, described invoking server 701 may include that acquisition request module, for obtaining the service request of the HTML (Hypertext Markup Language) that client sends, and generates corresponding call request according to described service request;Modified module, is used for revising configuration file, and sends described call request to test pile server 702 according to amended configuration file;Receiver module, for receiving the configuration result corresponding with described call request of described test pile server 702 feedback, and generates corresponding service result according to described configuration result and is sent to described client.
Further, described modified module may include that instruction acquiring unit, is used for obtaining IP address and adds instruction;Address adding device, for adding instruction according to described IP address, adds the IP address of test pile server 702 in described configuration file;Transmitting element, for sending described call request to described test pile server 702 according to described IP address.
Preferably, described test pile server 702 may include that output module, for receiving the call request that described invoking server 701 sends, exports corresponding configuration result extremely described invoking server 701 according to described call request.
Further, described output module may include that request reception unit, for receiving the call request that described invoking server 701 sends;Dispensing unit, for checking whether to there is the configuration relevant to described call request, if existing, then exporting corresponding configuration result to described invoking server 701 according to described configuration, otherwise, sending described call request to target web server.
Preferably, described dispensing unit may include that domain name confirms subelement, calls domain name for resolving in described call request;Whether domain name coupling subelement, be used for checking in data base existing and call the corresponding domain name configuration of domain name with described;Service confirms subelement, if configuring with the described corresponding domain name of domain name of calling for existing in described data base, then resolves and calls COS in described call request;Service Matching subelement, the corresponding service configuration of COS is called with described for checking whether described data base exists, if existing, then according to default template, export configuration result corresponding with described call request extremely described invoking server, otherwise, described call request is sent to described target web server;Send subelement, if for described data base being absent from call the corresponding domain name configuration of domain name with described, then sending described call request to described target web server.
On the basis of above-described embodiment, described configuration result is the analog response result for different call request set in advance.
The system of the configurable test pile service that the embodiment of the present invention five provides can be used for the method performing the configurable testing service that above-mentioned any embodiment provides, and possesses the corresponding functional module of execution method and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention being described in further detail by above example, but the present invention is not limited only to above example, when without departing from present inventive concept, other Equivalent embodiments more can also be included, and the scope of the present invention is determined by appended right.

Claims (12)

1. the method for a configurable test pile service, it is characterised in that including:
Invoking server obtains the service request of the HTML (Hypertext Markup Language) that client sends, and generates corresponding call request according to described service request;
Described invoking server amendment configuration file, and according to amended configuration file, described call request is sent to test pile server;
Described invoking server receives the configuration result corresponding with described call request of described test pile server feedback, and generates corresponding service result according to described configuration result and be sent to described client.
2. method according to claim 1, it is characterised in that described invoking server amendment configuration file, and according to amended configuration file, the transmission of described call request is included to test pile server:
Described invoking server obtains IP address and adds instruction;
Described invoking server adds instruction according to described IP address, adds the IP address of test pile server in described configuration file;
Described call request is sent to test pile server by described invoking server according to described IP address.
3. method according to claim 1, it is characterised in that also include:
Described test pile server receives the call request that described invoking server sends, and exports corresponding configuration result extremely described invoking server according to described call request.
4. method according to claim 3, it is characterised in that described test pile server receives the call request that described invoking server sends, exports corresponding configuration result to described invoking server according to described call request and includes:
Described test pile server receives the call request that described invoking server sends;
Described test pile server checks whether there is the configuration relevant to described call request, if existing, then exporting corresponding configuration result to described invoking server according to described configuration, otherwise, sending described call request to target web server.
5. method according to claim 4, it is characterized in that, described test pile server checks whether there is the configuration relevant to described call request, if existing, then export corresponding configuration result extremely described invoking server according to described configuration, otherwise, the transmission of described call request is included to target web server:
Described test pile server resolves and calls domain name in described call request;
Whether described test pile server is checked to exist in data base and is called the configuration of domain name corresponding domain name with described;
Call the configuration of domain name corresponding domain name if existing with described, then the described call request of described test pile server parsing calls COS;
Whether described test pile server is checked to exist in described data base and is called the corresponding service configuration of COS with described, if existing, then according to default template, export configuration result corresponding with described call request extremely described invoking server, otherwise, described call request is sent to described target web server;
If being absent from calling the configuration of domain name corresponding domain name with described, then described call request is sent to described target web server by described test pile server.
6. the method according to any one of claim 1-5, it is characterised in that described configuration result is the analog response result for different call request set in advance.
7. the system of a configurable test pile service, it is characterised in that including:
Acquisition request module, is configured at invoking server, for obtaining the service request of the HTML (Hypertext Markup Language) that client sends, and generates corresponding call request according to described service request;
Modified module, is configured at described invoking server, is used for revising configuration file, and sends described call request to test pile server according to amended configuration file;
Receiver module, is configured at described invoking server, for receiving the configuration result corresponding with described call request of described test pile server feedback, and generates corresponding service result according to described configuration result and is sent to described client.
8. system according to claim 7, it is characterised in that described modified module includes:
Instruction acquiring unit, is used for obtaining IP address and adds instruction;
Address adding device, for adding instruction according to described IP address, adds the IP address of test pile server in described configuration file;
Transmitting element, for sending described call request to described test pile server according to described IP address.
9. system according to claim 7, it is characterised in that also include:
Output module, is configured at test pile server, for receiving the call request that described invoking server sends, exports corresponding configuration result extremely described invoking server according to described call request.
10. system according to claim 9, it is characterised in that described output module includes:
Request reception unit, for receiving the call request that described invoking server sends;
Dispensing unit, for checking whether to there is the configuration relevant to described call request, if existing, then exporting corresponding configuration result to described invoking server according to described configuration, otherwise, sending described call request to target web server.
11. system according to claim 10, it is characterised in that described dispensing unit includes:
Domain name confirms subelement, calls domain name for resolving in described call request;
Whether domain name coupling subelement, be used for checking in data base existing and call the corresponding domain name configuration of domain name with described;
Service confirms subelement, if configuring with the described corresponding domain name of domain name of calling for existing in described data base, then resolves and calls COS in described call request;
Service Matching subelement, the corresponding service configuration of COS is called with described for checking whether described data base exists, if existing, then according to default template, export configuration result corresponding with described call request extremely described invoking server, otherwise, described call request is sent to described target web server;
Send subelement, if for described data base being absent from call the corresponding domain name configuration of domain name with described, then sending described call request to described target web server.
12. the system according to any one of claim 7-11, it is characterised in that described configuration result is the analog response result for different call request set in advance.
CN201610123758.3A 2016-03-04 2016-03-04 A kind of method and system of configurable test pile service Active CN105721251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610123758.3A CN105721251B (en) 2016-03-04 2016-03-04 A kind of method and system of configurable test pile service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610123758.3A CN105721251B (en) 2016-03-04 2016-03-04 A kind of method and system of configurable test pile service

Publications (2)

Publication Number Publication Date
CN105721251A true CN105721251A (en) 2016-06-29
CN105721251B CN105721251B (en) 2019-03-08

Family

ID=56157360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610123758.3A Active CN105721251B (en) 2016-03-04 2016-03-04 A kind of method and system of configurable test pile service

Country Status (1)

Country Link
CN (1) CN105721251B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108460612A (en) * 2017-02-20 2018-08-28 腾讯科技(北京)有限公司 A kind of test method, device and equipment that advertisement is launched
CN109768951A (en) * 2018-08-17 2019-05-17 付东光 Remote analog data method and remote dummy server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988479A (en) * 2006-12-31 2007-06-27 金蝶软件(中国)有限公司 Method for recording system information and object pile
CN101141328A (en) * 2007-10-11 2008-03-12 中兴通讯股份有限公司 Method and device for simulating Diameter server terminal
CN103150238A (en) * 2011-12-07 2013-06-12 阿里巴巴集团控股有限公司 Service request processing method, simulation performance test method and simulation performance test device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988479A (en) * 2006-12-31 2007-06-27 金蝶软件(中国)有限公司 Method for recording system information and object pile
CN101141328A (en) * 2007-10-11 2008-03-12 中兴通讯股份有限公司 Method and device for simulating Diameter server terminal
CN103150238A (en) * 2011-12-07 2013-06-12 阿里巴巴集团控股有限公司 Service request processing method, simulation performance test method and simulation performance test device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108460612A (en) * 2017-02-20 2018-08-28 腾讯科技(北京)有限公司 A kind of test method, device and equipment that advertisement is launched
CN108460612B (en) * 2017-02-20 2023-01-06 腾讯科技(北京)有限公司 Advertisement delivery test method, device and equipment
CN109768951A (en) * 2018-08-17 2019-05-17 付东光 Remote analog data method and remote dummy server

Also Published As

Publication number Publication date
CN105721251B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
US6119247A (en) Remote debugging of internet applications
EP2603865B1 (en) Exposing resource capabilities to web applications
US9819744B1 (en) Multi-modal communication
US6480882B1 (en) Method for control and communication between computer systems linked through a network
US8924867B2 (en) Web interface for remote platform build
CN112073405A (en) Webpage data loading method and device, computer equipment and storage medium
JP2009508220A (en) Initial server-side content rendering for client script web pages
CN104427627A (en) Test data obtaining method, client and server
CN105872083A (en) Method and system supporting server access by different types of clients as well as server
JP6201917B2 (en) System and method for configuring field devices
CN103067448B (en) device control method and mobile communication terminal
KR20020022374A (en) Method for collaborative browsing in using the transformation of URL
CN113204730A (en) Resource acquisition method, webvpn proxy server, system and server
US9986057B2 (en) UI framework support for portal systems
US8127304B2 (en) Mapping and communicating data from a user interface to an application program
CN105871961B (en) A kind of method and device of gray scale publication routing
CN105721251A (en) Reconfigurable testing pile service method and system
CN111079048A (en) Page loading method and device
CN104486333A (en) Debug method and debug device for mobile application programs
JP2022518890A (en) Data acquisition method and related devices, systems, and storage devices
CN109194742B (en) Virtual machine console connection method and device and storage medium
US20110093525A1 (en) System and method for profiling remote user interface
JP5737249B2 (en) Load simulation apparatus, simulation apparatus, load simulation method, simulation method, and program
JP4805199B2 (en) Scenario creation program and scenario creation device
CN112769975B (en) Data integration method and device, server and storage medium

Legal Events

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