CN103312554A - Testing method and system of multi-server interactive services - Google Patents

Testing method and system of multi-server interactive services Download PDF

Info

Publication number
CN103312554A
CN103312554A CN2012100714093A CN201210071409A CN103312554A CN 103312554 A CN103312554 A CN 103312554A CN 2012100714093 A CN2012100714093 A CN 2012100714093A CN 201210071409 A CN201210071409 A CN 201210071409A CN 103312554 A CN103312554 A CN 103312554A
Authority
CN
China
Prior art keywords
server
return data
emulating
business datum
emulating server
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
CN2012100714093A
Other languages
Chinese (zh)
Other versions
CN103312554B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210071409.3A priority Critical patent/CN103312554B/en
Publication of CN103312554A publication Critical patent/CN103312554A/en
Application granted granted Critical
Publication of CN103312554B publication Critical patent/CN103312554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a testing method and system of multi-server interactive services and solves the problem in the prior art that a whole process of the multi-server interactive services cannot be tested. The method comprises the following steps: establishing a simulated server, wherein the simulated server is used for simulating an outer server which carries out real interaction with an inner server; generating services by the inner server according to a received service request and sending corresponding service data to the simulated server, wherein a service state is under establishment; if receiving returned data processed by the simulated server in pre-set time, carrying out different processing operations according to the different returned data; if not receiving the returned data processed by the simulated server in the pre-set time, sending the service data to the simulated server again; and if all the processes are normally carried out, obtaining a result that a test of the multi-server interactive services is passed. According to the testing method and system disclosed by the invention, interaction behaviors of multi-servers are simulated so that the processing of the services is more fluent and is guaranteed.

Description

A kind of method of testing of multiserver interactive service and system
Technical field
The application relates to measuring technology, particularly relates to a kind of method of testing and system of multiserver interactive service.
Background technology
Along with the development of the Internet, the business on the network is finished jointly by a plurality of systems often, and described system may belong to different enterprises, when this business is tested, all is that enterprise tests for the system of oneself separately usually therefore.During use, the interior business of individual system may all be normal, but the service interaction between system but mistake may occur, and does not have at present a kind of method to test the whole flow process of this business.
For example, the built-in system of a certain enterprise is an open platform, and internal server is managed business by interface and external server cooperation interaction.Professional handling process is that the first external server sends service request to internal server, and internal server creates service concurrence and send business datum to the second external server, then processes accordingly according to the return data of the second external server that receives.
Prior art is to test for the internal process of described internal server, mainly is whether its internal process of test exists unusually.At first, internal server receives service request and generation is professional, then sends business datum to external server by interface, and the processing operation follow-up according to the return data execution that receives.But it is mutual can truly and not call external server in the test, but simulate in advance the interface mutual with external server, and the return data of the good described interface of simulation, therefore when calling interface sends business datum, directly receive the good return data of corresponding simulation, and do not carry out alternately with external server.
In the internal process test of above-mentioned internal server, do not relate to really the participation of external server, thereby do not simulate the interbehavior of multiserver yet, in the interaction process business, whether have abnormal problem so can not test out multiserver.
Summary of the invention
The application provides a kind of method of testing and system of multiserver interactive service, to solve the problem that can't test the whole flow process of multiserver interactive service in the prior art.
In order to address the above problem, the application discloses a kind of method of testing of multiserver interactive service, it is characterized in that, comprising:
Create emulating server, described emulating server is used for simulation and carries out true mutual external server with internal server;
Internal server generates professional according to the service request that receives, and the business datum of correspondence is sent to emulating server, and wherein service condition is in creating;
If within the time of presetting, receive the return data that emulating server is processed, then carry out different processing operations according to different return datas;
If within the time of presetting, do not receive the return data that emulating server is processed, then resend business datum to emulating server;
If above-mentioned all processes are all carried out normally, then the test of multiserver interactive service is passed through.
Accordingly, disclosed herein as well is a kind of test macro of multiserver interactive service, it is characterized in that, comprise internal server and emulating server, wherein, described emulating server is used for simulation and carries out mutual external server with internal server,
Described internal server comprises:
Creation module is used for creating according to the service request that receives professional;
The first sending module is used for the business datum of correspondence is sent to emulating server;
Processing module if be used for receiving the return data that emulating server is processed within the time of presetting, is then carried out different processing operations according to different return datas;
The second sending module if be used for not receiving the return data that emulating server is processed within the time of presetting, then resends business datum to emulating server.
Compared with prior art, the application comprises following advantage:
At first, the application described method has simulated the reciprocal process of internal server and external server in the Business Processing, the initial creation emulating server, described emulating server is used for simulation and carries out mutual external server with internal server, internal server generates professional according to the service request that receives, and described business datum is sent to emulating server, wherein, service condition is in creating.If real server receives the return data that emulating server is processed within the time of presetting, then carry out different processing operations according to different return datas; If real server does not receive the return data that emulating server is processed within the time of presetting, then resend business datum to emulating server.The application can call emulating server in test, and for the return data after the emulating server processing, real server can be carried out corresponding treatment measures.The application has simulated the interbehavior of multiserver, can test out multiserver and whether have abnormal problem in the interaction process business, thereby can make the multiserver interactive service more perfect, makes professional processing more smooth and secure.
Secondly, the application has tested out the various possibilities in the service interaction process fully.Emulating server can be according to the different situations of business datum, send different return datas, and real server can be carried out different operations according to the different return datas of emulating server, so that the test of professional whole flow process is abundanter, test scene is more comprehensive.
Again, simulated the scene during actual services is processed among the application, set up message retransmission mechanism, but message is not unlimited repeating transmission in Business Processing, therefore, and when the number of times that sends business datum surpasses the scope that presets, can identify service condition for to create unsuccessfully, more meet actual services and process operation, and considered the various possibilities in the operation flow, more close to real Business Processing scene.
Description of drawings
Fig. 1 is the method for testing flow chart of the described a kind of multiserver interactive service of the embodiment of the present application;
Fig. 2 is the mutual schematic diagram of method of testing the first of the described a kind of multiserver interactive service of the embodiment of the present application;
Fig. 3 is the mutual schematic diagram of method of testing the second of the described a kind of multiserver interactive service of the embodiment of the present application;
Fig. 4 is the third mutual schematic diagram of method of testing of the described a kind of multiserver interactive service of the embodiment of the present application;
Fig. 5 is the method for testing flow chart of the described a kind of multiserver interactive service of the application's preferred embodiment;
Fig. 6 is the test system structure figure of the described a kind of multiserver interactive service of the embodiment of the present application.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments the application is described in further detail.
Professional handling process is that the first external server sends service request to internal server, and internal server creates service concurrence and send business datum to the second external server, then processes accordingly according to the return data of the second external server that receives.
Prior art is to test for the internal process of described internal server, mainly is whether its internal process of test exists unusually.Can truly and not call external server in the test mutual, but simulate in advance the interface mutual with external server, and the return data of the good described interface of simulation, therefore when calling interface sends business datum, directly receive the good return data of corresponding simulation, and do not carry out alternately with external server.
The application provides a kind of method of testing of multiserver interactive service, and the application can call emulating server in test, and for the return data after the emulating server processing, real server can be carried out corresponding treatment measures.The application has simulated the interbehavior of multiserver, can test out multiserver and whether have abnormal problem in the interaction process business, thereby can make the multiserver interactive service more perfect, makes professional processing more smooth and secure.
With reference to Fig. 1, it has provided the method for testing flow chart of the described a kind of multiserver interactive service of the embodiment of the present application.
Step 11 creates emulating server, and described emulating server is used for simulation and carries out true mutual external server with internal server;
Because internal server is an open platform, it is managed business from the external server cooperation interaction of different enterprises by interface.Can not call real external server in the test, so the application at first creates emulating server, described emulating server is used for simulation and carries out true mutual external server with internal server.
Therefore described emulating server can adopt the JETTY server, can embed described JETTY server in test script, is then undertaken will calling the emulating server simulation and being somebody's turn to do alternately when mutual by the interface interchange external server when internal server in the test.
Described JETTY server is a JAVA server of increasing income, and JETTY is a servlet container of increasing income, and is based on the web content of Java.
Step 12, internal server generates professional according to the service request that receives, and the business datum of correspondence is sent to emulating server, and wherein service condition is in creating;
Test script can start emulating server when starting simultaneously, and the interface that test script calls internal server generates service request, and is transferred to internal server.
Internal server receives service request, and generates business according to service request, and then the business datum with correspondence is sent to emulating server, when initial, service condition is designated in the establishment.
Step 13 judges whether receive the return data that emulating server is processed within the time of presetting;
Internal server can be judged within the time of presetting whether received the return data that emulating server is processed.If then execution in step 14, if not, then execution in step 15.
Wherein, the processing procedure of internal server is asynchronous, for example after sending the business datum of professional B, can continue to process the service request about professional C, or processing is about the return data of professional A, judge for professional B in the time of presetting, whether internal server receives the return data that emulating server is processed simultaneously in this.
Step 14 is carried out different processing operations according to different return datas;
Emulating server can according to the difference of business datum, be carried out different processing and be returned different return datas after receiving the business datum of internal server.Internal server receives the return data of emulating server processing within the time of presetting after, can carry out different processing operations according to different return datas.
Step 15 resends business datum to emulating server.
Preferably, if after the number of times of transmission business datum reaches the scope that presets, do not receive yet the return data that emulating server is processed, then the identification service state is for to create unsuccessfully.
If internal server does not receive the return data that emulating server is processed within the time of presetting, then described internal server can resend business datum to emulating server.
But for certain business, internal server can not repeat to send business datum always, therefore in internal server, preset a certain scope, after if the number of times of transmission business datum reaches the scope that presets, do not receive yet the return data that emulating server is processed, then can be again from new transmission business datum, but the identification service state is for to create unsuccessfully.
The professional problem that in processing, may occur blocking, so some business datum may lose after sending or can not in time process, and is provided with the retransmission mechanism of business datum in internal server for this kind situation.
The application is in order to simulate this kind situation, and the application is that emulating server is provided with sleep state and dormant duration, in case the data of just can not accepting business when emulating server is in sleep state, until emulating server recovers normal condition.
For example, the repeating transmission time that internal server is set is 2s, and the dormant duration of emulating server is 10s, and server sends the business datum of professional B, and this moment, emulating server just was in sleep state.
If the sending times of internal server is 3 times (comprise and send first business datum), then when internal server sends data to emulating server the 3rd time, emulating server still is in sleep state and can not manages business, internal server does not still receive the return data of emulating server behind the 2s, and can identify service condition for to create unsuccessfully this moment.
If the sending times of internal server is 6 times (comprise and send first business datum), then when internal server sent data to emulating server the 6th time, emulating server was in normal condition, then can receive normally and processing service data.
If above-mentioned all processes are all carried out normally, then the test of multiserver interactive service is passed through.If then there are abnormal conditions in certain process execute exception in the test of multiserver interactive service, need to debug until all processes are all carried out normally, till the test of multiserver interactive service is passed through.
In this application, internal server sends business datum to emulating server, and the treatment step that emulating server receives after the business datum comprises:
If emulating server receives incomplete business datum, then return data is system mistake;
If emulating server receives complete business datum, but described business datum is invalid, and then return data is the Business Processing failure;
If emulating server receives complete business datum, and described business datum is effective, and then return data is the Business Processing success.
Wherein, when there be business wrong in described business datum, described business datum was invalid, wherein, the ID of the ID of described business and data and existing business and Data duplication, warehouse code error or password mistake etc. is the mistake of business.
If described business datum does not comprise the mistake of above-mentioned business, can think that then this business datum is effective.
For example, the business datum that internal server sends is the data of an XML form, and the form of described data is such as<request〉<id〉100</id〉<name〉pencil</name〉</request 〉.
If the business datum that emulating server receives is<request〉<id〉100</id 〉, then these data are incomplete business datum, this moment, business datum occurred unusual, emulating server can directly be dished out described abnormal data, then return data is to internal server, and described return data is system mistake.
If the business datum that emulating server receives is<request〉<id〉100</id〉<name〉pencil</name〉</request 〉, then these data are complete business datums, can judge whether effective these data are on business this moment, for example, if emulating server is found ID and data that this is professional, ID and Data duplication with existing business, then this moment, emulating server can return data informs that this business of internal server can't process, and wherein said return data is the Business Processing failure.Described return data also can adopt the XML formatted data to represent.
If the business datum that emulating server receives is<request〉<id〉100</id〉<name〉pencil</name〉</request 〉, then these data are complete business datums, and described business datum is effective.Emulating server can be carried out corresponding processing, and sends return data to internal server, and described return data is the Business Processing success.
The return data that corresponding emulating server is processed, the treatment step of internal server comprises:
If receiving the return data of emulating server processing within the time of presetting is system mistake, then do not carry out any operation;
If receiving the return data that emulating server processes within the time of presetting is the Business Processing failure, then service condition is designated and creates unsuccessfully;
If receiving the return data that emulating server processes within the time of presetting is the Business Processing success, then service condition is designated and creates successfully.
Wherein, if the failure of described service creation, internal server can return misdata to test script with connecing, and informs its service creation failure.
With reference to Fig. 2, it has provided the mutual schematic diagram of method of testing the first of the described a kind of multiserver interactive service of the embodiment of the present application.
The first processing procedure of internal server and emulating server interactive service comprises: 1. internal server receives service request, and generates professional; 2. internal server sends business datum to emulating server; 3. emulating server processing service data; 4. after emulating server is handled business datum and generated return data, send return data to internal server; 5. internal server is carried out different processing operations for different return datas.
With reference to Fig. 3, it has provided the mutual schematic diagram of method of testing the second of the described a kind of multiserver interactive service of the embodiment of the present application.
The second processing procedure of internal server and emulating server interactive service comprises: 1. internal server receives service request, and generates professional; 2. internal server sends business datum to emulating server; This moment, emulating server was in sleep state, can not receive and processing service data; 3. surpass predetermined time, internal server does not receive the return data that emulating server is processed, and can resend business datum this moment to emulating server; 4. the number of times that sends when business datum reaches the scope that presets, and thinks and do not receive return data, and this moment, internal server identification service treatment state was for to process unsuccessfully.
With reference to Fig. 4, it has provided the third mutual schematic diagram of method of testing of the described a kind of multiserver interactive service of the embodiment of the present application.
The third processing procedure of internal server and emulating server interactive service comprises: 1. internal server receives service request, and generates professional; 2. internal server sends business datum to emulating server; This moment, emulating server was in sleep state, can not receive and processing service data; 3. surpass predetermined time, internal server does not receive the return data that emulating server is processed, and can resend business datum this moment to emulating server; 4. being awake of emulating server recovered normal condition, at this moment emulating server normal process business datum; 5. after emulating server is handled business datum and generated return data, send return data to internal server; 6. internal server is carried out different processing operations for different return datas.
Along with the development of the Internet, the business on the network is finished jointly by a plurality of systems often, and the below discusses the flow testing of described business for example.
For example, internal server is the logistics system server, and emulating server is the warehouse system server of simulation.After logistics system can receive order, can create order and send order to the warehouse system server, idiographic flow is as follows:
With reference to Fig. 5, it has provided the method for testing flow chart of the described a kind of multiserver interactive service of the application's preferred embodiment.
Step 21 creates the warehouse system server of simulating, and the warehouse system server of described simulation is used for simulation and carries out true mutual warehouse system server with the logistics system server;
Step 22, the logistics system server creates order according to the order creation request that receives, and the order data of correspondence is sent to the warehouse system server of simulation, and wherein order status is in creating;
Wherein, the treatment step that receives after the order data of the warehouse system server of simulation comprises:
If the warehouse system server of simulation receives incomplete order data, then return data is system mistake;
If the warehouse system server of simulation receives complete order data, but described order data is invalid, then return data is the Business Processing failure;
If the warehouse system server of simulation receives complete order data, and described order data is effective, then return data is the Business Processing success.
Step 23, whether judgement receives the return data of the warehouse system server process of simulation within the time of presetting;
If then execution in step 24, if not, then execution in step 25.
Step 24, the type of judgement return data;
If institute's return data is system mistake, then execution in step 26;
If the failure of return data Business Processing, then execution in step 27;
If the success of return data Business Processing, then execution in step 28;
Step 25, the situation of obstruction appears in the warehouse system server of simulation, resends the warehouse system server that order data is sent to simulation this moment.
Step 26 is not carried out any operation;
Step 27 is designated service condition and creates unsuccessfully;
Step 28 is designated service condition and creates successfully.
Step 29, if after the number of times of transmission business datum reaches the scope that presets, do not receive yet the return data that emulating server is processed, then the identification service state is for to create unsuccessfully.
If above-mentioned all processes are all carried out normally, then the test of multiserver interactive service is passed through.
The actual ERP server that in processing, can also create a simulation, the ERP server by described simulation sends the order creation request to the logistics system server, and then the logistics service device creates order again.If order creation failure in the test, the logistics system server can directly send misdata to the ERP server of simulation, informs the event of its order creation failure.
In sum, at first the application described method has simulated the reciprocal process of internal server and external server in the Business Processing, the initial creation emulating server, described emulating server is used for simulation and carries out mutual external server with internal server, internal server generates professional according to the service request that receives, and described business datum is sent to emulating server, wherein service condition is in creating.If real server receives the return data that emulating server is processed within the time of presetting, then carry out different processing operations according to different return datas; If real server does not receive the return data that emulating server is processed within the time of presetting, then resend business datum to emulating server.The application can call emulating server in test, and for the return data after the emulating server processing, real server can be carried out corresponding treatment measures.The application has simulated the interbehavior of multiserver, can test out multiserver and whether have abnormal problem in the interaction process business, thereby can make the multiserver interactive service more perfect, makes professional processing more smooth and secure.
Secondly, the application has tested out the various possibilities in the service interaction process fully.Emulating server can be according to the different situations of business datum, send different return datas, and real server can be carried out different operations according to the different return datas of emulating server, so that the test of professional whole flow process is abundanter, test scene is more comprehensive.
Again, simulated the scene during actual services is processed among the application, set up message retransmission mechanism, but message is not unlimited repeating transmission in Business Processing, therefore when the number of times that sends business datum surpasses the scope that presets, can identify service condition for to create unsuccessfully, more meet actual services and process operation, and the various possibilities in the operation flow have been considered, more close to real Business Processing scene.
With reference to Fig. 6, it has provided the test system structure figure of the described a kind of multiserver interactive service of the embodiment of the present application.
Accordingly, the application also provides a kind of test macro of multiserver interactive service, comprises internal server 11 and emulating server 12, and wherein, described emulating server 12 is used for simulation and carries out mutual external server with internal server 11.
Described internal server 11 comprises:
Creation module 111 is used for creating according to the service request that receives professional;
The first sending module 112 is used for the business datum of correspondence is sent to emulating server;
At this moment, service condition is in creating.
Processing module 113 if be used for receiving the return data that emulating server is processed within the time of presetting, is then carried out different processing operations according to different return datas;
The second sending module 114 if be used for not receiving the return data that emulating server is processed within the time of presetting, then resends business datum to emulating server.
Described emulating server 12 comprises:
First returns module 121, receives incomplete business datum if be used for emulating server, and then return data is system mistake;
Second returns module 122, receive complete business datum if be used for emulating server, but described business datum is invalid, and then return data is the Business Processing failure;
The 3rd returns module 123, receive complete business datum if be used for emulating server, and described business datum is effective, and then return data is the Business Processing success.
Preferably, described processing module comprises:
The first processing unit 1131 is system mistake if be used for receiving the return data that emulating server processes within the time of presetting, and does not then carry out any operation;
The second processing unit 1132 if be used for receiving the return data Business Processing failure that emulating server is processed within the time of presetting, then be designated service condition and create unsuccessfully;
The 3rd processing unit 1133 if receive the return data Business Processing success that emulating server is processed within the time of presetting, then is designated service condition and creates successfully.
Preferably, the second sending module 114, if after also reaching the scope that presets for the number of times that sends business datum, do not receive yet the return data that emulating server is processed, then the identification service state is for to create unsuccessfully.
For system embodiment because itself and embodiment of the method basic simlarity, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
The application can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment (DCE), put into practice the application, in these distributed computing environment (DCE), be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
At last, also need to prove, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operating space, and not necessarily requires or hint and have the relation of any this reality or sequentially between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, commodity or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, commodity or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises described key element and also have other identical element.
Method of testing and the system of above a kind of multiserver interactive service that the application is provided, be described in detail, used specific case herein the application's principle and execution mode are set forth, the explanation of above embodiment just is used for helping to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, the thought according to the application all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.

Claims (10)

1. the method for testing of a multiserver interactive service is characterized in that, comprising:
Create emulating server, described emulating server is used for simulation and carries out true mutual external server with internal server;
Internal server generates professional according to the service request that receives, and the business datum of correspondence is sent to emulating server, and wherein service condition is in creating;
If within the time of presetting, receive the return data that emulating server is processed, then carry out different processing operations according to different return datas;
If within the time of presetting, do not receive the return data that emulating server is processed, then resend business datum to emulating server;
If above-mentioned all processes are all carried out normally, then the test of multiserver interactive service is passed through.
2. method according to claim 1 is characterized in that, the treatment step that described emulating server receives after the business datum comprises:
If emulating server receives incomplete business datum, then return data is system mistake;
If emulating server receives complete business datum, but described business datum is invalid, and then return data is the Business Processing failure;
If emulating server receives complete business datum, and described business datum is effective, and then return data is the Business Processing success.
3. method according to claim 2 is characterized in that, if the described return data that receives the emulating server processing within the time of presetting is then carried out corresponding the processing according to described return data, comprising:
If receiving the return data of emulating server processing within the time of presetting is system mistake, then do not carry out any operation.
4. method according to claim 2 is characterized in that, if the described return data that receives the emulating server processing within the time of presetting is then carried out corresponding the processing according to described return data, comprising:
If receiving the return data that emulating server processes within the time of presetting is the Business Processing failure, then service condition is designated and creates unsuccessfully.
5. method according to claim 3 is characterized in that, if the described return data that receives the emulating server processing within the time of presetting is then carried out corresponding the processing according to described return data, comprising:
If receiving the return data that emulating server processes within the time of presetting is the Business Processing success, then service condition is designated and creates successfully.
6. method according to claim 1 is characterized in that, the described business datum that resends also comprises to emulating server:
If after the number of times of transmission business datum reaches the scope that presets, do not receive yet the return data that emulating server is processed, then the identification service state is for to create unsuccessfully.
7. according to claim 1 to 6 arbitrary described methods, it is characterized in that, described internal server is the logistics system server, and described emulating server is the warehouse system server of simulation, and described method comprises:
Create the warehouse system server of simulation, the warehouse system server of described simulation is used for simulation and carries out true mutual warehouse system server with the logistics system server;
The logistics system server creates order according to the order creation request that receives, and the order data of correspondence is sent to the warehouse system server of simulation, and wherein order status is in creating;
If within the time of presetting, receive the return data of the warehouse system server of simulation, then carry out corresponding the processing according to described return data.
If do not receive the warehouse system server return data of simulation within the time of presetting, then the situation of obstruction appears in the warehouse system server of simulation, resends the warehouse system server that order data is sent to simulation this moment;
If above-mentioned all processes are all carried out normally, then the test of multiserver interactive service is passed through.
8. the test macro of a multiserver interactive service is characterized in that, comprises internal server and emulating server, and wherein, described emulating server is used for simulation and carries out mutual external server with internal server,
Described internal server comprises:
Creation module is used for creating according to the service request that receives professional;
The first sending module is used for the business datum of correspondence is sent to emulating server;
Processing module if be used for receiving the return data that emulating server is processed within the time of presetting, is then carried out different processing operations according to different return datas;
The second sending module if be used for not receiving the return data that emulating server is processed within the time of presetting, then resends business datum to emulating server.
9. system according to claim 8 is characterized in that, described emulating server comprises:
First returns module, receives incomplete business datum if be used for emulating server, and then return data is system mistake;
Second returns module, receive complete business datum if be used for emulating server, but described business datum is invalid, and then return data is the Business Processing failure;
The 3rd returns module, receive complete business datum if be used for emulating server, and described business datum is effective, and then return data is the Business Processing success.
10. system according to claim 8 is characterized in that, described processing module comprises:
The first processing unit is system mistake if be used for receiving the return data that emulating server processes within the time of presetting, and does not then carry out any operation.
CN201210071409.3A 2012-03-16 2012-03-16 A kind of method of testing of multiserver interactive service and system Active CN103312554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210071409.3A CN103312554B (en) 2012-03-16 2012-03-16 A kind of method of testing of multiserver interactive service and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210071409.3A CN103312554B (en) 2012-03-16 2012-03-16 A kind of method of testing of multiserver interactive service and system

Publications (2)

Publication Number Publication Date
CN103312554A true CN103312554A (en) 2013-09-18
CN103312554B CN103312554B (en) 2017-03-01

Family

ID=49137355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210071409.3A Active CN103312554B (en) 2012-03-16 2012-03-16 A kind of method of testing of multiserver interactive service and system

Country Status (1)

Country Link
CN (1) CN103312554B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096436A (en) * 2019-04-12 2019-08-06 深圳壹账通智能科技有限公司 Test method, device, medium and equipment based on data-pushing compensation function
CN110377462A (en) * 2019-06-17 2019-10-25 中国平安人寿保险股份有限公司 Interface test method, device and terminal device
CN111445989A (en) * 2020-03-26 2020-07-24 珠海高瑞特医疗科技有限公司 Simulation learning method for seminal plasma analyzer simulator
CN112905428A (en) * 2019-12-04 2021-06-04 菜鸟智能物流控股有限公司 Test method, test device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030229695A1 (en) * 2002-03-21 2003-12-11 Mc Bride Edmund Joseph System for use in determining network operational characteristics
CN1838618A (en) * 2005-03-22 2006-09-27 华为技术有限公司 Method for testing transmission control protocol client
CN101308556A (en) * 2007-05-15 2008-11-19 阿里巴巴集团控股有限公司 System and method for online charging test
CN101389107A (en) * 2007-09-10 2009-03-18 中兴通讯股份有限公司 Large traffic simulation test system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030229695A1 (en) * 2002-03-21 2003-12-11 Mc Bride Edmund Joseph System for use in determining network operational characteristics
CN1838618A (en) * 2005-03-22 2006-09-27 华为技术有限公司 Method for testing transmission control protocol client
CN101308556A (en) * 2007-05-15 2008-11-19 阿里巴巴集团控股有限公司 System and method for online charging test
CN101389107A (en) * 2007-09-10 2009-03-18 中兴通讯股份有限公司 Large traffic simulation test system and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096436A (en) * 2019-04-12 2019-08-06 深圳壹账通智能科技有限公司 Test method, device, medium and equipment based on data-pushing compensation function
CN110377462A (en) * 2019-06-17 2019-10-25 中国平安人寿保险股份有限公司 Interface test method, device and terminal device
CN110377462B (en) * 2019-06-17 2023-07-21 中国平安人寿保险股份有限公司 Interface testing method and device and terminal equipment
CN112905428A (en) * 2019-12-04 2021-06-04 菜鸟智能物流控股有限公司 Test method, test device, electronic equipment and storage medium
CN111445989A (en) * 2020-03-26 2020-07-24 珠海高瑞特医疗科技有限公司 Simulation learning method for seminal plasma analyzer simulator

Also Published As

Publication number Publication date
CN103312554B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN104536899B (en) A kind of software deployment and its maintaining method based on Intelligent cluster
US8898643B2 (en) Application trace replay and simulation systems and methods
US7890959B2 (en) System and method for message lifetime management
US20110035724A1 (en) Software application recreation
CN105303112B (en) The detection method and device of component call loophole
CN108134708B (en) Method and device for monitoring third-party interface
CN104765678A (en) Method and device for testing applications on mobile terminal
CN111309505B (en) Page exception handling method and device and electronic equipment
CN102419729A (en) Parallel test execution
CN103716356A (en) Storage process operation method, device and system based on Web
CN103312554A (en) Testing method and system of multi-server interactive services
CN110515821A (en) Based on the event-handling method, electronic equipment and computer storage medium buried a little
CN109815120A (en) Test method, device, computer equipment and the storage medium of application
CN110505119A (en) A kind of test method, device, system and readable storage medium storing program for executing
CN109614164A (en) Realize plug-in unit configurable method, apparatus, equipment and readable storage medium storing program for executing
CN113590454A (en) Test method, test device, computer equipment and storage medium
CN111666199B (en) Debugging method executed on intelligent terminal and software debugger
CN110162310B (en) Plug-in interface test method and device, computer equipment and storage medium
CN109634838A (en) Position method, apparatus, storage medium and the electronic equipment of application failure
CN108280024A (en) Traffic distribution strategy test method, device and electronic equipment
CN109101408B (en) Method and device for detecting service availability in joint debugging environment
CN110489342A (en) A kind of Android application testing method, system, device and storage medium
CN103152216B (en) The method of testing of system and device in a kind of the Internet
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN111026631B (en) Automatic interface detection method, device and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1185736

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1185736

Country of ref document: HK