CN103150238A - Service request processing method, simulation performance test method and simulation performance test device - Google Patents

Service request processing method, simulation performance test method and simulation performance test device Download PDF

Info

Publication number
CN103150238A
CN103150238A CN2011104042546A CN201110404254A CN103150238A CN 103150238 A CN103150238 A CN 103150238A CN 2011104042546 A CN2011104042546 A CN 2011104042546A CN 201110404254 A CN201110404254 A CN 201110404254A CN 103150238 A CN103150238 A CN 103150238A
Authority
CN
China
Prior art keywords
request
measurand
services request
service object
results
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
CN2011104042546A
Other languages
Chinese (zh)
Other versions
CN103150238B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201110404254.6A priority Critical patent/CN103150238B/en
Publication of CN103150238A publication Critical patent/CN103150238A/en
Priority to HK13108864.1A priority patent/HK1181527A1/en
Application granted granted Critical
Publication of CN103150238B publication Critical patent/CN103150238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a service request processing method, a simulation performance test method and a simulation performance test device. The service request processing method comprises the following steps of receiving a service request transmitted by a tested object through a simulation test server; inquiring a correspondence between the service request and a request result based on the service request, acquiring a request result corresponding to the service request, wherein the correspondent request result is a request result returned by a service object to the tested object when the tested object transmits the service request to the service object; and returning a correspondent request result to the tested object after a response time corresponding to the service request since the moment that the service request is received, wherein the response time is the response time that the service object returns the request result to the tested object when the tested object transmits the service request to the service object. By adopting the scheme provided by the embodiment, the accuracy for testing the performance can be improved.

Description

A kind of service request processing method, simulated performance method of testing and device
Technical field
The application relates to the simulated performance technical field of measurement and test in field of computer technology, relates in particular to a kind of service request processing method, simulated performance method of testing and device.
Background technology
Performance Testing Technology is the testing tool by robotization, supposes multiple normal, peak value and abnormal load ambient conditions, and the property indices of measurand is tested.Interface is all passed through in the measurand contact with foreign countries, all data all affect the performance of measurand by the interface input and output, as long as carry out service object's the interface capability performance of data interaction with measurand identical, the performance of measurand shows also just identical.Measurand and service object can be equipment, can be also the functional modules in equipment.
The simulated performance measuring technology, also referred to as the mock Performance Testing Technology, in test process, be not easy for some the service object that constructs or be not easy to obtain, replace with a virtual object, so that the method for testing of testing can be called mock tested object or mock testing server by the object that this is virtual.Mock tested object and former service object have same-interface, in the simulated performance test process, measurand is just carried out data interaction by interface and mock tested object, and completing test processes, and that do not know to carry out data interaction with it is mock tested object or former service object.
In above-mentioned non-simulated performance testing scheme, to dispose a measurand A in test environment, and according to the processing power of service object B, dispose one or more service object B, be used for the services request that measurand A sends is processed, and obtain returning after request results by corresponding internal logic processing, when measurand A was carried out performance test, General Requirements service object B had enough processing resources to be used to measurand A that service is provided.In the process of testing, trigger measurand A according to pre-configured test condition and send services request to service object B, and receive the request results that service object B returns, and in this test process, determine the performance of measurand A.
in above-mentioned simulated performance testing scheme, at first use real service object B that the various services request that measurand A sends are processed, obtain respectively corresponding request results, and with request results preservation corresponding to services request, then in follow-up performance test process, use the mock tested object to replace service object B to provide service processing as measurand A, the mock tested object is in the services request that receives measurand A, inquire the request results corresponding with this services request of preservation, and return to measurand A, in this test process, determine the performance of measurand A.Due to the mock tested object when processing the services request of measurand A, it is the request results that directly inquires pre-save, compare and obtain request results after service object B processes through corresponding internal logic, the processing resource that consumes still less, so, use the simulated performance testing scheme, can reduce the consumption of processing resource in the performance test process, and when more easily satisfying test to service object's hardware requirement.
Yet, in existing simulated performance testing scheme, the mock tested object is only that the actual service object of simulation returns to request results, when the actual environment more complicated of test, possibly can't simulate more accurately actual service object, thereby cause the performance test accuracy low.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of service request processing method, simulated performance method of testing and device, is used for solving the low problem of performance test accuracy that existing simulated performance method of testing exists.
The embodiment of the present application is achieved through the following technical solutions:
According to an aspect of the embodiment of the present application, provide a kind of service request processing method in the simulated performance test.
A kind of service request processing method in the simulated performance test that the embodiment of the present application provides comprises:
The simulation test server receives the services request that measurand sends;
Based on described services request, the corresponding relation of query service request and request results, obtain the request results corresponding with described services request, wherein, the request results of described correspondence is when described measurand sends described services request to the service object, the request results that described service object returns to described measurand;
From the moment that receives described services request, through after the response time corresponding with described services request, return to the request results of described correspondence to described measurand, wherein, the described response time, described service object returned to the response time of request results to described measurand for when described measurand sends described services request to the service object.
According to another aspect of the embodiment of the present application, also provide a kind of simulated performance method of testing based on above-mentioned service request processing method.
The simulated performance method of testing based on above-mentioned service request processing method that the embodiment of the present application provides comprises:
Trigger described measurand in setting duration, send the services request of setting quantity to described simulation test server;
Setting in duration in described measurand and sending to described simulation test server the services request of setting quantity, and receive the request results that described simulation test server returns, and in the process that the request results that receives is processed, determine the performance index value of described measurand.
According to another aspect of the embodiment of the present application, a kind of services request treating apparatus in the simulated performance test also is provided, comprising:
Receiving element is used for receiving the services request that measurand sends;
Query unit, be used for based on described services request, the corresponding relation of query service request and request results, obtain the request results corresponding with described services request, wherein, the request results of described correspondence is when described measurand sends described services request to the service object, the request results that described service object returns to described measurand;
Transmitting element, be used for from the moment that receives described services request, through after the response time corresponding with described services request, return to the request results of described correspondence to described measurand, wherein, the described response time, described service object returned to the response time of request results to described measurand for when described measurand sends described services request to the service object.
According to another aspect of the embodiment of the present application, a kind of simulated performance proving installation based on above-mentioned services request treating apparatus also is provided, comprising:
Trigger element is used for triggering described measurand in setting duration, sends the services request of setting quantity to described simulation test server;
The performance determining unit, be used for setting in duration in described measurand and send to described simulation test server the services request of setting quantity, and receive the request results that described simulation test server returns, and in the process that the request results that receives is processed, determine the performance index value of described measurand.
in the technique scheme that the embodiment of the present application provides, trigger measurand in setting duration, send the services request of setting quantity to the simulation test server, setting in duration in measurand and sending to the simulation test server services request of setting quantity, and receive the request results that the simulation test server returns, and in the process that the request results that receives is processed, obtain the performance index value of measurand, and, in this simulation test process, the simulation test server is after the services request that receives the measurand transmission, except simulating actual service object to measurand is returned to corresponding request results, also the actual service object of simulation returns to the response time of request results, namely from the moment that receives the services request that measurand sends, through after this response time corresponding with this services request, return to corresponding request results to measurand, thereby make the simulation test server in the performance test process, simulation to the service object of reality is more accurate, and then improved the accuracy of performance test.
The application's further feature and advantage will be set forth in the following description, and, partly become apparent from instructions, perhaps understand by implementing the application.The application's purpose and other advantages can realize and obtain by specifically noted structure in the instructions of writing, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide the further understanding to the application, and consists of the part of instructions, is used from explanation the application with the embodiment of the present application one, does not consist of the restriction to the application.In the accompanying drawings:
The process flow diagram of the service request processing method that Fig. 1 provides for the embodiment of the present application;
The process flow diagram of the simulated performance method of testing that Fig. 2 provides for the embodiment of the present application;
The process flow diagram of the collecting test demand data that provides in the embodiment of the present application 1 is provided Fig. 3;
The process flow diagram of the testing requirement data that Fig. 4 gathers for the preservation that provides in the embodiment of the present application 1;
The process flow diagram of the simulated performance method of testing that provides in the embodiment of the present application 2 is provided Fig. 5;
The structural representation of the services request treating apparatus that provides in the embodiment of the present application 3 is provided Fig. 6;
The structural representation of the simulated performance proving installation that provides in the embodiment of the present application 4 is provided Fig. 7.
Embodiment
Make the simulation test server in the performance test process in order to provide, simulation to the service object of reality is more accurate, and then improved the implementation of the accuracy of performance test, the embodiment of the present application provides a kind of service request processing method, simulated performance method of testing and device, this technical scheme can be applied to the process of simulated performance test, both can be implemented as a kind of method, also can be implemented as a kind of device.Describe below in conjunction with the preferred embodiment of Figure of description to the application, should be appreciated that preferred embodiment described herein only is used for description and interpretation the application, and be not used in restriction the application.And in the situation that do not conflict, embodiment and the feature in embodiment in the application can make up mutually.
The embodiment of the present application provides a kind of service request processing method, as shown in Figure 1, comprising:
Step S101, simulation test server receive the services request that measurand sends.
Step S102, based on this services request, the corresponding relation of query service request and request results, obtain the request results corresponding with this services request, wherein, corresponding request results is when measurand sends this services request to the service object, the request results that the service object returns to measurand.
Step S103, from the moment that receives this services request, through after the response time corresponding with this services request, return to corresponding request results to measurand, wherein, this response time, the service object returned to the response time of request results to measurand for when measurand sends this services request to the service object.
Accordingly, based on above-mentioned service request processing method, the embodiment of the present application also provides a kind of simulated performance method of testing, as shown in Figure 2, comprising:
Step S201, triggering measurand send the services request of setting quantity to the simulation test server in setting duration.
Step S202, setting in duration in measurand and sending to the simulation test server services request of setting quantity, and receive the request results that the simulation test server returns, and in the process that the request results that receives is processed, determine the performance index value of measurand.
Below in conjunction with accompanying drawing, with specific embodiment, method and the device that the application provides is described in detail.
Embodiment 1:
The above-mentioned service request processing method that the embodiment of the present application is being provided, and before the simulated performance method of testing is described in detail, at first to how obtaining needed testing requirement data (comprising request results and response time) in the simulated performance test process, and corresponding relation how to set up services request and testing requirement data, be described.
Figure 3 shows that the process flow diagram that is captured in needed testing requirement data in the simulated performance test process, specifically comprise following treatment step:
Step S301, set up the connection between measurand and service object, this service object is for carrying out the object of service processing for this measurand in actual application environment.
Step S302, measurand send services request to the service object, and this services request is the services request that in actual application environment, measurand will send to the service object.
Based on the needs of the response time in the collecting test demand data, in this step, can also record the moment that sends this services request.
Step S303, service object process by corresponding internal logic after this services request that receives the measurand transmission, determine request results, and return to definite request results to measurand.
Based on the needs of the response time in the collecting test demand data, in this step, can also record the moment that receives this services request, perhaps record the moment from request results to measurand that return to;
Accordingly, can specifically gather in the following way the response time:
First kind of way: determine that the response time is, send the moment of services request from measurand to the service object, return to the time between moment of request results to the service object to measurand;
The second way: determine that the response time is to receive the moment of services request from the service object, to the time between the moment from request results to measurand that return to;
After determining the response time, to should services request preserving this response time, specifically the corresponding relation of this services request and this response time can be kept in the collection daily record.
The collection of the request results in the testing requirement data, also can complete in service object's side in this step, be that the service object is after determining request results, to should services request preserving this request results, specifically the corresponding relation of this services request and this request results can be kept in the collection daily record.
Step S304, measurand are after receiving the request results that the service object returns, and the collecting test demand data specifically can comprise the collection of response time and the collection of request results.
Wherein, for the response time, can record and receive the moment that the service object returns to request results, and definite response time is, send the moment of services request from measurand to the service object, to the time between the moment that receives the service object and return request results, in order to distinguish above-mentioned the first and the acquisition mode of the second response time, be called the third mode with gathering the mode of response time in this step;
After determining the response time, to should services request preserving this response time, specifically the corresponding relation of this services request and this response time can be kept in the collection daily record.
Collection for request results, also can complete in the measurand side in this step, be measurand after receiving the request results of returning, to should services request preserving this request results, specifically the corresponding relation of this services request and this request results can be kept at and gather in daily record.
Step S305, measurand are carried out corresponding logical process based on the request results that receives.
Step S306, judge whether to complete and default whole services request collection of corresponding testing requirement data respectively, if all do not complete, enter step S302, start the acquisition process of testing requirement data corresponding to next services request, if all complete, enter step S307.
Step S307, complete the acquisition process flow process of testing requirement data.
in the acquisition process flow process of above-mentioned testing requirement data shown in Figure 3 as seen, response time specifically can adopt three kinds of modes to gather, wherein, adopting the determined response time of the second way is the real response time, use the determined response time of the second way in follow-up simulated performance test, can simulate the most accurately actual application environment, for example, when being connected by network measurand and service object, the transmission time between measurand and service object due to services request and request results, the service object processes the time that services request obtains request results relatively, can not ignore, so be fit to adopt the second way to gather the response time, the transmission time between measurand and service object when services request and request results, relatively the service object processes services request to obtain time of request results very short, in the time of can ignoring, for example, be wired when direct-connected measurand and service object, can adopt first kind of way or the third mode to gather the response time.
In the acquisition process flow process of above-mentioned testing requirement data shown in Figure 3, the collection of response time and request results all can be completed in the measurand side, also can complete in service object's side, for the ease of obtaining to gather daily record, can be chosen in the same side and complete the collection of response time and request results, for example, when adopting the first and the second way to gather the response time, gather request results in service object's side; When adopting the third mode to gather the response time, gather request results in the measurand side.
After the acquisition process flow process that adopts above-mentioned testing requirement data shown in Figure 3 obtains gathering daily record, namely can be based on the services request of preserving in the collection daily record and the corresponding relation of testing requirement data, carry out the simulated performance test, yet, for when simulated performance is tested, make the simulation test server can inquire faster the testing requirement data corresponding with services request, the embodiment of the present application also provides the store method of the corresponding relation of following services request and testing requirement data, as shown in Figure 4, specifically comprise following treatment step:
Step S401, read services request gathering in daily record and the corresponding relation of testing requirement data.
Step S402, the content-data of the services request in this corresponding relation that reads is set cryptographic calculation, obtain encrypted result, for example carry out the md5 cryptographic calculation.
The data of the front setting figure place of the encrypted result that step S403, extraction obtain obtain extracting result;
For example, extract front 16 bit data as extracting result.
Step S404, should extract result as the key value, the testing requirement data that this services request is corresponding adopt the data memory format of key-value as the value corresponding with this key value, and the value of this key value and correspondence is kept in memory database.
This key value and corresponding value namely should be extracted result and corresponding these testing requirement data, were equivalent to this services request and corresponding these testing requirement data.
Step S405, judge whether to complete the corresponding relation of all services request and testing requirement data in this collection daily record, be converted to the data memory format of above-mentioned key-value and be kept in memory database, if not, enter step S401, start the conversion process of the corresponding relation of next services request and testing requirement data, if so, enter step S406.
The conversion process of the services request in step S406, collection daily record and the corresponding relation of testing requirement data finishes, the database that uses when obtaining for follow-up simulated performance test, the key that preserves in this database and the corresponding relation of value, essence is equivalent to gather services request in daily record and the corresponding relation of testing requirement data, and the corresponding relation of services request and testing requirement data, the corresponding relation that has specifically comprised services request and request results, and the corresponding relation of services request and response time.
Embodiment 2:
After the corresponding relation of setting up services request and testing requirement data, can carry out the simulated performance test to this measurand based on this corresponding relation of setting up, as shown in Figure 5, specifically comprise following treatment scheme:
Step S501, set up being connected between measurand and simulation test server.
In this step, in order to simulate as far as possible accurately actual application environment, interface type between measurand and simulation test server, and carry out agreement that data interaction is used, interface type respectively and in above-mentioned steps S301 between measurand and service object, and it is identical to carry out the agreement that data interaction uses between measurand and service object.
Step S502, triggering measurand send the services request of setting quantity to the simulation test server in setting duration.
In this step, the various services request that measurand sends to the simulation test server, all be contained among the various services request that measurand in above-mentioned steps S302 sends to the service object, in order to simulate more accurately actual application environment, and make that the simulation test server is follow-up can return to the request results corresponding with the services request that receives.
In this step, set duration and set quantity, can be according to the needs of actual performance test, the various loading conditions of simulation measurand arrange, in order to obtain measurand the performance test results under variable loads.
For example, concrete, can in setting duration, this send the requirement of the services request of specified quantity according to per second, and trigger measurand and send services request to the simulation test server, the services request of this specified quantity can be the transmission that walks abreast.
Step S503, simulation test server receive the services request that measurand sends, and based on this services request that receives, the corresponding relation of query service request and testing requirement data, obtain the testing requirement data corresponding with this services request, comprise obtaining request results and the response time corresponding with this services request.
When measurand was the transmission services request that walks abreast, the simulation test server is each services request of the reception of parallel processing accordingly also.
corresponding relation when services request and testing requirement data, when adopting the data memory format of above-mentioned key-value to be kept in memory database, at first the content-data of this services request of receiving carried out above-mentioned setting cryptographic calculation, obtain encrypted result, then extract the data of the above-mentioned front setting figure place of this decrypted result, obtain extracting result, and should extract result as the key value, inquire about the corresponding relation of key and value in above-mentioned memory database, obtain the testing requirement data corresponding with this key value, to obtain these testing requirement data as the testing requirement data corresponding with this services request.
In this step, the simulation test server is after the services request that receives the measurand transmission, and also record receives the moment of this services request.
Step S504, judge whether inquire the testing requirement data corresponding with this services request in above-mentioned steps S503, if so, enter step S505, otherwise, step S506 entered.
Step S505, from the moment that receives this services request, through after the response time corresponding with this services request, return to corresponding request results to measurand.
Step S506, the predefined default request result of acquisition and default response time, wherein, the default request result can be the more request results of recycle time in actual application environment, and the default response time can be the mean value of whole response times of gathering in the flow process that gathers in above-mentioned response time.
Step S507, from the moment that receives this services request, through after the time, returning to default request result to measurand with default response.
Step S508, measurand are carried out corresponding logical process based on the request results that receives.
Step S509, in above-mentioned steps S502-step S508, namely setting in duration in measurand and sending to the simulation test server services request of setting quantity, and receive the request results that the simulation test server returns, and in the process that the request results that receives is processed, determine the performance index value of measurand, complete this simulated performance test to measurand.
In this step, the performance index of the measurand of determining specifically can comprise the CPU usage of measurand and memory usage etc.
Further, based on the performance index value of the measurand of determining, can also determine other performance of measurand, for example, maximum processing capability, maximum processing capability can characterize by the quantity that reaches the services request that per second triggers and processes when specifying occupancy in CPU usage.
By above-mentioned simulated performance method of testing, can test respectively the maximum processing capability of a plurality of be mutually related equipment or functional modules, thereby can be in actual applications the quantity of these a plurality of equipment or functional module be reasonably configured, in order to avoid one in these a plurality of equipment or functional module to reach performance bottleneck, and other situation that does not also reach performance bottleneck occurs, and then has improved the overall performance of these a plurality of equipment or functional module.
The above-mentioned simulated performance method of testing that adopts the embodiment of the present application to provide, the simulation test server is except simulating actual service object to measurand is returned to corresponding request results, also the actual service object of simulation returns to the response time of request results, thereby make the simulation test server in the performance test process, simulation to the service object of reality is more accurate, and then has improved the accuracy of performance test.
Embodiment 3:
Based on same inventive concept, the service request processing method in simulated performance test that provides according to the above embodiments of the present application, correspondingly, the embodiment of the present application 3 also provides a kind of services request treating apparatus in the simulated performance test, this treating apparatus can be integrated in above-mentioned simulation test server, its structural representation specifically comprises as shown in Figure 6:
Receiving element 601 is used for receiving the services request that measurand sends;
Query unit 602, be used for based on described services request, the corresponding relation of query service request and request results, obtain the request results corresponding with described services request, wherein, the request results of described correspondence is when described measurand sends described services request to the service object, the request results that described service object returns to described measurand;
Transmitting element 603, be used for from the moment that receives described services request, through after the response time corresponding with described services request, return to the request results of described correspondence to described measurand, wherein, the described response time, described service object returned to the response time of request results to described measurand for when described measurand sends described services request to the service object.
Better, query unit 602, concrete being used for set cryptographic calculation to the content-data of described services request, obtains encrypted result; And extract the data of the front setting figure place of described encrypted result, obtain extracting result; And based on described extraction result, the corresponding relation of result and request results is extracted in inquiry, obtains the request results corresponding with described extraction result, with the described request result of acquisition as the request results corresponding with described services request.
Better, the described response time is specially:
When described measurand sends described services request to the service object, send the moment of described services request from described measurand to described service object, to the time between the moment that receives described service object and return request results; Perhaps
When described measurand sends described services request to the service object, send the moment of described services request from described measurand to described service object, return to the time between moment of request results to described service object to described measurand; Perhaps
When described measurand sends described services request to the service object, receive the moment of described services request from described service object, to the time between the moment from request results to described measurand that return to.
Better, transmitting element 603, also be used for when query unit 602 based on described services request, the corresponding relation of query service request and request results, when not obtaining the request results corresponding with described services request, from the moment that receives described services request, the default response that process is set is returned to the default request result of setting after the time to described measurand.
Embodiment 4:
Based on same inventive concept, according to the simulated performance method of testing that the above embodiments of the present application provide, correspondingly, the embodiment of the present application 4 also provides a kind of simulated performance method of testing device, and its structural representation specifically comprises as shown in Figure 7:
Trigger element 701 is used for triggering described measurand in setting duration, sends the services request of setting quantity to described simulation test server;
Performance determining unit 702, be used for setting in duration in described measurand and send to described simulation test server the services request of setting quantity, and receive the request results that described simulation test server returns, and in the process that the request results that receives is processed, determine the performance index value of described measurand.
The function of above-mentioned each module can be corresponding to Fig. 1 the respective handling step to the flow process shown in Figure 5, do not repeat them here.
In sum, the scheme that the embodiment of the present application provides comprises: the simulation test server receives the services request that measurand sends; And based on this services request, the corresponding relation of query service request and request results obtains the request results corresponding with this services request, wherein, corresponding request results is when measurand sends this services request to the service object, the request results that the service object returns to measurand; And from the moment that receives this services request, through after the response time corresponding with this services request, return to corresponding request results to measurand, wherein, this response time, the service object returned to the response time of request results to measurand for when measurand sends this services request to the service object.Accordingly, when carrying out the simulated performance test, comprising: trigger measurand in setting duration, send the services request of setting quantity to the simulation test server; And send to the simulation test server services request of setting quantity in measurand in the setting duration, and receive the request results that the simulation test server returns, and in the process that the request results that receives is processed, determine the performance index value of measurand.The scheme that adopts the embodiment of the present application to provide makes the simulation test server in the performance test process, and is more accurate to the service object's of reality simulation, and then improved the accuracy of performance test.
The device that the application's embodiment provides can be realized by computer program.Those skilled in the art should be understood that, above-mentioned Module Division mode is only a kind of in numerous Module Division modes, if be divided into other modules or do not divide module, as long as device has above-mentioned functions, and all should be within the application's protection domain.
The application is that reference is described according to process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the present application.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce to be used for the device of realizing in the function of flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is realized the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device, make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby be provided for realizing the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame in the instruction of carrying out on computing machine or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and the spirit and scope that do not break away from the application to the application.Like this, if within these of the application are revised and modification belongs to the scope of the application's claim and equivalent technologies thereof, the application also is intended to comprise these changes and modification interior.

Claims (10)

1. the service request processing method in the simulated performance test, is characterized in that, comprising:
The simulation test server receives the services request that measurand sends;
Based on described services request, the corresponding relation of query service request and request results, obtain the request results corresponding with described services request, wherein, the request results of described correspondence is when described measurand sends described services request to the service object, the request results that described service object returns to described measurand;
From the moment that receives described services request, through after the response time corresponding with described services request, return to the request results of described correspondence to described measurand, wherein, the described response time, described service object returned to the response time of request results to described measurand for when described measurand sends described services request to the service object.
2. the method for claim 1, is characterized in that, based on described services request, the corresponding relation of query service request and request results obtains the request results corresponding with described services request, specifically comprises:
Content-data to described services request is set cryptographic calculation, obtains encrypted result;
Extract the data of the front setting figure place of described encrypted result, obtain extracting result;
Based on described extraction result, the corresponding relation of result and request results is extracted in inquiry, obtains the request results corresponding with described extraction result, with the described request result of acquisition as the request results corresponding with described services request.
3. the method for claim 1, is characterized in that, the described response time is specially:
When described measurand sends described services request to the service object, send the moment of described services request from described measurand to described service object, to the time between the moment that receives described service object and return request results; Perhaps
When described measurand sends described services request to the service object, send the moment of described services request from described measurand to described service object, return to the time between moment of request results to described service object to described measurand; Perhaps
When described measurand sends described services request to the service object, receive the moment of described services request from described service object, to the time between the moment from request results to described measurand that return to.
4. the method for claim 1, is characterized in that, also comprises:
When based on described services request, the corresponding relation of query service request and request results, when not obtaining the request results corresponding with described services request, from the moment that receives described services request, the default response that process is set is returned to the default request result of setting after the time to described measurand.
5. the simulated performance method of testing based on service request processing method claimed in claim 1, is characterized in that, comprising:
Trigger described measurand in setting duration, send the services request of setting quantity to described simulation test server;
Setting in duration in described measurand and sending to described simulation test server the services request of setting quantity, and receive the request results that described simulation test server returns, and in the process that the request results that receives is processed, determine the performance index value of described measurand.
6. the services request treating apparatus in the simulated performance test, is characterized in that, comprising:
Receiving element is used for receiving the services request that measurand sends;
Query unit, be used for based on described services request, the corresponding relation of query service request and request results, obtain the request results corresponding with described services request, wherein, the request results of described correspondence is when described measurand sends described services request to the service object, the request results that described service object returns to described measurand;
Transmitting element, be used for from the moment that receives described services request, through after the response time corresponding with described services request, return to the request results of described correspondence to described measurand, wherein, the described response time, described service object returned to the response time of request results to described measurand for when described measurand sends described services request to the service object.
7. device as claimed in claim 6, is characterized in that, described query unit, and concrete being used for set cryptographic calculation to the content-data of described services request, obtains encrypted result; And extract the data of the front setting figure place of described encrypted result, obtain extracting result; And based on described extraction result, the corresponding relation of result and request results is extracted in inquiry, obtains the request results corresponding with described extraction result, with the described request result of acquisition as the request results corresponding with described services request.
8. device as claimed in claim 6, is characterized in that, the described response time is specially:
When described measurand sends described services request to the service object, send the moment of described services request from described measurand to described service object, to the time between the moment that receives described service object and return request results; Perhaps
When described measurand sends described services request to the service object, send the moment of described services request from described measurand to described service object, return to the time between moment of request results to described service object to described measurand; Perhaps
When described measurand sends described services request to the service object, receive the moment of described services request from described service object, to the time between the moment from request results to described measurand that return to.
9. device as claimed in claim 6, it is characterized in that, described transmitting element, also be used for when described query unit based on described services request, the corresponding relation of query service request and request results is not when obtaining the request results corresponding with described services request, from the moment that receives described services request, the default response that process is set is returned to the default request result of setting after the time to described measurand.
10. the simulated performance proving installation based on services request treating apparatus claimed in claim 6, is characterized in that, comprising:
Trigger element is used for triggering described measurand in setting duration, sends the services request of setting quantity to described simulation test server;
The performance determining unit, be used for setting in duration in described measurand and send to described simulation test server the services request of setting quantity, and receive the request results that described simulation test server returns, and in the process that the request results that receives is processed, determine the performance index value of described measurand.
CN201110404254.6A 2011-12-07 2011-12-07 A kind of service request processing method, simulated performance method of testing and device Active CN103150238B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110404254.6A CN103150238B (en) 2011-12-07 2011-12-07 A kind of service request processing method, simulated performance method of testing and device
HK13108864.1A HK1181527A1 (en) 2011-12-07 2013-07-30 Method for processing a service request, method and device for testing simulation performation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110404254.6A CN103150238B (en) 2011-12-07 2011-12-07 A kind of service request processing method, simulated performance method of testing and device

Publications (2)

Publication Number Publication Date
CN103150238A true CN103150238A (en) 2013-06-12
CN103150238B CN103150238B (en) 2015-11-11

Family

ID=48548334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110404254.6A Active CN103150238B (en) 2011-12-07 2011-12-07 A kind of service request processing method, simulated performance method of testing and device

Country Status (2)

Country Link
CN (1) CN103150238B (en)
HK (1) HK1181527A1 (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424182A (en) * 2013-08-19 2015-03-18 中国电信股份有限公司 Workload emulation performance test method and workload emulation performance test device in data warehouse platform
CN105721251A (en) * 2016-03-04 2016-06-29 深圳市分期乐网络科技有限公司 Reconfigurable testing pile service method and system
CN106487603A (en) * 2015-08-26 2017-03-08 阿里巴巴集团控股有限公司 A kind of response test method and device
CN106528393A (en) * 2015-09-09 2017-03-22 北京京东尚科信息技术有限公司 Method and device for Mock testing of WebService
CN106681922A (en) * 2016-12-27 2017-05-17 广州唯品会信息科技有限公司 Simulation server response method and system
CN107368405A (en) * 2016-05-11 2017-11-21 腾讯科技(北京)有限公司 Test system, method of testing, mock platforms, blocker and client
CN107395420A (en) * 2017-07-26 2017-11-24 携程计算机技术(上海)有限公司 Service end performance test methods, system, electronic installation and storage medium
CN107579879A (en) * 2017-09-26 2018-01-12 深圳震有科技股份有限公司 A kind of network simulation method of testing, emulation server and storage medium
CN107729246A (en) * 2017-10-13 2018-02-23 广州阿里巴巴文学信息技术有限公司 For the auxiliary test methods of intended application, device, equipment and storage medium
CN107748709A (en) * 2017-10-31 2018-03-02 新华三云计算技术有限公司 Test environment system, method and the analog machine of Iaas management platforms
CN107885659A (en) * 2017-10-30 2018-04-06 阿里巴巴集团控股有限公司 Method and device, the equipment of request analog response to client
CN108170612A (en) * 2018-01-23 2018-06-15 百度在线网络技术(北京)有限公司 A kind of automated testing method, device and server
CN108347356A (en) * 2017-01-24 2018-07-31 北京京东尚科信息技术有限公司 A kind of multi-protocols unit test method, device, electronic equipment and storage medium
CN108563567A (en) * 2018-04-09 2018-09-21 平安普惠企业管理有限公司 Automated testing method, device, equipment and computer readable storage medium
CN109144846A (en) * 2017-06-28 2019-01-04 北京京东尚科信息技术有限公司 Test method and device for testing service device
CN109165168A (en) * 2018-09-14 2019-01-08 杭州云创共享网络科技有限公司 A kind of method for testing pressure, device, equipment and medium
CN109491754A (en) * 2017-09-12 2019-03-19 北京京东尚科信息技术有限公司 The performance test methods and device of virtual server
CN110830274A (en) * 2018-08-08 2020-02-21 中兴通讯股份有限公司 Communication equipment simulation method and device
CN110895507A (en) * 2018-09-13 2020-03-20 杭州海康威视系统技术有限公司 Simulation test method and device, simulation server and storage medium
CN112887354A (en) * 2019-11-29 2021-06-01 贵州白山云科技股份有限公司 Method and device for acquiring performance information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040210665A1 (en) * 2002-12-19 2004-10-21 Ntt Docomo, Inc. Protocol testing system and protocol testing method
CN1549516A (en) * 2003-05-12 2004-11-24 华为技术有限公司 Method for testing AAA server characteristics and apparatus thereof
CN1611088A (en) * 2001-11-05 2005-04-27 诺基亚有限公司 Delivery of mobile station operational and self-performance test results to network in response to encrypted request message
CN101540701A (en) * 2008-03-18 2009-09-23 中国移动通信集团公司 System, method and device for testing server
CN101656642A (en) * 2009-09-28 2010-02-24 福建星网锐捷网络有限公司 Method, device and system for testing authentication performance of network access equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1611088A (en) * 2001-11-05 2005-04-27 诺基亚有限公司 Delivery of mobile station operational and self-performance test results to network in response to encrypted request message
US20040210665A1 (en) * 2002-12-19 2004-10-21 Ntt Docomo, Inc. Protocol testing system and protocol testing method
CN1549516A (en) * 2003-05-12 2004-11-24 华为技术有限公司 Method for testing AAA server characteristics and apparatus thereof
CN101540701A (en) * 2008-03-18 2009-09-23 中国移动通信集团公司 System, method and device for testing server
CN101656642A (en) * 2009-09-28 2010-02-24 福建星网锐捷网络有限公司 Method, device and system for testing authentication performance of network access equipment

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424182A (en) * 2013-08-19 2015-03-18 中国电信股份有限公司 Workload emulation performance test method and workload emulation performance test device in data warehouse platform
CN106487603A (en) * 2015-08-26 2017-03-08 阿里巴巴集团控股有限公司 A kind of response test method and device
CN106528393A (en) * 2015-09-09 2017-03-22 北京京东尚科信息技术有限公司 Method and device for Mock testing of WebService
CN105721251A (en) * 2016-03-04 2016-06-29 深圳市分期乐网络科技有限公司 Reconfigurable testing pile service method and system
CN105721251B (en) * 2016-03-04 2019-03-08 深圳市分期乐网络科技有限公司 A kind of method and system of configurable test pile service
CN107368405A (en) * 2016-05-11 2017-11-21 腾讯科技(北京)有限公司 Test system, method of testing, mock platforms, blocker and client
CN106681922A (en) * 2016-12-27 2017-05-17 广州唯品会信息科技有限公司 Simulation server response method and system
CN108347356A (en) * 2017-01-24 2018-07-31 北京京东尚科信息技术有限公司 A kind of multi-protocols unit test method, device, electronic equipment and storage medium
CN109144846B (en) * 2017-06-28 2022-07-05 北京京东尚科信息技术有限公司 Test method and device for testing server
CN109144846A (en) * 2017-06-28 2019-01-04 北京京东尚科信息技术有限公司 Test method and device for testing service device
CN107395420A (en) * 2017-07-26 2017-11-24 携程计算机技术(上海)有限公司 Service end performance test methods, system, electronic installation and storage medium
CN107395420B (en) * 2017-07-26 2020-11-24 携程计算机技术(上海)有限公司 Server performance testing method and system, electronic device and storage medium
CN109491754A (en) * 2017-09-12 2019-03-19 北京京东尚科信息技术有限公司 The performance test methods and device of virtual server
CN107579879A (en) * 2017-09-26 2018-01-12 深圳震有科技股份有限公司 A kind of network simulation method of testing, emulation server and storage medium
CN107729246A (en) * 2017-10-13 2018-02-23 广州阿里巴巴文学信息技术有限公司 For the auxiliary test methods of intended application, device, equipment and storage medium
CN107729246B (en) * 2017-10-13 2020-12-01 阿里巴巴(中国)有限公司 Auxiliary test method, device and equipment for target application and storage medium
CN107885659A (en) * 2017-10-30 2018-04-06 阿里巴巴集团控股有限公司 Method and device, the equipment of request analog response to client
CN107748709A (en) * 2017-10-31 2018-03-02 新华三云计算技术有限公司 Test environment system, method and the analog machine of Iaas management platforms
CN108170612A (en) * 2018-01-23 2018-06-15 百度在线网络技术(北京)有限公司 A kind of automated testing method, device and server
CN108563567A (en) * 2018-04-09 2018-09-21 平安普惠企业管理有限公司 Automated testing method, device, equipment and computer readable storage medium
CN110830274A (en) * 2018-08-08 2020-02-21 中兴通讯股份有限公司 Communication equipment simulation method and device
CN110895507A (en) * 2018-09-13 2020-03-20 杭州海康威视系统技术有限公司 Simulation test method and device, simulation server and storage medium
CN110895507B (en) * 2018-09-13 2023-10-20 杭州海康威视系统技术有限公司 Simulation test method and device, simulation server and storage medium
CN109165168A (en) * 2018-09-14 2019-01-08 杭州云创共享网络科技有限公司 A kind of method for testing pressure, device, equipment and medium
CN112887354A (en) * 2019-11-29 2021-06-01 贵州白山云科技股份有限公司 Method and device for acquiring performance information

Also Published As

Publication number Publication date
HK1181527A1 (en) 2013-11-08
CN103150238B (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN103150238A (en) Service request processing method, simulation performance test method and simulation performance test device
US8448112B1 (en) System, method, and computer program product for automatic power management verification
CN104144081A (en) General application log management method, device and system
CN109739712B (en) FPGA accelerator card transmission performance test method, device, equipment and medium
CN105607986A (en) Acquisition method and device of user behavior log data
CN103246606B (en) The performance test methods of ESB platform and system
CN105204986A (en) Automated product testing method, server and mobile equipment
CN104133773A (en) Server stability testing method based on windows
CN109240822A (en) The method, apparatus and storage medium and electronic equipment of application program elastic telescopic
CN109408309A (en) The test method and device of multiple terminals
CN105527878A (en) Data acquisition method, data acquisition device and data acquisition and debugging system
CN104185195A (en) Mobile web performance measuring method, device and system
CN103684823A (en) Weblog recording method, network access path determining method and related devices
US20180288636A1 (en) A method for automatic measurement of App load power consumption on mobile devices based on physical measurement
CN104765792A (en) Dimension data storing method, device and system
CN109586788B (en) Monitoring system fault diagnosis method and device, computer equipment and storage medium
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN104065684A (en) Information processing method, electronic device and terminal device
CN116701367A (en) Data repeatability verification method, device and equipment based on bloom filter
CN114760289B (en) Vehicle data acquisition method, device, computer equipment and storage medium
CN103095820B (en) A kind of method and device determining the terminal quantity of accession page
CN103514082B (en) The method of testing of reflection computer equipment WEB energy efficiency
CN101154315A (en) System and method for collecting test data
CN103746870A (en) CDN delivery network analysis method, file delivery control center and system
CN110781058B (en) Mobile terminal application performance data acquisition method, device, equipment and 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1181527

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1181527

Country of ref document: HK