CN103150238B - A kind of service request processing method, simulated performance method of testing and device - Google Patents

A kind of service request processing method, simulated performance method of testing and device Download PDF

Info

Publication number
CN103150238B
CN103150238B CN201110404254.6A CN201110404254A CN103150238B CN 103150238 B CN103150238 B CN 103150238B CN 201110404254 A CN201110404254 A CN 201110404254A CN 103150238 B CN103150238 B CN 103150238B
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.)
Active
Application number
CN201110404254.6A
Other languages
Chinese (zh)
Other versions
CN103150238A (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

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

This application discloses a kind of service request processing method, simulated performance method of testing and device, comprising: 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 service object, the request results that service object returns to measurand; And from the moment receiving this services request, after the response time corresponding with this services request, corresponding request results is returned to measurand, wherein, this response time, service object returned the response time of request results to measurand for when measurand sends this services request to service object.The scheme adopting the embodiment of the present application to provide, improves the accuracy of performance test.

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, particularly relates 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, tests the property indices of measurand.Measurand contact with foreign countries all passes through interface, all data all affect the performance of measurand by interface input and output, as long as the interface capability carrying out the service object of data interaction with measurand shows identical, then the performance of measurand is also just identical.Measurand and service object can be equipment, also can be the functional modules in equipment.
Simulated performance measuring technology, also referred to as mock Performance Testing Technology, in test process, the service object constructing or be not easy acquisition is not easy for some, replace with a virtual object, to carry out the method for testing of testing, this virtual object can be called mock tested object or mock testing server.Mock tested object and former service object have same-interface, in simulated performance test process, measurand just carries out data interaction by interface and mock tested object, and to complete 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-analog performance test scheme, dispose a measurand A in test environment, and according to the processing power of service object B, dispose one or more service object B, services request for sending measurand A processes, and return after obtaining request results by corresponding internal logic process, when carrying out performance test to measurand A, General Requirements service object B has enough process resources for providing service for measurand A.Carrying out in the process of testing, triggering 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, first real service object B is used to process the various services request that measurand A sends, obtain corresponding request results respectively, and preserve corresponding with services request for request results, then in follow-up performance test process, mock tested object is used to replace service object B to provide service processing for measurand A, mock tested object is receiving the services request of 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.Because mock tested object is when processing the services request of measurand A, directly inquire the request results of preserving in advance, compare service object B and obtain request results after corresponding internal logic process, the process resource consumed is less, so, use simulated performance testing scheme, the consumption processing resource in performance test process can be reduced, and more easily meet the hardware requirement to service object when testing.
But, in existing simulated performance testing scheme, mock tested object is only that the service object of simulation reality returns request results, when the actual environment more complicated of testing, possibly cannot simulate actual service object more accurately, thus cause 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, for solving the low problem of the performance test accuracy that exists in existing simulated performance method of testing.
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 simulated performance test.
A kind of service request processing method in simulated performance test that the embodiment of the present application provides, comprising:
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 service object, the request results that described service object returns to described measurand;
From receiving the moment of described services request, after the response time corresponding with described services request, the request results of described correspondence is returned to described measurand, wherein, the described response time, described service object returned the response time of request results to described measurand for when described measurand sends described services request to service object.
According to another aspect of the embodiment of the present application, additionally 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, comprising:
Trigger described measurand in setting duration, send the services request of setting quantity to described simulation test server;
In setting duration, send the services request of setting quantity to described simulation test server in described measurand, and receive the request results that described simulation test server returns, and in the process that processes of request results received, determine the performance index value of described measurand.
According to another aspect of the embodiment of the present application, additionally provide a kind of services request treating apparatus in simulated performance test, comprising:
Receiving element, for receiving the services request that measurand sends;
Query unit, 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 service object, the request results that described service object returns to described measurand;
Transmitting element, for from receiving the moment of described services request, after the response time corresponding with described services request, the request results of described correspondence is returned to described measurand, wherein, the described response time, described service object returned the response time of request results to described measurand for when described measurand sends described services request to service object.
According to another aspect of the embodiment of the present application, additionally provide a kind of simulated performance proving installation based on above-mentioned services request treating apparatus, comprising:
Trigger element, for triggering described measurand in setting duration, sends the services request of setting quantity to described simulation test server;
Capabilities determination unit, for sending the services request of setting quantity in setting duration to described simulation test server in described measurand, and receive the request results that described simulation test server returns, and in the process that processes of request results received, 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, the services request of setting quantity is sent to simulation test server, in setting duration, send the services request of setting quantity to simulation test server in measurand, and receive the request results that simulation test server returns, and in the process that processes of request results received, obtain the performance index value of measurand, and, in this simulation test process, simulation test server is after the services request receiving measurand transmission, the service object actual except simulation returns except corresponding request results to measurand, also simulate the response time that actual service object returns request results, namely be from receiving the moment of the services request that measurand sends, after this response time corresponding with this services request, corresponding request results is returned to measurand, thus make simulation test server in performance test process, more accurate to the simulation of the service object of reality, and then improve the accuracy of performance test.
The further feature of the application and advantage will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the application.The object of the application and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Accompanying drawing is used to provide further understanding of the present application, and forms a part for instructions, is used from explanation the application with the embodiment of the present application one, does not form 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 collecting test demand data of Fig. 3 for providing in the embodiment of the present application 1;
The process flow diagram of the testing requirement data that Fig. 4 gathers for the preservation provided in the embodiment of the present application 1;
The process flow diagram of simulated performance method of testing of Fig. 5 for providing in the embodiment of the present application 2;
The structural representation of services request treating apparatus of Fig. 6 for providing in the embodiment of the present application 3;
The structural representation of simulated performance proving installation of Fig. 7 for providing in the embodiment of the present application 4.
Embodiment
Make simulation test server in performance test process to provide, more accurate to the simulation of the service object of reality, and then improve the implementation of 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.Be described below in conjunction with the preferred embodiment of Figure of description to the application, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the application, and be not used in restriction the application.And when not conflicting, the embodiment in the application and the feature in embodiment can combine 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 service object, the request results that service object returns to measurand.
Step S103, from the moment receiving this services request, after the response time corresponding with this services request, corresponding request results is returned to measurand, wherein, this response time, service object returned the response time of request results to measurand for when measurand sends this services request to 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, in setting duration, send the services request of setting quantity to simulation test server.
Step S202, measurand setting duration in simulation test server send setting quantity services request, and receive the request results that simulation test server returns, and in the process that processes of request results received, determine the performance index value of measurand.
Below in conjunction with accompanying drawing, the method provided the application with specific embodiment and device are described in detail.
Embodiment 1:
At the above-mentioned service request processing method provided the embodiment of the present application, and before simulated performance method of testing is described in detail, first to how obtaining testing requirement data (comprising request results and response time) required in simulated performance test process, and how to set up the corresponding relation of services request and testing requirement data, be described.
Figure 3 shows that the process flow diagram being captured in testing requirement data required in simulated performance test process, specifically comprise following treatment step:
Step S301, set up connection between measurand and service object, this service object is for this measurand carries out the object of service processing in actual application environment.
Step S302, measurand send services request to service object, and this services request is the services request that in actual application environment, measurand will send to service object.
Based on the needs of the response time in collecting test demand data, in this step, the moment sending this services request can also be recorded.
Step S303, service object, after this services request receiving measurand transmission, by corresponding internal logic process, determine request results, and return the request results determined to measurand.
Based on the needs of the response time in collecting test demand data, in this step, the moment receiving this services request can also be recorded, or record returns the moment of request results to measurand;
Accordingly, specifically the response time can be gathered in the following way:
First kind of way: determine that the response time is send the moment of services request from measurand to service object, the time between to service object to the moment that measurand returns request results;
The second way: determine that the response time is receive the moment of services request from service object, the time between the moment returning request results to measurand;
After determining the response time, to services request this response time should be preserved, specifically this services request and the corresponding relation of this response time can be kept at and gather in daily record.
The collection of the request results in testing requirement data, also can complete in service object side in this step, namely service object is after determining request results, to services request this request results should be preserved, specifically the corresponding relation of this services request and this request results can be kept in collection daily record.
Step S304, measurand are after receiving the request results that service object returns, and 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 service object returns request results, and determine that the response time is, the moment of services request is sent from measurand to service object, to the time received between moment that service object returns request results, in order to distinguish the acquisition mode of above-mentioned the first and the second response time, the mode gathering the response time in this step is called the third mode;
After determining the response time, to services request this response time should be preserved, specifically this services request and the corresponding relation of this response time can be kept at and gather in daily record.
For the collection of request results, also can complete in measurand side in this step, namely measurand is after receiving the request results returned, and to services request preserving this request results, specifically the corresponding relation of this services request and this request results can be kept in collection daily record.
Step S305, measurand, based on the request results received, carry out corresponding logical process.
Step S306, judge whether the collection of the testing requirement data corresponding respectively with the whole services request preset, if all do not completed, enter step S302, start the acquisition process of testing requirement data corresponding to next services request, if all completed, enter step S307.
Step S307, complete the acquisition process flow process of testing requirement data.
Visible in the acquisition process flow process of the testing requirement data shown in above-mentioned Fig. 3, response time specifically can adopt three kinds of modes to gather, wherein, the second way determined response time is adopted to be the real response time, the second way determined response time is used in the test of follow-up simulated performance, actual application environment can be simulated the most accurately, such as, measurand and service object be connected by network time, due to services request and the request results transmission time between measurand and service object, corresponding service object handles services request obtains the time of request results, can not ignore, so be applicable to adopting the second way to gather the response time, when services request and the request results transmission time between measurand and service object, the time that corresponding service object handles services request obtains request results is very short, time negligible, such as, measurand and service object be wired direct-connected time, first kind of way or the third mode can be adopted to gather the response time.
In the acquisition process flow process of the testing requirement data shown in above-mentioned Fig. 3, the collection of response time and request results all can complete in measurand side, also can complete in service object side, daily record is gathered for the ease of obtaining, the collection completing response time and request results in the same side can be selected, such as, when adopting the first and the second way gathers the response time, gather request results in service object side; When adopting the third mode to gather the response time, gather request results in measurand side.
Obtain gathering daily record adopting the acquisition process flow process of the testing requirement data shown in above-mentioned Fig. 3 after, namely can based on the corresponding relation gathering services request and the testing requirement data of preserving in daily record, carry out simulated performance test, but, in order to when simulated performance is tested, make simulation test server can inquire the testing requirement data corresponding with services request faster, the embodiment of the present application additionally provides the store method of the corresponding relation of following services request and testing requirement data, as shown in Figure 4, following treatment step is specifically comprised:
A services request in step S401, reading collection daily record and the corresponding relation of testing requirement data.
Step S402, setting cryptographic calculation is carried out to the content-data of services request in this corresponding relation read, obtain encrypted result, such as, carry out md5 cryptographic calculation.
The data of the front setting figure place of the encrypted result that step S403, extraction obtain, obtain extracting result;
Such as, front 16 bit data are extracted as extraction result.
Step S404, using this extraction result as key value, using testing requirement data corresponding for this services request as the value corresponding with this key value, adopt the data memory format of key-value, the value of this key value and correspondence be kept in memory database.
This key value and corresponding value, namely this extraction result and these corresponding testing requirement data, be equivalent to this services request and these corresponding testing requirement data.
Step S405, judge whether the corresponding relation completing 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, step S406 is entered.
The conversion process of the services request in step S406, collection daily record and the corresponding relation of testing requirement data terminates, obtain the database for using during follow-up simulated performance test, the corresponding relation of key and value preserved in this database, essence is equivalent to gather the corresponding relation of services request in daily record and testing requirement data, and the corresponding relation of services request and testing requirement data, specifically include the corresponding relation of services request and request results, and the corresponding relation of services request and response time.
Embodiment 2:
After the corresponding relation setting up services request and testing requirement data, based on this corresponding relation set up, can carry out testing the simulated performance of this measurand, as shown in Figure 5, specifically comprise following treatment scheme:
Step S501, set up connection between measurand and simulation test server.
In this step, in order to actual application environment can be simulated as far as possible accurately, interface type between measurand and simulation test server, and carry out agreement that data interaction uses, 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 with service object.
Step S502, triggering measurand, in setting duration, send the services request of setting quantity to simulation test server.
In this step, the various services request that measurand sends to simulation test server, all be contained among various services request that measurand in above-mentioned steps S302 sends to service object, to simulate actual application environment more accurately, and make that simulation test server is follow-up can return the request results corresponding with the services request received.
In this step, setting duration and setting quantity, can according to the needs of actual performance test, and the various loading conditions of simulation measurand, are arranged, to obtain the performance test results of measurand under various loading condition.
Such as, concrete, can in this setting duration, according to the requirement of the services request of transmission specified quantity per second, trigger measurand and send services request to simulation test server, the services request of this specified quantity can be parallel transmission.
Step S503, simulation test server receive the services request that measurand sends, and based on this services request received, the corresponding relation of query service request and testing requirement data, obtain the testing requirement data corresponding with this services request, comprise and obtain the request results corresponding with this services request and response time.
When measurand is parallel transmission services request, simulation test server also can parallel processing accordingly receive each services request.
When the corresponding relation of services request and testing requirement data, when adopting the data memory format of above-mentioned key-value to be kept in memory database, first above-mentioned setting cryptographic calculation is carried out to the content-data of this services request received, obtain encrypted result, then the data of the above-mentioned front setting figure place of this decrypted result are extracted, obtain extracting result, and using this extraction result as 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, using these testing requirement data of acquisition as the testing requirement data corresponding with this services request.
In this step, simulation test server is after the services request receiving 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, enter step S506.
Step S505, from the moment receiving this services request, after the response time corresponding with this services request, return corresponding request results to measurand.
The default request result that step S506, acquisition preset and default response time, wherein, default request result can be the request results that in actual application environment, recycle time is more, and the default response time can for the mean value of whole response times gathered in the flow process that gathers in the above-mentioned response time.
Step S507, from the moment receiving this services request, through with the default response time after, return default request result to measurand.
Step S508, measurand, based on the request results received, carry out corresponding logical process.
Step S509, in above-mentioned steps S502-step S508, namely in setting duration, send the services request of setting quantity to simulation test server in measurand, and receive the request results that simulation test server returns, and in the process that processes of request results received, determine the performance index value of measurand, complete and this simulated performance of measurand is tested.
In this step, the performance index of the measurand determined, specifically can comprise the CPU usage and memory usage etc. of measurand.
Further, based on the performance index value of the measurand determined, other performance of measurand can also be determined, such as, maximum processing capability, maximum processing capability can by reach in CPU usage specify occupancy time triggering per second and the quantity of services request of process characterize.
By above-mentioned simulated performance method of testing, the maximum processing capability of multiple be mutually related equipment or functional module can be tested respectively, thus can reasonably configure the quantity of this multiple equipment or functional module in actual applications, to avoid one in this multiple equipment or functional module to reach performance bottleneck, and other situation also not reaching performance bottleneck occurs, and then improve the overall performance of this multiple equipment or functional module.
Adopt the above-mentioned simulated performance method of testing that the embodiment of the present application provides, simulation test server returns except corresponding request results except simulating actual service object to measurand, also simulate the response time that actual service object returns request results, thus make simulation test server in performance test process, more accurate to the simulation of the service object of reality, and then improve the accuracy of performance test.
Embodiment 3:
Based on same inventive concept, according to the service request processing method in simulated performance test that the above embodiments of the present application provide, correspondingly, the embodiment of the present application 3 additionally provides a kind of services request treating apparatus in simulated performance test, this treating apparatus accessible site is in above-mentioned simulation test server, its structural representation as shown in Figure 6, specifically comprises:
Receiving element 601, for receiving the services request that measurand sends;
Query unit 602, 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 service object, the request results that described service object returns to described measurand;
Transmitting element 603, for from receiving the moment of described services request, after the response time corresponding with described services request, the request results of described correspondence is returned to described measurand, wherein, the described response time, described service object returned the response time of request results to described measurand for when described measurand sends described services request to service object.
Preferably, query unit 602, specifically for carrying out setting 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, using the described request result of acquisition as the request results corresponding with described services request.
Preferably, the described response time is specially:
When described measurand sends described services request to service object, send the moment of described services request from described measurand to described service object, to the time received between moment that described service object returns request results; Or
When described measurand sends described services request to service object, send the moment of described services request from described measurand to described service object, the time between to described service object to the moment that described measurand returns request results; Or
When described measurand sends described services request to service object, receive the moment of described services request from described service object, the time between the moment returning request results to described measurand.
Preferably, transmitting element 603, also for working as 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 receiving the moment of described services request, after the default response time of setting, return the default request result of setting 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 additionally provides a kind of simulated performance method of testing device, and its structural representation as shown in Figure 7, specifically comprises:
Trigger element 701, for triggering described measurand in setting duration, sends the services request of setting quantity to described simulation test server;
Capabilities determination unit 702, for sending the services request of setting quantity in setting duration to described simulation test server in described measurand, and receive the request results that described simulation test server returns, and in the process that processes of request results received, determine the performance index value of described measurand.
The function of above-mentioned each module may correspond to the respective handling step in flow process shown in Fig. 1 to Fig. 5, does not repeat them here.
In sum, the scheme that the embodiment of the present application provides, comprising: 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 service object, the request results that service object returns to measurand; And from the moment receiving this services request, after the response time corresponding with this services request, corresponding request results is returned to measurand, wherein, this response time, service object returned the response time of request results to measurand for when measurand sends this services request to service object.Accordingly, when carrying out simulated performance test, comprising: trigger measurand in setting duration, send the services request of setting quantity to simulation test server; And in setting duration, send the services request of setting quantity to simulation test server in measurand, and receive the request results that simulation test server returns, and in the process that processes of request results received, determine the performance index value of measurand.The scheme adopting the embodiment of the present application to provide, makes simulation test server in performance test process, more accurate to the simulation of the service object of reality, and then improves the accuracy of performance test.
The device that the embodiment of the application provides realizes by computer program.Those skilled in the art should be understood that, above-mentioned Module Division mode is only the one in numerous Module Division mode, if be divided into other modules or do not divide module, as long as device has above-mentioned functions, and all should within the protection domain of the application.
The application describes with reference to according to the process flow diagram of the method for the embodiment of the present application, equipment (system) and computer program and/or block scheme.Should understand can by the combination of 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 square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (10)

1. the service request processing method in simulated performance test, is characterized in that, comprising:
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 service object, the request results that described service object returns to described measurand;
From receiving the moment of described services request, after the response time corresponding with described services request, the request results of described correspondence is returned to described measurand, wherein, the described response time, described service object returned the response time of request results to described measurand for when described measurand sends described services request to 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 comprise:
Setting cryptographic calculation is carried out to the content-data of described services request, 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, using 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 service object, send the moment of described services request from described measurand to described service object, to the time received between moment that described service object returns request results; Or
When described measurand sends described services request to service object, send the moment of described services request from described measurand to described service object, the time between to described service object to the moment that described measurand returns request results; Or
When described measurand sends described services request to service object, receive the moment of described services request from described service object, the time between the moment returning request results to described measurand.
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 receiving the moment of described services request, after the default response time of setting, return the default request result of setting to described measurand.
5., based on a simulated performance method of testing for service request processing method according to claim 1, it is characterized in that, comprising:
Trigger described measurand in setting duration, send the services request of setting quantity to described simulation test server;
In setting duration, send the services request of setting quantity to described simulation test server in described measurand, and receive the request results that described simulation test server returns, and in the process that processes of request results received, determine the performance index value of described measurand.
6. the services request treating apparatus in simulated performance test, is characterized in that, comprising:
Receiving element, for receiving the services request that measurand sends;
Query unit, 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 service object, the request results that described service object returns to described measurand;
Transmitting element, for from receiving the moment of described services request, after the response time corresponding with described services request, the request results of described correspondence is returned to described measurand, wherein, the described response time, described service object returned the response time of request results to described measurand for when described measurand sends described services request to service object.
7. device as claimed in claim 6, is characterized in that, described query unit, specifically for carrying out setting cryptographic calculation to the content-data of described services request, obtaining 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, using the described request result of acquisition as the request results corresponding with described services request.
8. device as claimed in claim 6, it is characterized in that, the described response time is specially:
When described measurand sends described services request to service object, send the moment of described services request from described measurand to described service object, to the time received between moment that described service object returns request results; Or
When described measurand sends described services request to service object, send the moment of described services request from described measurand to described service object, the time between to described service object to the moment that described measurand returns request results; Or
When described measurand sends described services request to service object, receive the moment of described services request from described service object, the time between the moment returning request results to described measurand.
9. device as claimed in claim 6, it is characterized in that, described transmitting element, also for working as described query unit 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 receiving the moment of described services request, after the default response time of setting, return the default request result of setting to described measurand.
10., based on a simulated performance proving installation for services request treating apparatus according to claim 6, it is characterized in that, comprising:
Trigger element, for triggering described measurand in setting duration, sends the services request of setting quantity to described simulation test server;
Capabilities determination unit, for sending the services request of setting quantity in setting duration to described simulation test server in described measurand, and receive the request results that described simulation test server returns, and in the process that processes of request results received, 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 CN103150238A (en) 2013-06-12
CN103150238B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144846A (en) * 2017-06-28 2019-01-04 北京京东尚科信息技术有限公司 Test method and device for testing service device

Families Citing this family (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
CN106487603B (en) * 2015-08-26 2019-12-10 阿里巴巴集团控股有限公司 Response testing method and device
CN106528393A (en) * 2015-09-09 2017-03-22 北京京东尚科信息技术有限公司 Method and device for Mock testing of WebService
CN105721251B (en) * 2016-03-04 2019-03-08 深圳市分期乐网络科技有限公司 A kind of method and system of configurable test pile service
CN107368405B (en) * 2016-05-11 2021-11-09 腾讯科技(北京)有限公司 Test system, test method, mock platform, interceptor and client
CN106681922B (en) * 2016-12-27 2021-03-02 上海品顺信息科技有限公司 Response method and system of simulation server
CN108347356B (en) * 2017-01-24 2020-12-22 北京京东尚科信息技术有限公司 Multi-protocol unit testing method and device, electronic equipment 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
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
CN108170612B (en) * 2018-01-23 2021-01-15 百度在线网络技术(北京)有限公司 Automatic testing method and device and server
CN108563567B (en) * 2018-04-09 2023-07-14 绍兴君鸿智能科技有限公司 Automated testing method, apparatus, device and computer readable storage medium
CN110830274A (en) * 2018-08-08 2020-02-21 中兴通讯股份有限公司 Communication equipment simulation method and device
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
CN112887354B (en) * 2019-11-29 2023-04-21 贵州白山云科技股份有限公司 Performance information acquisition method and device
CN111506403A (en) * 2020-04-03 2020-08-07 北京声智科技有限公司 Multi-service processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004201121A (en) * 2002-12-19 2004-07-15 Ntt Docomo Inc Protocol testing system and protocol testing method

Patent Citations (4)

* 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
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144846A (en) * 2017-06-28 2019-01-04 北京京东尚科信息技术有限公司 Test method and device for testing service device
CN109144846B (en) * 2017-06-28 2022-07-05 北京京东尚科信息技术有限公司 Test method and device for testing server

Also Published As

Publication number Publication date
HK1181527A1 (en) 2013-11-08
CN103150238A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
CN103150238B (en) A kind of service request processing method, simulated performance method of testing and device
CN109302522B (en) Test method, test device, computer system, and computer medium
CN102244594B (en) At the networks simulation technology manually and in automatic testing instrument
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN102946616B (en) Internet of things middleware performance testing system and testing method
CN110532168B (en) Full-link interface pressure measurement method and device, computer equipment and storage medium
WO2017000424A1 (en) Protocol detection method and apparatus
CN105247493A (en) Identifying impacted tests from statically collected data
CN103678105A (en) Page code testing method and device
CN110874324A (en) Test result data storage method and device, terminal equipment and storage medium
CN104461903A (en) Method and device for testing client side based on browser
CN111522728A (en) Method for generating automatic test case, electronic device and readable storage medium
CN105204986A (en) Automated product testing method, server and mobile equipment
CN106776337A (en) Performance analysis method and device and electronic equipment
CN105117345A (en) Interface testing method and device for application program
CN102508763A (en) Performance test system of GIS (Geographic Information System) platform
CN109871312A (en) A kind of interface test method, device, equipment and readable storage medium storing program for executing
CN109408309A (en) The test method and device of multiple terminals
CN103198001A (en) Storage system capable of self-testing peripheral component interface express (PCIE) interface and test method
CN109407655B (en) Method and device for debugging chip
CN104375935A (en) Method and device for testing SQL injection attack
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
CN110334385B (en) Test method, device and equipment for central controller of comprehensive energy system
CN116701367A (en) Data repeatability verification method, device and equipment based on bloom filter

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