CN109495336A - Network Abnormal test method and device, computer equipment and readable medium - Google Patents
Network Abnormal test method and device, computer equipment and readable medium Download PDFInfo
- Publication number
- CN109495336A CN109495336A CN201810991081.4A CN201810991081A CN109495336A CN 109495336 A CN109495336 A CN 109495336A CN 201810991081 A CN201810991081 A CN 201810991081A CN 109495336 A CN109495336 A CN 109495336A
- Authority
- CN
- China
- Prior art keywords
- tested
- service module
- test
- module
- configuration documentation
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Network Abnormal test method of the invention and device, computer equipment and readable medium.Its method includes: to generate the configuration documentation of test according to the relevant physical message of service module to be tested and Exception Type to be tested;Load configuration documentation;Testing service module, which is treated, according to configuration documentation carries out abnormal simulation test; so that the Network Abnormal environment generation of service module to be tested; to carry out Network Abnormal test; it can be while not modifying service code or closing external service; carry out Network Abnormal test; so as under the premise of keeping the independence of service logic, carry out Network Abnormal test, the flexibility of Network Abnormal test is very high;And various Exception Types can be tested, practicability is very strong.And technical solution of the present invention, any type of Network Abnormal of IP+Port dimension can be supported to simulate downstream service, realize the abnormal simulation test of personalization to service, meet the needs of various test scenes.
Description
Technical field
The present invention relates to computer application technology more particularly to a kind of Network Abnormal test method and devices, calculating
Machine equipment and readable medium.
Background technique
With the development of internet science and technology, the rise of various internet products has greatly facilitated people's lives.
Conventional internet product is generally divided into client and server-side, in the Quality Assurance of server-side, except conventional
Outside the means of testing such as function, performance, Network Abnormal test is also important quality assurance tool.Network Abnormal test, which refers to, is surveying
During examination, artificial analog network exception scene realizes the test of Network Abnormal.Existing Network Abnormal test is generally by repairing
Change service code or closes the modes such as external service to realize.
But the existing survey that Network Abnormal is realized by the modes such as modification service code or closing external service
Examination is only capable of the scene of analog service closing, and common for network congestion, Network Packet Loss, data packet repetition, connection time-out etc.
Network Abnormal scene can not simulate, thus cannot achieve Network Abnormal test.Therefore existing Network Abnormal testing scheme
Limitation it is larger, flexibility is poor.
Summary of the invention
The present invention provides a kind of Network Abnormal test method and device, computer equipment and readable medium, for abundant existing
The flexibility of some Network Abnormal testing schemes.
The present invention provides a kind of Network Abnormal test method, which comprises
According to the relevant physical message of service module to be tested and Exception Type to be tested, the configuration of test is generated
Document;
Load the configuration documentation;
Abnormal simulation test is carried out to the service module to be tested according to the configuration documentation, so that the clothes to be tested
The Network Abnormal environment generation for module of being engaged in, to carry out Network Abnormal test.
Still optionally further, in method as described above, according to the relevant physical message of service module to be tested and to
The Exception Type of test generates the configuration documentation of test, specifically includes:
According to the IP information of the downstream service module of service module to be tested, port information and the exception to be tested
Type generates the configuration documentation of test.
Still optionally further, in method as described above, according to the relevant physical message of service module to be tested and to
The Exception Type of test, generate test configuration documentation after, the method also includes:
The corresponding anomaly parameter of the Exception Type is configured in the configuration documentation.
Still optionally further, in method as described above, according to the configuration documentation to the service module to be tested into
Row exception simulation test, specifically includes:
According to the IP information of the downstream service module in the configuration documentation and the port information, described
The communication queue of the Exception Type communicated with the downstream service module is established on the target network interface card of service module to be tested;
For the network scenarios of the Exception Type, according to the anomaly parameter in the configuration documentation, to it is described to
The data that the target network interface card of testing service module is sent to the downstream service module carry out abnormal simulation process, so that into
Entering data in the corresponding communication queue has the Exception Type identical with scene;
Response of the service module to be tested under the network scenarios of the Exception Type is acquired, is completed to described to be measured
Try the Network Abnormal test of service module.
Still optionally further, in method as described above, according to the configuration documentation to the service module to be tested into
Row exception simulation test, so that the Network Abnormal environment generation of the service module to be tested, using Linux platform
Traffic Control kernel module is realized.
Still optionally further, in method as described above, the Exception Type includes packet loss, congestion, repetition or time-out.
The present invention provides a kind of Network Abnormal test device, and described device includes:
Generation module, for according to the relevant physical message of service module to be tested and Exception Type to be tested, life
At the configuration documentation of test;
Loading module, for loading the configuration documentation;
Abnormality test module is surveyed for carrying out abnormal simulation to the service module to be tested according to the configuration documentation
Examination, so that the Network Abnormal environment generation of the service module to be tested, to carry out Network Abnormal test.
Still optionally further, in device as described above, the generation module is used for:
According to the IP information of the downstream service module of service module to be tested, port information and the exception to be tested
Type generates the configuration documentation of test.
Still optionally further, in device as described above, the generation module is also used to configure in the configuration documentation
The corresponding anomaly parameter of the Exception Type.
Still optionally further, in device as described above, the abnormality test module is used for:
According to the IP information of the downstream service module in the configuration documentation and the port information, described
The communication queue of the Exception Type communicated with the downstream service module is established on the target network interface card of service module to be tested;
For the network scenarios of the Exception Type, according to the anomaly parameter in the configuration documentation, to it is described to
The data that the target network interface card of testing service module is sent to the downstream service module carry out abnormal simulation process, so that into
Entering data in the corresponding communication queue has the Exception Type identical with scene;
Response of the service module to be tested under the network scenarios of the Exception Type is acquired, is completed to described to be measured
Try the Network Abnormal test of service module.
Still optionally further, in device as described above, the abnormality test module uses the Traffic of Linux platform
Control kernel module is realized.
Still optionally further, in device as described above, the Exception Type includes packet loss, congestion, repetition or time-out.
The present invention also provides a kind of calculating equipment, comprising:
Processor;And
Memory is stored thereon with executable code, when the executable code is executed by the processor, makes described
Processor executes as above method described in any one.
The present invention also provides a kind of non-transitory machinable mediums, are stored thereon with executable code, when described
When executable code is executed by the processor of electronic equipment, the processor is made to execute as above any method.
Network Abnormal test method of the invention and device, computer equipment and readable medium, by according to clothes to be tested
The relevant physical message of module of being engaged in and Exception Type to be tested generate the configuration documentation of test;Load configuration documentation;Root
Testing service module is treated according to configuration documentation and carries out abnormal simulation test, so that the Network Abnormal environment of service module to be tested is raw
At, it, can be while not modifying service code or closing external service to carry out Network Abnormal test, progress Network Abnormal
Test, so as under the premise of keeping the independence of service logic, carry out Network Abnormal test, the spirit of Network Abnormal test
Activity is very high;And various Exception Types can be tested, practicability is very strong.And technical solution of the present invention, it can be under
The abnormal simulation test of personalization to service is realized in any type of Network Abnormal simulation for swimming service support IP+Port dimension,
Meets the needs of various test scenes.
Detailed description of the invention
Disclosure illustrative embodiments are described in more detail in conjunction with the accompanying drawings, the disclosure above-mentioned and its
Its purpose, feature and advantage will be apparent, wherein in disclosure illustrative embodiments, identical reference label
Typically represent same parts.
Fig. 1 is the flow chart of Network Abnormal test method embodiment of the invention.
Fig. 2 is a kind of architecture diagram of test case provided in an embodiment of the present invention.
Fig. 3 is the structure chart of Network Abnormal test device embodiment of the invention.
Fig. 4, which shows an embodiment according to the present invention, can be used for realizing the calculating equipment of above-mentioned Network Abnormal test method
Structural schematic diagram.
Specific embodiment
The preferred embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Preferred embodiment, however, it is to be appreciated that may be realized in various forms the disclosure without the embodiment party that should be illustrated here
Formula is limited.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and can be by the disclosure
Range is completely communicated to those skilled in the art.
Fig. 1 is the flow chart of Network Abnormal test method embodiment of the invention.As shown in Figure 1, the network of the present embodiment
Abnormality test method, can specifically include following steps:
S100, according to the relevant physical message of service module to be tested and Exception Type to be tested, generate test and use
Configuration documentation;
The executing subject of the Network Abnormal test method of the present embodiment is Network Abnormal test device, Network Abnormal test
Device is specially a Network Abnormal simulator, can analog network exception scene, realize to different Exception Type scenes
Simulation to realize test of the service module in Exception Type scene, and does not have to through modification code or closes external clothes
The test of the pragmatic existing network scenarios to Exception Type, the network scenarios test of Exception Type is very flexibly, conveniently.
The Network Abnormal of the present embodiment is tested, and is the simulation survey for treating the Network Abnormal of downstream service of testing service module
Examination.In abnormality test, it is necessary first to the relevant physical message of service module to be tested and Exception Type configuration to be tested
Test configuration documentation used.For example, the relevant physical message of service module to be tested of the present embodiment specifically also refers to
IP (address) information and port (Port) information of the downstream service module of service module to be tested, in the communications, IP information+
The downstream service module that Port information can be communicated with unique identification with service module to be tested.The exception to be tested of the present embodiment
Type may include packet loss, congestion, repetition or time-out etc..That is, the Network Abnormal of the present embodiment is simulated, it is used for
The quasi- downstream service module identified to IP address+Port of service module side form to be tested carries out Network Abnormal simulation, with test
Response of the service module to be tested under various abnormal network scenes.In the present embodiment, firstly, it is necessary to according to service mould to be tested
IP information+Port the information of block and Exception Type to be tested generate the configuration documentation of test.Still optionally further, right
In certain Exception Types, in order to more accurately test the network scenarios of various Exception Types, in the present embodiment, can also match
The corresponding anomaly parameter of arrangement abnormalities type in document is set, the anomaly parameter of the present embodiment can be different under corresponding Exception Type
Chang Chengdu.For example, if corresponding anomaly parameter can be the size of packet loss, and such as 20% loses when Exception Type is packet loss
Packet rate.If Exception Type is time-out, corresponding Exception Type can be the time, etc. of time-out.
For example, the following is several configuration documentations of the present embodiment:
In above-mentioned configuration documentation, simulate in corresponding abnormal scene, d represents overtime (delay) exception, l in third column
It is abnormal to represent packet loss (loss), du, which is represented, repeats (duplicate) exception.3 configurations as above respectively indicate: being for IP
11.251.208.140, the service setting delay 200ms that Port is 5560;It is 11.251.208.140 for IP, Port is
The packet loss of the service setting 20% of 3306d;It is 11.251.208.140, the service setting 20% that Port is 3408 for IP
Repetitive rate.In the manner described above, the configuration documentation of various Exception Types can be configured.
The configuration documentation of the present embodiment can be automatic in Network Abnormal simulator according to testing requirement by tester
It generates.
S101, load configuration documentation;
S102, the abnormal simulation test of testing service module progress is treated according to configuration documentation, so that service module to be tested
Network Abnormal environment generation, to carry out Network Abnormal test.
After the Network Abnormal simulator of the present embodiment generates configuration documentation, configuration documentation is loaded, and according to configuration documentation
It treats testing service module and carries out abnormal simulation test, Exception Type pair in the configuration documentation of service module to be tested can be simulated
The abnormal environment answered, to realize that Network Abnormal is tested.
For example, in abnormal simulation test, the target network card that can treat testing service module is controlled in the present embodiment
System, to simulate the Network Abnormals environment such as congestion, packet loss, repetition and time-out.
For example, step S102 " treats testing service module according to configuration documentation and carries out abnormal simulation test, so as to be measured
The Network Abnormal environment generation of service module is tried, to carry out Network Abnormal test ", it can specifically include following steps:
(a) according to the IP information and Port information of the downstream service module in configuration documentation, in service module to be tested
The communication queue of the Exception Type communicated with downstream service module is established on target network interface card;
(b) testing service module is treated according to the anomaly parameter in configuration documentation for the network scenarios of Exception Type
The data that target network interface card is sent to downstream service module carry out abnormal simulation process, so that into data in corresponding communication queue
With Exception Type identical with scene;
(c) response of the service module to be tested under the network scenarios of Exception Type is acquired, testing service mould is treated in completion
The Network Abnormal of block is tested.
In the present embodiment, it can be executed by the kernel Traffic Control module of Linux, such as by Linux
Core Traffic Control module, foundation communicates logical with downstream service module on the target network interface card of service module to be tested
Believe queue.Specifically, the quantity of the communication queue of foundation is consistent with the quantity of Exception Type to be tested.And by each exception
The scene of type is bound with corresponding communication queue, so that the subsequent data exception class having the same into communication queue
Type.
When abnormal simulation process, for the network scenarios of each Exception Type, according to the anomaly parameter in configuration documentation,
The target network interface card for treating testing service module is sent to the data of downstream service module and carries out abnormal simulation process so that into pair
Data have Exception Type identical with scene in the communication queue answered.Accordingly, in downstream service module side, pass through exception class
It is just Network Abnormal data that the corresponding communication queue of type, which receives the data that service module to be tested is sent, so as to test to
The Network Abnormal test for treating testing service module is completed in response of the testing service module under Network Abnormal environment.
In the present embodiment, in abnormal simulation test, it is also necessary to acquire service module to be tested in the network of Exception Type
Response under scene can just complete the Network Abnormal test for treating testing service module.The acquisition of the present embodiment clothes to be tested
Response of the module of being engaged under the network scenarios of Exception Type, including downstream service module in the module to be tested for receiving simulation
After Network Abnormal data, made feedback response.Based on these feedback responses, it can learn that service module to be tested is occurring
Processing capacity when Network Abnormal, to complete the Network Abnormal test of service module to be tested.
The Network Abnormal test method of the present embodiment can be bound with existing automatic testing process, be surveyed in automation
It tries in the preposition hook that process executes, first the above-mentioned Network Abnormal test of load the present embodiment, it is subsequent to carry out again often
Rule test.
The Network Abnormal test method of the present embodiment can test arbitrary service module to be tested.No matter clothes to be tested
Service between business module and downstream service module is based on transmission control protocol (Transmission Control
Protocol;) or User Datagram Protocol (User Datagram Protocol TCP;UDP), this implementation can be used
The Network Abnormal test method of example carrys out simulation test.
The Network Abnormal test method of the present embodiment, by according to the relevant physical message of service module to be tested and to
The Exception Type of test generates the configuration documentation of test;Load configuration documentation;Testing service module is treated according to configuration documentation
Abnormal simulation test is carried out, it, can be with to carry out Network Abnormal test so that the Network Abnormal environment generation of service module to be tested
While not modifying service code or closing external service, Network Abnormal test is carried out, so as to patrol in holding business
Under the premise of the independence collected, Network Abnormal test is carried out, the flexibility of Network Abnormal test is very high;And it can test each
Kind Exception Type, practicability are very strong.And the technical solution of the present embodiment, IP+Port dimension can be supported to downstream service
Any type of Network Abnormal simulation realizes the abnormal simulation test of personalization to service, meets the needs of various test scenes.
Fig. 2 is a kind of architecture diagram of test case provided in an embodiment of the present invention.As shown in Fig. 2, in the present embodiment, with to
For testing service modules A and downstream service module B, using the Network Abnormal test method of the present embodiment, testing service is treated
Modules A carries out Network Abnormal test.
For example, in the present embodiment, the downstream service module for being service module A to be tested with downstream service module B is being tested
When, need to learn the IP+Port of downstream service module B, then according to Network Abnormal type to be tested, it may be necessary to tie
Anomaly parameter is closed, realizes the generation of configuration documentation together.
For example, in the manner described above, to test delay 100ms, the Network Abnormal test device of the present embodiment can match
Set the corresponding configuration documentation of Network Abnormal delay 100ms.
In the analog network test of delay 100ms extremely, the Network Abnormal test device of the present embodiment loads first matches
The configuration documentation set, then can by Linux kernel Traffic Control module service module A to be tested clothes
It is engaged on device network interface card realizing the test of Network Abnormal delay with the dimension analog network of IP+Port delay scene extremely.
For example, first can by Linux kernel Traffic Control module service module A to be tested service
The abnormal corresponding communication queue that is delayed is established on device network interface card.Then it is asked in service module A to be tested downstream service module B transmission
When asking, Network Abnormal test device obtains the request data, and carries out abnormal simulation process to request data according to configuration documentation,
The 100ms so that treated request data is delayed, with analog network delay 100ms extremely, and by asking after abnormal simulation process
Ask data to be added in communication queue so that into the request data in communication queue be provided with abnormal delay 100ms because
Element.In this way, receiving the request data that service module A to be tested is sent by communication queue, just in the side downstream service module B
There is Network Abnormal delay 100ms, in this way, just realizing the abnormal simulation of network.It at this time can be in service mould to be tested
After Network Abnormal delay 100ms occurs when downstream service module B sends request data for block A, acquire service module A's to be tested
The response of response and downstream service module B to A is delayed so as to test service module A to be tested in Network Abnormal
The processing capacity of 100ms.
Fig. 3 is the structure chart of Network Abnormal test device embodiment of the invention.As shown in figure 3, the network of the present embodiment
Abnormality test device, can specifically include:
Generation module 10 is used for according to the relevant physical message of service module to be tested and Exception Type to be tested, raw
At the configuration documentation of test;
Loading module 11 is used to load the configuration documentation of the generation of generation module 10;
Abnormality test module 12 is used to treat the progress of testing service module according to the configuration documentation that loading module 11 loads different
Normal simulation test, so that the Network Abnormal environment generation of service module to be tested, to carry out Network Abnormal test.
The Network Abnormal test device of the present embodiment realizes the simulation test of Network Abnormal by using above-mentioned module, with
The realization principle of above-mentioned related method embodiment is identical, can refer to the record of above-mentioned related method embodiment in detail, herein not
It repeats again.
Still optionally further, in the Network Abnormal test device of the present embodiment, generation module 10 is specifically used for:
According to the IP information of the downstream service module of service module to be tested, port information and exception class to be tested
Type generates the configuration documentation of test.
Still optionally further, in the Network Abnormal test device of the present embodiment, generation module 10 is also used in configuration documentation
The corresponding anomaly parameter of middle arrangement abnormalities type.
Still optionally further, in the Network Abnormal test device of the present embodiment, abnormality test module 12 is used for:
The IP information and port information of the downstream service module in configuration documentation loaded according to loading module 11, to be measured
Try the communication queue that the Exception Type communicated with downstream service module is established on the target network interface card of service module;
The mesh of testing service module is treated according to the anomaly parameter in configuration documentation for the network scenarios of Exception Type
The data that mark network interface card is sent to downstream service module carry out abnormal simulation process, so that having into data in corresponding communication queue
There is Exception Type identical with scene;
Response of the service module to be tested under the network scenarios of Exception Type is acquired, testing service module is treated in completion
Network Abnormal test.
Still optionally further, in the Network Abnormal test device of the present embodiment, abnormality test module is using Linux platform
Traffic Control kernel module is realized.
Still optionally further, in the Network Abnormal test device of the present embodiment, Exception Type includes packet loss, congestion, repetition
Or time-out.
The Network Abnormal test device of above-described embodiment realizes the simulation test of Network Abnormal by using above-mentioned module,
It is identical as the realization principle of above-mentioned related method embodiment, the record of above-mentioned related method embodiment can be referred in detail, herein
It repeats no more.
Fig. 4, which shows an embodiment according to the present invention, can be used for realizing the calculating equipment of above-mentioned Network Abnormal test method
Structural schematic diagram.
Referring to fig. 4, calculating equipment 1000 includes memory 1010 and processor 1020.
Processor 1020 can be the processor of a multicore, also may include multiple processors.In some embodiments,
Processor 1020 may include a general primary processor and one or more special coprocessors, such as graphics process
Device (GPU), digital signal processor (DSP) etc..In some embodiments, the circuit reality of customization can be used in processor 1020
It is existing, such as application-specific IC (ASIC, Application Specific Integrated Circuit) or scene
Programmable gate array (FPGA, Field Programmable Gate Arrays).
Memory 1010 may include various types of storage units, such as Installed System Memory, read-only memory (ROM), and
Permanent storage.Wherein, static data that other modules that ROM can store processor 1020 or computer need or
Instruction.Permanent storage can be read-write storage device.Permanent storage can be after computer circuit breaking
The non-volatile memory device of the instruction and data of storage will not be lost.In some embodiments, permanent storage device is adopted
Use mass storage device (such as magnetically or optically disk, flash memory) as permanent storage.In other embodiment, permanently
Storage device can be removable storage equipment (such as floppy disk, CD-ROM drive).Installed System Memory can be read-write storage equipment or
The read-write storage equipment of person's volatibility, such as dynamic random access memory.Installed System Memory can store some or all processing
The instruction and data that device needs at runtime.In addition, memory 1010 may include the group of any computer readable storage medium
It closes, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), disk
And/or CD can also use.In some embodiments, memory 1010 may include readable and/or write removable
Store equipment, such as laser disc (CD), read-only digital versatile disc (such as DVD-ROM, DVD-dual layer-ROM), read-only indigo plant
Light CD, super disc density, flash card (such as SD card, min SD card, Micro-SD card etc.), magnetic floppy disc etc..It calculates
Machine readable storage medium does not include carrier wave and the momentary electron signal by wirelessly or non-wirelessly transmitting.
It is stored with executable code on memory 1010, when executable code is handled by processor 1020, can make to locate
Reason device 1020 executes the Network Abnormal test method addressed above.
The network according to the invention abnormality test method above is described in detail by reference to attached drawing.
In addition, being also implemented as a kind of computer program or computer program product, the meter according to the method for the present invention
Calculation machine program or computer program product include the calculating for executing the above steps limited in the above method of the invention
Machine program code instruction.
Alternatively, the present invention can also be embodied as a kind of (or the computer-readable storage of non-transitory machinable medium
Medium or machine readable storage medium), it is stored thereon with executable code (or computer program or computer instruction code),
When Fig. 8 executable code (or computer program or computer instruction code) is by electronic equipment (or calculating equipment, server etc.)
Processor when executing, so that Fig. 8 processor is executed each step according to the above method of the present invention.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein
Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.
The flow chart and block diagram in the drawings show the possibility of the system and method for multiple embodiments according to the present invention realities
Existing architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a journey
A part of sequence section or code, a part of Fig. 8 module, section or code include that one or more is patrolled for realizing defined
Collect the executable instruction of function.It should also be noted that in some implementations as replacements, the function of being marked in box can also be with
Occurred with being different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, it
Can also execute in the opposite order sometimes, this depends on the function involved.It is also noted that block diagram and/or process
The combination of each box in figure and the box in block diagram and or flow chart can use the defined functions or operations of execution
Dedicated hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle, practical application or improvement to the technology in market for best explaining each embodiment, or make the art
Other those of ordinary skill can understand each embodiment disclosed herein.
Claims (14)
1. a kind of Network Abnormal test method, which is characterized in that the described method includes:
According to the relevant physical message of service module to be tested and Exception Type to be tested, the configuration text of test is generated
Shelves;
Load the configuration documentation;
Abnormal simulation test is carried out to the service module to be tested according to the configuration documentation, so that the service mould to be tested
The Network Abnormal environment generation of block, to carry out Network Abnormal test.
2. the method according to claim 1, wherein according to the relevant physical message of service module to be tested and
Exception Type to be tested generates the configuration documentation of test, specifically includes:
According to the IP information of the downstream service module of service module to be tested, port information and the exception class to be tested
Type generates the configuration documentation of test.
3. the method according to claim 1, wherein according to the relevant physical message of service module to be tested and
Exception Type to be tested, generate test configuration documentation after, the method also includes:
The corresponding anomaly parameter of the Exception Type is configured in the configuration documentation.
4. according to the method described in claim 3, it is characterized in that, according to the configuration documentation to the service module to be tested
Abnormal simulation test is carried out, is specifically included:
According to the IP information of the downstream service module in the configuration documentation and the port information, described to be measured
Try the communication queue that the Exception Type communicated with the downstream service module is established on the target network interface card of service module;
For the network scenarios of the Exception Type, according to the anomaly parameter in the configuration documentation, to described to be tested
The data that the target network interface card of service module is sent to the downstream service module carry out abnormal simulation process so that into pair
Data have the Exception Type identical with scene in the communication queue answered;
Response of the service module to be tested under the network scenarios of the Exception Type is acquired, is completed to the clothes to be tested
The Network Abnormal test for module of being engaged in.
5. the method according to claim 1, wherein according to the configuration documentation to the service module to be tested
Abnormal simulation test is carried out, so that the Network Abnormal environment generation of the service module to be tested, using Linux platform
Traffic Control kernel module is realized.
6. -5 any method according to claim 1, which is characterized in that the Exception Type includes packet loss, congestion, repetition
Or time-out.
7. a kind of Network Abnormal test device, which is characterized in that described device includes:
Generation module, for generating and surveying according to the relevant physical message of service module to be tested and Exception Type to be tested
Configuration documentation on probation;
Loading module, for loading the configuration documentation;
Abnormality test module makes for carrying out abnormal simulation test to the service module to be tested according to the configuration documentation
The Network Abnormal environment generation of the service module to be tested is obtained, to carry out Network Abnormal test.
8. device according to claim 7, which is characterized in that the generation module is used for:
According to the IP information of the downstream service module of service module to be tested, port information and the exception class to be tested
Type generates the configuration documentation of test.
9. device according to claim 7, which is characterized in that the generation module is also used in the configuration documentation
Configure the corresponding anomaly parameter of the Exception Type.
10. device according to claim 9, which is characterized in that the abnormality test module is used for:
According to the IP information of the downstream service module in the configuration documentation and the port information, described to be measured
Try the communication queue that the Exception Type communicated with the downstream service module is established on the target network interface card of service module;
For the network scenarios of the Exception Type, according to the anomaly parameter in the configuration documentation, to described to be tested
The data that the target network interface card of service module is sent to the downstream service module carry out abnormal simulation process so that into pair
Data have the Exception Type identical with scene in the communication queue answered;
Response of the service module to be tested under the network scenarios of the Exception Type is acquired, is completed to the clothes to be tested
The Network Abnormal test for module of being engaged in.
11. device according to claim 7, which is characterized in that the abnormality test module is using Linux platform
Traffic Control kernel module is realized.
12. according to any device of claim 7-11, which is characterized in that the Exception Type includes packet loss, congestion, again
Multiple or time-out.
13. a kind of calculating equipment, comprising:
Processor;And
Memory is stored thereon with executable code, when the executable code is executed by the processor, makes the processing
Device executes the method as described in any one of claim 1-6.
14. a kind of non-transitory machinable medium, is stored thereon with executable code, when the executable code is electric
When the processor of sub- equipment executes, the processor is made to execute such as method described in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810991081.4A CN109495336A (en) | 2018-08-28 | 2018-08-28 | Network Abnormal test method and device, computer equipment and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810991081.4A CN109495336A (en) | 2018-08-28 | 2018-08-28 | Network Abnormal test method and device, computer equipment and readable medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109495336A true CN109495336A (en) | 2019-03-19 |
Family
ID=65690290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810991081.4A Pending CN109495336A (en) | 2018-08-28 | 2018-08-28 | Network Abnormal test method and device, computer equipment and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109495336A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109921960A (en) * | 2019-03-27 | 2019-06-21 | 北京百度网讯科技有限公司 | A kind of IDC network of computer room abnormality test method and device |
CN110798378A (en) * | 2019-10-22 | 2020-02-14 | 苏州浪潮智能科技有限公司 | Storage testing method and system |
CN112416739A (en) * | 2019-08-23 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Test method and device and electronic equipment |
CN112882897A (en) * | 2021-02-24 | 2021-06-01 | 中国工商银行股份有限公司 | Abnormal scene processing method and device, electronic equipment and storage medium |
CN114338492A (en) * | 2021-12-31 | 2022-04-12 | 苏州浪潮智能科技有限公司 | Virtual network performance testing method and device, computer equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841436A (en) * | 2010-03-02 | 2010-09-22 | 北京星网锐捷网络技术有限公司 | Method for testing performance of IPFIX (Internet Protocol Flow Information Export) server, device and system thereof |
CN104767655A (en) * | 2015-03-17 | 2015-07-08 | 微梦创科网络科技(中国)有限公司 | Analog result detection method and device |
CN105512343A (en) * | 2016-01-06 | 2016-04-20 | 北京京东尚科信息技术有限公司 | Method and device for simulating network anomaly and testing automatic switching of database faults |
CN106411600A (en) * | 2016-10-31 | 2017-02-15 | 努比亚技术有限公司 | Test equipment and method |
CN108199913A (en) * | 2017-12-18 | 2018-06-22 | 瑞斯康达科技发展股份有限公司 | A kind of method and apparatus for realizing delay testing |
-
2018
- 2018-08-28 CN CN201810991081.4A patent/CN109495336A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841436A (en) * | 2010-03-02 | 2010-09-22 | 北京星网锐捷网络技术有限公司 | Method for testing performance of IPFIX (Internet Protocol Flow Information Export) server, device and system thereof |
CN104767655A (en) * | 2015-03-17 | 2015-07-08 | 微梦创科网络科技(中国)有限公司 | Analog result detection method and device |
CN105512343A (en) * | 2016-01-06 | 2016-04-20 | 北京京东尚科信息技术有限公司 | Method and device for simulating network anomaly and testing automatic switching of database faults |
CN106411600A (en) * | 2016-10-31 | 2017-02-15 | 努比亚技术有限公司 | Test equipment and method |
CN108199913A (en) * | 2017-12-18 | 2018-06-22 | 瑞斯康达科技发展股份有限公司 | A kind of method and apparatus for realizing delay testing |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109921960A (en) * | 2019-03-27 | 2019-06-21 | 北京百度网讯科技有限公司 | A kind of IDC network of computer room abnormality test method and device |
CN112416739A (en) * | 2019-08-23 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Test method and device and electronic equipment |
CN112416739B (en) * | 2019-08-23 | 2023-10-24 | 腾讯科技(深圳)有限公司 | Test method and device and electronic equipment |
CN110798378A (en) * | 2019-10-22 | 2020-02-14 | 苏州浪潮智能科技有限公司 | Storage testing method and system |
CN110798378B (en) * | 2019-10-22 | 2022-04-22 | 苏州浪潮智能科技有限公司 | Storage testing method and system |
CN112882897A (en) * | 2021-02-24 | 2021-06-01 | 中国工商银行股份有限公司 | Abnormal scene processing method and device, electronic equipment and storage medium |
CN114338492A (en) * | 2021-12-31 | 2022-04-12 | 苏州浪潮智能科技有限公司 | Virtual network performance testing method and device, computer equipment and medium |
CN114338492B (en) * | 2021-12-31 | 2023-08-25 | 苏州浪潮智能科技有限公司 | Virtual network performance testing method and device, computer equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109495336A (en) | Network Abnormal test method and device, computer equipment and readable medium | |
CN106940428B (en) | Chip verification method, device and system | |
CN111967610B (en) | Federal learning incentive method, device, equipment and storage medium based on block chain | |
CN107329861A (en) | A kind of multiplex roles method of testing and device | |
US20170168885A1 (en) | System and Method for Testing Internet of Things Network | |
CN105450476B (en) | A kind of regression test system and test method | |
CN109815252A (en) | Test data generating method, device, computer equipment and readable storage medium storing program for executing | |
US20170295084A1 (en) | Methods, systems, and computer readable media for emulating network traffic patterns on a virtual machine | |
CN110401634A (en) | A kind of web application hole detection regulation engine implementation method and terminal | |
CN111813686B (en) | Game testing method and device, testing terminal and storage medium | |
CN110007921A (en) | A kind of code dissemination method and device | |
CN110096401A (en) | A kind of server data process performance test method and device | |
US8990058B2 (en) | Generating and evaluating expert networks | |
CN117278434A (en) | Flow playback method and device and electronic equipment | |
CN108829503A (en) | Method for scheduling task, device, system, medium and electronic equipment | |
CN109345392A (en) | Program topic publication, the publication of answer code, answer code check method and system | |
CN112559291A (en) | Resource monitoring method and device, electronic equipment and storage medium | |
CN111443894A (en) | Random number generation method, device and medium based on block chain | |
US11334349B2 (en) | Removing feature flag-related codebase from applications | |
CN111984519B (en) | Test method and device for service system | |
CN109189673B (en) | Software test scheme, and method and device for determining test cases | |
CN115297024B (en) | Performance test method and device of network security equipment and electronic equipment | |
CN112306857A (en) | Method and apparatus for testing applications | |
Hsueh et al. | An approach for evaluating the effectiveness of design patterns in software evolution | |
CN108880941A (en) | A kind of data transmitting test device and its data processing method of block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210105 Address after: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Alibaba (China) Co.,Ltd. Address before: 510627 unit 01, 13th floor, Tower B, Pingyun Plaza, 163 xipingyun Road, Huangpu Avenue, Tianhe District, Guangzhou City, Guangdong Province Applicant before: UC MOBILE (CHINA) Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190319 |