[go: up one dir, main page]

CN105099801A - Testing system for information management system, and testing environment simulation method - Google Patents

Testing system for information management system, and testing environment simulation method Download PDF

Info

Publication number
CN105099801A
CN105099801A CN201410190578.8A CN201410190578A CN105099801A CN 105099801 A CN105099801 A CN 105099801A CN 201410190578 A CN201410190578 A CN 201410190578A CN 105099801 A CN105099801 A CN 105099801A
Authority
CN
China
Prior art keywords
management system
information management
service
business
request
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
CN201410190578.8A
Other languages
Chinese (zh)
Other versions
CN105099801B (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201410190578.8A priority Critical patent/CN105099801B/en
Publication of CN105099801A publication Critical patent/CN105099801A/en
Application granted granted Critical
Publication of CN105099801B publication Critical patent/CN105099801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a testing system for an information management system, and a testing environment simulation method. The method comprises the steps: collecting image data of IP flow of a core network, and obtaining the flow data of all external communication of the information management system; carrying out the protocol analysis of each business request and corresponding business response of the flow data, and analyzing interactive business data parameter in each business request and corresponding business response; configuring the corresponding relation between a business request containing a first business data reference value and the business response containing a second business data reference value in a service simulation unit; cutting off the communication connection between the information management system and a peripheral production system, building the communication connection between the information management system and the service simulation unit, simulating the peripheral production system through the service simulation unit, and carrying out the function and performance testing of the information management system. According to the embodiment of the invention, the method can achieve the simulation of a peripheral interaction system at low cost.

Description

The test macro of information management system and test environment analogy method
Technical field
The present invention relates to the communication technology, especially a kind of test macro of information management system and test environment analogy method.
Background technology
At present, various information management system (that is: all kinds of IT system of enterprise), such as, financial auxiliary system in China Telecom's Management Support System (MSS), manpower auxiliary system, buying auxiliary system or gate system etc., use more and more extensive.For reaching the standard grade smoothly of guarantee information management system, before information management system puts into operation, all need to carry out functional test and performance test to it.Wherein, functional test verifies each function of information management system, according to functional test use-case, tests item by item, and whether inspection message management system reaches the function of reaching the standard grade and requiring.Performance test is tested by multiple normal, the peak value of the testing tool of automation simulation and the property indices of abnormal load conditions to information management system, and whether inspection message management system reaches the properties of reaching the standard grade and requiring.
Along with the development trend of national centralization, information management system becomes increasingly complex, each independently information management system all carries out information interaction by message interface and the multiple system of periphery (being called: production system), brings new challenge to the design of information management system test carrying environment and deployment.At present, in the test structure design of information management system, when carrying out information management system test, disposing test environment, dispose all and its have the periphery production system of message interface, the method needs to consume a large amount of hardware, software and human resources, and cost is higher.Therefore, generally evade the use-case that there is information interaction at present, adopt selection and other system not to have the use-case of message interface to test.The result that the method tests out can not embody the actual conditions of information management system.
Summary of the invention
An embodiment of the present invention technical problem to be solved is: for when carrying out functional test or performance test to information management system, need the problem of building periphery production system with higher cost, a kind of test macro and test environment analogy method of information management system are provided, with the message interface of lower cost simulation information measured management system and periphery interactive system (that is: periphery production system), fast construction test environment.
The test environment analogy method of a kind of information management system that the embodiment of the present invention provides, comprising:
Gathered by the IP traffic mirroring data of monitoring unit to core net in core network switches, from described IP traffic mirroring data, obtain the data on flows of all correspondence with foreign countries of described information management system;
Respectively protocol analysis is carried out to the every bar service request in the data on flows of all correspondence with foreign countries of described information management system and the response of corresponding business by analytic unit, analyze business datum parameter value mutual in every bar service request and the response of corresponding business;
The the first business datum parameter value comprised according to every bar service request and the corresponding business of every bar service request reply the second business datum parameter information comprised, in service analogue unit, configuration comprises the corresponding relation between the service request of the first business datum parameter value and the business response comprising the second business datum parameter value, when making service analogue unit receive the service request comprising certain the first business datum parameter value, to generate according to corresponding relation and to reply the service request comprising certain the first business datum parameter value corresponding, comprise the business response of certain the second business datum parameter value,
Communication connection between the periphery production system disconnecting described information management system and need to carry out information interaction, set up the communication connection between described information management system and described service analogue unit, simulate described periphery production system with described service analogue unit, functional test and performance test are carried out to described information management system.
State in another embodiment of method on the invention, functional test carried out to described information management system and comprises:
According to the functional test operation strategy pre-set, manually client operates information management system, to information management system sending function test data;
Information management system judges whether to need to carry out information interaction with periphery production system according to the functional test data received;
Information interaction is carried out with periphery production system if do not need, information management system carries out process output processing result data to the functional test data received, so that whether whether the function of information management system reaches preset requirement according to the logical relation between the functional test data of input and the result data of output correct verification;
If desired information interaction is carried out with periphery production system, information management system and described service analogue unit carry out information interaction, process output processing result data are carried out to the functional test data received, so that whether the function of information management system reaches preset requirement according to the logical relation between the functional test data of input and the result data of output whether correct verification.
State in another embodiment of method on the invention, information management system and described service analogue unit carry out information interaction, carry out process output processing result data comprise the functional test data received:
Information management system generates corresponding service request and sends to described service analogue unit, and this service request comprises the first business datum parameter value corresponding to described functional test data;
Service analogue unit is according to described corresponding relation, generate and reply the corresponding business response of the service request comprising the first business datum parameter value corresponding to described functional test data to described information management system, the response of this business comprises the second business datum parameter value corresponding to the first business datum parameter value corresponding to described functional test data;
The business response that information management system combines the reply of service analogue unit carries out process and output processing result data to the functional test data received.
State in another embodiment of method on the invention, performance test pack carried out to described information management system and draws together:
Sent the Operational Visit request of predetermined concurrent quantity to described information management system by simulant-client analog subscriber, information management system needs the business of access to judge whether to need to carry out information interaction with periphery production system according to Operational Visit request;
Carry out information interaction if do not need with periphery production system, information management system processes Operational Visit request and exports the service response as result; If desired carry out information interaction with periphery production system, information management system and described service analogue unit carry out information interaction, process and export the service response as result to described Operational Visit request;
Resource utilization when the service response time that obtaining information management system processes Operational Visit request and process business access request; The described service response time is the time interval from responding to the request of information management system transmission Operational Visit to information management system outgoing traffic;
Whether reach preset value respectively according to service response time and resource utilization and judge whether the performance of described information management system reaches preset requirement.
State in another embodiment of method on the invention, the Operational Visit request sending predetermined concurrent quantity to described information management system comprises:
The Operational Visit request of the concurrent quantity under the Operational Visit request sending concurrent quantity corresponding to the Operational Visit request of the concurrent quantity within the scope of the normal loading conditions of described information management system performance parameter support, peak load condition respectively to described information management system and the abnormal load conditions surmounting peak load condition;
Describedly whether reach preset value respectively according to service response time and resource utilization and judge whether the performance of described information management system reaches preset requirement and comprise:
Judge whether service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization reach preset value corresponding to corresponding conditions respectively;
If the service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization all reach preset value corresponding to corresponding conditions, judge that the performance of described information management system reaches preset requirement.
State in another embodiment of method on the invention, information management system and described service analogue unit carry out information interaction, process and the service response exported as result comprises to described Operational Visit request:
Information management system generates corresponding service request and sends to described service analogue unit, and this service request comprises the first business datum parameter value corresponding to described Operational Visit request;
Service analogue unit is according to described corresponding relation, generate and reply business response corresponding to the service request that comprises the first business datum parameter value corresponding to described Operational Visit request to described information management system, the response of this business comprises the second business datum parameter value corresponding to the first business datum parameter value corresponding to described Operational Visit request;
Information management system combines the service response of business response output to described Operational Visit request result that service analogue unit is replied.
The test macro of a kind of information management system that the embodiment of the present invention provides, comprises tested described information management system, also comprises:
Service analogue unit, for simulating the periphery production system of carrying out information interaction with described information management system, is configured with the corresponding relation between the service request comprising the first business datum parameter value and the business comprising the second business datum parameter value response; Receive that described information management system sends comprise the service request of certain the first business datum parameter value time, generate according to described corresponding relation and reply business that is corresponding to the service request comprising certain the first business datum parameter value, that comprise certain the second business datum parameter value to described information management system and reply;
Manual client, for operating information management system according to user instruction, receive to information management system sending function test data the result data that information management system exports, so as according to the logical relation between the functional test data of input and the result data of output whether the function of information management system described in correct verification whether reach preset requirement;
Information management system, needs to carry out information interaction with periphery production system for judging whether according to the functional test data received; Carry out information interaction if do not need with periphery production system, described functional test data to be processed and to manual client output processing result data; If desired carry out information interaction with periphery production system, carry out information interaction with described service analogue unit, the functional test data received to be processed and to manual client output processing result data; And need the business of access to judge whether to need to carry out information interaction with periphery production system according to Operational Visit request; Carry out information interaction if do not need with periphery production system, Operational Visit request is processed and exports the service response as result; If desired carry out information interaction with periphery production system, information management system and described service analogue unit carry out information interaction, process and export the service response as result to described Operational Visit request;
Simulant-client, for sending the Operational Visit request of predetermined concurrent quantity to described information management system according to user's instruction simulation user; Resource utilization when the service response time that obtaining information management system processes Operational Visit request and process business access request, the described service response time is the time interval from sending Operational Visit request to information management system and responding to information management system outgoing traffic; And whether reach preset value respectively according to service response time and resource utilization and judge whether the performance of described information management system reaches preset requirement.
State on the invention in another embodiment of system, also comprise:
Monitoring unit, for gathering the IP traffic mirroring data of core net in core network switches, obtains the data on flows of all correspondence with foreign countries of described information management system from described IP traffic mirroring data;
Analytic unit, for carrying out protocol analysis to the every bar service request in the data on flows of all correspondence with foreign countries of described information management system and the response of corresponding business respectively, analyzes business datum parameter value mutual in every bar service request and the response of corresponding business; And the first business datum parameter value to comprise according to every bar service request and the corresponding business of every bar service request reply the second business datum parameter information comprised, and set up the corresponding relation between the service request comprising the first business datum parameter value and the business comprising the second business datum parameter value response and are configured in service analogue unit.
State in another embodiment of system on the invention, when described simulant-client sends the Operational Visit request of predetermined concurrent quantity to described information management system, the Operational Visit request of the concurrent quantity under the Operational Visit request specifically sending concurrent quantity corresponding to the Operational Visit request of the concurrent quantity within the scope of the normal loading conditions of described information management system performance parameter support, peak load condition respectively to described information management system and the abnormal load conditions surmounting peak load condition;
When judging whether the performance of described information management system reaches preset requirement, specifically judge whether service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization reach preset value corresponding to corresponding conditions respectively; If the service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization all reach preset value corresponding to corresponding conditions, judge that the performance of described information management system reaches preset requirement.
The test macro of the information management system provided based on the above embodiment of the present invention and test environment analogy method, gathered by the IP traffic mirroring data of monitoring unit to core net in core network switches, the data on flows of all correspondence with foreign countries of obtaining information management system from IP traffic mirroring data, respectively protocol analysis is carried out to the every bar service request in the data on flows of all correspondence with foreign countries of information management system and the response of corresponding business by analytic unit, analyze business datum parameter value mutual in every bar service request and the response of corresponding business, the the first business datum parameter value comprised according to every bar service request and the corresponding business of every bar service request reply the second business datum parameter information comprised, in service analogue unit, configuration comprises the corresponding relation between the service request of the first business datum parameter value and the business response comprising the second business datum parameter value, when making service analogue unit receive the service request comprising certain the first business datum parameter value, can to generate according to corresponding relation and to reply the service request comprising certain the first business datum parameter value corresponding, comprise the business response of certain the second business datum parameter value, then the communication connection that information management system and needing is carried out between the periphery production system of information interaction is disconnected, set up the communication connection between information management system and service analogue unit, to serve analogue unit simulation periphery production system, functional test and performance test are carried out to information management system.Carry out after interactive simulation configured to service analogue unit, for information measured management system, the periphery production system that service analogue unit exists as one, when function and performance test are carried out to information measured management system, information management system and service analogue unit carry out alternately can and without the need to carrying out information interaction again with periphery production system, compared with the method for testing of evading the use-case that there is information interaction with prior art, the actual conditions of information management system can be embodied; There is the periphery production system of message interface to compare with deployment is all with information management system, without the need to consuming a large amount of hardware, software and human resources, reducing test environment lower deployment cost, improve testing efficiency.The embodiment of the present invention goes in the integration environment, to the simulation existed to periphery interactive environment when the mutual information management system of multisystem carries out function and performance test.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of the invention provides in order to example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Selecting and describing embodiment is in order to principle of the present invention and practical application are better described, and enables those of ordinary skill in the art understand the present invention thus design the various embodiments with various amendment being suitable for special-purpose.
Accompanying drawing explanation
What form a part for specification drawings describes embodiments of the invention, and is used from explanation principle of the present invention together with description one.
With reference to accompanying drawing, according to detailed description below, clearly the present invention can be understood, wherein:
Fig. 1 is the flow chart of a test environment analogy method embodiment of information management system of the present invention.
Fig. 2 is the structural representation of a test macro embodiment of information management system of the present invention.
Embodiment
Various exemplary embodiment of the present invention is described in detail now with reference to accompanying drawing.It should be noted that: unless specifically stated otherwise, otherwise positioned opposite, the numerical expression of the parts of setting forth in these embodiments and step and numerical value do not limit the scope of the invention.
Meanwhile, it should be understood that for convenience of description, the size of the various piece shown in accompanying drawing is not draw according to the proportionate relationship of reality.
Illustrative to the description only actually of at least one exemplary embodiment below, never as any restriction to the present invention and application or use.
May not discuss in detail for the known technology of person of ordinary skill in the relevant, method and apparatus, but in the appropriate case, described technology, method and apparatus should be regarded as a part for specification.
In all examples with discussing shown here, any occurrence should be construed as merely exemplary, instead of as restriction.Therefore, other example of exemplary embodiment can have different values.
It should be noted that: represent similar terms in similar label and letter accompanying drawing below, therefore, once be defined in an a certain Xiang Yi accompanying drawing, then do not need to be further discussed it in accompanying drawing subsequently.
Fig. 1 is the flow chart of a test environment analogy method embodiment of information management system of the present invention.As shown in Figure 1, the test environment analogy method of this embodiment information management system comprises:
110, by monitoring unit, the IP traffic mirroring data of core net in the core network switches of information management system place are gathered, from IP traffic mirroring data, obtain the data on flows of information management system to be measured (referred to as information management system in the embodiment of the present invention) all correspondence with foreign countries.
User is when using information management system, the external all-network communication of information management system has record in IP traffic mirroring, therefore IP traffic mirroring can be carried out by the core net of monitoring unit to application server in information management system and database server place, and IP traffic mirroring data are gathered, just can the data on flows of therefrom all correspondence with foreign countries of obtaining information management system.
IP traffic mirroring data are specially packet file, it is the set of all HTML (Hypertext Markup Language) (HTTP) service request and business response, from IP traffic mirroring data during the data on flows of all correspondence with foreign countries of obtaining information management system, specifically according to using information management system information as screening conditions, the data on flows of all correspondence with foreign countries of obtaining information management system can be filtered out from IP traffic mirroring data.Such as, if the IP address of information management system to be measured is 192.168.1.100, then can arrange screening conditions is: source address: 192.168.1.100, destination address: any, can obtain only relevant with information management system service request and business response.
120, respectively protocol analysis is carried out to the every bar service request in the data on flows of all correspondence with foreign countries of information management system and the response of corresponding business by analytic unit, analyze business datum parameter value mutual in every bar service request and the response of corresponding business.
Such as, the data on flows of all correspondence with foreign countries of information management system comprises this service request following and business response, by repeatedly comparative analysis, find and wherein need to reply a mutual business datum parameter value (that is: needing parameterized value) by HTTP service request and business, such as, " AccNbr=2853283 & AreaCode=0991 " in this service request following, the business datum parameter value of this field references information management system and the mutual middle input of perimeter systems or transmission.
The service request data bag sent is as follows:
POST
http://135.224.82.1:8081/webpay/billpay/srvGetOwe?AccNbr=2853283&AreaCode=0991&AcctID=0&ServiceType=/s&UseFlag=1&FlagBank=0&BadFlag=0&ParaType=1&QueryFlag=0&ClearOp=0&ClearFlag=0&OperChange=0&RealFlag=0HTTP/1.0\r\nAccept:image/gif,image/x-xbitmap,image/jpeg,image/pjpeg,application/x-shockwave-flash,application/vnd.ms-excel,application/vnd.ms-powerpoint,application/msword,*/*\r\nReferer:
http://135.224.82.1:8081/webpay/billpay/Payment.jsp\r\nAccept-Language:zh-cn\r\nContent-Type:application/x-www-form-urlencoded\r\nUser-Agent:Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.1;SV1;.NETCLR1.1.4322)\r\nHost:135.224.82.1:8081\r\nContent-Length:258\r\nPragma:no-cache\r\nCookie:JSESSIONID=DD1YszGHkT7z0S9gqlGcypk1mWQQqQxnsGFHdphfLC2ThVRMp5dZ!2091041976\r\n\r\nServiceType=%2Fs&AreaCode=0991&PayObject=1&AccNbr=2853283&AcctID=&BalanceLeft=&PreBalanceValue=&PenaSum=&ApproveValue=&OweAmount=0&TradeCount=0&State1=500&Charge1=0.00&CheckNbr=&AccNbrPrinted=&State2=500&Charge2=0.00&ReturnChange=%D5%D2++%C1%E3&ChangeValue=0
The business reply data bag returned is as follows:
www-reply|1|130|HTTP/1.1200OK
Protocol analysis is carried out by comprising HTTP data, analyze above-mentioned service request and business reply data bag, can know, information management system and periphery production system mutual time, if wherein included in service request data bag " AccNbr=2853283 & AreaCode=0991 ", reply this business datum parameter value of 200OK by business reply data bag, an interactive simulation can be completed.
After monitored data is analyzed, grasp the mutual rule of this information management system and periphery production system, information management system sends the service request comprising a certain business datum parameter value when coming, service analogue unit is directly replied the business comprising another business datum parameter value corresponding to business datum parameter value a certain with this and is replied, like this concerning information management system, service analogue unit serves by the function of the periphery production system simulated.
130, the the first business datum parameter value comprised according to every bar service request and the corresponding business of every bar service request reply the second business datum parameter information comprised, in service analogue unit, configuration comprises the corresponding relation between the service request of the first business datum parameter value and the business response comprising the second business datum parameter value, when making service analogue unit receive the service request comprising certain the first business datum parameter value, to generate according to corresponding relation and to reply the service request comprising certain the first business datum parameter value corresponding, comprise the business response of certain the second business datum parameter value.
140, disconnect the communication connection that information management system and needing is carried out between the periphery production system of information interaction, set up the communication connection between information management system and service analogue unit, to serve analogue unit simulation periphery production system, functional test and performance test are carried out to information management system.
Based on the test environment analogy method of the information management system that the above embodiment of the present invention provides, by gathering the IP traffic mirroring data of core net in core network switches, the data on flows of all correspondence with foreign countries of obtaining information management system from IP traffic mirroring data, and protocol analysis is carried out to every bar service request wherein and the response of corresponding business, obtain business datum parameter value mutual in every bar service request and the response of corresponding business, in service analogue unit, configuration comprises the corresponding relation between the service request of the first business datum parameter value and the business response comprising the second business datum parameter value, to serve analogue unit simulation periphery production system, functional test and performance test are carried out to information management system.Information management system and service analogue unit carry out getting final product alternately and without the need to carrying out information interaction again with periphery production system, not only can embodying the actual conditions of information management system; And without the need to consuming a large amount of hardware, software and human resources, reducing test environment lower deployment cost, improve testing efficiency.The embodiment of the present invention goes in the integration environment, to the simulation existed to periphery interactive environment when the mutual information management system of multisystem carries out function and performance test.
Unrestricted according to a concrete example of the test environment analogy method embodiment of information management system of the present invention, functional test is carried out to information management system and comprises:
According to the functional test operation strategy pre-set, manually client operates information management system, to information management system sending function test data;
Information management system judges whether to need to carry out information interaction with periphery production system according to the functional test data received;
Information interaction is carried out with periphery production system if do not need, information management system is according to own service handling process, process output processing result data are carried out to the functional test data received, whether to reach preset requirement according to the function of the whether correct verification information management system of the logical relation between the functional test data of input and the result data of output;
If desired information interaction is carried out with periphery production system, information management system carries out information interaction with service analogue unit, process output processing result data are carried out to the functional test data received, whether to reach preset requirement according to the function of the whether correct verification information management system of the logical relation between the functional test data of input and the result data of output.
Wherein, information management system carries out information interaction with service analogue unit, to the functional test data received carry out process also output processing result data can comprise following flow process:
Information management system is according to the corresponding service request of functional test data genaration received and send to service analogue unit, and this service request comprises the first business datum parameter value corresponding to functional test data;
Service analogue unit is according to corresponding relation, generate and reply the corresponding business response of the service request comprising the first business datum parameter value corresponding to functional test data to information management system, the response of this business comprises the second business datum parameter value corresponding to the first business datum parameter value corresponding to functional test data;
The business response that information management system combines the reply of service analogue unit carries out process and output processing result data to the functional test data received.
Unrestricted according to another concrete example of the test environment analogy method embodiment of information management system of the present invention, performance test pack is carried out to information management system and draws together:
Sent the Operational Visit request of predetermined concurrent quantity to information management system by simulant-client analog subscriber, information management system needs the business of access to judge whether to need to carry out information interaction with periphery production system according to Operational Visit request;
Carry out information interaction if do not need with periphery production system, information management system processes Operational Visit request and exports the service response as result; If desired carry out information interaction with periphery production system, information management system carries out information interaction with service analogue unit, processes and export the service response as result to Operational Visit request;
Resource utilization when the service response time that obtaining information management system processes Operational Visit request and process business access request; The service response time is wherein the time interval from responding to the request of information management system transmission Operational Visit to information management system outgoing traffic;
Whether reach preset value respectively according to service response time and resource utilization and judge whether the performance of information management system reaches preset requirement.
Particularly, whether can reach preset value corresponding to corresponding conditions by test information management system to the service response time of the Operational Visit request process of the concurrent quantity in normal loading conditions range, under peak load condition and under abnormal load conditions and resource utilization, whether the performance carrying out discriminating test information management system reaches requirement.This just needs to perform respectively: send the Operational Visit request of the concurrent quantity within the scope of the normal loading conditions of information management system performance parameter support to information management system and perform above-mentioned flow process of information management system being carried out to performance test, obtain the service response time under normal loading conditions and resource utilization, and whether service response time under judging normal loading conditions and resource utilization reach preset value corresponding to normal loading conditions; Send the Operational Visit request of concurrent quantity corresponding to peak load condition to information management system and perform above-mentioned flow process of information management system being carried out to performance test, obtain the service response time under peak load condition and resource utilization, and judge whether service response time under peak load condition and resource utilization reach preset value corresponding to peak load condition; Send the Operational Visit request of the concurrent quantity surmounted under the abnormal load conditions of peak load condition to information management system and perform above-mentioned flow process of information management system being carried out to performance test, obtain the service response time under abnormal load conditions and resource utilization, and whether service response time under judging abnormal load conditions and resource utilization reach preset value corresponding to abnormal load conditions; Then judge whether service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization all reach preset value corresponding to corresponding conditions, if the service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization all reach preset value corresponding to corresponding conditions, the performance of determination information management system reaches default capabilities requirement; Otherwise as long as have the service response time under one of them condition and/or resource utilization not to reach preset value corresponding to corresponding conditions, then the performance of determination information management system does not reach default capabilities requirement.
Wherein, information management system carries out information interaction with service analogue unit, processes and the service response exported as result can comprise following flow process to Operational Visit request:
Information management system generates corresponding service request according to Operational Visit request and sends to service analogue unit, and this service request comprises the first business datum parameter value corresponding to Operational Visit request;
Service analogue unit is according to corresponding relation, generate and reply to information management system and comprise business response corresponding to the service request of the first business datum parameter value corresponding to Operational Visit request, the response of this business comprises the second business datum parameter value corresponding to the first business datum parameter value corresponding to Operational Visit request;
Information management system combines the service response of business response output to Operational Visit request result that service analogue unit is replied.
Fig. 2 is the structural representation of a test macro embodiment of information management system of the present invention.The test macro of this embodiment can be used in the present invention above-mentioned each test environment analogy method embodiment.As shown in Figure 2, it comprises tested information management system, service analogue unit, manual client and simulant-client.Wherein:
Service analogue unit, for simulating the periphery production system of carrying out information interaction with information management system, is configured with the corresponding relation between the service request comprising the first business datum parameter value and the business comprising the second business datum parameter value response; Receive that information management system sends comprise the service request of certain the first business datum parameter value time, generate according to corresponding relation and reply business that is corresponding to the service request comprising certain the first business datum parameter value, that comprise certain the second business datum parameter value to information management system and reply.
Manual client, for operating information management system according to user instruction, the result data that information management system exports are received, whether to reach preset requirement according to the function of the whether correct verification information management system of the logical relation between the functional test data of input and the result data of output to information management system sending function test data.
Information management system, needs to carry out information interaction with periphery production system for judging whether according to the functional test data received; Carry out information interaction if do not need with periphery production system, functional test data to be processed and to manual client output processing result data; If desired carry out information interaction with periphery production system, carry out information interaction with service analogue unit, the functional test data received to be processed and to manual client output processing result data; And need the business of access to judge whether to need to carry out information interaction with periphery production system according to Operational Visit request; Carry out information interaction if do not need with periphery production system, Operational Visit request is processed and exports the service response as result; If desired carry out information interaction with periphery production system, information management system carries out information interaction with service analogue unit, processes and export the service response as result to Operational Visit request.
Simulant-client, for sending the Operational Visit request of predetermined concurrent quantity to information management system according to user's instruction simulation user; Resource utilization when the service response time that obtaining information management system processes Operational Visit request and process business access request, the service response time is wherein the time interval from sending Operational Visit request to information management system and responding to information management system outgoing traffic; And whether reach preset value respectively according to the service response time got and resource utilization and judge whether the performance of information management system reaches preset requirement.
Further, then see Fig. 2, in another embodiment of test macro of information management system of the present invention, monitoring unit and analytic unit can also be comprised.Wherein:
Monitoring unit, can be arranged in core network switches or with this switch communication and be connected, for gathering the IP traffic mirroring data of core net in core network switches, the data on flows of all correspondence with foreign countries of obtaining information management system from IP traffic mirroring data.
Analytic unit, for respectively monitoring unit is obtained, every bar service request in the data on flows of all correspondence with foreign countries of information management system and corresponding business response carry out protocol analysis, analyzes business datum parameter value mutual in every bar service request and the response of corresponding business; And the first business datum parameter value to comprise according to every bar service request and the corresponding business of every bar service request reply the second business datum parameter information comprised, and set up the corresponding relation between the service request comprising the first business datum parameter value and the business comprising the second business datum parameter value response and are configured in service analogue unit.
Unrestricted according to a concrete example of the test macro embodiment of the above-mentioned each information management system of the present invention, when simulant-client sends the Operational Visit request of predetermined concurrent quantity to information management system, the Operational Visit request of the concurrent quantity under the Operational Visit request that specifically can send concurrent quantity corresponding to the Operational Visit request of the concurrent quantity within the scope of the normal loading conditions of information management system performance parameter support, peak load condition respectively to information management system and the abnormal load conditions surmounting peak load condition.When judging whether the performance of information management system reaches preset requirement, specifically judge whether service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization reach preset value corresponding to corresponding conditions respectively; If the service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization all reach preset value corresponding to corresponding conditions, the performance of determination information management system reaches preset requirement.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
In this specification, each embodiment all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiment, same or analogous part cross-reference between each embodiment.For system embodiment, because itself and embodiment of the method are substantially corresponding, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Method of the present invention, system may be realized in many ways.Such as, any combination by software, hardware, firmware or software, hardware, firmware realizes method and system of the present invention.Said sequence for the step of described method is only to be described, and the step of method of the present invention is not limited to above specifically described order, unless specifically stated otherwise.In addition, in certain embodiments, can be also record program in the recording medium by the invention process, these programs comprise the machine readable instructions for realizing according to method of the present invention.Thus, the present invention also covers the recording medium stored for performing the program according to method of the present invention.

Claims (9)

1. a test environment analogy method for information management system, is characterized in that, comprising:
Gathered by the IP traffic mirroring data of monitoring unit to core net in core network switches, from described IP traffic mirroring data, obtain the data on flows of all correspondence with foreign countries of described information management system;
Respectively protocol analysis is carried out to the every bar service request in the data on flows of all correspondence with foreign countries of described information management system and the response of corresponding business by analytic unit, analyze business datum parameter value mutual in every bar service request and the response of corresponding business;
The the first business datum parameter value comprised according to every bar service request and the corresponding business of every bar service request reply the second business datum parameter information comprised, in service analogue unit, configuration comprises the corresponding relation between the service request of the first business datum parameter value and the business response comprising the second business datum parameter value, when making service analogue unit receive the service request comprising certain the first business datum parameter value, to generate according to corresponding relation and to reply the service request comprising certain the first business datum parameter value corresponding, comprise the business response of certain the second business datum parameter value,
Communication connection between the periphery production system disconnecting described information management system and need to carry out information interaction, set up the communication connection between described information management system and described service analogue unit, simulate described periphery production system with described service analogue unit, functional test and performance test are carried out to described information management system.
2. method according to claim 1, is characterized in that, carries out functional test comprise described information management system:
According to the functional test operation strategy pre-set, manually client operates information management system, to information management system sending function test data;
Information management system judges whether to need to carry out information interaction with periphery production system according to the functional test data received;
Information interaction is carried out with periphery production system if do not need, information management system carries out process output processing result data to the functional test data received, so that whether whether the function of information management system reaches preset requirement according to the logical relation between the functional test data of input and the result data of output correct verification;
If desired information interaction is carried out with periphery production system, information management system and described service analogue unit carry out information interaction, process output processing result data are carried out to the functional test data received, so that whether the function of information management system reaches preset requirement according to the logical relation between the functional test data of input and the result data of output whether correct verification.
3. method according to claim 2, is characterized in that, information management system and described service analogue unit carry out information interaction, carries out process output processing result data comprise the functional test data received:
Information management system generates corresponding service request and sends to described service analogue unit, and this service request comprises the first business datum parameter value corresponding to described functional test data;
Service analogue unit is according to described corresponding relation, generate and reply the corresponding business response of the service request comprising the first business datum parameter value corresponding to described functional test data to described information management system, the response of this business comprises the second business datum parameter value corresponding to the first business datum parameter value corresponding to described functional test data;
The business response that information management system combines the reply of service analogue unit carries out process and output processing result data to the functional test data received.
4. the method according to claims 1 to 3 any one, is characterized in that, carries out performance test pack draw together described information management system:
Sent the Operational Visit request of predetermined concurrent quantity to described information management system by simulant-client analog subscriber, information management system needs the business of access to judge whether to need to carry out information interaction with periphery production system according to Operational Visit request;
Carry out information interaction if do not need with periphery production system, information management system processes Operational Visit request and exports the service response as result; If desired carry out information interaction with periphery production system, information management system and described service analogue unit carry out information interaction, process and export the service response as result to described Operational Visit request;
Resource utilization when the service response time that obtaining information management system processes Operational Visit request and process business access request; The described service response time is the time interval from responding to the request of information management system transmission Operational Visit to information management system outgoing traffic;
Whether reach preset value respectively according to service response time and resource utilization and judge whether the performance of described information management system reaches preset requirement.
5. method according to claim 4, is characterized in that, the Operational Visit request sending predetermined concurrent quantity to described information management system comprises:
The Operational Visit request of the concurrent quantity under the Operational Visit request sending concurrent quantity corresponding to the Operational Visit request of the concurrent quantity within the scope of the normal loading conditions of described information management system performance parameter support, peak load condition respectively to described information management system and the abnormal load conditions surmounting peak load condition;
Describedly whether reach preset value respectively according to service response time and resource utilization and judge whether the performance of described information management system reaches preset requirement and comprise:
Judge whether service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization reach preset value corresponding to corresponding conditions respectively;
If the service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization all reach preset value corresponding to corresponding conditions, judge that the performance of described information management system reaches preset requirement.
6. method according to claim 4, is characterized in that, information management system and described service analogue unit carry out information interaction, processes and the service response exported as result comprises to described Operational Visit request:
Information management system generates corresponding service request and sends to described service analogue unit, and this service request comprises the first business datum parameter value corresponding to described Operational Visit request;
Service analogue unit is according to described corresponding relation, generate and reply business response corresponding to the service request that comprises the first business datum parameter value corresponding to described Operational Visit request to described information management system, the response of this business comprises the second business datum parameter value corresponding to the first business datum parameter value corresponding to described Operational Visit request;
Information management system combines the service response of business response output to described Operational Visit request result that service analogue unit is replied.
7. a test macro for information management system, comprises tested described information management system, it is characterized in that, also comprise:
Service analogue unit, for simulating the periphery production system of carrying out information interaction with described information management system, is configured with the corresponding relation between the service request comprising the first business datum parameter value and the business comprising the second business datum parameter value response; Receive that described information management system sends comprise the service request of certain the first business datum parameter value time, generate according to described corresponding relation and reply business that is corresponding to the service request comprising certain the first business datum parameter value, that comprise certain the second business datum parameter value to described information management system and reply;
Manual client, for operating information management system according to user instruction, receive to information management system sending function test data the result data that information management system exports, so as according to the logical relation between the functional test data of input and the result data of output whether the function of information management system described in correct verification whether reach preset requirement;
Information management system, needs to carry out information interaction with periphery production system for judging whether according to the functional test data received; Carry out information interaction if do not need with periphery production system, described functional test data to be processed and to manual client output processing result data; If desired carry out information interaction with periphery production system, carry out information interaction with described service analogue unit, the functional test data received to be processed and to manual client output processing result data; And need the business of access to judge whether to need to carry out information interaction with periphery production system according to Operational Visit request; Carry out information interaction if do not need with periphery production system, Operational Visit request is processed and exports the service response as result; If desired carry out information interaction with periphery production system, information management system and described service analogue unit carry out information interaction, process and export the service response as result to described Operational Visit request;
Simulant-client, for sending the Operational Visit request of predetermined concurrent quantity to described information management system according to user's instruction simulation user; Resource utilization when the service response time that obtaining information management system processes Operational Visit request and process business access request, the described service response time is the time interval from sending Operational Visit request to information management system and responding to information management system outgoing traffic; And whether reach preset value respectively according to service response time and resource utilization and judge whether the performance of described information management system reaches preset requirement.
8. system according to claim 7, is characterized in that, also comprises:
Monitoring unit, for gathering the IP traffic mirroring data of core net in core network switches, obtains the data on flows of all correspondence with foreign countries of described information management system from described IP traffic mirroring data;
Analytic unit, for carrying out protocol analysis to the every bar service request in the data on flows of all correspondence with foreign countries of described information management system and the response of corresponding business respectively, analyzes business datum parameter value mutual in every bar service request and the response of corresponding business; And the first business datum parameter value to comprise according to every bar service request and the corresponding business of every bar service request reply the second business datum parameter information comprised, and set up the corresponding relation between the service request comprising the first business datum parameter value and the business comprising the second business datum parameter value response and are configured in service analogue unit.
9. the system according to claim 7 or 8, it is characterized in that, when described simulant-client sends the Operational Visit request of predetermined concurrent quantity to described information management system, the Operational Visit request of the concurrent quantity under the Operational Visit request specifically sending concurrent quantity corresponding to the Operational Visit request of the concurrent quantity within the scope of the normal loading conditions of described information management system performance parameter support, peak load condition respectively to described information management system and the abnormal load conditions surmounting peak load condition;
When judging whether the performance of described information management system reaches preset requirement, specifically judge whether service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization reach preset value corresponding to corresponding conditions respectively; If the service response time under normal loading conditions, peak load condition and abnormal load conditions and resource utilization all reach preset value corresponding to corresponding conditions, judge that the performance of described information management system reaches preset requirement.
CN201410190578.8A 2014-05-07 2014-05-07 The test system of information management system and test environment analogy method Active CN105099801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410190578.8A CN105099801B (en) 2014-05-07 2014-05-07 The test system of information management system and test environment analogy method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410190578.8A CN105099801B (en) 2014-05-07 2014-05-07 The test system of information management system and test environment analogy method

Publications (2)

Publication Number Publication Date
CN105099801A true CN105099801A (en) 2015-11-25
CN105099801B CN105099801B (en) 2018-05-22

Family

ID=54579415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410190578.8A Active CN105099801B (en) 2014-05-07 2014-05-07 The test system of information management system and test environment analogy method

Country Status (1)

Country Link
CN (1) CN105099801B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250315A (en) * 2016-08-04 2016-12-21 上海携程商务有限公司 A kind of automatic imitation request-reply system and method for configurableization
CN106354645A (en) * 2015-12-16 2017-01-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN107122292A (en) * 2016-10-21 2017-09-01 北京小度信息科技有限公司 A kind of method and system of analog service
CN108572918A (en) * 2018-04-13 2018-09-25 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN111224768A (en) * 2020-03-27 2020-06-02 广东博智林机器人有限公司 Response simulation method, device, equipment and computer readable storage medium
CN112653578A (en) * 2020-12-16 2021-04-13 广州鲁邦通物联网科技有限公司 Data simulation method and system of communication bus
CN112769627A (en) * 2021-02-03 2021-05-07 阿里巴巴集团控股有限公司 Network environment simulation method, system and computer program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201945A (en) * 2010-03-24 2011-09-28 英业达股份有限公司 A test system that simulates a storage area network
US8046195B2 (en) * 2008-08-26 2011-10-25 Red Hat, Inc. Performance testing of enterprise service bus
CN103246606A (en) * 2013-04-26 2013-08-14 广东电网公司电力科学研究院 Method and system for testing performances of ESB (enterprises service bus) platform
CN103248535A (en) * 2013-04-28 2013-08-14 华为技术有限公司 Cloud system testing method and device
CN103401727A (en) * 2013-07-24 2013-11-20 佳都新太科技股份有限公司 Method, device and system for testing performance of streaming media server based on virtual DVR (digital video recorder)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8046195B2 (en) * 2008-08-26 2011-10-25 Red Hat, Inc. Performance testing of enterprise service bus
CN102201945A (en) * 2010-03-24 2011-09-28 英业达股份有限公司 A test system that simulates a storage area network
CN103246606A (en) * 2013-04-26 2013-08-14 广东电网公司电力科学研究院 Method and system for testing performances of ESB (enterprises service bus) platform
CN103248535A (en) * 2013-04-28 2013-08-14 华为技术有限公司 Cloud system testing method and device
CN103401727A (en) * 2013-07-24 2013-11-20 佳都新太科技股份有限公司 Method, device and system for testing performance of streaming media server based on virtual DVR (digital video recorder)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354645A (en) * 2015-12-16 2017-01-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN106354645B (en) * 2015-12-16 2019-12-31 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN106250315A (en) * 2016-08-04 2016-12-21 上海携程商务有限公司 A kind of automatic imitation request-reply system and method for configurableization
CN107122292A (en) * 2016-10-21 2017-09-01 北京小度信息科技有限公司 A kind of method and system of analog service
CN108572918A (en) * 2018-04-13 2018-09-25 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN111224768A (en) * 2020-03-27 2020-06-02 广东博智林机器人有限公司 Response simulation method, device, equipment and computer readable storage medium
CN111224768B (en) * 2020-03-27 2020-07-24 广东博智林机器人有限公司 Response simulation method, device, equipment and computer readable storage medium
CN112653578A (en) * 2020-12-16 2021-04-13 广州鲁邦通物联网科技有限公司 Data simulation method and system of communication bus
CN112653578B (en) * 2020-12-16 2022-05-31 广州鲁邦通物联网科技股份有限公司 Data simulation method and system for a communication bus
CN112769627A (en) * 2021-02-03 2021-05-07 阿里巴巴集团控股有限公司 Network environment simulation method, system and computer program product
CN112769627B (en) * 2021-02-03 2024-03-22 阿里巴巴集团控股有限公司 Network environment simulation method, system and computer program product

Also Published As

Publication number Publication date
CN105099801B (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN105099801A (en) Testing system for information management system, and testing environment simulation method
CN107294808B (en) Interface test method, device and system
CN105303112B (en) The detection method and device of component call loophole
CN107526676B (en) Cross-system test method and device
CN105681126A (en) Automatic test method and system based on protocol interface
CN103154905B (en) Device and method for automated analysis of combined applications
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN112255548B (en) Battery management system testing method and system thereof
CN109389326B (en) Monitoring event-oriented object modeling method, device and system
CN114880240A (en) Automatic testing system and method for Internet of things equipment, storage medium and equipment
CN116955157A (en) Distributed test method and device
CN112241362B (en) A testing method, device, server and storage medium
TWI739111B (en) Method, system, and computer-readable medium for constraint programming using block-based workflows
CN112199275A (en) Component interface test analysis method and device, server and storage medium
CN117370203B (en) Automatic test method, system, electronic equipment and storage medium
CN111581067A (en) Data acquisition method and device
CN107508725A (en) For the method for automatic test, apparatus and system
CN114064504A (en) Detection method, device, medium and computing equipment for full link pressure measurement data isolation
CN115037577A (en) Intelligent gateway service management platform
CN111831999B (en) Method and system for aggregating multi-station operation
CN205864449U (en) Charging equipment of electric automobile communication protocol consistency test device
CN105224420A (en) A kind of analytical approach of automatic parsing terminal abnormal and system
CN113138807B (en) Method and device for executing multi-node service task and electronic equipment
CN117347761A (en) Electrical digital testing system, method, computer equipment and storage medium
CN116939672A (en) Network element equipment fault early warning method, device, equipment and storage medium

Legal Events

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