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 CN 201210071409 CN201210071409A CN103312554A CN 103312554 A CN103312554 A CN 103312554A CN 201210071409 CN201210071409 CN 201210071409 CN 201210071409 A CN201210071409 A CN 201210071409A CN 103312554 A CN103312554 A CN 103312554A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
server
data
service
analog
processing
Prior art date
Application number
CN 201210071409
Other languages
Chinese (zh)
Other versions
CN103312554B (en )
Inventor
陶钧
Original Assignee
阿里巴巴集团控股有限公司
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

Links

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

—种多服务器交互业务的测试方法及系统 - testing methods multi-server systems and interactive services

技术领域 FIELD

[0001] 本申请涉及测试技术,特别是涉及一种多服务器交互业务的测试方法及系统。 [0001] The present application relates to testing technique, and more particularly to a method and system for testing a multiple-server interactive services.

背景技术 Background technique

[0002] 随着互联网的发展,网络上的业务往往是由多个系统共同完成的,所述系统可能分属于不同的企业,因此在对该业务进行测试时,通常都是企业各自针对自己的系统进行测试。 [0002] With the development of the Internet, traffic on the network often by multiple systems together to complete, the system may belong to different companies, so when the business test, usually for their own business system testing. 使用时,单个系统的内部业务可能都是正常的,但是在系统间的业务交互却可能出现错误,而目前没有一种方法能够对该业务的整个流程进行测试。 In use, the internal business of a single system may have been normal, but errors may occur in the business interaction between systems, but currently does not have a way to test the entire business process.

[0003] 例如,某一企业的内部系统是一个开放式的平台,内部服务器通过接口与外部服务器协同交互来处理业务。 [0003] For example, an enterprise system is an internal open platform, internal business process server interaction with the external server via the interface synergistic. 业务的处理流程是第一外部服务器发送业务请求到内部服务器,内部服务器创建业务并发送业务数据到第二外部服务器,然后根据接收的第二外部服务器的返回数据进行相应的处理。 Business process flow is a first external server sends a service request to the internal server, the internal service server creates and transmits service data to the second external server, and then performs corresponding processing based on the return data received by the second external server.

[0004] 现有技术是针对所述内部服务器的内部流程进行测试的,主要是测试其内部流程是否存在异常。 [0004] The prior art is for internal testing of the internal server processes, mainly their internal processes to test whether there is abnormality. 首先,内部服务器接收业务请求并生成业务,然后通过接口发送业务数据到外部服务器,并根据接收的返回数据执行后续的处理操作。 First, the internal service server receives the service request and generates and transmits traffic data via the interface to the external server, and returns the data according to the processing operation executed subsequent received. 但测试中不会真实与调用外部服务器交互,而是预先模拟出与外部服务器交互的接口,并模拟好所述接口的返回数据,因此当调用接口来发送业务数据时,直接接收对应模拟好的返回数据,而没有与外部服务器进行交互。 However, the real test will not interact with the call to an external server, instead of the previously simulated interface interaction with an external server, and to simulate the good return data interface, so that when the call interface to transmit traffic data, corresponding to directly receive the analog good return data, without interacting with an external server.

[0005] 上述内部服务器的内部流程测试中,并没有真实的涉及到外部服务器的参与,因而也没有模拟出多服务器的交互行为,所以不能测试出多服务器在交互处理业务中是否存在异常问题。 Internal Process Testing [0005] of the internal server, there is no real participation relate to an external server, so there is no simulated interactions multi-server, so you can not test a multi-server if there is an abnormal problem in the interactive processing business.

发明内容 SUMMARY

[0006] 本申请提供一种多服务器交互业务的测试方法及系统,以解决现有技术中无法测试多服务器交互业务整个流程的问题。 [0006] The present application provides a test method and a system for multi-server interactive services, in order to solve the problems of the prior art multi-server interaction can not test the entire business process.

[0007] 为了解决上述问题,本申请公开了一种多服务器交互业务的测试方法,其特征在于,包括: [0007] In order to solve the above problems, the present application discloses a method for testing a multi-server interactive services, characterized by comprising:

[0008] 创建模拟服务器,所述模拟服务器用于模拟与内部服务器进行真实交互的外部服务器; [0008] create a simulated server, the server is an external server for analog simulation and real internal server interaction;

[0009] 内部服务器根据接收的业务请求生成业务,并将对应的业务数据发送至模拟服务器,其中业务状态为创建中; [0009] The internal server request received traffic to generate traffic, and sends the analog data to the corresponding service server, wherein the service creation state;

[0010] 若在预置的时间内接收到模拟服务器处理的返回数据,则根据不同的返回数据执行不同的处理操作; [0010] Upon receiving the returned within a preset time to an analog data server processing is executed in accordance with different processing operations different return transactions;

[0011] 若在预置的时间内未接收到模拟服务器处理的返回数据,则重新发送业务数据至模拟服务器; [0011] If the return data is not received within a preset time to an analog processing server, the service data is re-sent to the simulation server;

[0012] 若上述所有过程都执行正常,则多服务器交互业务的测试通过。 [0012] If all the above processes are executed properly, test the service through multi-server interaction. [0013] 相应的,本申请还公开了一种多服务器交互业务的测试系统,其特征在于,包括内部服务器和模拟服务器,其中,所述模拟服务器用于模拟与内部服务器进行交互的外部服务器, [0013] Accordingly, the present application also discloses a multi-server system for testing interactive services, wherein the analog comprises an internal server and a server, wherein the server is used to simulate the internal analog server interacts external server,

[0014] 所述内部服务器包括: [0014] The internal server comprising:

[0015] 创建模块,用于根据接收的业务请求创建业务; [0015] creation module for creating a request according to the received service traffic;

[0016] 第一发送模块,用于将对应的业务数据发送至模拟服务器; [0016] The first sending module, configured to send the corresponding service data to the simulation server;

[0017] 处理模块,用于若在预置的时间内接收到模拟服务器处理的返回数据,则根据不同的返回数据执行不同的处理操作; [0017] The processing module is configured to return data if received within a preset time to the analog server processing is executed in accordance with different processing operations different return transactions;

[0018] 第二发送模块,用于若在预置的时间内未接收到模拟服务器处理的返回数据,则重新发送业务数据至模拟服务器。 [0018] The second sending module, for processing the analog if the server is not received within a preset time return data, re-transmits the service data to the simulation server.

[0019] 与现有技术相比,本申请包括以下优点: [0019] Compared with the prior art, the present application includes the following advantages:

[0020] 首先,本申请所述的方法模拟出了业务处理中内部服务器与外部服务器的交互过程,最初创建模拟服务器,所述模拟服务器用于模拟与内部服务器进行交互的外部服务器,内部服务器根据接收的业务请求生成业务,并将所述业务数据发送至模拟服务器,其中,业务状态为创建中。 [0020] First, the methods described herein simulate the business process interaction with an external server, the internal server, the server initially created simulation, the simulation used to simulate the external server and the internal server interact server, according to the internal server generating a service request received service, and the service data sent to the analog server, wherein the service state is created. 真实服务器若在预置的时间内接收到模拟服务器处理的返回数据,则根据不同的返回数据执行不同的处理操作;真实服务器若在预置的时间内未接收到模拟服务器处理的返回数据,则重新发送业务数据至模拟服务器。 Upon receiving the real server within a preset period of time the server returns the data to analog processing, depending on the return data to perform different processing operations; true if the server is not received within a preset time to an analog processing server returns the data, re-transmitting traffic data to the simulation server. 本申请在测试中会调用模拟服务器,并且针对模拟服务器处理后的返回数据,真实服务器可以执行相应的处理措施。 This application will test the simulation is called the server, and for the return of analog data processing server, the real server can perform the appropriate action. 本申请模拟出了多服务器的交互行为,能够测试出多服务器在交互处理业务中是否存在异常问题,从而可以使多服务器交互业务更加完善,使业务的处理更加流畅并且有保障。 This application is an interactive simulation of the behavior of multi-server, multi-server can test out whether or not there is an abnormality in the interactive processing business problems, which can make the business more perfect multi-server interaction, the processing business more fluid and secure.

[0021] 其次,本申请充分的测试出了业务交互过程中的各种可能性。 [0021] Second, the present application fully test out various possibilities for business interaction process. 模拟服务器会根据业务数据的不同情况,发送不同的返回数据,而真实服务器会根据模拟服务器的不同返回数据执行不同的操作,使得业务的整个流程的测试更加丰富,测试场景更加全面。 Simulation server depending on the circumstances of traffic data, send different return data, and the server returns a real server, depending on the analog data to perform different operations, making the entire process of testing services richer, more comprehensive test scenarios.

[0022] 再次,本申请中模拟了真实业务处理中的场景,设立了消息重发机制,但在业务处理中消息不是无限次重发的,因此,当发送业务数据的次数超过预置的范围时,会标识业务状态为创建失败,更加符合真实业务处理操作,并且综合考虑了业务流程中的各种可能性,更加接近于真实的业务处理场景。 [0022] Again, in this application simulates real-world business scenarios process, set up message retransmission mechanism, but not unlimited service processing message retransmission, and therefore, when the range of the number of transmitting traffic data exceeds a preset when will identify the status of business creation fails, more in line with real business processing operations, and considering various possibilities of business processes, closer to the real business process scenarios.

附图说明 BRIEF DESCRIPTION

[0023] 图1是本申请实施例所述一种多服务器交互业务的测试方法流程图; [0023] FIG Example 1 of the present application is a method of testing multi-server interactive services flowchart embodiment;

[0024] 图2是本申请实施例所述一种多服务器交互业务的测试方法第一种交互示意图; [0024] FIG. 2 is a schematic view of a first embodiment of the one interactive multi-server interactive services testing method of the present application embodiment;

[0025] 图3是本申请实施例所述一种多服务器交互业务的测试方法第二种交互示意图; [0025] FIG. 3 is a diagram of the test method of the second multi-server interactive service application interaction a schematic diagram of the present embodiment;

[0026] 图4是本申请实施例所述一种多服务器交互业务的测试方法第三种交互示意图; [0026] FIG. 4 is a diagram of the test method for a multiple-server interactive service interactions third schematic embodiment of the present application;

[0027] 图5是本申请优选实施例所述一种多服务器交互业务的测试方法流程图; [0027] FIG. 5 is a diagram of the test method for a multiple-server interactive service application flowchart of the present preferred embodiment;

[0028] 图6是本申请实施例所述一种多服务器交互业务的测试系统结构图。 [0028] FIG. 6 is an embodiment of the present application a multi-server interactive services architecture test system embodiment of FIG.

具体实施方式 detailed description

[0029] 为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。 [0029] The above object of the present application, features and advantages can be more fully understood in conjunction with the accompanying drawings and the following specific embodiments of the present application will be further described in detail. [0030] 业务的处理流程是第一外部服务器发送业务请求到内部服务器,内部服务器创建业务并发送业务数据到第二外部服务器,然后根据接收的第二外部服务器的返回数据进行相应的处理。 [0030] The processing flow of traffic is a first external server sends a service request to the internal server, the internal service server creates and transmits service data to the second external server and perform corresponding processing according to a second external server returns the received data.

[0031 ] 现有技术是针对所述内部服务器的内部流程进行测试的,主要是测试其内部流程是否存在异常。 [0031] The prior art is for internal testing of the internal server processes, mainly their internal processes to test whether there is abnormality. 测试中不会真实与调用外部服务器交互,而是预先模拟出与外部服务器交互的接口,并模拟好所述接口的返回数据,因此当调用接口来发送业务数据时,直接接收对应模拟好的返回数据,而没有与外部服务器进行交互。 Test true and does not invoke an external server interaction, but previously simulated interactive interface with an external server, and to simulate the good return data interface, so that when the call interface to transmit traffic data, corresponding to directly receive the analog return good data, but not interact with the external server.

[0032] 本申请提供了一种多服务器交互业务的测试方法,本申请在测试中会调用模拟服务器,并且针对模拟服务器处理后的返回数据,真实服务器可以执行相应的处理措施。 [0032] The present application provides a test method for a multi-server interaction of business, the application calls the simulation in the test server, and for the return of analog data processing server, the real server can perform the appropriate action. 本申请模拟出了多服务器的交互行为,能够测试出多服务器在交互处理业务中是否存在异常问题,从而可以使多服务器交互业务更加完善,使业务的处理更加流畅并且有保障。 This application is an interactive simulation of the behavior of multi-server, multi-server can test out whether or not there is an abnormality in the interactive processing business problems, which can make the business more perfect multi-server interaction, the processing business more fluid and secure.

[0033] 参照图1,其给出了本申请实施例所述一种多服务器交互业务的测试方法流程图。 [0033] Referring to FIG. 1, which shows a flowchart of the present embodiment of the application server is a multi-service interaction method of testing.

[0034] 步骤11,创建模拟服务器,所述模拟服务器用于模拟与内部服务器进行真实交互的外部服务器; [0034] Step 11, the server creates an analog, said analog server to an external server and the internal server simulate real interaction;

[0035] 由于内部服务器是一个开放式的平台,其通过接口与不同企业的外部服务器协同交互来处理业务。 [0035] Since the internal server is an open platform, to handle its interactive business collaboration with an external server through the interface of different enterprises. 测试中不能调用真实的外部服务器,因此本申请首先创建模拟服务器,所述模拟服务器用于模拟与内部服务器进行真实交互的外部服务器。 The test can not be called real external server, so this first application server to create a simulation, the simulation used to simulate external server server and the internal server real interaction.

[0036] 所述模拟服务器可以采用JETTY服务器,因此可以在测试脚本中嵌入所述JETTY服务器,则测试中当内部服务器通过接口调用外部服务器进行交互时,就会调用模拟服务器模拟该交互。 [0036] The server may use analog JETTY server, the server can be embedded in the JETTY in the test script, the test server is invoked when the internal external server interact through the interface, it is called the analog simulation server interaction.

[0037] 所述JETTY服务器是一个开源的JAVA服务器,JETTY是一个开源的servlet容器,是基于Java的web内容。 [0037] The server JETTY JAVA is an open source server, JETTY servlet container is an open source, Java-based web content.

[0038] 步骤12,内部服务器根据接收的业务请求生成业务,并将对应的业务数据发送至模拟服务器,其中业务状态为创建中; [0038] Step 12, the internal server according to the received service request service generates and transmits traffic data corresponding to the analog server, wherein the service creation state;

[0039] 测试脚本启动时会同时启动模拟服务器,测试脚本调用内部服务器的接口生成业务请求,并传输给内部服务器。 [0039] test script will also start a service request interface generation simulation server, test script calls an internal server on startup and transferred to the internal server.

[0040] 内部服务器接收业务请求,并根据业务请求生成业务,然后将对应的业务数据发送至模拟服务器,初始时,将业务状态标识为创建中。 [0040] The internal server receives a service request, and generate a service request according to the service, and then transmits corresponding data to the analog service server, initially, the service state identified as a creation.

[0041] 步骤13,判断在预置的时间内是否接收到模拟服务器处理的返回数据; [0041] Step 13 determines whether or not received within a preset time to an analog processing server returns the data;

[0042] 内部服务器会判断在预置的时间内,是否接收到了模拟服务器处理的返回数据。 [0042] Analyzing the internal server within the preset time, whether it has received analog data returned by the server process. 若是,则执行步骤14,若否,则执行步骤15。 If yes, step 14, and if not, step 15 is executed.

[0043] 其中,内部服务器的处理过程是异步的,例如在发送完业务B的业务数据后,可以继续处理关于业务C的业务请求,或处理关于业务A的返回数据,于此同时针对业务B判断在预置的时间内,内部服务器是否接收到模拟服务器处理的返回数据。 [0043] wherein the process is asynchronous internal server, for example, after completion of service data B transmitted traffic, traffic may continue to process requests for service C, the process or return data about the service A, service B for the same time is determined within the preset time, the internal server whether the received analog data returned by the server process.

[0044] 步骤14,根据不同的返回数据执行不同的处理操作; [0044] Step 14, depending on the return data to perform different processing operations;

[0045] 模拟服务器在接收到内部服务器的业务数据后,会根据业务数据的不同,执行不同的处理并返回不同的返回数据。 [0045] The simulation server receives the internal data to the service server, based on the different service data, and performs different processing returns different return data. 内部服务器在预置的时间内接收到模拟服务器处理的返回数据后,可以根据不同的返回数据执行不同的处理操作。 After the inside of the return data server receives the analog processing server within a preset period of time, you can perform different processing operations depending on the return data.

[0046] 步骤15,重新发送业务数据至模拟服务器。 [0046] Step 15, to re-transmit service data to the simulation server. [0047] 优选的,若发送业务数据的次数达到预置的范围后,仍未收到模拟服务器处理的返回数据,则标识业务状态为创建失败。 [0047] Preferably, if the number of transmitted service data reaches a preset range, yet returns the analog data processing server, the identity service creation failed state is received.

[0048] 若内部服务器在预置的时间内未接收到模拟服务器处理的返回数据,则所述内部服务器会重新发送业务数据至模拟服务器。 [0048] When the internal server returns the data is not received within a preset time to an analog processing server, the internal server to resend the data to the simulation server traffic.

[0049] 但是针对某个业务,内部服务器不能一直重复发送业务数据,因此在内部服务器中预置了某一范围,若发送业务数据的次数达到预置的范围后,仍未收到模拟服务器处理的返回数据,则不会再从新发送业务数据,而是标识业务状态为创建失败。 After [0049] However, for a certain service, the internal server can not service data transmission is repeated, so a range of preset internal server, if the number of transmitted service data reaches a preset range, the server not receive an analog processing the return data, will not be re-transmit traffic data, but rather to identify the service status for the creation failed.

[0050] 业务在处理中可能会出现阻塞的问题,因此有些业务数据发送后可能丢失或不能及时处理,针对此种情况在内部服务器中设置了业务数据的重发机制。 [0050] Business congestion problem may occur in the process, and therefore may be lost after some traffic data transmitted or not in time, in such cases retransmission mechanism set up business data in the internal server.

[0051] 本申请为了模拟此种情况,本申请为模拟服务器设置了睡眠状态及睡眠状态的持续时间,一旦模拟服务器处于睡眠状态时就不能接受业务数据,直到模拟服务器恢复正常状态。 [0051] The present application in order to simulate this situation, the application server is set to simulate the duration of sleep and the sleep state, can not accept business as soon as analog data server in a sleep state until the simulation server back to normal state.

[0052] 例如,设置内部服务器的重发时间为2s,模拟服务器睡眠状态的持续时间为10s,服务器发送业务B的业务数据,此时模拟服务器刚好处于睡眠状态。 [0052] For example, setting the internal server retransmission time of 2s, the duration of the sleep state analog server is 10s, the server sends the service data of the service B, when the analog server is in a sleep state immediately.

[0053] 若内部服务器的重发次数为3次(包含首次发送业务数据),则当内部服务器第3次发送数据给模拟服务器时,模拟服务器依然处于睡眠状态不能处理业务,2s后内部服务器仍然没有接收到模拟服务器的返回数据,此时会标识业务状态为创建失败。 [0053] If the number of retransmissions internal server is 3 times (included for the first time to transmit traffic data), when the internal server 3rd send data to the simulation server, simulation server is still in a sleep state can not handle the business, after 2s internal server still return to the simulation server does not receive the data, then identifies the service status for the creation failed.

[0054] 若内部服务器的重发次数为6次(包含首次发送业务数据),则当内部服务器第6次发送数据给模拟服务器时,模拟服务器处于正常状态,则可以正常的接收并处理业务数据。 [0054] When the number of retransmissions internal server is six (comprising first transmitting traffic data), when the internal server sixth transmission data to the analog server emulates the server in a normal state, can normally receive and process traffic data .

[0055] 若上述所有过程都执行正常,则多服务器交互业务的测试通过。 [0055] If all the above processes are executed properly, test the service through multi-server interaction. 若某个过程执行异常,则多服务器交互业务的测试中存在异常情况,需要进行调试直到所有过程都执行正常,多服务器交互业务的测试通过为止。 If an execution exception, multi-server interaction service tests abnormal situation, the need for fine tuning until all the procedures are executed properly, multi-server interaction service tested so far.

[0056] 在本申请中,内部服务器发送业务数据到模拟服务器,模拟服务器接收到业务数据后的处理步骤包括: [0056] In the present application, the internal server transmits service data to the simulation server, the server receives the service data analog processing step comprises:

[0057] 若模拟服务器接收到不完整的业务数据,则返回数据为系统错误; [0057] When the server receives analog incomplete service data, the system returns error data;

[0058] 若模拟服务器接收到完整的业务数据,但所述业务数据无效,则返回数据为业务处理失败; [0058] When the server receives a complete simulation of the service data, but the traffic data is invalid, then the return data to the business process has failed;

[0059] 若模拟服务器接收到完整的业务数据,且所述业务数据有效,则返回数据为业务处理成功。 [0059] When the server receives analog full service data and the traffic data is valid, the data is returned to the business process is successful.

[0060] 其中,当所述业务数据存在业务性的错误时,所述业务数据是无效的,其中,所述业务的ID和数据与已有的业务的ID和数据重复,仓库编码错误或密码错误等均为业务性的错误。 [0060] wherein, when there is an error of the service traffic data, the traffic data is invalid, wherein the data ID and the service ID and data services with the existing repeated, coding errors or password warehouse errors and other errors are operational in nature.

[0061] 若所述业务数据不包含上述业务性的错误,则可认为该业务数据有效。 [0061] If the traffic data contains no error of the above-described operations, the service data may be considered valid.

[0062] 例如,内部服务器发送的业务数据是一个XML格式的数据,所述数据的格式如<request><id>100</id><name> 铅笔</name>〈/request>0 [0062] For example, the internal service data sent by the server is a data format of XML, the data format as <request> <id> 100 </ id> <name> pencil </ name> </ request> 0

[0063] 若模拟服务器接收到的业务数据为〈reqUeSt>〈id>100〈/id>,则该数据为不完整的业务数据,此时业务数据出现异常,模拟服务器会将所述异常数据直接抛出,然后返回数据给内部服务器,所述返回数据为系统错误。 [0063] When the service server receives analog data <reqUeSt> <id> 100 </ id>, then the data is incomplete service data, the service data at this time is abnormal, the server sends the analog data directly abnormality throw, then returns the data to the internal server, the data returned to the system error. [0064] 若模拟服务器接收到的业务数据为〈request>〈id>100〈/id>〈name>铅笔〈/nameX/request〉,则该数据是完整的业务数据,此时会判断该数据在业务上是否是有效的,例如,若模拟服务器发现该业务的ID和数据,与已有的业务的ID和数据重复,则此时模拟服务器会返回数据告知内部服务器该业务无法处理,其中所述返回数据为业务处理失败。 [0064] When the service server receives analog data <request> <id> 100 </ id> <name> pencil </ nameX / request>, then the data is a complete service data, the data in this case will be determined the service is valid, e.g., if the server discovery analog data and the service ID, the service ID and the existing data is repeated, this time the analog data server returns the service can not be informed of the internal server process, wherein said return data for the business failed. 所述返回数据也可以采用XML格式数据表示。 The return data in XML format data may be employed. FIG.

[0065] 若模拟服务器接收到的业务数据为〈request>〈id>100〈/id>〈name>铅笔〈/nameX/request〉,则该数据是完整的业务数据,并且所述业务数据有效。 [0065] When the service server receives analog data <request> <id> 100 </ id> <name> pencil </ nameX / request>, then the data is a complete service data and the traffic data is valid. 模拟服务器会执行相应的处理,并发送返回数据给内部服务器,所述返回数据为业务处理成功。 Simulation server performs corresponding processing, and returns the data to the internal server transmits the return data to the business process is successful.

[0066] 对应模拟服务器处理的返回数据,内部服务器的处理步骤包括: [0066] The server returns the corresponding analog data processing, the internal server processing step comprises:

[0067] 若在预置的时间内接收到模拟服务器处理的返回数据为系统错误,则不执行任何操作; [0067] When received within a preset time to simulate the server returns the data processing system errors, do nothing;

[0068] 若在预置的时间内接收到模拟服务器处理的返回数据为业务处理失败,则将业务状态标识为创建失败; [0068] When received within a preset time to an analog processing server returns the data processing service fails, the service identifier for the creation failed state;

[0069] 若在预置的时间内接收到模拟服务器处理的返回数据为业务处理成功,则将业务状态标识为创建成功。 [0069] Upon receiving the returned within a preset time to process the analog data to the server service processing is successful, the service status identification is created.

[0070] 其中,若所述业务创建失败,内部服务器可以将接返回错误数据给测试脚本,告知其业务创建失败。 [0070] where if the business fails to create internal server error data can then return to the test script, inform their business creation failed.

[0071] 参照图2,其给出了本申请实施例所述一种多服务器交互业务的测试方法第一种交互示意图。 [0071] Referring to Figure 2, which shows a first application of the present embodiment schematic view of the interaction a multiple-server interactive services testing method embodiment.

[0072] 内部服务器与模拟服务器交互业务的第一种处理过程包括:1.内部服务器接收业务请求,并生成业务;2.内部服务器发送业务数据到模拟服务器;3.模拟服务器处理业务数据;4.模拟服务器处理完业务数据并生成返回数据后,发送返回数据给内部服务器; [0072] The simulation server and the internal server interactive service of a first process comprising: a... 1 internal server receives a service request, and generate a service; 2 internal server transmits service data to the simulation server; 3 simulation server processes traffic data; 4 the analog server processes traffic data and return the data generation, transmits return data to the internal server;

5.内部服务器针对不同的返回数据,执行不同的处理操作。 The internal server for different return data to perform different processing operations.

[0073] 参照图3,其给出了本申请实施例所述一种多服务器交互业务的测试方法第二种交互示意图。 [0073] Referring to Figure 3, which shows a schematic view of the present application the second interaction of the test method in Example A multi-server interactive services embodiments.

[0074] 内部服务器与模拟服务器交互业务的第二种处理过程包括:1.内部服务器接收业务请求,并生成业务;2.内部服务器发送业务数据到模拟服务器;此时模拟服务器处于睡眠状态,不能接收并处理业务数据;3.超过预定的时间,内部服务器未接收到模拟服务器处理的返回数据,此时会重新发送业务数据到模拟服务器;4.当业务数据发送的次数达到预置的范围,并且认为未收到返回数据,此时内部服务器标识业务处理状态为处理失败。 [0074] A second process simulation server and the internal server interactive services comprising: an internal server 1 receives the service request, and generate a service; 2 internal server transmits service data to the simulation server; simulation server in a sleep state at this time, can not. Back 3 exceeds the predetermined time, the server does not receive the internal server processes the analog data, this time to resend the data traffic simulation server;; receives and processes traffic data. 4 when the number of transmitted service data reaches a preset range, and that the returned data is not received, then the internal state of the service processing server identification failed.

[0075] 参照图4,其给出了本申请实施例所述一种多服务器交互业务的测试方法第三种交互示意图。 [0075] Referring to Figure 4, which shows a third application of the present method of testing a schematic view of the interactive multi-server embodiment of the one embodiment of the interactive services.

[0076] 内部服务器与模拟服务器交互业务的第三种处理过程包括:1.内部服务器接收业务请求,并生成业务;2.内部服务器发送业务数据到模拟服务器;此时模拟服务器处于睡眠状态,不能接收并处理业务数据;3.超过预定的时间,内部服务器未接收到模拟服务器处理的返回数据,此时会重新发送业务数据到模拟服务器;4.模拟服务器的睡眠状态结束,恢复正常状态,此时模拟服务器正常处理业务数据;5.模拟服务器处理完业务数据并生成返回数据后,发送返回数据给内部服务器;6.内部服务器针对不同的返回数据,执行不同的处理操作。 [0076] A third process simulation server and the internal server interactive services comprising: an internal server 1 receives service requests, and generate a service; 2 internal server transmits service data to the simulation server; simulation server in a sleep state at this time, can not. receives and processes traffic data; 3 exceeds the predetermined time, the server does not receive an internal analog data returned by the server process, then resends the data traffic to the analog server; 4 simulation server end of the sleep state, normal state, this simulating the normal processing service data server; 5. simulation server processes traffic data and generates the return data, transmits return data to the internal server; 6 different internal server for return data, perform different processing operations. [0077] 随着互联网的发展,网络上的业务往往是由多个系统共同完成的,下面举例论述所述业务的流程测试。 [0077] With the development of the Internet, the traffic on the network is often accomplished by a plurality of systems together, for example the service process tests discussed below.

[0078] 例如,内部服务器为物流系统服务器,模拟服务器为模拟的仓库系统服务器。 [0078] For example, the internal server logistics system server, the server simulation system to simulate warehouse server. 物流系统会接收订单后,会创建订单并发送订单到仓库系统服务器,具体流程如下: Logistics system after receiving the order, the order will be created and sent orders to the warehouse system server process is as follows:

[0079] 参照图5,其给出了本申请优选实施例所述一种多服务器交互业务的测试方法流程图。 [0079] Referring to Figure 5, which shows a flowchart of a preferred embodiment of the present application server is a multi-service interaction method of testing.

[0080] 步骤21,创建模拟的仓库系统服务器,所述模拟的仓库系统服务器用于模拟与物流系统服务器进行真实交互的仓库系统服务器; Warehouse system server [0080] Step 21, the server creates a simulated warehouse system, the system server simulated warehouse logistics system for simulating the real server interaction;

[0081] 步骤22,物流系统服务器根据接收的订单创建请求创建订单,并将对应的订单数据发送至模拟的仓库系统服务器,其中订单状态为创建中; [0081] Step 22, the server receives the logistics system according order creation request to create an order, and the order corresponding to the analog data transmission system of the warehouse server, which is created in order status;

[0082] 其中,模拟的仓库系统服务器接收到订单数据后的处理步骤包括: [0082] wherein the simulated warehouse server after receiving the order data processing step comprises:

[0083] 若模拟的仓库系统服务器接收到不完整的订单数据,则返回数据为系统错误; [0083] If the simulated warehouse server receives an incomplete order data, the system error data is returned;

[0084] 若模拟的仓库系统服务器接收到完整的订单数据,但所述订单数据无效,则返回数据为业务处理失败; [0084] If the simulated warehouse system server receives a complete order data, the order data is invalid, then the processing returns data service failure;

[0085] 若模拟的仓库系统服务器接收到完整的订单数据,且所述订单数据有效,则返回数据为业务处理成功。 [0085] When simulation system server repository receiving a complete order data, order data and the valid data is returned to the business process is successful.

[0086] 步骤23,判断在预置的时间内是否接收到模拟的仓库系统服务器处理的返回数据; [0086] Step 23 determines whether the received analog data warehouse server returns processing system within a preset time;

[0087] 若是,则执行步骤24,若否,则执行步骤25。 [0087] If yes, execute step 24, if not, step 25 is executed.

[0088] 步骤24,判断返回数据的类型; [0088] Step 24 determines the type of data returned;

[0089] 若所返回数据为系统错误,则执行步骤26 ; [0089] If the data returned by the system error, step 26 is performed;

[0090] 若返回数据业务处理失败,则执行步骤27 ; [0090] If the process fails to return data service, execute step 27;

[0091] 若返回数据业务处理成功,则执行步骤28 ; [0091] If the data service processing returns successful, step 28 is executed;

[0092] 步骤25,模拟的仓库系统服务器出现阻塞的情况,此时重新发送订单数据发送至模拟的仓库系统服务器。 [0092] Step 25, the server system simulated warehouse case blocking occurs, then re-send the order data to simulate warehouse system server.

[0093] 步骤26,不执行任何操作; [0093] Step 26, no operation is performed;

[0094] 步骤27,将业务状态标识为创建失败; [0094] Step 27, the service state identified as a creation failed;

[0095] 步骤28,将业务状态标识为创建成功。 [0095] Step 28, the state identified as create business success.

[0096] 步骤29,若发送业务数据的次数达到预置的范围后,仍未收到模拟服务器处理的返回数据,则标识业务状态为创建失败。 [0096] Step 29, if the number of transmitted service data reaches a preset range, yet returns the analog data processing server, the identity service creation failed state is received.

[0097] 若上述所有过程都执行正常,则多服务器交互业务的测试通过。 [0097] If all the above processes are executed properly, test the service through multi-server interaction.

[0098] 实际在处理中还可以创建一个模拟的ERP服务器,通过所述模拟的ERP服务器发送订单创建请求给物流系统服务器,然后物流服务器再创建订单。 [0098] In the actual process can also create a simulated ERP server, sends the order through the simulated request to the stream server creates ERP system server, and then re-create the stream server order. 若测试中订单创建失败,物流系统服务器可以直接发送错误数据给模拟的ERP服务器,告知其订单创建失败的事件。 If the test fails in order to create a logistics system server can be sent directly erroneous data to simulate the ERP server, indicating that the order failed to create an event.

[0099] 综上所述,首先本申请所述的方法模拟出了业务处理中内部服务器与外部服务器的交互过程,最初创建模拟服务器,所述模拟服务器用于模拟与内部服务器进行交互的外部服务器,内部服务器根据接收的业务请求生成业务,并将所述业务数据发送至模拟服务器,其中业务状态为创建中。 Method [0099] As described above, according to the present application is first simulated business process interaction with an external server, the internal server, the server initially created simulation, the simulation used to simulate the internal server is an external server interaction server internal server request based on the received traffic to generate traffic, and transmits the service data to the analog server, wherein the service status is created. 真实服务器若在预置的时间内接收到模拟服务器处理的返回数据,则根据不同的返回数据执行不同的处理操作;真实服务器若在预置的时间内未接收到模拟服务器处理的返回数据,则重新发送业务数据至模拟服务器。 Upon receiving the real server within a preset period of time the server returns the data to analog processing, depending on the return data to perform different processing operations; true if the server is not received within a preset time to an analog processing server returns the data, re-transmitting traffic data to the simulation server. 本申请在测试中会调用模拟服务器,并且针对模拟服务器处理后的返回数据,真实服务器可以执行相应的处理措施。 This application will test the simulation is called the server, and for the return of analog data processing server, the real server can perform the appropriate action. 本申请模拟出了多服务器的交互行为,能够测试出多服务器在交互处理业务中是否存在异常问题,从而可以使多服务器交互业务更加完善,使业务的处理更加流畅并且有保障。 This application is an interactive simulation of the behavior of multi-server, multi-server can test out whether or not there is an abnormality in the interactive processing business problems, which can make the business more perfect multi-server interaction, the processing business more fluid and secure.

[0100] 其次,本申请充分的测试出了业务交互过程中的各种可能性。 [0100] Second, the present application fully test out various possibilities for business interaction process. 模拟服务器会根据业务数据的不同情况,发送不同的返回数据,而真实服务器会根据模拟服务器的不同返回数据执行不同的操作,使得业务的整个流程的测试更加丰富,测试场景更加全面。 Simulation server depending on the circumstances of traffic data, send different return data, and the server returns a real server, depending on the analog data to perform different operations, making the entire process of testing services richer, more comprehensive test scenarios.

[0101] 再次,本申请中模拟了真实业务处理中的场景,设立了消息重发机制,但在业务处理中消息不是无限次重发的,因此当发送业务数据的次数超过预置的范围时,会标识业务状态为创建失败,更加符合真实业务处理操作,并且综合考虑了业务流程中的各种可能性,更加接近于真实的业务处理场景。 [0101] Again, in this application simulates real-world business scenarios process, set up message retransmission mechanism, but not unlimited service processing message retransmission, and therefore when the number of transmitting traffic data range exceeds a preset will identify the status of business creation fails, more in line with real business processing operations, and considering various possibilities of business processes, closer to the real business process scenarios.

[0102] 参照图6,其给出了本申请实施例所述一种多服务器交互业务的测试系统结构图。 [0102] Referring to Figure 6, which shows the one embodiment of the present application multi-server interactive services architecture test system embodiment of FIG.

[0103] 相应的,本申请还提供了一种多服务器交互业务的测试系统,包括内部服务器11和模拟服务器12,其中,所述模拟服务器12用于模拟与内部服务器11进行交互的外部服务器。 [0103] Accordingly, the present application also provides a test system for multi-server interactive services, including the internal server 11 and server 12 analog, wherein the analog simulation and the internal server 12 for external server 11 server interaction.

[0104] 所述内部服务器11包括: [0104] The internal server 11 comprises:

[0105] 创建模块111,用于根据接收的业务请求创建业务; [0105] creation module 111 for creating a service according to the received service request;

[0106] 第一发送模块112,用于将对应的业务数据发送至模拟服务器; [0106] The first sending module 112, configured to send the corresponding service data to the simulation server;

[0107] 此时,业务状态为创建中。 [0107] In this case, the business was created in the state.

[0108] 处理模块113,用于若在预置的时间内接收到模拟服务器处理的返回数据,则根据不同的返回数据执行不同的处理操作; [0108] The processing module 113 is configured to return data if received within a preset time to the analog server processing is executed in accordance with different processing operations different return transactions;

[0109] 第二发送模块114,用于若在预置的时间内未接收到模拟服务器处理的返回数据,则重新发送业务数据至模拟服务器。 [0109] The second sending module 114, configured to return the data if not received within a preset time to an analog processing server, the service data is re-sent to the simulation server.

[0110] 所述模拟服务器12包括: [0110] The simulation server 12 comprises:

[0111] 第一返回模块121,用于若模拟服务器接收到不完整的业务数据,则返回数据为系统错误; [0111] The first return module 121, if a server receives analog incomplete service data, the system returns error data;

[0112] 第二返回模块122,用于若模拟服务器接收到完整的业务数据,但所述业务数据无效,则返回数据为业务处理失败; [0112] The second return module 122, if used to simulate a complete business server receives data, but the traffic data is invalid, then the return data to the business process has failed;

[0113] 第三返回模块123,用于若模拟服务器接收到完整的业务数据,且所述业务数据有效,则返回数据为业务处理成功。 [0113] The third module 123 returns, when the analog server for receiving a complete data traffic, and the traffic data is valid, the returned data to the business process is successful.

[0114] 优选的,所述处理模块包括: [0114] Preferably, the processing module comprising:

[0115] 第一处理单元1131,用于若在预置的时间内接收到模拟服务器处理的返回数据为系统错误,则不执行任何操作; [0115] The first processing unit 1131, configured to, if received within a preset time to simulate the server returns the data processing system errors, do nothing;

[0116] 第二处理单元1132,用于若在预置的时间内接收到模拟服务器处理的返回数据业务处理失败,则将业务状态标识为创建失败; [0116] The second processing unit 1132, when receiving in return for a preset time to an analog data processing service processing server fails, the failure to create a service status identification;

[0117] 第三处理单元1133,若在预置的时间内接收到模拟服务器处理的返回数据业务处理成功,则将业务状态标识为创建成功。 [0117] The third processing unit 1133, if received within a preset time to an analog processing server returns the data service processing is successful, the service status identification is created. [0118] 优选的,第二发送模块114,还用于若发送业务数据的次数达到预置的范围后,仍未收到模拟服务器处理的返回数据,则标识业务状态为创建失败。 [0118] Preferably, the second sending module 114, further, if the number of times for transmitting traffic data reaches a preset range, yet returns the analog data processing server, the identity service creation failed state is received.

[0119] 对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 [0119] For system embodiments, since the method of the embodiment which is substantially similar, the description of a relatively simple, some embodiments of the methods see relevant point can be described.

[0120] 本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 [0120] In the present specification, various embodiments are described in a progressive way, differences from the embodiment and the other embodiments each of which emphasizes embodiment, various portions of the same embodiment of similarity between the embodiments refer to each other.

[0121] 本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。 [0121] The present application may be described in the general context of computer-executable instructions, executed by a computer, such as program modules. 一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。 Generally, program modules include performing particular tasks or implement particular abstract data types routines, programs, objects, components, data structures, and the like. 也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。 This application may be practiced in a distributed computing environment, the distributed computing environments, where tasks are performed by remote processing devices that are linked through a communications network. 在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。 In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices in.

[0122] 最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。 [0122] Finally, it should be noted that, herein, relational terms such as first and second and the like are only used to distinguish one entity or operation from another entity or action without necessarily requiring or implying any such actual relationship or order between these entities or operations. 而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或 Further, the term "comprising", "containing" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, goods or equipment not include only those elements but not expressly listed further comprising the other elements, or further comprising such process, method, article, or

者设备所固有的要素。 Are inherent elements of the device. 在没有更多限制的情况下,由语句“包括一个......”限定的要素, Without more constraints, by the wording "include a ......" defining element,

并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。 Does not exclude the existence of additional identical elements in the process comprises the element, method, article, or apparatus.

[0123] 以上对本申请所提供的一种多服务器交互业务的测试方法及系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 [0123] The foregoing test method and system for multi-server interactive services provided herein, and described in detail herein through specific examples of the principles and embodiments of the present application are set forth in description of the above embodiment only to assist in understanding the method and core ideas of the present application; Meanwhile, those of ordinary skill in the art based on the idea of ​​the present disclosure, may make modifications to the specific embodiments and applications of the embodiment, the summary, the the specification shall not be construed as limiting the present disclosure.

Claims (10)

  1. 1.一种多服务器交互业务的测试方法,其特征在于,包括: 创建模拟服务器,所述模拟服务器用于模拟与内部服务器进行真实交互的外部服务器; 内部服务器根据接收的业务请求生成业务,并将对应的业务数据发送至模拟服务器,其中业务状态为创建中; 若在预置的时间内接收到模拟服务器处理的返回数据,则根据不同的返回数据执行不同的处理操作; 若在预置的时间内未接收到模拟服务器处理的返回数据,则重新发送业务数据至模拟服务器; 若上述所有过程都执行正常,则多服务器交互业务的测试通过。 Test Method 1. A multi-server interactive services, characterized by comprising: creating a simulation server, the server is configured to simulate analog external server and the internal server interactive transactions; internal server generates a service request according to the received traffic, and corresponding to the analog data transmission service server, wherein the service state is created; return data if received within a preset period of time to simulate the server processing is executed in accordance with different processing operations different return data; if the preset is not received within the time server to return the analog data processing, re-transmits the service data to the simulation server; if all of the above-described processes are normally performed, the test traffic through a multi-server interaction.
  2. 2.根据权利要求1所述的方法,其特征在于,所述模拟服务器接收到业务数据后的处理步骤包括: 若模拟服务器接收到不完整的业务数据,则返回数据为系统错误; 若模拟服务器接收到完整的业务数据,但所述业务数据无效,则返回数据为业务处理失败; 若模拟服务器接收到完整的业务数据,且所述业务数据有效,则返回数据为业务处理成功。 2. The method according to claim 1, characterized in that, after the analog server receives service data processing step includes: if the server receives analog incomplete service data, the system returns error data; if the simulation server receipt of a complete service data, but the traffic data is invalid, the data is returned to the business process has failed; if a complete simulation server receives service data and the traffic data is valid, the returned data to the business process is successful.
  3. 3.根据权利要求2所述的方法,其特征在于,所述若在预置的时间内接收到模拟服务器处理的返回数据,则根据所述返回数据执行相应的处理,包括: 若在预置的时间内接收到模拟服务器处理的返回数据为系统错误,则不执行任何操作。 3. The method according to claim 2, wherein, if the response data received within a preset period of time to simulate the server processing is executed in accordance with the corresponding processing return data, comprising: if the preset the time of receiving the return data to the analog processing server for system errors, do nothing.
  4. 4.根据权利要求2所述的方法,其特征在于,所述在预置的时间内若接收到模拟服务器处理的返回数据,则根据所述返回数据执行相应的处理,包括: 若在预置的时间内接收到模拟服务器处理的返回数据为业务处理失败,则将业务状态标识为创建失败。 4. The method according to claim 2, wherein, upon receiving the return data to the analog processing server within the preset time, then performs a corresponding processing according to the return data, comprising: if the preset time to return the received data to the analog processing server service processing fails, the service state identified as a creation failed.
  5. 5.根据权利要求3所述的方法,其特征在于,所述若在预置的时间内接收到模拟服务器处理的返回数据,则根据所述返回数据执行相应的处理,包括: 若在预置的时间内接收到模拟服务器处理的返回数据为业务处理成功,则将业务状态标识为创建成功。 5. The method according to claim 3, wherein, if the return is received within a preset time to the analog server processes data, executes the corresponding processing according to the return data, comprising: if the preset in time to return to the simulation server receives data processed for the business process is successful, it will create business state identified as a success.
  6. 6.根据权利要求1所述的方法,其特征在于,所述重新发送业务数据至模拟服务器之后,还包括: 若发送业务数据的次数达到预置的范围后,仍未收到模拟服务器处理的返回数据,则标识业务状态为创建失败。 6. The method according to claim 1, characterized in that the re-simulation after transmitting traffic data to the server, further comprising: if the number of transmitted service data reaches a preset range, the server not receive an analog processing return data, identifies the service status for the creation failed.
  7. 7.根据权利要求1至6任一所述的方法,其特征在于,所述内部服务器为物流系统服务器,所述模拟服务器为模拟的仓库系统服务器,所述的方法包括: 创建模拟的仓库系统服务器,所述模拟的仓库系统服务器用于模拟与物流系统服务器进行真实交互的仓库系统服务器; 物流系统服务器根据接收的订单创建请求创建订单,并将对应的订单数据发送至模拟的仓库系统服务器,其中订单状态为创建中;若在预置的时间内接收到模拟的仓库系统服务器的返回数据,则根据所述返回数据执行相应的处理。 The method according to any one of claim 1 to claim 6, wherein said server internal logistics system server, the analog is an analog warehouse server system server, said method comprising: creating a simulated warehouse server, the system server simulated warehouse logistics system for simulation and interactive real warehouse server system server; server system stream according to the received order creation request to create order and transmits the order data corresponding to a simulated warehouse system server, wherein for creating order status; return data if the received analog warehouse system server within a preset time, performing corresponding processing according to the response data. 若在预置的时间内未接收到模拟的仓库系统服务器返回数据,则模拟的仓库系统服务器出现阻塞的情况,此时重新发送订单数据发送至模拟的仓库系统服务器; 若上述所有过程都执行正常,则多服务器交互业务的测试通过。 If not received analog data warehouse system server returns within the preset time, the simulated warehouse server has blocked the case, then re-send the order data to simulate warehouse system server; if all of the above-described processes are normally performed test the multi-server interactive services through.
  8. 8.一种多服务器交互业务的测试系统,其特征在于,包括内部服务器和模拟服务器,其中,所述模拟服务器用于模拟与内部服务器进行交互的外部服务器, 所述内部服务器包括: 创建模块,用于根据接收的业务请求创建业务; 第一发送模块,用于将对应的业务数据发送至模拟服务器; 处理模块,用于若在预置的时间内接收到模拟服务器处理的返回数据,则根据不同的返回数据执行不同的处理操作; 第二发送模块,用于若在预置的时间内未接收到模拟服务器处理的返回数据,则重新发送业务数据至模拟服务器。 A multi-server system testing interactive services, wherein the analog comprises an internal server and a server, wherein the server is used to simulate the internal analog server interacts external server, the internal server comprising: a creation module, according to the received service request for creating service; first sending module, configured to send the service data corresponding to the analog server; processing module, configured to return data if received within a preset period of time to simulate the server process, in accordance with the different return data to perform different processing operation; and a second sending module, configured to return the data if not received within a preset time to an analog processing server, the service data is re-sent to the simulation server.
  9. 9.根据权利要求8所述的系统,其特征在于,所述模拟服务器包括: 第一返回模块,用于若模拟服务器接收到不完整的业务数据,则返回数据为系统错误; 第二返回模块,用于若模拟服务器接收到完整的业务数据,但所述业务数据无效,则返回数据为业务处理失败;` 第三返回模块,用于若模拟服务器接收到完整的业务数据,且所述业务数据有效,则返回数据为业务处理成功。 9. The system of claim 8, wherein the analog server comprising: a first returning module, configured to, if the server receives the analog incomplete service data, the system returns error data; a second return module , if a server receives analog full service data, but the traffic data is invalid, the data is returned to the business process has failed; `return a third module, configured to simulate the server if receiving a complete service data and the service valid data, the data is returned to the business deal with success.
  10. 10.根据权利要求8所述的系统,其特征在于,所述处理模块,包括: 第一处理单元,用于若在预置的时间内接收到模拟服务器处理的返回数据为系统错误,则不执行任何操作。 10. The system according to claim 8, wherein the processing module, comprising: a first processing unit configured to, if received within a preset time to an analog processing server returns the data to the system error, is not nothing.
CN 201210071409 2012-03-16 2012-03-16 Test method and system for multi-server interactive services CN103312554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210071409 CN103312554B (en) 2012-03-16 2012-03-16 Test method and system for multi-server interactive services

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210071409 CN103312554B (en) 2012-03-16 2012-03-16 Test method and system for multi-server interactive services

Publications (2)

Publication Number Publication Date
CN103312554A true 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
CN 201210071409 CN103312554B (en) 2012-03-16 2012-03-16 Test method and system for multi-server interactive services

Country Status (1)

Country Link
CN (1) CN103312554B (en)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
Canfora et al. Service-oriented architectures testing: A survey
US20060282886A1 (en) Service oriented security device management network
US20050015472A1 (en) System and method for providing event notifications to information technology resource managers
US20030051186A1 (en) Methods to restore tests execution after unexpected crashes for use in a distributed test framework
US20100218237A1 (en) Systems and methods for managing third-party application programming interface in a collaboration space
US20050132337A1 (en) Trace management in client-server applications
US6772376B1 (en) System and method for reporting detected errors in a computer system
US20030061265A1 (en) Application manager for monitoring and recovery of software based application processes
US20080301647A1 (en) Delivering Malformed Data for Fuzz Testing to Software Applications
US20030120776A1 (en) System controller for use in a distributed processing framework system and methods for implementing the same
US6959340B1 (en) Platform independent business to business messenger in an enterprise computer system
US7020573B2 (en) Enhanced testing for compliance with universal plug and play protocols
US20120159420A1 (en) Quality on Submit Process
US20040024868A1 (en) System and method for in situ, real-time, supply chain, interoperability verification
US20050071243A1 (en) Non-disruptive business process debugging and analysis
US7007088B1 (en) Method and apparatus for providing an E-business audit trail in a distributed computing system
Bozkurt et al. Testing web services: A survey
US7092995B2 (en) Testing distributed applications
US20070116184A1 (en) Method for testing the integrity of a communication cable
US6654915B1 (en) Automatic fault management system utilizing electronic service requests
US20080010339A1 (en) Remote invocation mechanism for logging
CN101576843A (en) Method and device for testing application program interface
CN102053911A (en) Automated testing method and system based on Android and mobile terminal
US7788540B2 (en) Tracking down elusive intermittent failures
US20070033441A1 (en) System for and method of multi-location test execution

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1185736

Country of ref document: HK