CN105099801B - The test system of information management system and test environment analogy method - Google Patents
The test system of information management system and test environment analogy method Download PDFInfo
- Publication number
- CN105099801B CN105099801B CN201410190578.8A CN201410190578A CN105099801B CN 105099801 B CN105099801 B CN 105099801B CN 201410190578 A CN201410190578 A CN 201410190578A CN 105099801 B CN105099801 B CN 105099801B
- Authority
- CN
- China
- Prior art keywords
- management system
- information management
- business
- service
- parameter value
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a kind of test system of information management system and test environment analogy method, wherein, method includes:The IP traffic mirroring data of core net are acquired, obtain the data on flows of all correspondence with foreign country of information management system;Protocol analysis is carried out to every service request in data on flows and corresponding business response respectively, analyzes the business datum parameter value of interaction in every service request and corresponding business response;Configuration includes the correspondence between the service request of the first business datum parameter value and the business response including the second business datum parameter value in analogue unit is serviced;The communication connection between information management system and periphery production system is disconnected, establish information management system and services the communication connection between analogue unit, to service analogue unit simulation periphery production system, functional test and performance test are carried out to information management system.The embodiment of the present invention can be relatively low cost simulation periphery interactive system.
Description
Technical field
The present invention relates to the communication technology, the test system of especially a kind of information management system and test environment simulation side
Method.
Background technology
At present, various information manages system (i.e.:All kinds of IT systems of enterprise), such as China Telecom's Management Support System
(MSS) financial auxiliary system, manpower auxiliary system, buying auxiliary system or gate system etc. in, use is more and more extensive.For
Ensure smoothly reaching the standard grade for information management system, before information management system puts into operation, be required to carry out functional test to it
And performance test.Wherein, functional test is that each function of information management system is verified, according to functional test use-case, by
Item test, checks whether information management system reaches the function for requirement of reaching the standard grade.Performance test is the testing tool by automation
It simulates a variety of normal, peak values and abnormal load conditions is tested come the property indices to information management system, check
Whether information management system reaches the properties for requirement of reaching the standard grade.
With the development trend of national centralization, information management system becomes increasingly complex, each independent information management system
System (is known as by the multiple systems of message interface and periphery:Production system) information exchange is carried out, it is tested to information management system
The design and deployment for carrying environment bring new challenge.At present, in the test structure design of information management system, carrying out
When information management system test, deployment test environment, all periphery production systems for having message interface with it of deployment, this method needs
Substantial amounts of hardware, software and human resources are consumed, cost is higher.Therefore, the use-case of existence information interaction is generally evaded at present,
The use-case for not having message interface using selection and other systems is tested.The result that this method tests out cannot embody information
The actual conditions of management system.
The content of the invention
A technical problem to be solved of the embodiment of the present invention is:For to information management system progress functional test
Or, it is necessary to which the problem of building periphery production system with higher cost, provides a kind of test of information management system during performance test
System and test environment analogy method manage system and periphery interactive system (i.e. with relatively low cost simulation information measured:Periphery
Production system) message interface, fast construction test environment.
A kind of test environment analogy method of information management system provided in an embodiment of the present invention, including:
The IP traffic mirroring data of core net in core network switches are acquired by monitoring unit, are flowed from the IP
Measure the data on flows that described information management all correspondence with foreign country of system are obtained in mirror image data;
Every business in the data on flows of system all correspondence with foreign country is managed described information respectively by analytic unit
Request and corresponding business response carry out protocol analysis, analyze the business of interaction in every service request and corresponding business response
Data parameter value;
The the first business datum parameter value and the corresponding business of every service request included according to every service request should
The the second business datum parameter information included is answered, being configured in analogue unit is serviced includes the first business datum parameter value
Correspondence between service request and business response including the second business datum parameter value so that service analogue unit receives
During to service request comprising certain the first business datum parameter value, generated and replied including certain the first business number according to correspondence
According to the service request of parameter value it is corresponding, include the business response of certain the second business datum parameter value;
It disconnects described information management system and needs to carry out the communication connection between the periphery production system of information exchange, build
Communication connection between vertical described information management system and the service analogue unit, with described in the service analogue unit simulation
Periphery production system carries out functional test and performance test to described information management system.
In another embodiment of the above method of the present invention, carrying out functional test to described information management system includes:
According to pre-set functional test operation strategy, manually client operates information management system,
To information management system sending function test data;
Information management system judges whether to need to carry out letter with periphery production system according to the functional test data received
Breath interaction;
If information exchange need not be carried out with periphery production system, information management system is to the functional test data that receive
It is handled and exports handling result data, so as between the functional test data according to input and the handling result data of output
Logical relation whether correct verification described information management system function whether reach preset requirement;
If desired information exchange is carried out with periphery production system, information management system carries out letter with the service analogue unit
Breath interaction, handles the functional test data received and exports handling result data, to be surveyed according to the function of input
Whether the function of correct verification described information management system is logical relation between examination data and the handling result data of output
It is no to reach preset requirement.
In another embodiment of the above method of the present invention, information management system carries out letter with the service analogue unit
Breath interaction, the functional test data received, which are handled, and export handling result data includes:
Information management system generates corresponding service request and is sent to the service analogue unit, is wrapped in the service request
Include the corresponding first business datum parameter value of the functional test data;
Analogue unit is serviced according to the correspondence, generates and includes the function to described information management system reply
The corresponding business response of service request of the corresponding first business datum parameter value of test data, the business response include described
The corresponding second business datum parameter value of the corresponding first business datum parameter value of functional test data;
Information management system combines the business response that service analogue unit is replied and the functional test data received is carried out
It handles and exports handling result data.
In another embodiment of the above method of the present invention, to described information management system be tested for the property including:
The Operational Visit for managing the predetermined concurrent quantity of system transmission to described information by simulant-client analog subscriber please
It asks, information management system needs the business accessed to judge whether to need to carry out letter with periphery production system according to Operational Visit request
Breath interaction;
If information exchange need not be carried out with periphery production system, information management system handles Operational Visit request
And export the service response as handling result;If desired with periphery production system carry out information exchange, information management system with
The service analogue unit carries out information exchange, and Operational Visit request is handled and exports the industry as handling result
Business response;
Obtaining information management system asks Operational Visit the service response time handled and processing business to access and ask
Resource utilization when asking;The service response time is to send Operational Visit request to information management to information management system
The time interval of system outgoing traffic response;
Judge described information management system according to whether service response time and resource utilization respectively reach preset value
Whether performance reaches preset requirement.
In another embodiment of the above method of the present invention, sent to described information management system and make a reservation for concurrent quantity
Operational Visit request includes:
The normal loading conditions of described information management system performance parameter support are sent to described information management system respectively
In the range of concurrent quantity Operational Visit request, the corresponding concurrent quantity of peak load condition Operational Visit request and surmount
The Operational Visit request of concurrent quantity under the abnormal load conditions of peak load condition;
It is described to judge described information management system according to whether service response time and resource utilization respectively reach preset value
Whether the performance of system, which reaches preset requirement, includes:
The service response time under normal loading conditions, peak load condition and abnormal load conditions and resource are judged respectively
Whether utilization rate reaches the corresponding preset value of corresponding conditions;
If service response time and resource utilization under normal loading conditions, peak load condition and abnormal load conditions
Reach the corresponding preset value of corresponding conditions, judge that the performance of described information management system reaches preset requirement.
In another embodiment of the above method of the present invention, information management system carries out letter with the service analogue unit
Breath interaction, Operational Visit request is handled and exported to be included as the service response of handling result:
Information management system generates corresponding service request and is sent to the service analogue unit, is wrapped in the service request
It includes the Operational Visit and asks corresponding first business datum parameter value;
Analogue unit is serviced according to the correspondence, generates and includes the business to described information management system reply
The corresponding business response of service request of the corresponding first business datum parameter value of access request, the business response include described
The corresponding second business datum parameter value of the corresponding first business datum parameter value of Operational Visit request;
Information management system is handled the Operational Visit request with reference to the business response output that service analogue unit is replied
As a result service response.
The test system of a kind of information management system provided in an embodiment of the present invention, including tested described information management
System further includes:
Analogue unit is serviced, for simulating the periphery production system that information exchange is carried out with described information management system, is matched somebody with somebody
It is equipped between the service request including the first business datum parameter value and the business response including the second business datum parameter value
Correspondence;When receiving the service request comprising certain the first business datum parameter value that described information management system is sent,
It is generated according to the correspondence and the business with including certain the first business datum parameter value is replied to described information management system
Request is corresponding, includes the business response of certain the second business datum parameter value;
Manual client for being operated according to user instruction to information management system, is sent to information management system
Functional test data and the handling result data of receive information management system output, so as to the functional test data according to input and
Whether whether the function of correct verification described information management system reaches pre- to logical relation between the handling result data of output
If it is required that;
Information management system, for according to the functional test data that receive judge whether to need with periphery production system into
Row information interacts;If need not with periphery production system carry out information exchange, the functional test data are handled and to
Manual client exports handling result data;If desired information exchange is carried out with periphery production system, it is single with the service simulation
Member carries out information exchange, and the functional test data received are handled and export handling result data to manual client;
And according to Operational Visit request the business accessed is needed to judge whether to need to carry out information exchange with periphery production system;If no
It needs to carry out information exchange with periphery production system, Operational Visit request is handled and exports the business as handling result
Response;If desired information exchange is carried out with periphery production system, information management system is with the analogue unit that services into row information
Interaction handles Operational Visit request and exports the service response as handling result;
Simulant-client makes a reservation for concurrent quantity for being sent according to user's instruction simulation user to described information management system
Operational Visit request;It obtains information management system and the service response time handled and processing business is asked to Operational Visit
Resource utilization during access request, the service response time are to send Operational Visit request to letter to information management system
Cease the time interval of management system outgoing traffic response;And whether respectively reached according to service response time and resource utilization
Preset value judges whether the performance of described information management system reaches preset requirement.
In another embodiment of above system of the present invention, further include:
Monitoring unit is acquired for the IP traffic mirroring data to core net in core network switches, from the IP
The data on flows of described information management all correspondence with foreign country of system is obtained in traffic mirroring data;
Analytic unit, for respectively to every business in the data on flows of described information management all correspondence with foreign country of system
Request and corresponding business response carry out protocol analysis, analyze the business of interaction in every service request and corresponding business response
Data parameter value;And the first business datum parameter value included according to every service request and every service request it is corresponding
The second business datum parameter information that business response includes, establish include the service request of the first business datum parameter value with
Correspondence and configuration between business response including the second business datum parameter value is in analogue unit is serviced.
In another embodiment of above system of the present invention, the simulant-client is sent to described information management system
When making a reservation for the Operational Visit request of concurrent quantity, specifically described information management systematicness is sent to described information management system respectively
The Operational Visit request for the concurrent quantity in the range of normal loading conditions that energy parameter is supported, peak load condition are corresponding concurrent
The Operational Visit request of the concurrent quantity under the abnormal load conditions of peak load condition is asked and surmounted to the Operational Visit of quantity;
When judging whether the performance of described information management system reaches preset requirement, normal load item is specifically judged respectively
Whether service response time and resource utilization under part, peak load condition and abnormal load conditions reach corresponding conditions correspondence
Preset value;If service response time and the utilization of resources under normal loading conditions, peak load condition and abnormal load conditions
Rate reaches the corresponding preset value of corresponding conditions, judges that the performance of described information management system reaches preset requirement.
The test system of information management system and test environment analogy method provided based on the above embodiment of the present invention, is led to
It crosses monitoring unit to be acquired the IP traffic mirroring data of core net in core network switches, be obtained from IP traffic mirroring data
Take the data on flows of all correspondence with foreign country of information management system;It is all to information management system externally logical respectively by analytic unit
Every service request and corresponding business response in the data on flows of letter carry out protocol analysis, analyze every service request and phase
The business datum parameter value of interaction in the business response answered;The the first business datum parameter value included according to every service request
The the second business datum parameter information included with the corresponding business response of every service request, matches somebody with somebody in analogue unit is serviced
Put pair between the service request including the first business datum parameter value and the business response including the second business datum parameter value
It should be related to so that, can be according to right when service analogue unit receives the service request comprising certain the first business datum parameter value
Should be related to generation and replying include certain the first business datum parameter value service request it is corresponding, including certain second business datum ginseng
The business response of numerical value;It is then turned off information management system and needs to carry out the communication between the periphery production system of information exchange
Connection establishes information management system and services the communication connection between analogue unit, to service analogue unit simulation periphery production
System carries out functional test and performance test to information management system.Analog configuration is interacted to service analogue unit to complete
Afterwards, for information measured management system, service analogue unit is as an existing periphery production system, to information measured pipe
When reason system carries out function and performance test, information management system is interacted with service analogue unit can be without again and all
Side production system carries out information exchange, can be with body compared with the test method that the prior art evades the use-case of existence information interaction
The actual conditions of existing information management system;There is the periphery production system phase of message interface with disposing all and information management system
Than without consuming substantial amounts of hardware, software and human resources, reducing test environment lower deployment cost, improving testing efficiency.This
Inventive embodiments can be adapted in the integration environment, and function and performance are carried out to the information management system interacted there are multisystem
To the simulation of periphery interactive environment during test.
Below by drawings and examples, technical scheme is described in further detail.
Description of the drawings
The attached drawing of a part for constitution instruction describes the embodiment of the present invention, and is used to explain together with description
The principle of the present invention.
Referring to the drawings, according to following detailed description, the present invention can be more clearly understood, wherein:
Fig. 1 is the flow chart of test environment analogy method one embodiment of information management system of the present invention.
Fig. 2 is the structure diagram of test system one embodiment of information management system of the present invention.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should be noted that:Unless in addition have
Body illustrates that the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The scope of invention.
Simultaneously, it should be appreciated that for ease of description, the size of the various pieces shown in attached drawing is not according to reality
Proportionate relationship draw.
It is illustrative to the description only actually of at least one exemplary embodiment below, is never used as to the present invention
And its application or any restrictions that use.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely illustrative, without
It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it need not be further discussed in subsequent attached drawing in a attached drawing.
Fig. 1 is the flow chart of test environment analogy method one embodiment of information management system of the present invention.Such as Fig. 1 institutes
Show, the test environment analogy method of the embodiment information management system includes:
110, by monitoring unit to the IP traffic mirroring numbers of core net in core network switches where information management system
According to being acquired, information management system to be measured is obtained from IP traffic mirroring data and (message tube is referred to as in the embodiment of the present invention
Reason system) all correspondence with foreign country data on flows.
When use information manages system, the external all-network of information management system communicates in IP traffic mirrorings all user
There is record, therefore can be by monitoring unit to application server in information management system and the core where database server
Net carries out IP traffic mirrorings, and IP traffic mirroring data are acquired, and it is all right can therefrom to obtain information management system
The data on flows of outer communication.
IP traffic mirroring data are specially data APMB package, are all hypertext transfer protocol (HTTP) service request and industry
The set of business response, when the data on flows of all correspondence with foreign country of information management system is obtained from IP traffic mirroring data, specifically
Information management system can be obtained according to using information management system information as screening conditions, being filtered out from IP traffic mirroring data
It unites the datas on flows of all correspondence with foreign country.If for example, the IP address of information management system to be measured be 192.168.1.100, can
Using set screening conditions as:Source address:192.168.1.100, destination address:It is any, you can acquisition and information management system
Relevant service request and business response.
120, by analytic unit respectively to every business in the data on flows of all correspondence with foreign country of information management system
Request and corresponding business response carry out protocol analysis, analyze the business of interaction in every service request and corresponding business response
Data parameter value.
For example, the data on flows of all correspondence with foreign country of information management system includes this following service request and business should
It answers, by multiple comparative analysis, finds a business datum for wherein needing to interact by HTTP service requests and business response
Parameter value is (i.e.:Need the value parameterized), such as " the AccNbr=2853283&AreaCode=in this following service request
0991 ", the field references information management system and perimeter systems interaction in input or transmission business datum parameter value.
The service request data bag of transmission is as follows:
POST
http://135.224.82.1:8081/webpay/billpay/srvGetOweAccNbr=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;.NET CLR1.1.4322)\r\
nHost:135.224.82.1:8081\r\nContent-Length:258\r\nPragma:no-cache\r\nCookie:
JSESSIONID=DD1YszGHkT7z0S9gqlGcypk1mWQQqQxnsGFHdphfLC2Th VRMp5dZ!2091041976\
R n r nServiceType=%2Fs&AreaCode=0991&PayObject=1&AccNbr=28532 83&AcctID
=&BalanceLeft=&PreBalanceValue=&PenaSum=&ApproveValue=&Ow eAmount=0&
TradeCount=0&State1=500&Charge1=0.00&CheckNbr=&AccNbrPri nted=&State2=
500&Charge2=0.00&ReturnChange=%D5%D2++%C1%E3&ChangeValue=0
The business reply data bag of return is as follows:
www-reply|1|130|HTTP/1.1200OK
By including carrying out protocol analysis to HTTP data, above-mentioned service request and business reply data bag are analyzed, it can be with
Know, when information management system and periphery production system interact, if wherein including " AccNbr in service request data bag
=2853283&AreaCode=0991 " replys this business datum parameter value of 200OK by business reply data bag, you can
Complete an interactive simulation.
After analyzing monitored data, the interaction rule of the information management system and periphery production system have been grasped
Rule, when the service request that information management system transmission includes a certain business datum parameter value comes, service analogue unit directly returns
The multiple business response for including another business datum parameter value corresponding with a certain business datum parameter value, so to information management
For system, service analogue unit plays the function for the periphery production system being modeled.
130, the first business datum parameter value and the corresponding industry of every service request included according to every service request
The second business datum parameter information that business response includes, being configured in analogue unit is serviced includes the first business datum parameter
Correspondence between the service request of value and business response including the second business datum parameter value so that service analogue unit
When receiving the service request comprising certain the first business datum parameter value, generated and replied including certain the first industry according to correspondence
Be engaged in data parameter value service request it is corresponding, include the business response of certain the second business datum parameter value.
140, it disconnects information management system and needs to carry out the communication connection between the periphery production system of information exchange, build
Communication connection between vertical information management system and service analogue unit, it is right to service analogue unit simulation periphery production system
Information management system carries out functional test and performance test.
Test environment analogy method based on the information management system that the above embodiment of the present invention provides, by core net
The IP traffic mirroring data of core net are acquired in interchanger, and information management system is obtained from IP traffic mirroring data and is owned
The data on flows of correspondence with foreign country, and protocol analysis is carried out to every service request therein and corresponding business response, it obtains every
The business datum parameter value of interaction in service request and corresponding business response, being configured in analogue unit service includes first
Correspondence between the service request of business datum parameter value and business response including the second business datum parameter value, with clothes
Business analogue unit simulation periphery production system, functional test and performance test are carried out to information management system.Information management system
Information can not only be embodied without carrying out information exchange with periphery production system again by being interacted with service analogue unit
The actual conditions of management system;And substantial amounts of hardware, software and human resources need not be consumed, it reduces test environment and is deployed to
This, improves testing efficiency.The embodiment of the present invention can be adapted in the integration environment, to there are the message tubes that multisystem interacts
Simulation when reason system progress function and performance test to periphery interactive environment.
According to the present invention a specific example of the test environment analogy method embodiment of information management system and it is unrestricted,
Carrying out functional test to information management system includes:
According to pre-set functional test operation strategy, manually client operates information management system,
To information management system sending function test data;
Information management system judges whether to need to carry out letter with periphery production system according to the functional test data received
Breath interaction;
If information exchange need not be carried out with periphery production system, information management system according to own service process flow,
The functional test data received are handled and export handling result data, so as to the functional test data according to input and
Logical relation between the handling result data of output whether the function of correct verification information management system whether reach it is default will
It asks;
If desired information exchange is carried out with periphery production system, information management system is handed over service analogue unit into row information
Mutually, the functional test data received are handled and exports handling result data, so as to the functional test number according to input
According to the logical relation between the handling result data of output, whether the function of correct verification information management system reaches pre-
If it is required that.
Wherein, information management system carries out information exchange with service analogue unit, to the functional test data that receive into
Row, which handles and exports handling result data, can include following flow:
Information management system generates corresponding service request according to the functional test data received and is sent to service mould
Quasi-simple member, the service request include the corresponding first business datum parameter value of functional test data;
Analogue unit is serviced according to correspondence, generates and includes functional test data correspondence to information management system reply
The first business datum parameter value the corresponding business response of service request, the business response include functional test data correspondence
The corresponding second business datum parameter value of the first business datum parameter value;
Information management system combines the business response that service analogue unit is replied and the functional test data received is carried out
It handles and exports handling result data.
Another specific example rather than limit of the test environment analogy method embodiment of information management system according to the present invention
System, information management system is tested for the property including:
The Operational Visit request for making a reservation for concurrent quantity, letter are sent to information management system by simulant-client analog subscriber
Breath management system needs the business accessed to judge whether to need to hand over into row information with periphery production system according to Operational Visit request
Mutually;
If information exchange need not be carried out with periphery production system, information management system handles Operational Visit request
And export the service response as handling result;If desired with periphery production system carry out information exchange, information management system with
It services analogue unit and carries out information exchange, Operational Visit request is handled and export the service response as handling result;
Obtaining information management system asks Operational Visit the service response time handled and processing business to access and ask
Resource utilization when asking;The service response time therein is to send Operational Visit request to message tube to information management system
The time interval of reason system outgoing traffic response;
Whether the performance that preset value judges information management system is respectively reached according to service response time and resource utilization
Whether preset requirement is reached.
Specifically, can by test information management system in the range of normal loading conditions, under the conditions of peak load and
Whether the service response time of the Operational Visit request processing of the concurrent quantity under abnormal load conditions and resource utilization reach
Whether the corresponding preset value of corresponding conditions, the performance for carrying out discriminating test information management system reach requirement.This just needs to hold respectively
Row:The concurrent quantity in the range of normal loading conditions for sending the support of information management system performance parameter to information management system
Operational Visit asks and performs the above-mentioned flow being tested for the property to information management system, obtains the industry under normal loading conditions
Business response time and resource utilization, and judge whether the service response time under normal loading conditions and resource utilization reach
The corresponding preset value of normal loading conditions;The business that the corresponding concurrent quantity of peak load condition is sent to information management system is visited
It asks request and performs the above-mentioned flow being tested for the property to information management system, obtain the service response under the conditions of peak load
Time and resource utilization, and judge whether the service response time under the conditions of peak load and resource utilization reach peak value and bear
The corresponding preset value of carrier strip part;Surmount the number of concurrent under the abnormal load conditions of peak load condition to information management system transmission
The Operational Visit of amount asks and performs the above-mentioned flow being tested for the property to information management system, obtains under abnormal load conditions
The service response time and resource utilization, and judge whether are the service response time under abnormal load conditions and resource utilization
Reach the corresponding preset value of abnormal load conditions;Then normal loading conditions, peak load condition and abnormal load conditions are judged
Under service response time and resource utilization whether reach the corresponding preset value of corresponding conditions, if normal loading conditions, peak
It is corresponding default that service response time and resource utilization under value loading condition and abnormal load conditions reach corresponding conditions
Value judges that the performance of information management system reaches default capabilities requirement;Otherwise, as long as service response under the conditions of having one of them
Time and/or resource utilization are not up to the corresponding preset value of corresponding conditions, then judge that the performance of information management system is not up to
Default capabilities requirement.
Wherein, information management system carries out information exchange with service analogue unit, and Operational Visit request is handled simultaneously
Following flow can be included as the service response of handling result by exporting:
Information management system requests to generate corresponding service request according to Operational Visit and is sent to service analogue unit, should
Service request, which includes Operational Visit, asks corresponding first business datum parameter value;
Analogue unit is serviced according to correspondence, generates and includes Operational Visit request correspondence to information management system reply
The first business datum parameter value the corresponding business response of service request, the business response include Operational Visit request correspond to
The corresponding second business datum parameter value of the first business datum parameter value;
Information management system combines the business response output that service analogue unit is replied and asks handling result to Operational Visit
Service response.
Fig. 2 is the structure diagram of test system one embodiment of information management system of the present invention.The survey of the embodiment
Test system can be used for realizing the above-mentioned each test environment analogy method embodiment of the present invention.As shown in Fig. 2, it includes tested letter
Cease management system, service analogue unit, manual client and simulant-client.Wherein:
Analogue unit is serviced, for simulating the periphery production system that information exchange is carried out with information management system, is configured with
Correspondence between service request including the first business datum parameter value and the business response including the second business datum parameter value
Relation;When receiving the service request comprising certain the first business datum parameter value of information management system transmission, according to correspondence
Relation generate and to information management system reply with include certain the first business datum parameter value service request it is corresponding, including certain
The business response of second business datum parameter value.
Manual client for being operated according to user instruction to information management system, is sent to information management system
Functional test data and the handling result data of receive information management system output, so as to the functional test data according to input and
Logical relation between the handling result data of output whether the function of correct verification information management system whether reach it is default will
It asks.
Information management system, for according to the functional test data that receive judge whether to need with periphery production system into
Row information interacts;If information exchange need not be carried out with periphery production system, functional test data are handled and to manual
Client exports handling result data;If desired information exchange is carried out with periphery production system, letter is carried out with service analogue unit
Breath interaction handles the functional test data received and exports handling result data to manual client;And according to
Operational Visit request needs the business accessed to judge whether to need to carry out information exchange with periphery production system;It if need not be with week
Side production system carries out information exchange, and Operational Visit request is handled and exports the service response as handling result;If
It needs to carry out information exchange with periphery production system, information management system carries out information exchange with service analogue unit, to business
Access request is handled and exports the service response as handling result.
Simulant-client, for sending the industry for making a reservation for concurrent quantity to information management system according to user's instruction simulation user
Business access request;Obtaining information management system asks Operational Visit the service response time handled and processing business to access
Resource utilization during request, service response time therein are to send Operational Visit request to information to information management system
The time interval of management system outgoing traffic response;And whether divided according to the service response time got and resource utilization
Do not reach preset value and judge whether the performance of information management system reaches preset requirement.
Further, referring back to Fig. 2, in the test system of information management system of the present invention another embodiment, may be used also
To include monitoring unit and analytic unit.Wherein:
Monitoring unit can be arranged in core network switches or be connected with the switch communication, for handing over core net
The IP traffic mirroring data for middle core net of changing planes are acquired, and it is all right that information management system is obtained from IP traffic mirroring data
The data on flows of outer communication.
Analytic unit, for data on flows obtained respectively to monitoring unit, all correspondence with foreign country of information management system
In every service request and corresponding business response carry out protocol analysis, analyze every service request and corresponding business response
The business datum parameter value of middle interaction;And the first business datum parameter value included according to every service request and every industry
The second business datum parameter information that corresponding business response includes is asked in business, and foundation includes the first business datum parameter value
Service request and business response including the second business datum parameter value between correspondence and configure single in service simulation
In member.
A specific example of the test system embodiment of above-mentioned each information management system and unrestricted, mould according to the present invention
It, specifically can be respectively to information management when plan client sends the Operational Visit request for making a reservation for concurrent quantity to information management system
The Operational Visit request for the concurrent quantity in the range of normal loading conditions that system transmission information management system performance parameter is supported,
The Operational Visit of the corresponding concurrent quantity of peak load condition is asked and surmounted under the abnormal load conditions of peak load condition
The Operational Visit request of concurrent quantity.When judging whether the performance of information management system reaches preset requirement, specifically judge respectively
Whether service response time and resource utilization under normal loading conditions, peak load condition and abnormal load conditions reach phase
Answer the corresponding preset value of condition;If the service response time under normal loading conditions, peak load condition and abnormal load conditions
Reach the corresponding preset value of corresponding conditions with resource utilization, judge that the performance of information management system reaches preset requirement.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
The various media that can store program code such as disk.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with its
The difference of its embodiment, the same or similar part cross-reference between each embodiment.For system embodiment
For, since it is substantially corresponding with embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
It defends oneself bright.
Method, the system of the present invention may be achieved in many ways.For example, software, hardware, firmware or soft can be passed through
Part, hardware, firmware any combinations come realize the present invention method and system.The said sequence of the step of for the method is only
It is to illustrate, the step of method of the invention is not limited to order described in detail above, unless otherwise especially
Explanation.In addition, in some embodiments, the present invention can be also embodied as recording program in the recording medium, these program bags
Include the machine readable instructions for being used to implement the method according to the invention.Thus, the present invention also covering storage is for execution according to this
The recording medium of the program of the method for invention.
Description of the invention provides for the sake of example and description, and is not exhaustively or by the present invention
It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches
It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those of ordinary skill in the art is enable to manage
The present invention is solved so as to design the various embodiments with various modifications suitable for special-purpose.
Claims (9)
1. a kind of test environment analogy method of information management system, which is characterized in that including:
The IP traffic mirroring data of core net in core network switches are acquired by monitoring unit, from the IP flows mirror
Data on flows as obtaining described information management all correspondence with foreign country of system in data;
Every service request in the data on flows of system all correspondence with foreign country is managed described information respectively by analytic unit
Protocol analysis is carried out with corresponding business response, analyzes the business datum of interaction in every service request and corresponding business response
Parameter value;
In the first business datum parameter value and the corresponding business response of every service request that are included according to every service request
Including the second business datum parameter information, in analogue unit is serviced configuration include the business of the first business datum parameter value
Correspondence between request and the business response including the second business datum parameter value so that service analogue unit receives bag
During service request containing certain the first business datum parameter value, generated and replied according to correspondence and joined including certain first business datum
The service request of numerical value is corresponding, includes the business response of certain the second business datum parameter value;
It disconnects described information management system and needs to carry out the communication connection between the periphery production system of information exchange, establish institute
The communication connection between information management system and the service analogue unit is stated, the periphery is simulated with the service analogue unit
Production system carries out functional test and performance test to described information management system.
2. according to the method described in claim 1, it is characterized in that, carrying out functional test to described information management system includes:
According to pre-set functional test operation strategy, manually client operates information management system, Xiang Xin
Cease management system sending function test data;
Information management system judges whether to need to hand over into row information with periphery production system according to the functional test data received
Mutually;
If information exchange need not be carried out with periphery production system, information management system carries out the functional test data received
It handles and exports handling result data, so as to patrolling between the functional test data according to input and the handling result data of output
Whether whether the function of correct verification described information management system reaches preset requirement to the relation of collecting;
If desired information exchange is carried out with periphery production system, information management system is handed over the service analogue unit into row information
Mutually, the functional test data received are handled and exports handling result data, so as to the functional test number according to input
According to the logical relation between the handling result data of output, whether the function of correct verification described information management system reaches
To preset requirement.
3. according to the method described in claim 2, it is characterized in that, information management system carries out letter with the service analogue unit
Breath interaction, the functional test data received, which are handled, and export handling result data includes:
Information management system generates corresponding service request and is sent to the service analogue unit, which includes institute
State the corresponding first business datum parameter value of functional test data;
Analogue unit is serviced according to the correspondence, generates and includes the functional test to described information management system reply
The corresponding business response of service request of the corresponding first business datum parameter value of data, the business response include the function
The corresponding second business datum parameter value of the corresponding first business datum parameter value of test data;
Information management system combines the business response that service analogue unit is replied and the functional test data received is handled
And export handling result data.
4. according to the method described in claims 1 to 3 any one, which is characterized in that manage system progressive to described information
Can test includes:
The Operational Visit that the predetermined concurrent quantity of system transmission is managed to described information by simulant-client analog subscriber is asked, letter
Breath management system needs the business accessed to judge whether to need to hand over into row information with periphery production system according to Operational Visit request
Mutually;
If information exchange need not be carried out with periphery production system, information management system handle and defeated Operational Visit request
Go out the service response as handling result;If desired with periphery production system carry out information exchange, information management system with it is described
It services analogue unit and carries out information exchange, Operational Visit request is handled and export the business sound as handling result
It should;
When acquisition information management system asks the service response time handled and processing business access request to Operational Visit
Resource utilization;The service response time is to send Operational Visit request to information management system to information management system
The time interval of outgoing traffic response;
Judge that described information manages the performance of system according to whether service response time and resource utilization respectively reach preset value
Whether preset requirement is reached.
5. according to the method described in claim 4, make a reservation for concurrent quantity it is characterized in that, being sent to described information management system
Operational Visit request includes:
Respectively into the loading conditions range that described information management system sends described information management system performance parameter support
Peak load is asked and surmounted to the Operational Visit request of concurrent quantity, the Operational Visit of the corresponding concurrent quantity of peak load condition
The Operational Visit request of concurrent quantity under the abnormal load conditions of condition;
It is described to judge described information management system according to whether service response time and resource utilization respectively reach preset value
Whether performance, which reaches preset requirement, includes:
Loading condition, peak load condition and abnormal load conditions that described information management system performance parameter is supported are judged respectively
Under service response time and resource utilization whether reach the corresponding preset value of corresponding conditions;
If the industry under loading condition, peak load condition and abnormal load conditions that described information management system performance parameter is supported
Business response time and resource utilization reach the corresponding preset value of corresponding conditions, judge that the performance of described information management system reaches
To preset requirement.
6. according to the method described in claim 4, it is characterized in that, information management system carries out letter with the service analogue unit
Breath interaction, Operational Visit request is handled and exported to be included as the service response of handling result:
Information management system generates corresponding service request and is sent to the service analogue unit, which includes institute
It states Operational Visit and asks corresponding first business datum parameter value;
Analogue unit is serviced according to the correspondence, generates and includes the Operational Visit to described information management system reply
The corresponding business response of service request of corresponding first business datum parameter value is asked, which includes the business
The corresponding second business datum parameter value of the corresponding first business datum parameter value of access request;
Information management system asks handling result with reference to the business response output that service analogue unit is replied to the Operational Visit
Service response.
7. a kind of test system of information management system manages system, which is characterized in that also wrap including tested described information
It includes:
Analogue unit is serviced, for simulating the periphery production system that information exchange is carried out with described information management system, is configured with
Correspondence between service request including the first business datum parameter value and the business response including the second business datum parameter value
Relation;When receiving the service request comprising certain the first business datum parameter value that described information management system is sent, according to
The correspondence generation simultaneously replys the service request with including certain the first business datum parameter value to described information management system
Accordingly, the business response of certain the second business datum parameter value is included;
Manual client, for being operated according to user instruction to information management system, to information management system sending function
Test data and the handling result data of receive information management system output, so as to according to the functional test data of input and output
Handling result data between logical relation whether the function of correct verification described information management system whether reach it is default will
It asks;
Information management system, for being judged whether to need according to the functional test data received to carry out letter with periphery production system
Breath interaction;If information exchange need not be carried out with periphery production system, the functional test data are handled and to manual
Client exports handling result data;If desired with periphery production system carry out information exchange, with it is described service analogue unit into
Row information interacts, and the functional test data received are handled and export handling result data to manual client;And
According to Operational Visit request the business accessed is needed to judge whether to need to carry out information exchange with periphery production system;It if need not
Information exchange is carried out with periphery production system, Operational Visit request is handled and exports the business sound as handling result
It should;If desired information exchange is carried out with periphery production system, information management system is handed over the service analogue unit into row information
Mutually, Operational Visit request is handled and exports the service response as handling result;
Simulant-client, for sending the industry for making a reservation for concurrent quantity to described information management system according to user's instruction simulation user
Business access request;Obtaining information management system asks Operational Visit the service response time handled and processing business to access
Resource utilization during request, the service response time are to send Operational Visit request to message tube to information management system
The time interval of reason system outgoing traffic response;And whether respectively reached according to service response time and resource utilization default
Value judges whether the performance of described information management system reaches preset requirement.
8. system according to claim 7, which is characterized in that further include:
Monitoring unit is acquired for the IP traffic mirroring data to core net in core network switches, from the IP flows
The data on flows of described information management all correspondence with foreign country of system is obtained in mirror image data;
Analytic unit, for respectively to every service request in the data on flows of described information management all correspondence with foreign country of system
Protocol analysis is carried out with corresponding business response, analyzes the business datum of interaction in every service request and corresponding business response
Parameter value;And the first business datum parameter value and the corresponding business of every service request included according to every service request
The second business datum parameter information that response includes, establish include the first business datum parameter value service request and including
Correspondence and configuration between the business response of second business datum parameter value is in analogue unit is serviced.
9. the system according to claim 7 or 8, which is characterized in that the simulant-client manages system to described information
When sending the Operational Visit request for making a reservation for concurrent quantity, specifically described information management system is sent to described information management system respectively
The Operational Visit request for the concurrent quantity in loading conditions range that performance parameter of uniting is supported, peak load condition are corresponding concurrent
The Operational Visit request of the concurrent quantity under the abnormal load conditions of peak load condition is asked and surmounted to the Operational Visit of quantity;
When judging whether the performance of described information management system reaches preset requirement, specifically judge that described information manages system respectively
Loading condition, peak load condition and the service response time under abnormal load conditions and resource utilization that performance parameter is supported
Whether corresponding conditions corresponding preset value is reached;If the loading condition that described information management system performance parameter is supported, peak value are born
Service response time and resource utilization under carrier strip part and abnormal load conditions reach the corresponding preset value of corresponding conditions, sentence
The performance for determining described information management system reaches preset requirement.
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 CN105099801A (en) | 2015-11-25 |
CN105099801B true 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) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105608001A (en) * | 2015-12-16 | 2016-05-25 | 中国民生银行股份有限公司 | 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 |
CN111224768B (en) * | 2020-03-27 | 2020-07-24 | 广东博智林机器人有限公司 | Response simulation method, device, equipment and computer readable storage medium |
CN112653578B (en) * | 2020-12-16 | 2022-05-31 | 广州鲁邦通物联网科技股份有限公司 | Data simulation method and system of communication bus |
CN112769627B (en) * | 2021-02-03 | 2024-03-22 | 阿里巴巴集团控股有限公司 | Network environment simulation method, system and computer program product |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102201945A (en) * | 2010-03-24 | 2011-09-28 | 英业达股份有限公司 | Testing system for simulating 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) |
-
2014
- 2014-05-07 CN CN201410190578.8A patent/CN105099801B/en active Active
Patent Citations (5)
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 | 英业达股份有限公司 | Testing system for simulating 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) |
Also Published As
Publication number | Publication date |
---|---|
CN105099801A (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105099801B (en) | The test system of information management system and test environment analogy method | |
CN104579822B (en) | Mobile application automated performance testing system and method based on Http agreements | |
CN109446071A (en) | Interface test method, interface test device, electronic equipment and storage medium | |
CN110032511A (en) | A kind of interface test method and interface testing equipment | |
CN106095673A (en) | Automated testing method based on WEB interface and system | |
CN110532169A (en) | Interface testing case generation method, device, computer equipment and storage medium | |
CN109165168A (en) | A kind of method for testing pressure, device, equipment and medium | |
CN104268079B (en) | A kind of method and system of POS Application testings | |
CN108399114A (en) | A kind of system performance testing method, apparatus and storage medium | |
CN107665171A (en) | Automatic regression test method and device | |
CN103154905B (en) | Apparatus and method for the automated analysis of combination application | |
CN107391142A (en) | The method and device that a kind of application is split | |
CN103246606B (en) | The performance test methods of ESB platform and system | |
CN102184135A (en) | Instruction script based test method and system in bank system | |
CN101867501A (en) | Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model | |
US20230036072A1 (en) | AI-Based Method and System for Testing Chatbots | |
CN103678446B (en) | Improved mode map based on Data View and database table | |
CN107171897A (en) | A kind of interface test method and data-interface test system | |
CN104901845B (en) | Domain name WHOIS automatizations of service test system and method | |
CN107733710A (en) | Construction method, device, computer equipment and the storage medium of link call relation | |
CN109831357A (en) | A kind of service verification method, apparatus, storage medium and server | |
CN106059853A (en) | Network connectivity test method and device | |
CN107508725A (en) | For the method for automatic test, apparatus and system | |
CN108959065A (en) | The verification method and system of software interface test parameter | |
Pfeiffer et al. | Evaluation of conceptual models-a structuralist approach |
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 |