Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2019-01-22
WUHAN DAMENG DATABASE
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The current fault simulation method is usually carried out on the source device or the destination device, which greatly limits the types of faults that can be simulated. Instability and other situations; another example is the traditional iptable service, which cannot simulate failures such as packet loss
At the same time, the traditional fault simulation method is closely related to the computer operating system at the source or destination, which is not conducive to the development of test automation.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for testingand simulating a database communication network
  • A method and device for testingand simulating a database communication network
  • A method and device for testingand simulating a database communication network

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of software testing, and provides a method and a device for testing and simulatingof a database communication network. The method comprises the following steps: preparing an expected test simulation plan, specifying a plurality of fault types to be simulated and a simulation sequence corresponding to each fault type, one or more of a scheduling frequency and a duration time. The testing and simulating plan is read and analyzed by the test simulation device, and the frequency and duration are scheduled according to the specified simulation sequence,and the simulation of each fault type is switched in turn. The various fault types include one or more of network latency, network packet loss, low bandwidth, bandwidth instability, network interruption, and network flash-off. The invention can flexibly compile a test simulation plan according to the test requirements, insert a test simulation device between the server end to be tested and the client end, realize the combined simulation of a plurality of network faults according to the test simulation plan, do not need to operate the hardware equipment, and can more efficiently and accuratelysimulate the network faults.

Description

【Technical field】 [0001] The invention relates to the technical field of software testing, and provides a database communication network testing simulation method and device. 【Background technique】 [0002] The database is an important part of the information system, which has very high requirements on the reliability of the system. It needs to be able to automatically detect and realize fault tolerance after various faults occur. In order to ensure the high availability of the database, in the process of design, development and testing of the database management system software, it is necessary to simulate a variety of faults to verify the correctness of the design and implementation. [0003] There are many sources of system failures. Network communication failures are very common, such as network interruptions, network interruptions, network packet loss, network delays, and bandwidth instability. The current fault simulation method is usually carried out on the source de...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L12/26
CPCH04L41/06H04L41/145H04L43/08
Inventor 冯源付铨石建军黄海明
Owner WUHAN DAMENG DATABASE