CN105302721A - System and method for realizing integration testing of centralized analog server in cloud computing platform - Google Patents
System and method for realizing integration testing of centralized analog server in cloud computing platform Download PDFInfo
- Publication number
- CN105302721A CN105302721A CN201510724200.6A CN201510724200A CN105302721A CN 105302721 A CN105302721 A CN 105302721A CN 201510724200 A CN201510724200 A CN 201510724200A CN 105302721 A CN105302721 A CN 105302721A
- Authority
- CN
- China
- Prior art keywords
- service
- module
- data
- integration testing
- analog
- 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
Links
Abstract
The invention relates to a system and a method for realizing the integration testing of a centralized analog server in a cloud computing platform. The system comprises an analog server centralized management platform and an analog multi-protocol service function platform, wherein the analog server centralized management platform is used for carrying out centralized management on a receiving request flow of the analog multi-protocol service function platform, a processing service request flow and an analog behavior execution operation in the processing service request flow; and the analog multi-protocol service function platform is used for configuring basic parameters required by a current analog integration testing and a simulator which needs to be used in the current analog integration testing and is used for executing the receiving request flow, the processing service request flow and the analog behavior execution operation in the processing service request flow. The system and the method, which adopt the structure, can simulate the connection of the integration testing before integration, can simulate all practical situations, are convenient and quick in operation, quickly prepare an integration testing environment, carry out the integration testing in advance, effectively improve integration testing efficiency among application systems and have the advantages of being stable and reliable in operation and wide in applicable range.
Description
Technical field
The present invention relates to computer software technical field, particularly relate to cloud computing application system development technical field, specifically refer to the system and method realizing lumped modelling server integration testing in a kind of cloud computing platform.
Background technology
Along with the development of social science and technology, the computer software of large enterprise is all in continuous progress, enterprise application system is seldom isolated to be existed, and most of system is all that the service that different software supplier provides is assembled together, and externally provides unified business handling.The testing procedure and integration testing is absolutely necessary wherein, function served as bridge, between unit testing and system testing, plays in its boundary, and guaranteeing in each unit combination can by set intention cooperating operation together.Because numerous software systems are bolted together operation, in software development process, could not obtain integrated timely, and to time really integrated, just pinpoint the problems, and when integrated some system malfunctions or problem, also need to wait for that perimeter systems recovers normal, ability continual exploitation and test, make the integration testing of system become difficulty.
Integration testing is done in advance by realizing lumped modelling server system, make software vendor in the process of stand-alone development software first by the mutual docking between emulating server simulation system, realize real-time integrated, accomplish integrated in advance, reduce the follow-up integrated unnecessary environmental problem brought and manifest error, problem is made to strangle in cradle, and integration testing is advanceed to the development phase of software life-cycle, can in advance the various boundary value of simplation verification and be difficult to when real system is integrated occur test scene, substantially increase the correctness of integration testing, the efficiency of follow-up integration testing can also be improved, shorten the time of integration testing.
Integration testing is part indispensable in method for testing software, and its measurand is the combination between unit, the interface between test module and module, on the basis of unit testing, all modules is required to be assembled into subsystem or system according to Outline Design; Interface between main concern different units module and cooperation, the correctness of the intermodule interface information content, mutual call relation whether meet design.
Existing integration test method mainly contains two kinds, and one is non-proliferative formula integration mode: first test each module respectively, more all modules are once all assembled desired system by designing requirement, then carries out integrated testability.Make may find a lot of mistake in this way, but be each location of mistake and correct very difficult, and may introduce new mistake again while correction one is wrong, new and old mistake mixes, and more difficultly concludes the reason and position of makeing mistakes.
One is incremental integration mode: first carry out module testing to module one by one, then these modules are progressively assembled into larger system, and limit fillet test in the process of assembling, to find the problem produced in connection procedure; The software systems of requirement are progressively assembled into finally by propagation; Conventional enrichment procedure has: top-down integration testing, bottom-up integration testing, core integration testing etc.Wherein core integration testing specifically refers to that the thought of the leading integration testing method of core system first carries out integration testing to kernel software parts, and the basis that test is passed through is integrated in core system one by one by the significance level of each peripheral software parts again; Add peripheral software parts at every turn and all produce a product baseline, form stable software product until last.Integrating process corresponding to core system leading integration testing method is a helical curve being tending towards closed gradually, the process that representative products is progressively shaped.
After current integration testing technology all needs functional module elements to test, just can carry out integration testing, and if integration testing between multiple system, also need to wait for that the module interface development progress of docking system determines whether carrying out integration testing;
Next is that two systems are in the integration testing of reality, do not remove to revise real code for specific integration testing use-case, by some special abnormality processing flow processs of very difficult simulation, thus make in order to simulating actual conditions and remove modified module interface code, easily induce one new problem, cause the time lengthening of integration testing, the efficiency of integration testing reduces.
Summary of the invention
The object of the invention is the shortcoming overcoming above-mentioned prior art, provide a kind of can realize can simulating before integrated integration testing docking, all actual conditions, swift and convenient to operate, quick preparation integration testing environment can be simulated, carry out the system and method that integration testing efficiency between integration testing, flexible and changeable, effective raising application system, stable and reliable operation, the scope of application realize lumped modelling server integration testing comparatively widely in cloud computing platform in advance.
To achieve these goals, the system and method realizing lumped modelling server integration testing in cloud computing platform of the present invention has following formation:
Realize the system of lumped modelling server integration testing in this cloud computing platform, its principal feature is, described system comprises:
Emulating server centralized management platform, in order to reception request flow process, the simulation behavior executable operations processed in se ce request procedure and process se ce request procedure of centralized management simulation various protocols service platform;
Simulation various protocols service function platform, in order to configure use needed for basic parameter needed for present day analog integration testing and present day analog integration testing simulator, in integration testing process, perform the simulation behavior executable operations received in request flow process, process se ce request procedure and process se ce request procedure.
Preferably, described emulating server centralized management platform comprises:
Protocol component module, resolves the request of different agreement in order to adaptation;
Emulating server runtime engine module, in order to receiving from external reference request, the service environment of operation of carrying out with Web Application Server and local file system communicating, providing for simulating behavior enforcement engine module and packet parsing module;
Data in order to will the message data of coming be asked to resolve according to definition rule, and be passed to simulation behavior execution module by packet parsing module;
Simulation behavior enforcement engine module, in order to take out simulated data and to perform analog service program according to the logic rules designed in advance from service interface repository;
Simulated data memory module, in order to store and management simulated data information;
Service interface configuration module, in order to the application programming interfaces of encapsulation simulation Service data format definition.
More preferably, described simulated data information comprise analog service interface coding, simulated data, simulated data state, have permission and use the system IP of simulated data.
Preferably, described simulation various protocols service function platform comprises:
Simulator administration module, in order to provide the simulator management function of user interface;
By analog service application programming interfaces management configuration module, in order to provide the interface management configuration feature of user interface, by the definition of the form of the service interface of simulating, the management function of parameter configuration of coming in and going out and the configuration feature of simulated data;
Emulating server system configuration parameter administration module, in order to provide the systematic parameter administration configuration function of user interface;
Log management module, the function managed in order to provide client log.
More preferably, the systematic parameter of described user interface comprises thread pool, system journal and delay parameter.
The invention still further relates to a kind of method realizing lumped modelling server integration testing based on described system in cloud computing platform, it is characterized in that, described method comprises the following steps:
(1) basic parameter needed for simulation various protocols service function platform configuration present day analog integration testing described in and the required simulator used of present day analog integration testing;
(2) the emulating server centralized management platform courses simulation various protocols service function platform described in performs and receives request flow process;
(3) the emulating server centralized management platform courses simulation various protocols service function platform described in performs process se ce request procedure;
(4) the emulating server centralized management platform courses simulation various protocols service function platform described in performs the simulation behavior executable operations in process se ce request procedure.
Preferably, described simulation various protocols service function platform comprises simulator administration module, by analog service application programming interfaces management configuration module and emulating server system configuration parameter administration module, described step (1), comprises following sub-step:
(1-1) the emulating server centralized management platform described in starts jetty server and the context of initialization web application container;
(1-2) systematic parameter of the required user interface used of present day analog integration testing is configured in the emulating server system configuration parameter administration module described in;
(1-3) the form definition being carried out service interface by the service that analog service application programming interfaces management configuration module is simulated needed for present day analog integration testing described in is arranged;
(1-4) the required simulator used of simulator administration module configuration present day analog integration testing described in;
(1-5) user starts the simulator used needed for present day analog integration testing in simulator managing listings.
More preferably, described emulating server centralized management platform comprises protocol component module, emulating server runtime engine module, packet parsing module, simulation behavior enforcement engine module, simulated data memory module and service interface configuration module, described step (2), comprises following sub-step:
(2-1) user starts the simulator of one or more different agreement in described emulating server centralized management platform;
(2-2) the simulation various protocols service function platform described in starts to carry out initialization operation;
(2-3) the emulating server runtime engine module described in starts the jetty service of one or more simulator according to pre-configured service IP and port in described simulator administration module, and the context data of initialization web container running environment and the configuration of Embedded Application server;
(2-4) the simulation various protocols service function platform described in starts to monitor open port, prepares to receive the request msg that periphery application system is sent;
(2-5) the periphery application system described in sends to described protocol component module the message data request that address is lumped modelling server URL;
(2-6) after the protocol component module described in receives message data request, the protocol type on obtaining request URL address;
(2-7) the protocol component module analysis request data described in, the emulating server handing to adapting protocol type processes.
Further, described step (3), comprises following sub-step:
(3-1) the packet parsing module described in receives the message request data of emulating server runtime engine module forwards;
(3-2) the packet parsing module described in is according to the message data rule parsing message request data of design;
(3-3) the packet parsing module described in reads by Service interface definition data in analog service application programming interfaces management configuration module;
(3-4) the packet parsing module described in is according to the service definition of the crucial message data field match query in service interface repository parsed, and the title according to service definition inquires the simulated data used needed for current integration testing use-case in analog service tables of data.
Again further, described step (4), comprises following sub-step:
(4-1) the simulation behavior enforcement engine module described in receives the simulated data that packet parsing module passes over;
(4-2) the simulation behavior enforcement engine module described in assembles simulated data, the form return data according to the return data rule of Service interface definition repository according to the logic rules processing of design:
(4-3) according to the interface definition requirement of current integration testing use-case service configuration, described simulation behavior enforcement engine module is the need of the periphery application system detailed analog message data being returned to request, or general is called the periphery application system that successful information data return to request, finally completes the invoked procedure of whole analog service;
(4-4) the simulation behavior enforcement engine module described in by the substantial length of operation process record of analog service behavior in system journal.
Again further, described step (4-2), comprises following sub-step:
If (4-2-1) this service interface configuration return data rule is file+massage pattern, then the file of generation can be saved in the analog message data being bundled to together in file system and by file path data and returning;
If (4-2-2) this service interface configuration return data rule is pure file mode, then can the file of generation be saved in file system, then file path data be bundled in the message data returned;
If (4-2-3) this service interface configuration return data rule is hard news pattern, then directly the simulated data assembled to be bundled to together in the message data returned.
Have employed the system and method realizing lumped modelling server integration testing in the cloud computing platform in this invention, there is following beneficial effect:
(1) owing to being received the message data that periphery operation system is sent in lumped modelling server system by protocol component, according to the URL address of civilian request of data of above delivering newspaper, can match on corresponding simulator, simulator is according to the logic realization of oneself, first resolved asking the message data of coming by packet parsing module, then extract critical field data simulation behavior execution module different according to configuration operation in Service interface definition storehouse again, thus reach the effect that the analog service called in integration testing is performed; Last according to the data back conditions configured in Service interface definition storehouse, the need of returning detailed analog message data to the operation system called, finally complete the invoked procedure of whole analog service; And the service function that each system of periphery provides can be realized, unified carries out analog service interface configuration, and concentrated carries out management and supervision to various simulator, thus achieves the system that lumped modelling server carries out integration testing;
(2) support of various agreement is externally provided, prepares integration testing environment fast, effectively improve the integration testing efficiency between application system, the docking of integration testing can be simulated before not only integrated, carry out integration testing in advance, and it is swift and convenient to operate, the operational efficiency of whole emulating server environment is higher, flexible and changeable, system resource can make full use of, use method of the present invention can be quick simultaneously, build lumped modelling server intuitively, substantially increase the integration testing efficiency between application system, and stable and reliable working performance, the scope of application is comparatively extensive, the common problem solving integration testing in the industry can be helped, accelerate the research and development speed of software, for further developing of cloud computing software engineering has established solid foundation.
Accompanying drawing explanation
Fig. 1 is the structural representation of the emulating server centralized management platform of the system realizing lumped modelling server integration testing in cloud computing platform of the present invention.
Fig. 2 is the process flow diagram of single simulator process request of the present invention.
Embodiment
In order to more clearly describe technology contents of the present invention, conduct further description below in conjunction with specific embodiment.
Realize the system that lumped modelling server carries out integration testing in this cloud computing application, comprise emulating server centralized management platform and simulation various protocols service function platform, its principal feature is, described simulation various protocols service function platform comprises:
Protocol component module, comprises HTTP, the realization of the agreements such as SOAP, FTP, TCP, SMTP, and adaptive request of resolving different agreement, provides support for correctly exchanging data;
Emulating server runtime engine module, accepts, from external reference request, to communicate with Web Application Server and local file system, for simulation behavior enforcement engine module and packet parsing module provide the service environment of operation;
Packet parsing module, will ask the message data of coming to be resolved according to definition rule, and data are passed to simulation behavior execution module;
Simulation behavior enforcement engine module, takes out simulated data and performs analog service program according to the logic rules designed in advance from service interface repository;
Simulated data memory module, comprise analog service interface coding, detailed simulated data, the state of simulated data, have permission the system IP using simulated data, for the data warehouse of these simulated data information of store and management, the use realizing simulated data is followed the tracks of and meets the requirement of multiple integration testing scene;
Service interface configuration module, the application programming interfaces of encapsulation simulation Service data format definition.
Described emulating server centralized management platform comprises:
Simulator administration module, provides the simulator management function of user interface, can adjust, switch type interface is carried out the start stop operation of simulator to the attribute of multiple simulator;
By analog service application programming interfaces management configuration module, the interface management configuration feature of user interface is provided, is defined by the form of the service interface of simulating, the management function of parameter configuration of coming in and going out and the configuration feature of simulated data;
Emulating server system configuration parameter administration module, provides the systematic parameter administration configuration function of user interface, comprises thread pool, system journal rank, the setting of delay parameter;
Log management module, provides the function that client log manages, and can carry out the checking of daily record, downloads and clear up history log.
The method that lumped modelling server carries out integration testing is realized in this cloud computing application, its principal feature is, described method comprises emulating server centralized management platform, simulation various protocols service function platform receives request flow process, simulation various protocols service function platform processes se ce request procedure, described emulating server centralized management platform, comprises the following steps:
(11) the centralized management design module of the emulating server described in starts jetty server, the context of initialization web application container;
(12) configure the required thread pool size used of present day analog integration testing in the emulating server system configuration parameter administration module described in, system journal rank, the delay parameter of access is arranged;
(13) the form definition being carried out service interface by the service that analog service application programming interfaces management configuration module is simulated needed for present day analog integration testing described in is arranged, user goes out to participate in model interface insert detailed simulated data service interface, according to service interface type and definition format by the simulated data that is parsed stored in analog service data warehouse;
(14) the required simulator used of simulator administration module configuration present day analog integration testing described in, comprises the essential informations such as IP address, port, apply names, mainly provides HTTP simulator, TCP simulator, FTP simulator, SMTP simulator;
(15) user starts the simulator used needed for present day analog integration testing in simulator managing listings.
Described simulation various protocols service function platform receives request flow process, comprises the following steps:
(21) user starts the simulator of one or more different agreement in described emulating server centralized management platform;
(22) the simulation various protocols service function platform described in starts to carry out initialization operation;
(23) the emulating server runtime engine module described in starts the jetty service of one or more simulator according to service IP pre-configured in simulator administration module and port, and the context data of initialization web container running environment and the configuration of Embedded Application server;
(24) the simulation various protocols service function platform described in starts to monitor open port, prepares to receive the request msg that periphery application system is sent;
(25) the periphery application system described in sends to protocol component module the request that address is other agreement such as the HTTP request of lumped modelling server URL or SOAP;
(26) after the protocol component module described in receives message data request, the protocol type on obtaining request URL address;
(27) the protocol component module analysis request data described in, the emulating server handing to adapting protocol type processes.
Packet parsing operation in described simulation various protocols service function platform processes se ce request procedure, comprises the following steps:
(31) in the simulator described in, corresponding packet parsing module receives the request msg of emulating server runtime engine module forwards;
(32) the packet parsing module described in is according to the detailed message data of the message data rule parsing request of design;
(33) the packet parsing module described in reads by Service interface definition data in analog service application programming interfaces management configuration module;
(34) the packet parsing module described in is according to the crucial message data field parsed, in conjunction with the querying condition designed to the service definition of match query in service interface repository, go again according to the title of service definition in analog service tables of data, to inquire the simulated data used needed for current integration testing use-case.
Simulation behavior executable operations in described simulation various protocols service function platform processes se ce request procedure, comprises the following steps:
(41) the simulation behavior enforcement engine module described in receives the simulated data that packet parsing module passes over;
(42) the simulation behavior enforcement engine module described in, according to the logic rules processing assembling simulated data of design, performs following steps respectively according to by the requirement of Service interface definition repository in analog service application programming interfaces management configuration module:
If a () this service interface configuration return data rule is file+massage pattern, then the file of generation can be saved in the analog message data being bundled to together in file system and by file path data and returning;
If b () this service interface configuration return data rule is pure file mode, then can the file of generation be saved in file system, then file path data be bundled in the message data returned;
If c () this service interface configuration return data rule is hard news pattern, then directly the simulated data assembled is bundled to together in the message data returned;
(43) according to the interface definition requirement of current integration testing use-case service configuration, described simulation behavior enforcement engine module is the need of the periphery application system detailed analog message data being returned to request, or general is called the periphery application system that successful information data return to request, finally completes the invoked procedure of whole analog service;
(44) the simulation behavior enforcement engine module described in can by the substantial length of operation process record of analog service behavior in system journal, log management module in described emulating server centralized management platform, user can check the system journal of these records on this administration interface, downloads and clears up the operation of history log.
In actual applications, realizing lumped modelling server in cloud computing of the present invention application, to carry out the detailed process of the System and method for of integration testing as follows:
1, the centralized management design of emulating server
The centralized management design of emulating server is that specific design process is as follows in order to ensure that the system of integration testing is run by correct setting and parameter of regularity in the entire system:
(1) design system configuration parameter table, comprise system journal rank, delay parameter, the isoparametric setting of thread pool size, wherein thread pool size parameter role has a control of total access quantity to all services request, can be used for simulating invoked perimeter systems service blocking etc. situation;
(2) design system subscriber's meter, comprises the information such as login username, affiliated role, operating right;
(3) design log information table, comprise the information such as the classification of daily record, log recording time, daily record detailed content; Administration interface can be checked daily record, downloads and clear up the operation of history log;
(4) build emulating server centralized management platform provide system configuration parameter table, system user table, the data inputting of the allocation lists such as log information table, thus complete centralized management each functional module put in storage in the tables of data of correspondence.
2, the service interface that need simulate is registered
In the realization of emulating server centralized management platform, registration service interface can find applicable analog service data to do when message data is resolved, ServiceCode is searched in the ServiceInt table of correspondence, same service interface can configure many analog service data, according to the state arranged, which data is activated, and will get these data as the simulated data in service interface, detailed process is as follows:
(1) design definition service interface configuration file, comprises service code, service name, field name, field description, field type, the information such as field default value;
(2) described emulating server centralized management platform is entered, all fields are presented on interface by the data layout according to specific service interface configuration document definition, user goes out to participate in model interface insert detailed simulated data service interface, according to service interface type and definition format by the simulated data that is parsed stored in analog service data warehouse;
(3) finally select one or more of simulated data to be set to state of activation, so can get the simulated data of state of activation and return to the application system of periphery request in concrete integration testing.
3, simulator is added
In the realization of emulating server centralized management platform, adding the configuration of simulator Back ground Information is in order to the correct one or more simulator of startup of energy its context of initialization when system starts, different simulators takies different port accepts and processes the request of different agreement type, and detailed process is as follows:
(1) design of simulators configuration information table, comprises
A) name definition: each simulator has a unique name;
B) port arrangement: the listening port of simulator;
C) daily record rank: simulator needs the daily record supporting multiple rank, comprises warning, mistake, the classification information such as fatal;
D) time delay configuration: for simulator how long need wait for after actuating logic again, can be used to the overtime behavior of simulating called service;
(2) the simulator administration module built can carry out additions and deletions to emulating server configuration information and look into and change, and by data inputting in corresponding tables of data;
(3) finally can carry out start stop operation to single or multiple simulator in the list interface of simulator management, start simulator and then start listening port, preparation reception application system send data; Close simulator then release port, the no longer request of customer in response end application system.
4, analog service function platform receives and processes the flow process of services request
Analog service system cloud gray model engine provides the running environment of container for whole analog service, and process the services request that all periphery application systems report, concrete implementation is as follows:
(1) simulator of one or more different agreement is started according to the configuration of user in advance in emulating server centralized management platform;
(2) various simulator, comprises HTTP+SOAP simulator, boot sequence that TCP simulator, FTP simulator, SMTP simulator start by arranging carries out initialization operation;
(3) emulating server runtime engine module starts the jetty service of one or more simulator according to service IP pre-configured in simulator administration module and port, and the context data of initialization web container running environment and the configuration of Embedded Application server;
(4) various simulator, comprises HTTP+SOAP simulator, TCP simulator, FTP simulator, SMTP simulator starts to monitor open port, prepare to receive the request msg that periphery application system is sent;
(5) periphery application system sends to protocol component module the request that address is other agreement such as the HTTP request of lumped modelling server URL or SOAP;
(6) after protocol component module receives message data request, the protocol type on obtaining request URL address;
(7) the protocol component module analysis request data described in, the simulator (HTTP+SOAP simulator, TCP simulator, FTP simulator, SMTP simulator) handing to adapting protocol type processes.
Simulation behavior execution module is the module of core in the function platform of simulation various protocols service, comprise packet parsing module, command execution module, mainly different according to different protocol type process simulation behaviors, there is provided the service data of simulation to invoked periphery application system according to the simulation rule of conduct of design, detailed process is as follows:
(1) packet parsing module receives the message request data that respective simulator is delivered;
(2) the packet parsing module described in is according to the detailed message data of the message data rule parsing request of design;
(3) packet parsing module reads by the Service interface definition data designed in analog service application programming interfaces management configuration module;
(4) find and the analog service interface data mated in Service interface definition repository according to the crucial message data field parsed;
(5) go in analog service tables of data, to read the simulated data used needed for current integration testing use-case according to the unique identification title of current service interface definition;
(6) packet parsing module deliver and be parsed after simulated data to command execution module;
(7) command execution module is according to the logic rules processing assembling simulated data of design;
(8) the agreement request data run transmitted the earliest is all converted to the formatted data type of service definition to this step;
(9) following steps are performed respectively according to the requirement of Service interface definition repository in emulating server centralized management platform:
If a () this service interface configuration return data rule is file+massage pattern, then the file of generation can be saved in the analog message data being bundled to together in file system and by file path data and returning;
If b () this service interface configuration return data rule is pure file mode, then can the file of generation be saved in file system, then file path data be bundled in the message data returned;
If c () this service interface configuration return data rule is hard news pattern, then directly the simulated data assembled is bundled to together in the message data returned;
(10) require whether return simulated data according to the interface definition of current integration testing use-case service configuration, perform following steps respectively:
If a () user configured service interface has rreturn value, detailed analog message data are returned to the periphery application system of request by the simulator then docked, and simulated data is converted to the protocol information that corresponding requests comes returns away by command execution module;
If b () user configured service interface is without rreturn value, then the protocol data on protocol component auto-returned basis gives the periphery application system of request;
Finally complete the invoked procedure of whole analog service;
(11) log pattern described in by the substantial length of operation process record of analog service behavior in system journal;
(12), after the simulation behavior module described in is complete, utilizes service call serial number can inquire about from service call execution journal table and exception table and obtain the object information that calls of analog service;
(13) enter the centralized management platform of described emulating server, on log management interface, the displaying analog service operation result of visual graphing, conveniently checks.
Have employed the system and method realizing lumped modelling server integration testing in the cloud computing platform in this invention, there is following beneficial effect:
(1) owing to being received the message data that periphery operation system is sent in lumped modelling server system by protocol component, according to the URL address of civilian request of data of above delivering newspaper, can match on corresponding simulator, simulator is according to the logic realization of oneself, first resolved asking the message data of coming by packet parsing module, then extract critical field data simulation behavior execution module different according to configuration operation in Service interface definition storehouse again, thus reach the effect that the analog service called in integration testing is performed; Last according to the data back conditions configured in Service interface definition storehouse, the need of returning detailed analog message data to the operation system called, finally complete the invoked procedure of whole analog service; And the service function that each system of periphery provides can be realized, unified carries out analog service interface configuration, and concentrated carries out management and supervision to various simulator, thus achieves the system that lumped modelling server carries out integration testing;
(2) support of various agreement is externally provided, prepares integration testing environment fast, effectively improve the integration testing efficiency between application system, the docking of integration testing can be simulated before not only integrated, carry out integration testing in advance, and it is swift and convenient to operate, the operational efficiency of whole emulating server environment is higher, flexible and changeable, system resource can make full use of, use method of the present invention can be quick simultaneously, build lumped modelling server intuitively, substantially increase the integration testing efficiency between application system, and stable and reliable working performance, the scope of application is comparatively extensive, the common problem solving integration testing in the industry can be helped, accelerate the research and development speed of software, for further developing of cloud computing software engineering has established solid foundation.
In this description, the present invention is described with reference to its specific embodiment.But, still can make various amendment and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.
Claims (11)
1. realize a system for lumped modelling server integration testing in cloud computing platform, it is characterized in that, described system comprises:
Emulating server centralized management platform, in order to reception request flow process, the simulation behavior executable operations processed in se ce request procedure and process se ce request procedure of centralized management simulation various protocols service platform;
Simulation various protocols service function platform, in order to configure use needed for basic parameter needed for present day analog integration testing and present day analog integration testing simulator, in integration testing process, perform the simulation behavior executable operations received in request flow process, process se ce request procedure and process se ce request procedure.
2. realize the system of lumped modelling server integration testing in cloud computing platform according to claim 1, it is characterized in that, described emulating server centralized management platform comprises:
Protocol component module, resolves the request of different agreement in order to adaptation;
Emulating server runtime engine module, in order to receiving from external reference request, the service environment of operation of carrying out with Web Application Server and local file system communicating, providing for simulating behavior enforcement engine module and packet parsing module;
Data in order to will the message data of coming be asked to resolve according to definition rule, and be passed to simulation behavior execution module by packet parsing module;
Simulation behavior enforcement engine module, in order to take out simulated data and to perform analog service program according to the logic rules designed in advance from service interface repository;
Simulated data memory module, in order to store and management simulated data information;
Service interface configuration module, in order to the application programming interfaces of encapsulation simulation Service data format definition.
3. in cloud computing platform according to claim 2, realize the system of lumped modelling server integration testing, it is characterized in that, described simulated data information comprise analog service interface coding, simulated data, simulated data state, have permission and use the system IP of simulated data.
4. realize the system of lumped modelling server integration testing in cloud computing platform according to claim 1, it is characterized in that, described simulation various protocols service function platform comprises:
Simulator administration module, in order to provide the simulator management function of user interface;
By analog service application programming interfaces management configuration module, in order to provide the interface management configuration feature of user interface, by the definition of the form of the service interface of simulating, the management function of parameter configuration of coming in and going out and the configuration feature of simulated data;
Emulating server system configuration parameter administration module, in order to provide the systematic parameter administration configuration function of user interface;
Log management module, the function managed in order to provide client log.
5. realize the system of lumped modelling server integration testing in cloud computing platform according to claim 4, it is characterized in that, the systematic parameter of described user interface comprises thread pool, system journal and delay parameter.
6. in cloud computing platform, realize a method for lumped modelling server integration testing based on system according to claim 1, it is characterized in that, described method comprises the following steps:
(1) basic parameter needed for simulation various protocols service function platform configuration present day analog integration testing described in and the required simulator used of present day analog integration testing;
(2) the emulating server centralized management platform courses simulation various protocols service function platform described in performs and receives request flow process;
(3) the emulating server centralized management platform courses simulation various protocols service function platform described in performs process se ce request procedure;
(4) the emulating server centralized management platform courses simulation various protocols service function platform described in performs the simulation behavior executable operations in process se ce request procedure.
7. in cloud computing platform according to claim 6, realize the method for lumped modelling server integration testing, it is characterized in that, described simulation various protocols service function platform comprises simulator administration module, by analog service application programming interfaces management configuration module and emulating server system configuration parameter administration module, described step (1), comprises following sub-step:
(1-1) the emulating server centralized management platform described in starts jetty server and the context of initialization web application container;
(1-2) systematic parameter of the required user interface used of present day analog integration testing is configured in the emulating server system configuration parameter administration module described in;
(1-3) the form definition being carried out service interface by the service that analog service application programming interfaces management configuration module is simulated needed for present day analog integration testing described in is arranged;
(1-4) the required simulator used of simulator administration module configuration present day analog integration testing described in;
(1-5) user starts the simulator used needed for present day analog integration testing in simulator managing listings.
8. in cloud computing platform according to claim 7, realize the method for lumped modelling server integration testing, it is characterized in that, described emulating server centralized management platform comprises protocol component module, emulating server runtime engine module, packet parsing module, simulation behavior enforcement engine module, simulated data memory module and service interface configuration module, described step (2), comprises following sub-step:
(2-1) user starts the simulator of one or more different agreement in described emulating server centralized management platform;
(2-2) the simulation various protocols service function platform described in starts to carry out initialization operation;
(2-3) the emulating server runtime engine module described in starts the jetty service of one or more simulator according to pre-configured service IP and port in described simulator administration module, and the context data of initialization web container running environment and the configuration of Embedded Application server;
(2-4) the simulation various protocols service function platform described in starts to monitor open port, prepares to receive the request msg that periphery application system is sent;
(2-5) the periphery application system described in sends to described protocol component module the message data request that address is lumped modelling server URL;
(2-6) after the protocol component module described in receives message data request, the protocol type on obtaining request URL address;
(2-7) the protocol component module analysis request data described in, the emulating server handing to adapting protocol type processes.
9. realize the method for lumped modelling server integration testing in cloud computing platform according to claim 8, it is characterized in that, described step (3), comprises following sub-step:
(3-1) the packet parsing module described in receives the message request data of emulating server runtime engine module forwards;
(3-2) the packet parsing module described in is according to the message data rule parsing message request data of design;
(3-3) the packet parsing module described in reads by Service interface definition data in analog service application programming interfaces management configuration module;
(3-4) the packet parsing module described in is according to the service definition of the crucial message data field match query in service interface repository parsed, and the title according to service definition inquires the simulated data used needed for current integration testing use-case in analog service tables of data.
10. realize the method for lumped modelling server integration testing in cloud computing platform according to claim 9, it is characterized in that, described step (4), comprises following sub-step:
(4-1) the simulation behavior enforcement engine module described in receives the simulated data that packet parsing module passes over;
(4-2) the simulation behavior enforcement engine module described in assembles simulated data, the form return data according to the return data rule of Service interface definition repository according to the logic rules processing of design:
(4-3) according to the interface definition requirement of current integration testing use-case service configuration, described simulation behavior enforcement engine module is the need of the periphery application system detailed analog message data being returned to request, or general is called the periphery application system that successful information data return to request, finally completes the invoked procedure of whole analog service;
(4-4) the simulation behavior enforcement engine module described in by the substantial length of operation process record of analog service behavior in system journal.
Realize the method for lumped modelling server integration testing in 11. cloud computing platforms according to claim 10, it is characterized in that, described step (4-2), comprises following sub-step:
If (4-2-1) this service interface configuration return data rule is file+massage pattern, then the file of generation can be saved in the analog message data being bundled to together in file system and by file path data and returning;
If (4-2-2) this service interface configuration return data rule is pure file mode, then can the file of generation be saved in file system, then file path data be bundled in the message data returned;
If (4-2-3) this service interface configuration return data rule is hard news pattern, then directly the simulated data assembled to be bundled to together in the message data returned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510724200.6A CN105302721B (en) | 2015-10-29 | 2015-10-29 | The system and method for lumped modelling server integration testing is realized in cloud computing platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510724200.6A CN105302721B (en) | 2015-10-29 | 2015-10-29 | The system and method for lumped modelling server integration testing is realized in cloud computing platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105302721A true CN105302721A (en) | 2016-02-03 |
CN105302721B CN105302721B (en) | 2018-06-19 |
Family
ID=55200010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510724200.6A Active CN105302721B (en) | 2015-10-29 | 2015-10-29 | The system and method for lumped modelling server integration testing is realized in cloud computing platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105302721B (en) |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603283A (en) * | 2016-12-13 | 2017-04-26 | 广州唯品会信息科技有限公司 | Service simulation method and device, concentrated management platform |
CN106656650A (en) * | 2016-10-08 | 2017-05-10 | 腾讯科技(深圳)有限公司 | Business test environment generation method and system and business test method, device and system |
CN106776313A (en) * | 2016-12-13 | 2017-05-31 | 广州唯品会信息科技有限公司 | A kind of method of analog service, device and centralized management platform |
CN106850321A (en) * | 2017-04-05 | 2017-06-13 | 无锡华云数据技术服务有限公司 | A kind of simulated testing system of cluster server |
CN107122292A (en) * | 2016-10-21 | 2017-09-01 | 北京小度信息科技有限公司 | A kind of method and system of analog service |
CN107239393A (en) * | 2016-03-29 | 2017-10-10 | 阿里巴巴集团控股有限公司 | A kind of test configuration method and device based on simulation cooperation platform |
CN108073502A (en) * | 2016-11-16 | 2018-05-25 | 中国移动通信有限公司研究院 | A kind of test method and its system |
CN108153745A (en) * | 2016-12-02 | 2018-06-12 | 腾讯科技(深圳)有限公司 | A kind of application data calling method and application development system |
CN108205477A (en) * | 2016-12-16 | 2018-06-26 | 上海仪电(集团)有限公司中央研究院 | Server stress test method |
CN108762957A (en) * | 2018-06-01 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of generation method and device of cloud platform demo system |
CN109062798A (en) * | 2018-07-26 | 2018-12-21 | 浙江数链科技有限公司 | A kind of test method and device based on Dubbo frame |
CN110162464A (en) * | 2019-04-19 | 2019-08-23 | 平安普惠企业管理有限公司 | Mcok test method and system, electronic equipment and readable storage medium storing program for executing |
CN110262979A (en) * | 2019-06-27 | 2019-09-20 | 苏宁消费金融有限公司 | A kind of simulation third party's data source test method based on MOCK platform |
CN110309058A (en) * | 2019-05-24 | 2019-10-08 | 平安银行股份有限公司 | Business end test method, device, computer installation and computer storage medium |
CN110650063A (en) * | 2019-08-20 | 2020-01-03 | 福建省农村信用社联合社 | Centralized bank third-party software simulation system and method |
CN110798380A (en) * | 2019-10-23 | 2020-02-14 | 北京奇艺世纪科技有限公司 | Data acquisition method, system, device, test equipment and test server |
CN110825641A (en) * | 2019-11-08 | 2020-02-21 | 安徽继远检验检测技术有限公司 | Micro-service application test tool set based on simulation data generator |
CN111064812A (en) * | 2020-03-16 | 2020-04-24 | 上海商魁信息科技有限公司 | Method for terminal to inquire cloud management background to which terminal belongs and terminal |
CN111831565A (en) * | 2020-07-16 | 2020-10-27 | 郑州信大捷安信息技术股份有限公司 | Simulation service construction method and system based on software testing or development |
CN112015573A (en) * | 2020-08-25 | 2020-12-01 | 云账户技术(天津)有限公司 | Interface data simulation method and device and electronic equipment |
CN112685310A (en) * | 2020-12-31 | 2021-04-20 | 杭州当虹科技股份有限公司 | Method for simulation test of cloud host |
CN112905486A (en) * | 2021-03-26 | 2021-06-04 | 建信金融科技有限责任公司 | Service integration test method, device and system |
CN113656300A (en) * | 2021-08-13 | 2021-11-16 | 成都长城开发科技有限公司 | High-performance analog metering equipment based on DLMS protocol |
CN113760715A (en) * | 2020-11-12 | 2021-12-07 | 北京京东振世信息技术有限公司 | Method and device for testing system |
CN115454880A (en) * | 2022-10-25 | 2022-12-09 | 中邮消费金融有限公司 | Request processing assembly for dynamically generating data |
CN115982501A (en) * | 2023-01-06 | 2023-04-18 | 广州佰瑞医药有限公司 | Lightweight high-performance PHPWeb system framework and working method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6304982B1 (en) * | 1998-07-14 | 2001-10-16 | Autodesk, Inc. | Network distributed automated testing system |
CN101140541A (en) * | 2007-09-29 | 2008-03-12 | 中兴通讯股份有限公司 | Integration test system of distributed software system and method thereof |
CN101576848A (en) * | 2008-05-09 | 2009-11-11 | 北京世纪拓远软件科技发展有限公司 | Simulation system |
CN102075381A (en) * | 2010-12-14 | 2011-05-25 | 云海创想信息技术(北京)有限公司 | Automatic test platform server and system applied to cloud storage |
KR101416089B1 (en) * | 2012-08-06 | 2014-07-09 | 인크로스 주식회사 | An integrated platform for authoring web applications and the authoring method thereof |
CN104796304A (en) * | 2015-04-28 | 2015-07-22 | 广州杰赛科技股份有限公司 | Cloud platform test method and system |
-
2015
- 2015-10-29 CN CN201510724200.6A patent/CN105302721B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6304982B1 (en) * | 1998-07-14 | 2001-10-16 | Autodesk, Inc. | Network distributed automated testing system |
CN101140541A (en) * | 2007-09-29 | 2008-03-12 | 中兴通讯股份有限公司 | Integration test system of distributed software system and method thereof |
CN101576848A (en) * | 2008-05-09 | 2009-11-11 | 北京世纪拓远软件科技发展有限公司 | Simulation system |
CN102075381A (en) * | 2010-12-14 | 2011-05-25 | 云海创想信息技术(北京)有限公司 | Automatic test platform server and system applied to cloud storage |
KR101416089B1 (en) * | 2012-08-06 | 2014-07-09 | 인크로스 주식회사 | An integrated platform for authoring web applications and the authoring method thereof |
CN104796304A (en) * | 2015-04-28 | 2015-07-22 | 广州杰赛科技股份有限公司 | Cloud platform test method and system |
Cited By (38)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239393B (en) * | 2016-03-29 | 2020-06-30 | 阿里巴巴集团控股有限公司 | Test configuration method and device based on simulation collaboration platform |
CN107239393A (en) * | 2016-03-29 | 2017-10-10 | 阿里巴巴集团控股有限公司 | A kind of test configuration method and device based on simulation cooperation platform |
CN106656650B (en) * | 2016-10-08 | 2020-01-14 | 腾讯科技(深圳)有限公司 | Method and system for generating service test environment, and method, device and system for service test |
CN106656650A (en) * | 2016-10-08 | 2017-05-10 | 腾讯科技(深圳)有限公司 | Business test environment generation method and system and business test method, device and system |
CN107122292A (en) * | 2016-10-21 | 2017-09-01 | 北京小度信息科技有限公司 | A kind of method and system of analog service |
CN108073502B (en) * | 2016-11-16 | 2021-06-08 | 中国移动通信有限公司研究院 | Test method and system thereof |
CN108073502A (en) * | 2016-11-16 | 2018-05-25 | 中国移动通信有限公司研究院 | A kind of test method and its system |
CN108153745B (en) * | 2016-12-02 | 2021-08-13 | 腾讯科技(深圳)有限公司 | Application data calling method and application development system |
CN108153745A (en) * | 2016-12-02 | 2018-06-12 | 腾讯科技(深圳)有限公司 | A kind of application data calling method and application development system |
CN106603283A (en) * | 2016-12-13 | 2017-04-26 | 广州唯品会信息科技有限公司 | Service simulation method and device, concentrated management platform |
CN106603283B (en) * | 2016-12-13 | 2019-09-13 | 广州品唯软件有限公司 | A kind of method, apparatus and centralized management platform of analog service |
CN106776313A (en) * | 2016-12-13 | 2017-05-31 | 广州唯品会信息科技有限公司 | A kind of method of analog service, device and centralized management platform |
CN106776313B (en) * | 2016-12-13 | 2020-06-23 | 广州品唯软件有限公司 | Method and device for simulating service and centralized management platform |
CN108205477A (en) * | 2016-12-16 | 2018-06-26 | 上海仪电(集团)有限公司中央研究院 | Server stress test method |
CN106850321A (en) * | 2017-04-05 | 2017-06-13 | 无锡华云数据技术服务有限公司 | A kind of simulated testing system of cluster server |
CN108762957B (en) * | 2018-06-01 | 2021-07-30 | 郑州云海信息技术有限公司 | Method and device for generating cloud platform demonstration system |
CN108762957A (en) * | 2018-06-01 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of generation method and device of cloud platform demo system |
CN109062798A (en) * | 2018-07-26 | 2018-12-21 | 浙江数链科技有限公司 | A kind of test method and device based on Dubbo frame |
CN110162464A (en) * | 2019-04-19 | 2019-08-23 | 平安普惠企业管理有限公司 | Mcok test method and system, electronic equipment and readable storage medium storing program for executing |
CN110309058A (en) * | 2019-05-24 | 2019-10-08 | 平安银行股份有限公司 | Business end test method, device, computer installation and computer storage medium |
CN110262979A (en) * | 2019-06-27 | 2019-09-20 | 苏宁消费金融有限公司 | A kind of simulation third party's data source test method based on MOCK platform |
CN110262979B (en) * | 2019-06-27 | 2022-08-02 | 苏宁消费金融有限公司 | Simulated third-party data source testing method based on MOCK platform |
CN110650063A (en) * | 2019-08-20 | 2020-01-03 | 福建省农村信用社联合社 | Centralized bank third-party software simulation system and method |
CN110798380A (en) * | 2019-10-23 | 2020-02-14 | 北京奇艺世纪科技有限公司 | Data acquisition method, system, device, test equipment and test server |
CN110825641B (en) * | 2019-11-08 | 2023-12-29 | 安徽继远检验检测技术有限公司 | Micro-service application test system based on simulation data generator |
CN110825641A (en) * | 2019-11-08 | 2020-02-21 | 安徽继远检验检测技术有限公司 | Micro-service application test tool set based on simulation data generator |
CN111064812A (en) * | 2020-03-16 | 2020-04-24 | 上海商魁信息科技有限公司 | Method for terminal to inquire cloud management background to which terminal belongs and terminal |
CN111831565A (en) * | 2020-07-16 | 2020-10-27 | 郑州信大捷安信息技术股份有限公司 | Simulation service construction method and system based on software testing or development |
CN111831565B (en) * | 2020-07-16 | 2022-04-08 | 郑州信大捷安信息技术股份有限公司 | Simulation service construction method and system based on software testing or development |
CN112015573A (en) * | 2020-08-25 | 2020-12-01 | 云账户技术(天津)有限公司 | Interface data simulation method and device and electronic equipment |
CN113760715A (en) * | 2020-11-12 | 2021-12-07 | 北京京东振世信息技术有限公司 | Method and device for testing system |
CN112685310A (en) * | 2020-12-31 | 2021-04-20 | 杭州当虹科技股份有限公司 | Method for simulation test of cloud host |
CN112685310B (en) * | 2020-12-31 | 2024-04-23 | 杭州当虹科技股份有限公司 | Method for simulating and testing cloud host |
CN112905486A (en) * | 2021-03-26 | 2021-06-04 | 建信金融科技有限责任公司 | Service integration test method, device and system |
CN113656300A (en) * | 2021-08-13 | 2021-11-16 | 成都长城开发科技有限公司 | High-performance analog metering equipment based on DLMS protocol |
CN115454880A (en) * | 2022-10-25 | 2022-12-09 | 中邮消费金融有限公司 | Request processing assembly for dynamically generating data |
CN115982501B (en) * | 2023-01-06 | 2023-09-08 | 广州佰瑞医药有限公司 | Lightweight high-performance PHPWEB system framework and working method |
CN115982501A (en) * | 2023-01-06 | 2023-04-18 | 广州佰瑞医药有限公司 | Lightweight high-performance PHPWeb system framework and working method |
Also Published As
Publication number | Publication date |
---|---|
CN105302721B (en) | 2018-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105302721A (en) | System and method for realizing integration testing of centralized analog server in cloud computing platform | |
CN108536761B (en) | Report data query method and server | |
CN108519952B (en) | A kind of distributed WEB automatization test system and method | |
US9661064B2 (en) | Systems and methods for deploying legacy software in the cloud | |
CN105630488A (en) | Docker container technology-based continuous integration realizing method | |
US8135732B2 (en) | System and method for providing network-based services to users with high availability | |
CN108111364B (en) | Service system testing method and device | |
CN106681718A (en) | Toolkit-based desktop side plugin frame and implementation method thereof | |
CN111475764B (en) | Search engine optimization method, device, terminal and storage medium | |
CN103810272A (en) | Data processing method and system | |
US10057331B2 (en) | Automatic abstraction of flow of control in a distributed virtualization platform | |
CN104899134A (en) | Automatic domain name registration server testing system and method | |
CN112559525B (en) | Data checking system, method, device and server | |
CN202210812U (en) | Data terminal access system based on cloud platform | |
CN112700083A (en) | Method and device for constructing scene of resource comprehensive utilization and service index system | |
KR20140037605A (en) | Method for active processing ami using cim schema and system topology information | |
CN106330556B (en) | A kind of method and apparatus calling related information for generating service module | |
CN112650815B (en) | Method and device for synchronizing environment data, storage medium and electronic device | |
KR20130024857A (en) | Apparatus and method for processing app for controlling device | |
CN110674214B (en) | Big data synchronization method, device, computer equipment and storage medium | |
Bhattacharjee et al. | Cloudcamp: A model-driven generative approach for automating cloud application deployment and management | |
CA3102814A1 (en) | System and method for data ingestion and workflow generation | |
CN109684521A (en) | Linux system configuration information inspection method, device and computer readable storage medium | |
Pan et al. | Design and Implementation of Server Management System Based on Docker | |
CN116560722B (en) | Operation and maintenance flow processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |