Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical configuration in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment a part of embodiment only of the invention, rather than the embodiment of whole.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
His embodiment, belongs to the scope of protection of the invention.
If it is to be appreciated that relate in the embodiment of the present invention directivity indicate (such as up, down, left, right, before and after ...),
Then directionality indicate be only used for explain the relative position relation under a certain particular pose (as shown in drawings) between each part,
Motion conditions etc., if the particular pose changes, directionality indicates also correspondingly to change therewith.
With reference to Fig. 1, Fig. 1 is a kind of schematic flow sheet of the embodiment of method one of analog service of the invention, and the present invention is provided
A kind of method of analog service, step is as follows:
Step S10, crawl completes the data for simulating matching, from the extracting data simulation matching for completing to simulate matching
Condition and response are recorded as public stake;
In step slo, the system completes the data for simulating matching by crawl, from the data for completing to simulate matching
It is middle to extract simulation matching condition and respond the public stake for being recorded as calling, without the need for separately configuring public stake, that is, flow is saved,
The intelligent of automatic configuration is improved again.
Step S20, configures the IP address of public stake, and it is public that control with public stake there is the link of same IP address to call
Stake;
In step S20, configured by the IP of public stake, it (is Internet that foundation has same IP address with public stake
Protocol Address, are translated into internet protocol address again) link connecting relation, call the public affairs to control the link
Stake altogether.It should be appreciated that, in this step, acquiescence simulator has completed initialization operation.Simulator initialization operation needs
Complete the preparation of two aspects, first, need to dispose test environment (referring mainly to hardware environment), think the analog service of simulator
There is provided and stablize and controllable environment, improve the work quality and efficiency of simulator.It is previously run structure or disposes and tested service
And external service between the docking of network communication services interface, set up WEB UI interactive testing models, build various test-types
Framework, the link configuration for being packaged with different agreement, match somebody with somebody according to the serve port that the protocol service of tested service disposes tested service
When putting and present decoupling dependence situation, perform decoupling and rely on, to get around the port of relied on external service.And these test wrappers
The deployment in border has an analog service platform for managing several simulators concentratedly to complete, and initially sets up simulator with tested clothes
Network service between business and external service;WEB UI interface alternations test models and interaction specifications are then set up, following step
Suddenly in interface operation, and without the need for coding;Again the framework of various test-types is built for the demand of tested service, such as:It is single
First test, integration testing, automatic test, functional test and stress test, the framework internal memory of every kind of test-types contains simulation
The test module of the test case of external service behavior;The chain that different agreement is encapsulated to each simulator is serviced according to different agreement
Road configures;The destination service port configuration of tested service is changed according to the protocol service of tested service, tested A services (i.e. quilt
Survey service) services of the B outside relying on (i.e. external service) is originally, the destination service of present A services is not directed to B services and is changed to
Point to simulator.Second, need to dispose testing service (referring mainly to software environment), provide test with the method for testing as the present invention
Object.Testing service includes test and management unit and test execution unit, and simulator is equal to test and management unit, the simulation
The operation of device management single simulation test, and a virtual stake adapter (Stub Matcher) is equal to test and holds in simulator
Row unit, the stake adapter carries out simulation test and performs control, specifically, the test module storage simulation in simulator
The test case of external service behavior, stake adapter is used for the element of the Call Condition of simulation testing module, to replace testing mould
The interface of block, receives or transmits the data of test module, wherein, the Call Condition of the test module is in stake adapter
The simulation matching condition of editor, or, the simulation of the self-defined service of api function editor by registering self-defined Service events
Test matching condition.Stake adapter carries out testing and control according to simulation test matching condition.
The initialization of simulator of the present invention also includes creating simulator, and the simulator is used for simulation and services with tested A
Carry out the outside B services of true interaction.The simulator can adopt JETTY servers, the JETTY servers to increase income for one
Servelet containers (servelet is the server write with JAVA, major function be interactively browse and
Modification data, generate dynamic WEB content), it is based on the WEB containers of JAVA.JETTY servers can be used as embedded server
Use, the speed of service of JETTY servers is very fast, and is lightweight, and JETTY servers are write using Java language
, its API is issued in the form of one group of JAR bag.JAR bags (wrapper of JAVA) are managed for RPC protocol emulation (Remote
Procedure Call Protocol-- remote procedure call protocols), it is a kind of network that passes through from remote computer program
Request service, the agreement without understanding underlying network technology), it is managed collectively the JAR bags of client, it is possible to understand that ground, JAR
Bag can be used to parse different agreement service.When tested A services are interacted by the B services outside interface interchange in then testing
When, be changed to call simulator to simulate the interaction, i.e., originally tested A service requests modification is pointed to, it is no longer point to B services and changes
To point to simulator.
Step S30, with the simulation matching condition in the public stake called, performs the same IP ground that the link is received
The present day analog matching order of location;
In step s 30, the step of simulation matching condition with the public stake called, it should be appreciated that ground
It is to call also to there is a process to public stake solution ginseng/analysis ginseng after public stake, can just obtains simulation matching condition and be transported by it
With.Whole step is that a kind of certain moduli intends matching process, and the simulation matching process is automatically generated by the crawl data called
Public stake, obtain completed simulation matching condition, perform current simulation matching order, that is, realize a kind of analog service
Intelligence configuration, and save flow for the system, saved cost.
Step S40, if the match is successful for present day analog, returns described response to tested service.
In step s 40, it is one of responsive measures of simulation matching, if the match is successful for present day analog, what return was called
Response in public stake completes the task of this analog service to tested service.
Specifically, with reference to Fig. 2, in the present embodiment, step S10 includes:
Step S11, captures the data for completing simulation matching of external system, is first public by the data recording for being captured
Stake;
Step S12, captures the data that it fails to match in the completed simulation matching of the system, by the data recording for being captured
For the second public stake.
In step slo, the Data Source of public stake has two big sources, and one derives from external system, and another is derived from
The system.It should be appreciated that, the external system is the i.e. non-tested system for servicing non-external service again, respectively will be from outer
The data recording for completing to simulate matching of system is the first public stake, by Data Source in the completed simulation of the system
The data recording that it fails to match in matching somebody with somebody is the second public stake.Because data content is different, therefore the name of public stake is different, so as to area
Point.
It is understood that described the system refers to the analog service system for carrying out present day analog matching, the external system
I.e. non-tested service side non-external service side again is referred to, is the other systems of the system communication connection.Described the system it is common
Simulating the process of matching is:The port of monitored link that the system starts begins listening for, when listening to identical with simulator
During the request of IP, the request, packet parsing request are intercepted, and the request after parsing is sent to stake adapter, stake adapter connects
After receiving request, matching order is performed according to simulation matching condition, stake adapter starts testing and control, if the match is successful, stake matching
Device releases the default response of simulation test and is back to tested service;If it fails to match, stake adapter forwards the request to external service,
And true response of the external service to asking is received, it is back to tested service.So, the completed simulation matching of described the system
In the data that it fails to match also should at last once the match is successful the data obtained.So the number for completing simulation matching of external system
Can be completed simulation matched data according to the data that it fails to match in simulation matching completed with the system, and match
Successfully data are stored in the system, therefore without the need for capturing again.
In the present embodiment, with reference to Fig. 3, step S11 is comprised the following steps:
Step S111, sets up the communication connection relation with external system, arranges the recording rule of the first public stake;
In step S111, the communication connection with external system is set up, be the precondition that can capture external system data, and about
The recording rule of fixed first public stake, is the requisite number in order to guarantee correctly to grab the desired data in external system
According to the required matching condition and response that refer to that present day analog is matched.
Step S112, according to the recording rule of the first public stake of the agreement, captures the redis generated by external system;
Step S112 is the execution step for correctly grabbing data needed for external system.(redis is one to the redis
The individual use ANSI C languages increased income write, support network, can be based on internal memory also can persistence log type, Key-Value numbers
According to storehouse, and provide the API of polyglot), it is the caching of the data genaration for completing to simulate matching by external system collection, and can quilt
Network is public.Described redis, is that tester would generally use all of normal interface requests and sound in field tests
The public caching that should be sent.
Step S113, parses captured redis, and completed simulation matching condition and response are extracted from redis;
Step S113 is from the redis for being captured, to obtain the step of completed simulation matching condition and response.It is worth
One is with carrying, because the code regulation that redis inside is present, also needs to first parse captured redis, ability after parsing
Extract desired data.
Step S114, it is the first public stake to record extracted simulation matching condition and response.
Step S114 is the step of simulation matching condition of extraction and response are recorded as into first public.It should be appreciated that ground
It is that described recording step is an automatic recording process, is performed by the first built-in recording elements of the system.
In the present embodiment, with reference to Fig. 4, step S12 is comprised the following steps:
Step S121, arranges the recording rule of the second public stake;
In step S121, the recording rule for arranging the second public stake is to guarantee correctly to grab in the system
Desired data, the desired data refer to present day analog match required matching condition and response.
Step S122, according to the recording rule of the second public stake of the agreement, the completed simulation of crawl the system
The data that it fails to match in matching somebody with somebody;
In step S122, according to the recording rule of the second public stake, could correctly grab in the data base of the system
Get the data of the completed simulation matching of the system.Described the system is completed to simulate the data that it fails to match in matching,
It should be appreciated that, in the completed simulation matching of the system, if it fails to match, the system forwards the request to external service,
And response of the external service to asking is received, by this indemnifying measure, it fails to match in the completed simulation matching of the system
Data also should at last once successfully after simulation matching data.The data that it fails to match should include request,
Complete to simulate the data such as matching condition and response.
Step S123, from the extracting data simulation matching condition and response that are captured;
In step S123, because data are captured from the data base of the system, by the inside generation of the system
Code rule, so needing the data to being captured to carry out technical finesse can just extract simulation matching condition and response.
Step S124, it is the second public stake to record extracted simulation matching condition and response.
Step S124 is the step of simulation matching condition of extraction and response are recorded as into second public.It should be appreciated that ground
Be that described recording step is also an automatic recording process, performed by the second built-in recording module of the system.
In the present embodiment, with reference to Fig. 5, step S30 is comprised the following steps:
Step S31, receives the request matched with the present day analog of the same IP address of the link;
It is the beginning of the conventional simulation service step of herein described simulator in step S31.The monitored link of startup
Port begin listening for, when the request with IP identical with simulator is listened to, intercept the request.
Step S32, parses the public stake called, to discharge simulation matching condition and response;
In step s 32, the public stake called is called by the link with public stake with same IP, and in step
In rapid S31, it is the request matched with the present day analog of the same IP address of the link that the link is intercepted.It follows that being adjusted
The IP of the request that public stake is matched with present day analog is the same IP, so, the simulation matching condition in public stake
Could be adapted with the request of present day analog matching with response.
Step S33, uses discharged simulation matching condition, performs the present day analog matching order of the request.
Step S33 is the execution step of present day analog matching.Only when the simulation matching condition in the public stake called
When being adapted with the request of present day analog matching with response, the simulation matching condition that the public stake is discharged just can become
The Call Condition of present day analog matching, could perform present day analog matching order.
Step S31-33, specifically teaches the detailed step of present day analog matching, is also mould after the application simulator starts
Intend the conventional simulation service step of device.
It should be noted that the conventional simulation service step of the simulator:First, in the initialized process of simulator
In, the stake adapter in simulator calls the test case data being stored in simulator, judges called test case number
According to intention, and according in the test case data particular data editor simulation matching condition and default response be generated as
Stake;Further, the parametrization stake, it should be understood that the polytropy of external service determines simulation matching condition and pre-
If response is changeable, i.e. stake can be a constant, or a variable, so, stake is interpreted as a pile function, mould
The matching condition of plan is functional expression, and it is return value to preset response, and parametrization stake is exactly the incoming parameter when function is defined, and
Relatively, incoming argument when analytic parameter is exactly call function, so, stake a function is defined as, and is passed when function is defined
The parameter for entering is parameter, and parameter incoming during call function, argument, the parameterized process of stake is:The lattice of the parameter of configuration stake
Formula, adds stake parameter, completes parametrization, generates stake parameter.The parametrization of stake to be adapted to the different external services of various protocols,
Therefore pile function can be automatically generated, and also be can customize, but automatically raw pile function its essential difference exists with self-defining pile function
In:Self-defining pile function calls priority level higher than original function, and antiderivative priority level is higher than the pile function for automatically generating.
Give an example, it is assumed that can find in code certain function script definition, the pile function for now automatically generating be it is invalid,
Because original function priority level is higher than the pile function for automatically generating.And self-defined pile function can bring the advantage that:Call
Possible its return value of original function is a fixed value, it is impossible to return an expected value, so that the different code branches of test.And
The return value of pile function, can freely be controlled by user, thus possess greater flexibility.Therefore in the present embodiment, this letter
Several return values presets response, is generated using a kind of beanshell (JAVA source codes interpreter) dynamics.
And the parametrization stake of the present invention is also a kind of embodiment of intelligent Matching function.The matching condition and analog response of stake
All parametrization therewith, it should be appreciated that ground is, if the parameter format of stake configuration is $ { parameter name }, when being provided with parameter format
Afterwards, stake parameter also must be provided with, and otherwise tested service request can match unsuccessful, only reset stake parameter, allow stake
Parameter replaces the format parameter of matching condition and analog response, at this moment asks again once, can just see what is obtained
Response.
In the present invention, it should be noted that the different instructions of particular data of the stake in test case data are public affairs
Stake and privately owned stake altogether, the particular data is by the specific number in the system inside according to the intention difference for simulating external service
According to newly-built and called in the link by the public stake, or crawl redis data are automatically generated, can quilt
The link being associated with same IP address with public stake is called, and the privately owned stake can only be newly-built in the link, and is only to be somebody's turn to do
Link is privately owned.Newly-built stake mentioned here includes self-defined pile function and original function.
Especially it should be noted that, the recording approach of the public stake has two kinds:1st, flow is captured from outside service systems
Recorded, scene:Platform and ApiTester (interface testing platform) and DCT (making data platform)) when docking, because
During the test of ApiTester and DCT, all normal interface requests and response can send a public redis and cache, and put down
Platform can regularly extracting these data from redis automatically generates public stake;2nd, when simulator is mismatched asks, by stake transcripter
The request and response that (Stub Recorder) record analog device is intercepted and mismatch is directly forwarded is generated as public stake.Public stake
Also have and record rule, the public stake recording rule can be pre-build by internal code and automatically generate after default rule recording
Rule, it is also possible to artificially arrange in the page.It is described pre-build by internal code the public stake that automatically generates after default rule with
The difference of the public stake for making setting by oneself in the page is exactly the difference of the pile function with self-defining pile function of above-mentioned automatic life.
Described simulation matching has abundant various matched rules, and the matched rule is supported in logic between multiple stakes
AND, OR and NOT relations, the operator of matching supports equals (value is equal), (value is just for contains (value is included) and regex
Then expression formula matching), the URI for such as representing HTTP request includes Stock/Wms/add and returns default sound if being POST request
The operation answered is:Matched rule, input is first selected to represent the URI of HTTP request, operator contains of reselection matching, value
For Stock/Wms/add, and described default response is generated according to matched rule is selected by beanshell dynamics.
After the completion of the initialization of simulator, start monitored link, listen to the request with the same IP address of link, simulator
Interception request, analysis request generates required parameter, extracts the request object that required parameter is converted to unified encapsulation different agreement,
To stake adapter, stake adapter receives request object to transmitting request object, calls a parameter, stake parameter is parsed, to discharge simulation
The matching condition of device and default response, according to simulation matching condition matching order is performed, and returns corresponding response.
The process of tested service request reception, can start when link startup before the matching execution of simulator common simulation
One InboundChannel (InboundChannel services the passage communicated and between simulator dedicated for A), for monitoring
The request from A services for receiving, after receiving request, is entered by the parameter of (request outlet) to asking Request Extrator
Row is extracted (such as uri, the parameter of body), switchs to a RequestElement (request object) such as, the different associations such as HTTP, OSP
The request content unification of view is converted to the required parameter that RequestElement request objects are packaged with different agreement.Simulator
The incoming Stub Matcher of RequestElement (stake adapter) is matched with the stake of user preset again.Entirely request
The operation for resolving to RequestElement is realized by the internal code of simulator.
In the present invention, simulator conventional simulation matching also has the process of stake parametric solution ginseng before performing, stake can be one
Individual constant, or a variable, so, stake a function are defined as, function parameter incoming when defining parameter,
And parameter incoming during call function is argument, simulator first replaces parameter of the Zhuan Li areas with condition and default response, then
Match again.If the match is successful, simulator returns default response to tested service;Or, if it fails to match, simulator forwarding
Ask to external service, receive external service and tested service is back to the true response asked.
After the step of simulator intercepts the request sent by tested service, the analysis request is simultaneously sent to stake
Also include before the step of orchestration:Simulator monitoring request, according to the monitoring situation of request the implementation status of matching order is judged;
If monitoring request needs to perform matching order, analysis request is simultaneously sent to stake adapter;Or, if monitoring request need not be returned
When returning default response, suspend the link of simulator, do not perform matching, directly forward tested service request and returning to external service is right
The true response of request;Or, if monitoring request need not use simulator, stop the link of simulator, analog service
Listening port is closed, error information is returned.
It should be understood that according to the complexity of enterprise customer's business, for the need for meeting the various matchings of user and forward
Will, the simulator completes the function of monitoring request by the control of Link State, it should be appreciated that ground is to monitor the same of request
When be the demand for combining user, if user can suspend the link of simulator when need not matching directly forwarding, if
User does not use simulator, can stop the link of simulator, and analog service closes listening port, and user initiates request to again mould
Intend device, the error information of connection failure can be received.
Reference Fig. 6, the invention also discloses a kind of device of analog service, including:
Handling module 10, the data for simulating matching are completed for crawl;
Record module 20, for by the data recording for being captured be public stake;
The system completes the data for simulating matching by crawl, from the extracting data simulation for completing to simulate matching
With the public stake that condition and response are recorded as calling, without the need for separately configuring public stake, that is, flow is saved, automatization is improved again
What is configured is intelligent.
Parsing module 30, for parsing the public stake called, to discharge simulation matching condition and response;
IP configuration modules 40, for configuring the IP address of the public stake;
Configured by the IP of public stake, it (is Internet Protocol that foundation has same IP address with public stake
Address, is translated into internet protocol address again)) link connecting relation, call the public stake to control the link.Should
This is appreciated that in this step, acquiescence simulator has completed initialization operation.Simulator initialization operation needs to complete two
The preparation of aspect, first, need to dispose test environment (referring mainly to hardware environment), provide stable with the analog service as simulator
And controllable environment, improve the work quality and efficiency of simulator.It is previously run structure or disposes and tested service and outside clothes
The docking of network communication services interface between business, set up WEB UI interactive testing models, build various test-types frameworks, encapsulation
There is the link configuration of different agreement, the serve port configuration of tested service is disposed according to the protocol service of tested service and solution is presented
When coupling relies on situation, perform decoupling and rely on, to get around the port of relied on external service.And the deployment of these test environments is equal
There is an analog service platform for managing several simulators concentratedly to complete, initially set up simulator with tested service and outside clothes
Network service between business;WEB UI interface alternations test models and interaction specifications are then set up, below step is at interface
Operation, and without the need for coding;Again the framework of various test-types is built for the demand of tested service, such as:It is unit testing, integrated
Test, automatic test, functional test and stress test, the framework internal memory of every kind of test-types contains simulation external service behavior
Test case test module;The link configuration that different agreement is encapsulated to each simulator is serviced according to different agreement;According to
The protocol service of tested service changes the destination service port configuration of tested service, and tested A services (i.e. tested service) is original
It is B services (i.e. external service) outside relying on, the destination service of present A services is not directed to B services and is changed to point to simulator.
Second, need to dispose testing service (referring mainly to software environment), provide test object with the method for testing as the present invention.Test clothes
Business includes test and management unit and test execution unit, and simulator is equal to test and management unit, and the simulator manages single
The operation of simulation test, and a virtual stake adapter (Stub Matcher) is equal to test execution unit in simulator, institute
State an adapter implementation simulation test and perform control, specifically, the test module storage simulation external service in simulator
The test case of behavior, stake adapter is used for the element of the Call Condition of simulation testing module, to replace the interface of test module,
Receive or transmit the data of test module, wherein, the Call Condition of the test module is the mould edited in stake adapter
Intend matching condition, or, the simulation test matching of the self-defined service of api function editor by registering self-defined Service events
Condition.Stake adapter carries out testing and control according to simulation test matching condition.
The initialization of simulator of the present invention also includes creating simulator, and the simulator is used for simulation and services with tested A
Carry out the outside B services of true interaction.The simulator can adopt JETTY servers, the JETTY servers to increase income for one
Servelet containers (servelet is the server write with JAVA, major function be interactively browse and
Modification data, generate dynamic WEB content), it is based on the WEB containers of JAVA.JETTY servers can be used as embedded server
Use, the speed of service of JETTY servers is very fast, and is lightweight, and JETTY servers are write using Java language
, its API is issued in the form of one group of JAR bag.JAR bags (wrapper of JAVA) are managed for RPC protocol emulation (Remote
Procedure Call Protocol-- remote procedure call protocols, it is a kind of network that passes through from remote computer program
Request service, the agreement without understanding underlying network technology), it is managed collectively the JAR bags of client, it is possible to understand that ground, JAR
Bag can be used to parse different agreement service.When tested A services are interacted by the B services outside interface interchange in then testing
When, be changed to call simulator to simulate the interaction, i.e., originally tested A service requests modification is pointed to, it is no longer point to B services and changes
To point to simulator.
Control module 50, with public stake there is the link of same IP address to call public stake for control;
Control module 50 calls public stake for controlling link, is with being worth mentioning, only when in the public stake called
Simulation matching condition and response with the present day analog matching request be adapted when, the simulation that the public stake is discharged
Can just become the Call Condition of present day analog matching with condition, present day analog matching order could be performed.
Also there is a process to public stake solution ginseng/analysis ginseng in described calling, can just obtain simulation matching after public stake
Condition is used by it.Whole step is that a kind of certain moduli intends matching process, and the simulation matching process passes through the crawl number for calling
According to the public stake for automatically generating, completed simulation matching condition is obtained, perform current simulation matching order, that is, realize one
The intelligence configuration of analog service is planted, and flow is saved for the system, saved cost.
Receiver module 60, for receiving the request matched with the present day analog of the same IP address of the link;
The port of the monitored link that receiver module 60 starts begins listening for, and has asking for IP identical with simulator when listening to
When asking, the request is intercepted.Now, be the simulator conventional simulation service step beginning.
Performing module 70, for the simulation matching condition, performing working as the same IP address that the link is received
Front simulation matching order;
Performing module 70 completes the conventional simulation of present day analog matching and performs.It is with being worth mentioning, only when being called
Public stake in simulation matching condition and response with the present day analog matching request be adapted when, the public stake is released
The simulation matching condition put can just become the Call Condition of present day analog matching, could perform present day analog matching order.
It should be noted that, the conventional simulation service step of the simulator:First, in the initialized process of simulator
In, the stake adapter in simulator calls the test case data being stored in simulator, judges called test case number
According to intention, and according in the test case data particular data editor simulation matching condition and default response be generated as
Stake;Further, the parametrization stake, it should be understood that the polytropy of external service determines simulation matching condition and pre-
If response is changeable, i.e. stake can be a constant, or a variable, so, stake is interpreted as a pile function, mould
The matching condition of plan is functional expression, and it is return value to preset response, and parametrization stake is exactly the incoming parameter when function is defined, and
Relatively, incoming argument when analytic parameter is exactly call function, so, stake a function is defined as, and is passed when function is defined
The parameter for entering is parameter, and parameter incoming during call function, argument, the parameterized process of stake is:The lattice of the parameter of configuration stake
Formula, adds stake parameter, completes parametrization, generates stake parameter.The parametrization of stake to be adapted to the different external services of various protocols,
Therefore pile function can be automatically generated, and also be can customize, but automatically raw pile function its essential difference exists with self-defining pile function
In:Self-defining pile function calls priority level higher than original function, and antiderivative priority level is higher than the pile function for automatically generating.
Give an example, it is assumed that can find in code certain function script definition, the pile function for now automatically generating be it is invalid,
Because original function priority level is higher than the pile function for automatically generating.And self-defined pile function can bring the advantage that:Call
Possible its return value of original function is a fixed value, it is impossible to return an expected value, so that the different code branches of test.And
The return value of pile function, can freely be controlled by user, thus possess greater flexibility.Therefore in the present embodiment, this letter
Several return values presets response, is generated using a kind of beanshell (JAVA source codes interpreter) dynamics.
And the parametrization stake of the present invention is also a kind of embodiment of intelligent Matching function.The matching condition and analog response of stake
All parametrization therewith, it should be appreciated that ground is, if the parameter format of stake configuration is $ { parameter name }, when being provided with parameter format
Afterwards, stake parameter also must be provided with, and otherwise tested service request can match unsuccessful, only reset stake parameter, allow stake
Parameter replaces the format parameter of matching condition and analog response, at this moment asks again once, can just see what is obtained
Response.
In the present invention, it should be noted that the different instructions of particular data of the stake in test case data are public affairs
Stake and privately owned stake altogether, particular data mentioned here is specific by the system inside according to the intention difference of simulation external service
Newly-built and called in the link, or crawl redis data are given birth to automatically by different data, the public stake
Into, can be called by the link being associated with same IP address with public stake, the privately owned stake can only be newly-built in the link, and
It is only privately owned for the link.Newly-built stake mentioned here includes self-defined pile function and original function.
Especially it should be noted that, public stake also has records rule, and the recording approach of the public stake has two kinds:1st, from
Outside service systems crawl flow is recorded, scene:Platform (makes data to put down with ApiTester (interface testing platform) and DCT
Platform)) docking when because during the test of ApiTester and DCT, all normal interface requests and response can send one it is public
Redis cache, platform can timing extract these data from redis and automatically generate public stake;2nd, ask when simulator is mismatched
When asking, the directly request of forwarding and response life are intercepted and mismatched by stake transcripter (Stub Recorder) record analog device
Become public stake.The public stake recording rule can be pre-build by internal code and automatically generate after default rule recording rule
Then, it is also possible to artificially arrange in the page.It is described that the public stake and institute automatically generated after default rule is pre-build by internal code
State difference of the pile function with self-defining pile function that the difference for making the public stake of setting by oneself in the page is exactly above-mentioned automatic life.
Described simulation matching has abundant matched rule, and the matching condition of stake is supported in logic between multiple stakes
AND, OR and NOT relation;The operator of matching supports equals (value is equal), contains (value is included), regex (value canonical
Expression formula is matched), below figure, represents the URI of HTTP request comprising Stock/Wms/add and to be that POST request is then returned default
Response.And described default response is generated according to different simulation matching conditions by beanshell dynamics.
After the completion of the initialization of simulator, start monitored link, listen to the request of same IP address, simulator is intercepted please
Ask, analysis request generates required parameter, extract the request object that required parameter is converted to unified encapsulation different agreement, transmission please
Object is sought to stake adapter, stake adapter receives request object, calls a parameter, parses stake parameter, with discharge simulator
With condition and default response, matching order is performed according to simulation matching condition, return corresponding response.
The process of tested service request reception, can start when link startup before the matching execution of simulator common simulation
One InboundChannel (InboundChannel services the passage communicated and between simulator dedicated for A), for monitoring
The request from A services for receiving, after receiving request, is entered by the parameter of (request outlet) to asking Request Extrator
Row is extracted (such as uri, the parameter of body), switchs to a RequestElement (request object) such as, the different associations such as HTTP, OSP
The request content unification of view is converted to the required parameter that RequestElement request objects are packaged with different agreement.Simulator
The incoming Stub Matcher of RequestElement (stake adapter) is matched with the stake of user preset again.Entirely request
The operation for resolving to RequestElement is realized by the internal code of simulator.
In the present invention, simulator conventional simulation matching also has the process of stake parametric solution ginseng before performing, stake can be one
Individual constant, or a variable, so, stake a function are defined as, function parameter incoming when defining parameter,
And parameter incoming during call function is argument, simulator first replaces parameter of the Zhuan Li areas with condition and default response, then
Match again.If the match is successful, simulator returns default response to tested service;Or, if it fails to match, simulator forwarding
Ask to external service, receive external service and tested service is back to the true response asked.
After the step of simulator intercepts the request sent by tested service, the analysis request is simultaneously sent to stake
Also include before the step of orchestration:Simulator monitoring request, according to the monitoring situation of request the implementation status of matching order is judged;
If monitoring request needs to perform matching order, analysis request is simultaneously sent to stake adapter;Or, if monitoring request need not be returned
When returning default response, suspend the link of simulator, do not perform matching, directly forward tested service request and returning to external service is right
The true response of request;Or, if monitoring request need not use simulator, stop the link of simulator, analog service
Listening port is closed, error information is returned.
It should be appreciated that, according to the complexity of enterprise customer's business, for the need for meeting the various matchings of user and forward
Will, the simulator completes the function of monitoring request by the control of Link State, it should be appreciated that ground is to monitor the same of request
When be the demand for combining user, if user can suspend the link of simulator when need not matching directly forwarding, if
User does not use simulator, can stop the link of simulator, and analog service closes listening port, and user initiates request to again mould
Intend device, the error information of connection failure can be received.
Respond module 80, if the match is successful for present day analog, returns described response to tested service.
Respond module 80 is, for completing to simulate one of responsive measures for matching, if the match is successful for present day analog, to return institute
Response in the public stake called completes the task of this analog service to tested service.
In the present invention, this device completes the data for simulating matching by crawl, from the data for completing to simulate matching
It is middle to extract simulation matching condition and respond the public stake for being recorded as calling, without the need for separately configuring public stake, that is, flow is saved,
The intelligent of automatic configuration is improved again.
With reference to Fig. 7, the handling module 10 includes:
First placement unit 11, for capturing the data for completing simulation matching of external system;
Second placement unit 12, for capturing the data that it fails to match during the completed simulation of the system is matched.
In the present invention, the Data Source of the public stake has two big sources, and one derives from external system, another source
In the system.It should be appreciated that, the external system is i.e. non-tested service and the system of non-external service, will be derived from respectively
The data recording for completing to simulate matching of external system is the first public stake, by Data Source in the completed simulation of the system
The data recording that it fails to match in matching is the second public stake.Because data content is different, therefore the name of public stake is different, so as to
Distinguish.
It should be appreciated that, described the system refers to the analog service system for carrying out present day analog matching, the external system
I.e. non-tested service side non-external service side again is referred to, is the other systems of the system communication connection.Described the system it is common
Simulating the process of matching is:The port of monitored link that the system starts begins listening for, when listening to identical with simulator
During the request of IP, the request, packet parsing request are intercepted, and the request after parsing is sent to stake adapter, stake adapter connects
After receiving request, matching order is performed according to simulation matching condition, stake adapter starts testing and control, if the match is successful, stake matching
Device releases the default response of simulation test and is back to tested service;If it fails to match, stake adapter forwards the request to external service,
And true response of the external service to asking is received, it is back to tested service.So, the completed simulation matching of described the system
In the data that it fails to match also should at last once the match is successful the data obtained.So the number for completing simulation matching of external system
Can be completed simulation matched data according to the data that it fails to match in simulation matching completed with the system, and match
Successfully data are stored in the system, therefore without the need for capturing again.
With reference to Fig. 8, the recording module 20 includes:
First recording elements 21, the data recording for the first placement unit to be captured is the first public stake;
The step of simulation matching condition of extraction and response are recorded as first public by the first recording elements 21.Should manage
Solution ground is that described recording step is an automatic recording process, is performed by the first built-in recording elements 21 of the system.
Second recording elements 22, the data recording for the second placement unit to be captured is the second public stake.
The step of simulation matching condition of extraction and response are recorded as second public by the second recording elements 22.Should manage
Solution ground is that described recording step is also an automatic recording process, is performed by the second built-in recording module of the system.
Reference picture 9., first placement unit 11 includes:
Subelement 111 is set up, for setting up the communication connection relation with external system;
First about stator unit 112, for arranging the recording rule of the first public stake;
Set up subelement 111 for set up and external system communication connection, be the precondition that can capture external system data,
And first about stator unit 112 arrange the first public stake recording rule, be to guarantee correctly to grab external system
In desired data, the desired data refer to present day analog match required matching condition and response.
First crawl subelement 113, for the recording rule of the first public stake according to the agreement, captures by external system
Complete simulate matching data genaration redis;
First crawl subelement 113 is performed and correctly grab data needed for external system.(redis is one to the redis
The individual use ANSI C languages increased income write, support network, can be based on internal memory also can persistence log type, Key-Value numbers
According to storehouse, and provide the API of polyglot), it is the caching of the data genaration for completing to simulate matching by external system collection, and can quilt
Network is public.Described redis, is that tester would generally use all of normal interface requests and sound in field tests
The public caching that should be sent.
First extracts subelement 114, for parsing the redis, from the extracting data simulation matching condition for being captured
And response.
First extracts subelement 114 from the redis for being captured, and obtains the step of completed simulation matching condition and response
Suddenly.It is, because the code regulation that redis inside is present, also needs to first parse captured redis, to solve with being worth mentioning
Desired data can be just extracted after analysis.
In the present invention, communication connection is initially set up, arranges the recording rule of the first public stake, according to the first public stake
Record regular could grabbing in outer system simulation data base and complete simulation matched data comprising by external system collection
redis;Again because the redis can be public by network, so the system could realize crawl;Again because redis is data cached
Storehouse, so the captured redis of parsing, extracts simulation matching condition and response is recorded as the first public stake from redis.It is described
Redis is to include the data and generate data cached for completing to simulate matching by external system, and can be public by network.Institute
The redis for stating, is that tester would generally use all of normal interface requests and respond for sending in field tests
Public caching.
With reference to Figure 10, second placement unit 12 includes:
Second about stator unit 121, for arranging the recording rule of the second public stake;
The second recording rule that about stator unit 121 arranges the second public stake is to be to guarantee correctly to grab
Desired data in system, the desired data refers to the required matching condition of present day analog matching and response.
Second crawl subelement 122, for the recording rule of the second public stake according to the agreement, crawl the system is
The data that it fails to match in the simulation matching for completing;
Second crawl subelement 122, could be correct in the data base of the system according to the recording rule of the second public stake
Grab the system it is completed simulation matching data.Described the system is completed to simulate the number that it fails to match in matching
According to, it should be appreciated that ground is that in the completed simulation matching of the system, if it fails to match, the system forwards the request to outside clothes
Business, and response of the external service to asking is received, by this indemnifying measure, matching in the completed simulation matching of the system is lost
The data for losing also once should successfully simulate at last the data after matching.The data that it fails to match should include request,
Complete to simulate the data such as matching condition and response.
Second extracts subelement 123, for from the completed simulation of described extracting data the system that it fails to match
With condition and response.
Second extracts subelement 123 because data are captured from the data base of the system, by the system
Portion's code regulation, so needing the data to being captured to carry out technical finesse can just extract simulation matching condition and response.
In the present invention, second public desired data is derived from the data in the system, so directly in the system about
The recording rule of fixed second public stake;Further according to the recording rule of the second public stake of agreement, the completed mould of crawl the system
Intend the related data in the case of it fails to match in matching, according to the system indemnifying measure that it fails to match:Forward the request to outside
Service, and true response of the external service to asking is received, the result that the indemnifying measure is obtained also should once simulate at last survey
The examination result that the match is successful.It is public that crawl the system data that it fails to match, extraction simulation matching condition and response are recorded as second
Stake altogether.
With reference to Figure 11, the invention also discloses a kind of centralized management platform of analog service, a kind of concentration of analog service
Management platform, it is characterised in that include:The device of the analog service described in one or more different agreements;And the various associations of simulation
View service platform, for receiving request, simulates various protocols service function platform processes service request;And UI interactive module, use
In UI interactive testings model and interaction specifications are set up, static state HTML is edited, to be responsible for the interaction docking of all analog services;And mould
Intend test structure, for simulating different test-types simulation test framework is set up;And log management module, for providing daily record
Management function, the record of daily record can be carried out to the result of simulation test, is checked, downloads and is cleared up;And simulated database, for depositing
All data of storage analog service.
The simulation various protocols service platform includes protocol component module and service Port Management module, the protocol groups
Part module, after reception request, the protocol type on acquisition request URL address hands to the simulator of adapting protocol type
Processed, it includes simulation puppy parc service unit and simulation custom protocol service unit, the serve port management
Module, for changing the port configuration of tested service, external service and simulator according to different agreement service, so that simulator enters
Enter the role of proxy server.
The simulation test framework is to provide the simulation test analytical tool of simulation test use-case, and it includes simulation test
Test module, management module and statistical analysis module, the test module is used to perform the simulation matching life of different test-types
When making, there is provided the simulation test use-case for being called, and described simulation test use-case is repeatedly used;The management module
Simulation test use-case for managing different simulation testing type is called;The statistical analysis module is used to counting and analyzing institute
State the result of simulation test.Simulation test framework different instructions according to expected from simulation test are different test-types,
The simulation test framework that different test-types are set up is simulated again, and the species of the simulation test framework includes unit testing frame
Structure, integration testing framework, functional test framework and stress test framework, every kind of simulation test framework is to extract every kind of test
The independent architecture of the general character part composition of type.
In a further preferred embodiment, the centralized management platform of described analog service also includes decoupling Depending module,
When the situation that decoupling is relied on is presented, the centralized management platform of analog service performs decoupling and relies on, the dependence external service to get around
Interface.
In the present invention, the services of the B outside relying on are originally in tested A services, now in tested A services and outside
Set up the platform of many simulators of open centralized management between B services, and platform by interface from it is different
External server cooperation interaction is processing the business of tested service.It should be appreciated that calculate in coupling be partial to both or
Many persons' affects one another, and decoupling seeks to release this impact, strengthens the respective ability of being individually present, and can infinitely reduce presence
The degree of coupling, but can not eradicate, otherwise just lose mutual association, lose and there is meaning.
The effect of service analog platform is service decoupling, can be used for research and development or tester gets around external service and individually tests
Oneself responsible service.Service decoupling scene:1) A services adjust B services, B to service unavailable for some reason or unstable, example
As login page adjusts a passport.api for logging in, but passport.api not to connect and lead to not log in;2) A services
The data or scene for adjusting B services, B services are difficult to construct, and for example login page adjusts a passport.api for logging in,
Passport.api can in certain extreme cases return some error codes;3) during automatic test, B services are adjusted in A services, due to
B services are uncontrollable, and data Jing often change causes test data Jing often to change.Such as:Jetty can be controlled from test case
Its operation, such that it is able to make automatic test eliminate the reliance on external environment condition, smoothly realizes automatic test.
In the present invention, it is a kind of simulator that the device of above-mentioned all analog services can be approximately considered, tested A services
(i.e. tested service) is originally the services of the B outside relying on (i.e. external service), and present A services are not directed to B services and are changed to point to
Simulator.When A services send a request through simulator, the stake inside simulator is carried out to pre-conditioned and required parameter
Matching, it may occur that two kinds of possibility:1) unmatch, then simulator only does transfer, forward the request to B services, B services are true
Response returns to simulator, and simulator records the request and responds and return the response to A services.Such case, user is not
The presence of simulator can be perceived;2) match, then simulator can at once return to A services the default response of the stake for matching,
Request will not be forwarded to B services.If simulator monitoring request need not return default response, suspend the link of simulator, no
Matching is performed, tested service request is directly forwarded and true response of the returning to external service to asking;Or, if monitoring request
When need not use simulator, stop the link of simulator, analog service closes listening port, returns error information.
After simulator initialization operation, the test case for simulating external service behavior is stored in test module;Perform mould
Block monitors the monitored link port that simulator starts, and listens to the request of same IP, is intercepted, and asks in link by message
Parsing module is parsed, and the request object of unified encapsulation different agreement is converted to after parsing by modular converter, while monitoring
Judge module is monitored to request, judges whether to matching, if desired matches, and stubs receive request, and performing module is held
Row matching order, the matching order is and sends the related data of request to test module, and calls test module, according to
Match condition, respond module returns corresponding response, and the respective response includes default response and true response, if matching into
Work(, returns default response;If it fails to match, external service is forwarded requests to, receive external service and the true response asked is returned
Return.Record the response that module crawl flow records the request that it fails to match and return simultaneously, generate public stake, can by with the public affairs
Altogether the link under the same IP of stake is quoted.
The centralized management platform of described analog service is exactly the mould to said one or the service of multiple different agreements
Intend the platform that device is managed concentratedly, the central principle of analog service platform is an agency service platform, be to be simulated clothes
The simulator of business builds the test environment of adaptation;Suitable simulator and different agreement are found according to the request type of tested service
Link configuration, to provide corresponding service;Centralized management to multiple simulators, configuration is shared, improves joint debugging test work
Make efficiency;Log recording and data base provide the regular service of centralized management.
Special instruction ground is, is that the pressure that platform offer is activated individually surveys bag during constructing function test frame, and described pressure is surveyed
Bag supports puppy parc, such as the service simulation when pressure of http protocol and custom protocol, such as OSP agreements is surveyed, and presses
It is also to arrange to start by the stake of web interface given link to survey bag, without the need for repeating to configure.Step is:A key download platform first
The pressure of offer surveys bag, starts pressure and surveys simulator, carries out pressure simulation test, and by interface test result is directly viewable.
The centralized management platform of described analog service causes the joint debugging of tester to test, develops joint debugging, abnormal scene
And the test of complicated test scene is more simplified, pressure is also caused to survey the simplification of data and environment.
In actual applications, the detailed process of a kind of method of analog service of the invention, device and centralized management platform
It is as follows:
First, the device of analog service
By taking http protocol simulation as an example:
1. simulator carries Nginx and receives request, and Nginx is received according to the forwarding port of the configuration of user, Nginx
After request, the listening port for being forwarded to respective links startup.
2. an InboundChannel can be started when link startup, and (InboundChannel is dedicated for A services
The passage communicated and between simulator), for monitoring the request from A services for receiving.After receiving request, by Request
Extrator is extracted (such as uri, the parameter of body) to the parameter asked, and switchs to a RequestElement request object
(the request content unification of the different agreement such as HTTP, OSP is converted to RequestElement request objects).
3. simulator enters the incoming Stub Matcher of RequestElement (stake adapter) with the stake of user preset again
Row matching.
4. it fails to match will (OutboundChannel be used exclusively for simulator and B by OutboundChannel
The passage of communication for service, only just sets up in forwarding) it is forwarded to real service and receives response, and by Stub
Recorder (stake transcripter, dedicated for the response that record analog device is intercepted and forwarded is recorded as public stake) records response,
Then true response is returned to requesting party's (A services) by InBoundChannel.
5. after the match is successful, default response can be directly returned to requesting party's (A services) by InBoundChannel.
Described simulator realizes the common matching process practical operation flow process of analog service:
1st, the link configuration of simulator, including:Link ID, link IP, link name, link listening port, link monitoring
Whether using matching, destination service Target IP, destination service Host/URL, destination service port and protocol type, wherein, first
Individual link can all play a listening port, destination service user is set it fails to match after forwarding, supported protocol type includes:
HTTP, OSP, Thrift etc.;
2nd, list of link and state are controlled, and Link State includes:Start, suspend (only forwarding mismatch is used) and stop;
3rd, Nginx configurations, for http protocol or Thrift protocol emulations, the built-in Nginx of platform, user is without the need for again in clothes
Nginx is operated on business device, only need to be configured on the page;
4th, JAR assures reason, for RPC protocol emulations, is managed collectively the JAR bags of client, is easy to parse different agreement clothes
Business.
5th, stake configuration, it is intended that simulation matched rule, default response, stake parameter etc. are arranged, and each link can arrange multiple stakes;
6th, rule setting is recorded in public stake, and the recording approach of public stake has two kinds:1st, flow is captured from outside service systems
Recorded;2nd, when simulator is mismatched asks, by the interception of stake transcripter (Stub Recorder) record analog device and not
The request and response that matching is directly forwarded is generated as public stake.The public stake is recorded rule and can be arranged by hand, if not
The condition of presence, can also automatically generate recording rule;
7th, log recording, simulation records the daily record of forwarding when it fails to match, simulation records backspace default sound when the match is successful
The daily record answered;
8th, the service pressure being activated individually surveys bag carries out stress test, service simulation when supporting that the pressure of HTTP and DSP agreements is surveyed,
One key downloads pressure and surveys bag, starts pressure and surveys simulator, and pressure surveys simulator itself and carries out stress test, checks test result.
2nd, the centralized management platform of analog service
The centralized management platform of described analog service is exactly the platform managed concentratedly to the simulator, simulation suit
The central principle of business platform is an agency service platform, and the job content of the platform is included to be simulated the simulation of service
Device builds the test environment of adaptation;Suitable simulator and link configuration are found according to the request type of tested service, to provide
Corresponding service;Centralized management to multiple simulators, configuration is shared, improves joint debugging test job efficiency;Log recording and
Data of storage analog service etc., the operating procedure of platform:
Step one, sets up UI interactive testing models, so that all of operation of user is substantially from the WEB interface of platform
OK, without the need for coding;
Step 2, using test model, generates test frame, including:Unit testing framework, integration testing framework, function
Test frame and stress test framework;
Step 3, performs decoupling and relies on during the situation that decoupling dependence is presented, the interface of dependence external service to get around;
Step 4, writes test event, by simulating the test case of external service or registering self-defined Service events
Api function, by corresponding simulator in the Scripting Edition for having write to test frame;
Step 5, in simulator, implements simulation test matching, returns corresponding response;
Step 6, log recording can carry out the record of daily record, check, downloads and clear up, if the match is successful, return default
The daily record of response;If it fails to match, the daily record of forwarding is returned;
Step 7, simulated database collects test data, stores and manages,
The test frame is suitable for scene:1) functional test, integration testing and unit testing
Test or research staff is when functional test, integration testing, unit testing even functional development is done, by handle
Own services are docked to platform simulator, can simply get around outside unstable, unavailable, complicated external service service around
Open and can simulate any return of external service.User only needs to pay close attention to the functionally and logically right so as to realize of own services
The decoupling of external service is relied on.
2) performance test
When tester does pressure survey, the pressure that platform is provided surveys bag and downloads on pressure survey machine and start.Pressure surveys bag
Can independent startup high performance analog service, peaceful playscript with stage directions body is by interface docking and acquisition stake and link dependency number on startup
According to.Rely on service and make outside pressure of high-volume without the need for deployment outside when user's pressure is surveyed and survey data, as long as simply outside
Dependence is changed to connect simulator and pay close attention to the tested service performance of itself and press survey data.The pressure that the platform is provided surveys bag,
Service simulation when the pressure for holding puppy parc and custom protocol is surveyed, and press that to survey bag be also the stake for using web interface given link
Arrange, without the need for repeating to configure.Step is:The pressure that a key download platform first is provided surveys bag, starts pressure and surveys simulator, carries out pressure
Simulation test, by interface test result is directly viewable.
It should be appreciated that, in the present embodiment, protocol service is divided into puppy parc service and custom protocol service, have
Body ground, servicing analog platform has the scheme of following several simulations for different agreement service:
1) HTTP/Thrift protocol emulations (puppy parc simulation):
Platform simulator is pointed in IP (by the changing DNS configurations) address that user services B, built-in by platform
Nginx points to the request that A is serviced the port of the monitored link that simulator starts.
2) OSP protocol emulations (custom protocol simulation):
The IP of the static routing that the IP that user services B passes through OSP and port are pointing directly at the IP of simulator and correspondence OSP
The port of the monitored link of link.
It should be added that, Nginx is a Reverse Proxy increased income, and platform has simply used Nginx
Port mapping function, for http protocol or Thrift protocol emulations, the built-in Nginx of platform, user need not reuse server
Operation Nginx, only need to configure on the page.Such as it is in Nginx configurations page configuration:Server Name:
cart.api.vip.com listen Port:80 acquiescence listening ports:1234, it is actual to generate a configuration text in Nginx
Part content is as follows:
Represent the request in cart.api.vip.com domains and port is 80, it is 1234 that unification is forwarded to listening port
Link.For example request is http://cart.api.vip.com:80/xxx, after Nginx is forwarded http is changed into://
127.0.0.1:1234。
The principle of Nginx reverse proxys is referred to proxy server receive the connection request on internet, then will
Request is transmitted to the server on internal network, and the result obtained from server is returned to into request connection on internet
Client, now proxy server externally will appear as a server.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row
His property is included, so that a series of process, method, article or device including key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
Also there is other identical element in the process of key element, method, article or device.The embodiments of the present invention are only
Description, does not represent the quality of embodiment.Through the above description of the embodiments, those skilled in the art can be clearly
Recognize that above-described embodiment method can add the mode of required generic hardware system to realize by software, naturally it is also possible to pass through
Hardware, but in many cases the former is more preferably embodiment.Based on such understanding, the technical configuration of the present invention substantially or
Person says that the part contributed to prior art can be embodied in the form of software product, the computer software product storage
In a storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be
The electronic equipments such as mobile phone, computer, server or the network equipment) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every in the present invention
Inventive concept under, the equivalent structure transformation made using description of the invention and accompanying drawing content, or directly/be used in it indirectly
The technical field of his correlation is included in the scope of patent protection of the present invention.