A method and device for testingand simulating a database communication network
A technology of communication network and simulation method, applied in the field of software testing, can solve the problems of limited fault types, inability to simulate network interruption, single simulation method, etc., to achieve the effect of improving resource utilization.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] The embodiment of the present invention provides a database communication network test simulation device, such as figure 1 As shown, the test simulation device is connected between the database server under test and the client under test, so as to realize the simulation of various fault types that may exist between the client and the server. The test simulation device includes a main control module 1, an execution module 2, an A cache module 3 and a B cache module 4, the main control module 1 is connected to the execution module 2, and the execution module 2 passes through the A cache module 3. Realize network connection with the client, and the execution module 2 realizes network connection with the server through the B cache module 4.
[0044] When using the test simulation device, the tester prepares an expected test simulation plan with a descriptive script language (such as XML, JSON, etc.) in advance, and as the input of the test simulation device; the test simula...
Embodiment 2
[0051] On the basis of the above-mentioned embodiment 1, the embodiment of the present invention also provides a database communication network test simulation method, which can be implemented by using the test simulation device in embodiment 1, and is used to realize the connection between the client and the server. Simulation of the many types of failures that may exist. like figure 2 As shown, it specifically includes the following steps:
[0052] In step 201, an expected test simulation plan is prepared, wherein the test simulation plan specifies multiple fault types to be simulated and one or more of the simulation sequence, scheduling frequency and duration corresponding to each fault type.
[0053] Wherein, the test simulation plan can be flexibly configured according to different requirements, and is compiled by the tester in a descriptive script language (such as XML, JSON, etc.), and used as the input of the test simulation device; the type of the failure It can b...
Embodiment 3
[0083] On the basis of the above-mentioned embodiment 1 and embodiment 2, the embodiment of the present invention also provides a database communication network test simulation method, which can still be implemented by using the test simulation device in embodiment 1, and the test simulation plan Also specifies the load test on the server, the method described in the embodiment of the present invention is used to realize the load test of the server access request. Such as image 3 As shown, it specifically includes the following steps:
[0084] Step 301, according to the test simulation plan, the test simulation device sends an access request to the server.
[0085] Wherein, the access request includes the first type of access and the second type of access, for example, the first type of access may be a webpage type of access, that is, requesting the server to access a web page; the second type of access may be a payment type of access, that is, requesting a service The clie...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


