CN106603283A - Service simulation method and device, concentrated management platform - Google Patents

Service simulation method and device, concentrated management platform Download PDF

Info

Publication number
CN106603283A
CN106603283A CN201611152471.XA CN201611152471A CN106603283A CN 106603283 A CN106603283 A CN 106603283A CN 201611152471 A CN201611152471 A CN 201611152471A CN 106603283 A CN106603283 A CN 106603283A
Authority
CN
China
Prior art keywords
simulation
service
stake
data
matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611152471.XA
Other languages
Chinese (zh)
Other versions
CN106603283B (en
Inventor
马家麒
梁议尹
黄嵘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vipshop Guangzhou Software Co Ltd
Original Assignee
Guangzhou Vipshop Information And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Vipshop Information And Technology Co Ltd filed Critical Guangzhou Vipshop Information And Technology Co Ltd
Priority to CN201611152471.XA priority Critical patent/CN106603283B/en
Publication of CN106603283A publication Critical patent/CN106603283A/en
Application granted granted Critical
Publication of CN106603283B publication Critical patent/CN106603283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a service simulation method. The service simulation method comprises steps that data after simulation matching accomplishment is acquired, and simulation matching conditions and response are extracted from the data after simulation matching accomplishment and are recorded as a public pile; an IP address of the public pile is configured, a link having an IP address same as the public pile is controlled for calling the public pile; the simulation matching conditions of the called public pile are utilized to perform a present simulation matching command emitted by a tested service having an IP address same as the link; if present simulation matching succeeds, the response returns to the tested service. The invention further discloses a service simulation device and a concentrated management platform, redis data of an external system, or unsuccessful-matching request data of the present system and response are timely acquired and are recorded as the public pile, not only can workload of test tasks be reduced, work efficiency of joint debugging tests is improved, but also flow saving and time saving are realized.

Description

A kind of method of analog service, device and centralized management platform
Technical field
The present invention relates to field tests, more particularly to a kind of method of analog service, device and centralized management platform.
Background technology
With the people that send out of social science and technology, business scenario and joint debugging that the system of the management internal services of enterprise is related to Test data is extremely complex, and enterprise's application platform seldom isolates and exists, and major applications platform is all to being connected to different suppliers Platform, with assembly serve one.And existing various service phantom frames or system be substantially need to write code and And mainly research and development are only limitted to unit testing or integrated survey, and only support the simulation of the puppy parcs such as HTTP, SOCKS.And it is right Mainly doing in tester is Black-box Testing, but code capacity is restricted and traffic pressure is big, to write a mock mould from Intend external service difficult, affect very much work efficiency.Particularly, some Large-Scale Interconnected net companies, a system is often Multiple external systems are relied on, the business scenario and joint debugging test data being related to is extremely complex, if each business scenario and connection Test data is adjusted to encode one by one, test job amount is big, and test job inefficient.
The content of the invention
The main object of the present invention is to propose a kind of method of analog service, device and centralized management platform, it is intended to passed through In real time the simulation region that completes of crawl external system matches unsuccessful request data and response automatic recording with data or the system Into public stake, the workload for both having reduced test assignment improves the work efficiency of joint debugging test, and flow is saved again, saved into This.
For achieving the above object, a kind of method of analog service proposed by the present invention, including step:Crawl completes simulation The data of matching, from the extracting data simulation matching condition and response for completing simulation matching public stake is recorded as;Configuration is public Altogether the IP address of stake, controls with public stake there is the link of same IP address to call public stake;With in the public stake called Simulation matching condition, perform the present day analog that sent by the tested service with the link with same IP address and match life Order;If the match is successful for present day analog, described response to tested service is returned.
Preferably, the crawl completes the data for simulating matching, from the extracting data simulation for completing to simulate matching The step of matching condition and response are recorded as public stake includes:The data for completing simulation matching of crawl external system, will be grabbed The data recording for taking is the first public stake;The data that it fails to match in the completed simulation matching of crawl the system, will be captured Data recording be the second public stake.
Preferably, redis is the caching of the data genaration for completing to simulate matching by external system collection, and can be public by network With, it is described crawl external system complete simulate matching data, by the data recording for being captured be first public the step of Including:The communication connection relation with external system is set up, arranges the recording rule of the first public stake;According to the agreement first is public Altogether the recording rule of stake, captures the redis generated by external system;The captured redis of parsing, extracts from redis and completes Simulation matching condition and response;It is the first public stake to record extracted simulation matching condition and response.
Preferably, the data that it fails to match in the completed simulation matching of described crawl the system, it fails to match from described Extracting data simulation matching condition and response include the step of being recorded as second public:Arrange the recording of the second public stake Rule;According to the recording rule of the second public stake of the agreement, it fails to match in the completed simulation matching of crawl the system Data;From the extracting data simulation matching condition and response that are captured;The extracted simulation matching condition of recording and response For the second public stake.
Preferably, described with the simulation matching condition, perform the same IP address that the link is received works as front mould The step of intending matching order includes:The request that reception is matched with the present day analog of the same IP address of the link;Parsing is called Public stake, to discharge simulation matching condition and response;With the simulation matching condition for being discharged, the current of the request is performed Simulation matching order.
The invention also discloses a kind of device of analog service, including:Handling module, for crawl simulation matching is completed Data;Record module, for by the data recording for being captured be public stake;Parsing module, for parsing called it is public Stake, to discharge simulation matching condition and response;IP configuration modules, for configuring the IP address of the public stake;Control module, uses With public stake there is the link of same IP address to call public stake in control;Receiver module, it is same with the link for receiving The request of the present day analog matching of IP address;Performing module, receives for the simulation matching condition, performing the link Same IP address present day analog matching order;Respond module, if the match is successful for present day analog, return it is described respond to Tested service.
Preferably, the handling module includes the first placement unit and the second placement unit, and the recording module includes the One recording elements and the second recording elements;First placement unit, for capturing the data for completing simulation matching of external system;The Two placement units, for capturing the data that it fails to match during the completed simulation of the system is matched;First recording elements, for inciting somebody to action The data recording that first placement unit is captured is the first public stake;Second recording elements, for the second placement unit to be grabbed The data recording for taking is the second public stake.
Preferably, first placement unit includes:Subelement is set up, is closed with the communication connection of external system for setting up System;First about stator unit, for arranging the recording rule of the first public stake;First crawl subelement, for according to it is described about The recording rule of the first fixed public stake, captures by the redis of the data genaration for completing to simulate matching of external system;First carries Subelement is taken, for parsing the redis, from the extracting data simulation matching condition and response that are captured.
Preferably, second placement unit includes:Second about stator unit, for arranging the recording rule of the second public stake Then;Second crawl subelement, for the recording rule of the second public stake according to the agreement, the completed mould of crawl the system Intend the data that it fails to match in matching;Second extract subelement, for from described extracting data the system that it fails to match The simulation matching condition for completing and response.
The invention also discloses a kind of centralized management platform of analog service, including one or more different agreements are as above The device of described analog service;And simulation various protocols service platform, for receiving request, simulate various protocols service function Platform processes service request;And UI interactive testing modules, for setting up UI interactive testings model and interaction specifications, editor is static HTML, to be responsible for the interaction docking of all analog services;And simulation test framework, the test-types for simulating different set up mould Intend test frame;And log management module, for providing log management function, the note of daily record can be carried out to the result of simulation test Record, check, download and clear up;And simulated database, for storing all data of analog service.
Completed simulation matched data or the system by crawl external system in real time of the invention matches unsuccessful asking Ask data and response automatic recording into public stake, the workload for both having reduced test assignment improves the work efficiency of joint debugging test, Flow is saved again, has saved cost.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical configuration of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Structure according to these accompanying drawings obtains other accompanying drawings.
Fig. 1 is the schematic flow sheet of the embodiment of method one of analog service of the present invention;
Fig. 2 is that present invention crawl completes to simulate the data of matching, from the extracting data simulation for completing to simulate matching Matching condition and response are recorded as the schematic flow sheet of public stake;
Fig. 3 is the data for completing simulation matching of present invention crawl external system, is first by the data recording for being captured The schematic flow sheet of public stake;
Fig. 4 is the data that it fails to match in the completed simulation matching of present invention crawl the system, by the data for being captured It is recorded as the schematic flow sheet of the second public stake;
Fig. 5, with the simulation matching condition, performs working as the same IP address that the link is received for of the present invention The schematic flow sheet of front simulation matching order;
Fig. 6 is the high-level schematic functional block diagram of the device of analog service of the present invention;
Fig. 7 is the function refinement schematic diagram of handling module in one embodiment of the invention;
Fig. 8 is the function refinement schematic diagram that module is recorded in one embodiment of the invention;
Fig. 9 is the function refinement schematic diagram of the first placement unit in one embodiment of the invention;
Figure 10 is the function refinement schematic diagram of the second placement unit in one embodiment of the invention;
Figure 11 is the structural representation of the centralized management platform of analog service in one embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
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.

Claims (10)

1. a kind of method of analog service, it is characterised in that including step:
Crawl completes the data for simulating matching, from the extracting data simulation matching condition and the response record that complete to simulate matching It is made as public stake;
The IP address of public stake is configured, control with public stake there is the link of same IP address to call public stake;
With the simulation matching condition in the public stake called, perform by the tested clothes with the link with same IP address The simulation matching order that business sends;
If the match is successful for present day analog, described response to tested service is returned.
2. the method for analog service as claimed in claim 1, it is characterised in that the crawl completes the number for simulating matching According to simulate matching condition and response from the extracting data for completing simulation matching includes the step of being recorded as public stake:
The data for completing simulation matching of crawl external system, are the first public stake by the data recording for being captured;
The data that it fails to match in the completed simulation matching of crawl the system, are second public by the data recording for being captured Stake.
3. the method for analog service as claimed in claim 2, it is characterised in that redis be external system generate include outer The caching of the data for completing to simulate matching of system, and can be public by network, and the crawl external system completes simulation The data matched somebody with somebody, by the data recording for being captured be first public the step of include:
The communication connection with external system is set up, arranges the recording rule of the first public stake;
According to the recording rule of the first public stake of the agreement, the redis generated by external system is captured;
The captured redis of parsing, extracts completed simulation matching condition and response from redis;
It is the first public stake to record extracted simulation matching condition and response.
4. the method for analog service as claimed in claim 2, it is characterised in that the completed simulation of described crawl the system The data that it fails to match in matching somebody with somebody, are recorded as second public from the extracting data that it fails to match simulation matching condition and response The step of stake, includes:
Arrange the recording rule of the second public stake;
According to the recording rule of the second public stake of the agreement, what it fails to match in the completed simulation matching of crawl the system Data;
From the extracting data simulation matching condition and response that are captured;
It is the second public stake to record extracted simulation matching condition and response.
5. the method for the analog service as described in any one of Claims 1-4, it is characterised in that described with the simulation With condition, the present day analog of the same IP address that the execution link is received matches the step of ordering to be included:
Receive and there is the request that the present day analog that the tested service of same IP address sends matches with the link;
The public stake that parsing is called, to discharge simulation matching condition and response;
With the simulation matching condition for being discharged, the present day analog matching order of the request is performed.
6. a kind of device of analog service, it is characterised in that include:
Handling module, the data for simulating matching are completed for crawl;
Record module, for by the data recording for being captured be public stake;
Parsing module, for parsing the public stake called, to discharge simulation matching condition and response;
IP configuration modules, for configuring the IP address of the public stake;
Control module, with public stake there is the link of same IP address to call public stake for control;
Receiver module, for receiving and the link has what the present day analog that the tested service of same IP address sends match to ask Ask;
Performing module, for the simulation matching condition, performing the present day analog of the same IP address that the link is received Matching order;
Respond module, if the match is successful for present day analog, returns described response to tested service.
7. the device of analog service as claimed in claim 6, it is characterised in that the handling module includes the first placement unit With the second placement unit, the recording module includes the first recording elements and the second recording elements;
First placement unit, for capturing the data for completing simulation matching of external system;
Second placement unit, for capturing the data that it fails to match during the completed simulation of the system is matched;
First recording elements, the data recording for the first placement unit to be captured is the first public stake;
Second recording elements, the data recording for the second placement unit to be captured is the second public stake.
8. the device of analog service as claimed in claim 7, it is characterised in that first placement unit includes:
Subelement is set up, for setting up the communication connection relation with external system;
First about stator unit, for arranging the recording rule of the first public stake;
First crawl subelement, for the recording rule of the first public stake according to the agreement, captures by the complete of external system Into the redis of the data genaration of simulation matching;
First extracts subelement, for parsing the redis, from the extracting data simulation matching condition and response that are captured.
9. the device of analog service as claimed in claim 7, it is characterised in that second placement unit includes:
Second about stator unit, for arranging the recording rule of the second public stake;
Second crawl subelement, for the recording rule of the second public stake according to the agreement, crawl the system is completed The data that it fails to match in simulation matching;
Second extract subelement, for from described extracting data the system that it fails to match it is completed simulation matching condition and Response.
10. the centralized management platform of a kind of analog service, it is characterised in that include:
The device of the analog service as described in any one of claim 6-10 of one or more different agreements;And
Simulation various protocols service platform, for receiving request, simulates various protocols service function platform processes service request;And
UI interactive module, for setting up the model and interaction specifications of UI interactive testings, edits static state HTML, to be responsible for all simulations The interaction docking of service;And
Simulation test structure module, for simulating different test-types simulation test framework is set up;And
Decoupling Depending module, during for the situation that decoupling dependence is presented, performs decoupling and relies on, the dependence external service to get around Interface;And
Log management module, for providing log management function, the result of simulation test can be carried out daily record record, check, Download and clear up;And
Simulated database, for storing all data of analog service.
CN201611152471.XA 2016-12-13 2016-12-13 A kind of method, apparatus and centralized management platform of analog service Active CN106603283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611152471.XA CN106603283B (en) 2016-12-13 2016-12-13 A kind of method, apparatus and centralized management platform of analog service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611152471.XA CN106603283B (en) 2016-12-13 2016-12-13 A kind of method, apparatus and centralized management platform of analog service

Publications (2)

Publication Number Publication Date
CN106603283A true CN106603283A (en) 2017-04-26
CN106603283B CN106603283B (en) 2019-09-13

Family

ID=58802436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611152471.XA Active CN106603283B (en) 2016-12-13 2016-12-13 A kind of method, apparatus and centralized management platform of analog service

Country Status (1)

Country Link
CN (1) CN106603283B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107579879A (en) * 2017-09-26 2018-01-12 深圳震有科技股份有限公司 A kind of network simulation method of testing, emulation server and storage medium
CN108268375A (en) * 2018-01-12 2018-07-10 深圳壹账通智能科技有限公司 Applied program testing method, device, computer equipment and storage medium
CN108897691A (en) * 2018-06-29 2018-11-27 百度在线网络技术(北京)有限公司 Data processing method, device, server and medium based on interface analog service
CN109271325A (en) * 2018-10-26 2019-01-25 携程旅游网络技术(上海)有限公司 Test method, system, electronic equipment and the storage medium of application
CN110032454A (en) * 2018-01-12 2019-07-19 北京京东尚科信息技术有限公司 Remote invocation method, system and relevant device and computer readable storage medium
CN110704262A (en) * 2019-09-17 2020-01-17 广州市玄武无线科技股份有限公司 Dynamic service logic debugging method, system, storage medium and intelligent device
CN112702436A (en) * 2020-12-29 2021-04-23 广州品唯软件有限公司 Flow recording method and device, computer equipment and storage medium
CN114553929A (en) * 2022-01-10 2022-05-27 多点生活(成都)科技有限公司 Recording playback enhancement method and device for recording and calling dynamic Mock
CN114973515A (en) * 2022-01-25 2022-08-30 浙江浩瀚能源科技有限公司 Plug-and-play charging function testing method and device for charging pile and storage medium
CN115033495A (en) * 2022-08-02 2022-09-09 荣耀终端有限公司 Pressure measurement model creating method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873626A (en) * 2005-06-01 2006-12-06 中兴通讯股份有限公司 Unit test system and method for automatic generating stub and driving function
CN101110055A (en) * 2007-08-31 2008-01-23 中兴通讯股份有限公司 Device for implementing general use pile function in unit test and implementing method thereof
CN102740342A (en) * 2012-06-08 2012-10-17 大唐移动通信设备有限公司 Network management equipment performance simulation test method and system
US20130311977A1 (en) * 2011-02-02 2013-11-21 Teknologian turtkimuskeskus VTT Arrangement and method for model-based testing
CN104683386A (en) * 2013-11-26 2015-06-03 腾讯科技(深圳)有限公司 Pile service implementation method and device capable of customizing response
CN105302721A (en) * 2015-10-29 2016-02-03 普元信息技术股份有限公司 System and method for realizing integration testing of centralized analog server in cloud computing platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873626A (en) * 2005-06-01 2006-12-06 中兴通讯股份有限公司 Unit test system and method for automatic generating stub and driving function
CN101110055A (en) * 2007-08-31 2008-01-23 中兴通讯股份有限公司 Device for implementing general use pile function in unit test and implementing method thereof
US20130311977A1 (en) * 2011-02-02 2013-11-21 Teknologian turtkimuskeskus VTT Arrangement and method for model-based testing
CN102740342A (en) * 2012-06-08 2012-10-17 大唐移动通信设备有限公司 Network management equipment performance simulation test method and system
CN104683386A (en) * 2013-11-26 2015-06-03 腾讯科技(深圳)有限公司 Pile service implementation method and device capable of customizing response
CN105302721A (en) * 2015-10-29 2016-02-03 普元信息技术股份有限公司 System and method for realizing integration testing of centralized analog server in cloud computing platform

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107579879A (en) * 2017-09-26 2018-01-12 深圳震有科技股份有限公司 A kind of network simulation method of testing, emulation server and storage medium
CN108268375A (en) * 2018-01-12 2018-07-10 深圳壹账通智能科技有限公司 Applied program testing method, device, computer equipment and storage medium
CN110032454A (en) * 2018-01-12 2019-07-19 北京京东尚科信息技术有限公司 Remote invocation method, system and relevant device and computer readable storage medium
CN108897691B (en) * 2018-06-29 2022-02-15 百度在线网络技术(北京)有限公司 Data processing method, device, server and medium based on interface simulation service
CN108897691A (en) * 2018-06-29 2018-11-27 百度在线网络技术(北京)有限公司 Data processing method, device, server and medium based on interface analog service
CN109271325A (en) * 2018-10-26 2019-01-25 携程旅游网络技术(上海)有限公司 Test method, system, electronic equipment and the storage medium of application
CN110704262A (en) * 2019-09-17 2020-01-17 广州市玄武无线科技股份有限公司 Dynamic service logic debugging method, system, storage medium and intelligent device
CN112702436A (en) * 2020-12-29 2021-04-23 广州品唯软件有限公司 Flow recording method and device, computer equipment and storage medium
CN112702436B (en) * 2020-12-29 2023-06-20 广州品唯软件有限公司 Flow recording method, device, computer equipment and storage medium
CN114553929A (en) * 2022-01-10 2022-05-27 多点生活(成都)科技有限公司 Recording playback enhancement method and device for recording and calling dynamic Mock
CN114553929B (en) * 2022-01-10 2024-04-12 多点生活(成都)科技有限公司 Recording playback enhancement method and device for recording call dynamic Mock
CN114973515A (en) * 2022-01-25 2022-08-30 浙江浩瀚能源科技有限公司 Plug-and-play charging function testing method and device for charging pile and storage medium
CN115033495A (en) * 2022-08-02 2022-09-09 荣耀终端有限公司 Pressure measurement model creating method and electronic equipment
CN115033495B (en) * 2022-08-02 2022-12-20 荣耀终端有限公司 Pressure measurement model creating method and electronic equipment

Also Published As

Publication number Publication date
CN106603283B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN106603283B (en) A kind of method, apparatus and centralized management platform of analog service
CN106776313A (en) A kind of method of analog service, device and centralized management platform
US7117411B2 (en) Methods and systems for testing communications network components
CN104579822B (en) Mobile application automated performance testing system and method based on Http agreements
US8713177B2 (en) Remote management of networked systems using secure modular platform
US7006963B1 (en) Intelligent workstation simulation-simulation at protocol stack level 2
US7467078B2 (en) Portable distributed application framework
CN105959177A (en) Game server stress test script generation method and device
CN102571396A (en) Communication network system and routing inspection subsystem and routing inspection method of communication equipment
CN104486146B (en) A kind of communication means between test console and test equipment
CN111522727B (en) Simulation object test method, device and system
CN105516337B (en) Web site based on dynamic load mechanism docks analytic method
CN111176662B (en) Architecture implementation method capable of being freely assembled and deployed in distributed and single environment and deployment method
CN113658591A (en) Voice interaction adaptation system for smart home
CN101997721A (en) System, method and corresponding device for managing telecommunication network
CN115150377A (en) Method and device for calling and processing simulation interface
CN106936658A (en) The method of testing and test platform of test case, simulation test equipment
CN104836831B (en) A kind of object method of servicing for Internet of Things
CN107844486A (en) A kind of method and system of analysis webpage problem for client
CN103944779B (en) A kind of WAP service features monitoring method and system
CN100518097C (en) Simple detection method for GGSN facilities
CN113282374B (en) Server control method, device and system
CN111221687B (en) Cloud storage testing system and method
CN114390093A (en) Virtual gateway simulation system
CN106789225A (en) A kind of method and device of interface operation port mapping configuration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171205

Address after: 510000 Guangzhou City, Guangzhou, Guangdong, Fangcun Avenue, one of the 314 self compiled

Applicant after: Guangzhou Pinwei Software Co., Ltd.

Address before: Liwan District Fangcun Huahai street Guangzhou city Guangdong province 510000 No. 20 self 1-5 building (only for office use)

Applicant before: Guangzhou VIPSHOP Information and Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220106

Address after: 510000 Room 601, 128 Dingxin Road, Haizhu District, Guangzhou City, Guangdong Province (office only)

Patentee after: Vipshop (Guangzhou) Software Co.,Ltd.

Address before: 510000 No. 314, Fangcun Avenue, Liwan District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU PINWEI SOFTWARE Co.,Ltd.