CN107222332A - Method of testing, device, system and machinable medium - Google Patents
Method of testing, device, system and machinable medium Download PDFInfo
- Publication number
- CN107222332A CN107222332A CN201710311424.3A CN201710311424A CN107222332A CN 107222332 A CN107222332 A CN 107222332A CN 201710311424 A CN201710311424 A CN 201710311424A CN 107222332 A CN107222332 A CN 107222332A
- Authority
- CN
- China
- Prior art keywords
- test
- data bag
- strategy
- processing mode
- test data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2033—Failover techniques switching over of hardware resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
The invention discloses a kind of method of testing, device, system and machinable medium.Methods described includes:Receive test data bag;The processing mode of test data bag is determined according to default Test Strategy;The test data bag is handled according to the processing mode.In this way, the processing mode of test data bag is determined by presetting Test Strategy, processing mode can flexibly be determined according to the situation of test data bag, the purpose tested comprehensively can be reached, and it is time saving and energy saving.
Description
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of method of testing, device, system and machine readable storage
Medium.
Background technology
In the fields such as network service, data storage, when any one link such as Network Abnormal etc. causes failure, it is necessary to and
When determine failure situation and carry out respective handling.For example in the Internet, applications, network service is essential link, generally
Occur between system and system, using between application and between interface and interface.And communication protocol is typically based on
TCP and UDP, is carried out on transport network layer.Although TCP is a kind of reliable link, still passed through in live network
The problems such as often occurring transmitting time-out between data-bag lost, packet content error of transmission, packet.In addition, database purchase
In service, for data safety, a primary database and multiple deployment way from database is usually taken, when primary database hair
(such as Network Abnormal) works on, it is necessary to primary database will be promoted to from database automatically during raw failure.Use this data
The system of library storage service architecture can be described as the system based on master-slave database framework.In order to carry out database failure automatic switchover
Test, it is necessary to simulate the scene of various database failures, the execution automatically switched with trigger data storehouse failure.It is different for network
The scene of the database failure often resulted in, the analogy method of prior art is the means by artificial turn-off data storehouse communication network
Carry out the execution that trigger data storehouse failure automatically switches the method that causes Network Abnormal.
The content of the invention
An aspect of this disclosure provides a kind of method of testing, including:
Receive test data bag;
The processing mode of test data bag is determined according to default Test Strategy;
The test data bag is handled according to the processing mode.
Wherein, the processing mode of the test data bag is determined according to default Test Strategy, including:
It is determined that current default Test Strategy;
When current default Test Strategy is delay policy, it is to be returned after delay preset time to determine the processing mode
Return the response results of the test data bag.
Wherein, the processing mode of the test data bag is determined according to default Test Strategy, including:
It is determined that current default Test Strategy;
When current default Test Strategy is without response policy, determine the processing mode not return to the test number
According to the response results of bag.
The basis presets the result that Test Strategy determines the test data bag, including:
It is determined that current default Test Strategy;
When current default Test Strategy is returns to error strategy, determine the processing mode to return to the test number
According to the errored response result of bag.
Wherein, the basis presets Test Strategy and determines that the processing mode of test data bag includes:
The first data characteristics is extracted from the test data bag;
The first data characteristics extracted is detected using default Data Detection model;
The processing mode of test data bag is determined according to testing result.
Methods described also includes:
Obtain training sample and the corresponding processing mode of training sample;
Extract the second data characteristics in training sample;
The default Data Detection model is obtained using second data characteristics and the training of corresponding processing mode;
The Data Detection model is output as being applicable the processing mode of the training sample.
The second aspect of the disclosure, additionally provides a kind of test device, including:
Receiving module, is configured as receiving test data bag;
Determining module, is configured as determining the processing mode of test data bag according to default Test Strategy;
Processing module, is configured as handling the test data bag according to the processing mode.
The third aspect of the disclosure there is provided a kind of test system, including:
One or more memories, be stored with executable instruction;And
One or more processors, perform the executable instruction, to realize above-mentioned method of testing.
The fourth aspect of the disclosure is there is provided a kind of machinable medium, and be stored with executable instruction, and the instruction exists
Above-mentioned method of testing is realized when being executed by processor.
Brief description of the drawings
In order to be more fully understood from the disclosure and its advantage, referring now to the following description with reference to accompanying drawing, wherein:
Fig. 1 is the flow chart of the method for testing proposed according to disclosure exemplary embodiment;
Fig. 2 is the method flow diagram of step 102 in the method for testing provided according to disclosure exemplary embodiment;
Fig. 3 is the training method flow of Data Detection model in the method for testing provided according to disclosure exemplary embodiment
Figure;
Fig. 4 is the structure chart of the test device provided according to disclosure exemplary embodiment;
Fig. 5 is the structure chart of determining module 402 in the method for testing provided according to disclosure exemplary embodiment;
Fig. 6 is the structure chart of another embodiment in the method for testing provided according to disclosure exemplary embodiment;
Fig. 7 is the structured flowchart of the test device provided according to disclosure exemplary embodiment.
Embodiment
According to reference to accompanying drawing to the described in detail below of disclosure exemplary embodiment, other side, the advantage of the disclosure
It is will become obvious with prominent features for those skilled in the art.
In the disclosure, term " comprising " and " containing " and its derivative mean including and it is unrestricted;Term "or" is bag
Containing property, mean and/or.
In this manual, following various embodiments for being used to describe disclosure principle are explanation, should not be with any
Mode is construed to the scope of limitation invention.Referring to the drawings described below is used to help comprehensive understanding by claim and its equivalent
The exemplary embodiment for the disclosure that thing is limited.It is described below to help to understand including a variety of details, but these details should
Think what is be merely exemplary.Therefore, it will be appreciated by those of ordinary skill in the art that without departing substantially from the scope of the present disclosure and spirit
In the case of, embodiment described herein can be made various changes and modifications.In addition, for clarity and brevity,
Eliminate the description of known function and structure.In addition, through accompanying drawing, same reference numbers are used for identity function and operation.
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart
Frame or its combination can be realized by computer program instructions.These computer program instructions can be supplied to all-purpose computer,
The processor of special-purpose computer or other programmable data processing units, so that these instructions can be with when by the computing device
Create the device for realizing function/operation illustrated in these block diagrams and/or flow chart.
Therefore, the technology of the disclosure can be realized in the form of hardware and/or software (including firmware, microcode etc.).Separately
Outside, the technology of the disclosure can take the form of the computer program product on the computer-readable medium for the instruction that is stored with, should
Computer program product is available for instruction execution system to use.In the context of the disclosure, computer-readable medium can be energy
Enough include, store, transmit, propagate or transmit the arbitrary medium of instruction.For example, computer-readable medium can include but is not limited to
Electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium.The specific example bag of computer-readable medium
Include:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory, such as arbitrary access are deposited
Reservoir (RAM) or flash memory;And/or wire/wireless communication link.
In order that the business such as network service and data storage more preferably more efficient can provide the user service, in business
Need to do it comprehensive test before release, business can be surveyed by simulating various failure situations in test process
Examination, to determine an efficient breakdown judge and processing method.
According to each embodiment of the disclosure, it is proposed that a kind of method of testing, the method for testing is receiving test data bag
Afterwards, the processing mode of test data bag is determined according to default Test Strategy;The test is handled according to the processing mode afterwards
Packet.In this way, the processing mode of test data bag is determined by presetting Test Strategy, can be according to test data
The situation of bag flexibly determines processing mode, can reach the purpose tested comprehensively, and time saving and energy saving.
Fig. 1 is the flow chart of the method for testing proposed according to disclosure exemplary embodiment.As shown in figure 1, the test
Method comprises the following steps 101-103, wherein:
In a step 101, for receiving test data bag;
In a step 102, the processing mode of test data bag is determined for the default Test Strategy of basis;
In step 103, for handling the test data bag according to the processing mode.
In the present embodiment, in test process, after test data bag is received, the survey is determined according to default Test Strategy
The processing mode of packet is tried, and test data bag is handled according to identified processing mode.Pressed with it, can realize
Test data bag is handled according to strategy set in advance, a test environment is simulated for one time, and then test the performance of business
Deng.
In one embodiment, test data bag can be the user data produced in the client in test environment, for
For network service test, test data bag can apply test data bag.One agency can also be set in test environment
Server, for receiving test data bag, and determines according to default Test Strategy the processing mode of test data bag, and according to place
Reason mode is handled test data bag.That is, the method for testing in the present embodiment is performed on proxy server, hair
Troubleshooting can be carried out according to proxy server to the processing mode of test data bag by sending the request of data end of test data bag
Or normal process.Default Test Strategy can be set in advance, after test data bag is received, according to test data
When bag determines Test Strategy for failure strategy, test data bag is handled according to corresponding failure strategy, request of data end
After the normal request response for receiving test data bag, it is determined whether there occurs failure, then carried out accordingly in the event of failure
Troubleshooting, so it is whether effective according to troubleshooting result test failure processing mode.Certainly, it is non-event to preset Test Strategy
During barrier strategy, then to test data bag progress normal process, request of data termination is received after normal request response, without event
Barrier processing.
In one embodiment, presetting Test Strategy includes failure strategy and non-faulting strategy, under failure strategy, tests number
It is the mode that troubleshooting is carried out to test data bag according to the processing mode of bag, rather than under failure strategy, the place of test data bag
Reason mode is the mode that normal process is carried out to test data bag.Failure strategy can include operating lag strategy, without response plan
Slightly, response error strategy etc..When default Test Strategy is operating lag strategy, the processing mode of test data bag is pre- for delay
Response results are returned after fixing time;When default Test Strategy is without response policy, the processing mode of test data bag is not return
Any response results;When default Test Strategy is response error strategy, the processing mode of test data bag is the sound for returning to mistake
Answer result.It is, of course, understood that other any Test Strategies can also be set according to actual conditions, it is true to simulate
The various failure situations that can occur under environment.
In one embodiment, the processing mode of the test data bag is determined according to default Test Strategy, including:It is determined that working as
Preceding default Test Strategy;When current default Test Strategy is delay policy, it is pre- in delay to determine the processing mode
If returning to the response results of the test data bag after the time.In another embodiment, according to being determined default Test Strategy
The processing mode of test data bag, including:It is determined that current default Test Strategy;It is without response in current default Test Strategy
When tactful, it is the response results for not returning to the test data bag to determine the processing mode.In another embodiment, according to pre-
If Test Strategy determines the result of the test data bag, including:It is determined that current default Test Strategy;Current pre-
If Test Strategy determines the processing mode to return to the errored response knot of the test data bag to return during error strategy
Really.
In one embodiment, the default Test Strategy can be configured according to specifically test, for network service
Test can take delay response, be not responding to and return to the strategies such as mistake, and can also be arranged to different for other tests
Strategy.
In one embodiment, when method is performed, the selection of default Test Strategy can be carried out as the case may be, including
Randomly choose a Test Strategy, or in a certain order, the corresponding Test Strategy of the selection such as time, can also be according to pre-
If the result of calculation of function selects corresponding Test Strategy etc..
In one embodiment, default Test Strategy can also be determined according to data characteristics in test data bag.Some
In operational trials, producing for failure may be related with the data characteristics in packet, that is to say, that some certain data characteristicses
Same failure may be caused.For this kind of situation, a Data Detection mould can be obtained by the training of specifically training sample
Type, determines which kind of Test Strategy the packet is adapted to by the data characteristics in the Data Detection model inspection packet.
Fig. 2 is the method flow diagram of step 102 in the method for testing provided according to disclosure exemplary embodiment.Such as Fig. 2
Shown, step 102 comprises the following steps 201-203, wherein:
In step 201, for extracting the first data characteristics from the test data bag;
In step 202., for being detected using default Data Detection model to the first data characteristics extracted;
In step 203, for determining the processing mode of test data bag according to testing result.
In the present embodiment, the first data characteristics can be the characteristic value of some key messages in packet, for example may be used
Be packet rs destination, source address, data length, data content etc. by some existing characteristic values calculate functions and calculate and obtain
Characteristic value.Default Data Detection model can be a data model obtained by clustering learning, and it is inputted as data spy
Levy, be output as after Test Strategy, that is, the data feature values for inputting a certain test data bag, the Data Detection model can basis
Data feature values determine that the test data bag is applied to any Test Strategy, and then can be according to the Test Strategy determined
Determine the processing mode of test data bag.By this mode of the present embodiment, can according to the feature of specific packet come
Test Strategy so that test result is closer to the truth, is tested better.
Fig. 3 is the training method flow of Data Detection model in the method for testing provided according to disclosure exemplary embodiment
Figure.As shown in figure 3, method of testing also comprises the following steps 301-303, wherein:
In step 301, for obtaining training sample and the corresponding processing mode of training sample;
In step 302, for extracting the second data characteristics in training sample;
In step 303, for obtaining the number using second data characteristics and the training of corresponding processing mode
According to detection model;The Data Detection model is output as being applicable the processing mode of the training sample.
In the present embodiment, the training sample under actual services environment, and response are collected by existing means first
The processing mode of the training sample.For example, under database test environment, for packet A, if the packet is due to size
Or content etc. is undesirable and cause to occur during database purchase the failure of storage mistake, i.e. true place of the database to it
Reason response is the result for returning to mistake, in this case, and training sample is packet A, and corresponding processing mode is return
The troubleshooting mode of error result.Pair in the present embodiment, it is trained one by one for a series of training samples being collected into, i.e.,
Each training sample, extracts the second data characteristics therein, and the second data characteristics is identical with the first data characteristics.Utilize extraction
Second data characteristics is trained to primary data detection model parameter, and the result obtained according to primary data detection model is with being somebody's turn to do
The corresponding true processing mode of training sample is compared, and data detection model parameter is adjusted.By a series of training
After the training of sample, until the adjusted value of Data Detection model parameter reaches maximum time less than predetermined threshold value, or frequency of training
After number, deconditioning, and obtain final Data Detection model.
By embodiment of the disclosure, it can be tested by simulation test environment, and then to business to be tested, and
Simplifying of test process is caused by default Test Strategy, testing cost is saved, improves measuring accuracy.
Fig. 4 is the structure chart of the test device provided according to disclosure exemplary embodiment.As shown in figure 4, test device
Including:
Receiving module 401, is configured as receiving test data bag;
Determining module 402, is configured as determining the processing mode of test data bag according to default Test Strategy;
Processing module 403, is configured as handling the test data bag according to the processing mode.
In the present embodiment, in test process, after test data bag is received, the survey is determined according to default Test Strategy
The processing mode of packet is tried, and test data bag is handled according to identified processing mode.Pressed with it, can realize
Test data bag is handled according to strategy set in advance, a test environment is simulated for one time, and then test the performance of business
Deng.
In one embodiment, test data bag can be the user data produced in the client in test environment, for
For network service test, test data bag can apply test data bag.One agency can also be set in test environment
Server, for receiving test data bag, and determines according to default Test Strategy the processing mode of test data bag, and according to place
Reason mode is handled test data bag.That is, the method for testing in the present embodiment is performed on proxy server, hair
Troubleshooting can be carried out according to proxy server to the processing mode of test data bag by sending the request of data end of test data bag
Or normal process.Default Test Strategy can be set in advance, after test data bag is received, according to test data
When bag determines Test Strategy for failure strategy, test data bag is handled according to corresponding failure strategy, request of data end
After the normal request response for receiving test data bag, it is determined whether there occurs failure, then carried out accordingly in the event of failure
Troubleshooting, so it is whether effective according to troubleshooting result test failure processing mode.Certainly, it is non-event to preset Test Strategy
During barrier strategy, then to test data bag progress normal process, request of data termination is received after normal request response, without event
Barrier processing.
In one embodiment, presetting Test Strategy includes failure strategy and non-faulting strategy, under failure strategy, tests number
It is the mode that troubleshooting is carried out to test data bag according to the processing mode of bag, rather than under failure strategy, the place of test data bag
Reason mode is the mode that normal process is carried out to test data bag.Failure strategy can include operating lag strategy, without response plan
Slightly, response error strategy etc..When default Test Strategy is operating lag strategy, the processing mode of test data bag is pre- for delay
Response results are returned after fixing time;When default Test Strategy is without response policy, the processing mode of test data bag is not return
Any response results;When default Test Strategy is response error strategy, the processing mode of test data bag is the sound for returning to mistake
Answer result.It is, of course, understood that other any Test Strategies can also be set according to actual conditions, it is true to simulate
The various failure situations that can occur under environment.
In one embodiment, the default Test Strategy can be configured according to specifically test, for network service
Test can take delay response, be not responding to and return to the strategies such as mistake, and can also be arranged to different for other tests
Strategy.
In one embodiment, presetting the selection of Test Strategy can be carried out as the case may be, including random selection one
Individual Test Strategy, or in a certain order, the corresponding Test Strategy of the selection such as time, can also be according to the meter of preset function
Calculate result and select corresponding Test Strategy etc..
In one embodiment, default Test Strategy can also be determined according to data characteristics in test data bag.Some
In operational trials, producing for failure may be related with the data characteristics in packet, that is to say, that some certain data characteristicses
Same failure may be caused.For this kind of situation, a Data Detection mould can be obtained by the training of specifically training sample
Type, determines which kind of Test Strategy the packet is adapted to by the data characteristics in the Data Detection model inspection packet.
Fig. 5 is the structure chart of determining module 402 in the method for testing provided according to disclosure exemplary embodiment.Such as Fig. 5
Shown, determining module 402 includes, wherein:
Extracting sub-module 501, is configured as from the test data bag extracting the first data characteristics;
Detection sub-module 502, is configurable for special to the first data extracted using default Data Detection model
Levy and detected;
Determination sub-module 503, is configured as determining the processing mode of test data bag according to testing result.
In the present embodiment, the first data characteristics can be the characteristic value of some key messages in packet, for example may be used
Be packet rs destination, source address, data length, data content etc. by some existing characteristic values calculate functions and calculate and obtain
Characteristic value.Default Data Detection model can be a data model obtained by clustering learning, and it is inputted as data spy
Levy, be output as after Test Strategy, that is, the data feature values for inputting a certain test data bag, the Data Detection model can basis
Data feature values determine that the test data bag is applied to any Test Strategy, and then can be according to the Test Strategy determined
Determine the processing mode of test data bag.By this mode of the present embodiment, can according to the feature of specific packet come
Test Strategy so that test result is closer to the truth, is tested better.
Fig. 6 is the structure chart of another embodiment in the method for testing provided according to disclosure exemplary embodiment.Such as Fig. 6 institutes
Show, test device also includes:
Acquisition module 601, is configured as obtaining training sample and the corresponding processing mode of training sample;
Extraction module 602, is configured as extracting the second data characteristics in training sample;
Training module 603, is configured to, with second data characteristics and the training of corresponding processing mode obtains institute
State Data Detection model;The Data Detection model is output as being applicable the processing mode of the training sample.
In the present embodiment, the training sample under actual services environment, and response are collected by existing means first
The processing mode of the training sample.For example, under database test environment, for packet A, if the packet is due to size
Or content etc. is undesirable and cause to occur during database purchase the failure of storage mistake, i.e. true place of the database to it
Reason response is the result for returning to mistake, in this case, and training sample is packet A, and corresponding processing mode is return
The troubleshooting mode of error result.Pair in the present embodiment, it is trained one by one for a series of training samples being collected into, i.e.,
Each training sample, extracts the second data characteristics therein, and the second data characteristics is identical with the first data characteristics.Utilize extraction
Second data characteristics is trained to primary data detection model parameter, and the result obtained according to primary data detection model is with being somebody's turn to do
The corresponding true processing mode of training sample is compared, and data detection model parameter is adjusted.By a series of training
After the training of sample, until the adjusted value of Data Detection model parameter reaches maximum time less than predetermined threshold value, or frequency of training
After number, deconditioning, and obtain final Data Detection model.
By embodiment of the disclosure, it can be tested by simulation test environment, and then to business to be tested, and
Simplifying of test process is caused by default Test Strategy, testing cost is saved, improves measuring accuracy.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of test system, including:
One or more memories, be stored with executable instruction;And
One or more processors, perform the executable instruction, to realize following either method.
Wherein, processor is configured as:
Receive test data bag;
The processing mode of test data bag is determined according to default Test Strategy;
The test data bag is handled according to the processing mode.
Above-mentioned processor is also configured to:
The processing mode of the test data bag is determined according to default Test Strategy, including:
It is determined that current default Test Strategy;
When current default Test Strategy is delay policy, it is to be returned after delay preset time to determine the processing mode
Return the response results of the test data bag.
Wherein, the processing mode of the test data bag is determined according to default Test Strategy, including:
It is determined that current default Test Strategy;
When current default Test Strategy is without response policy, determine the processing mode not return to the test number
According to the response results of bag.
The result of the test data bag is determined according to default Test Strategy, including:
It is determined that current default Test Strategy;
When current default Test Strategy is returns to error strategy, determine the processing mode to return to the test number
According to the errored response result of bag.
The basis presets Test Strategy and determines that the processing mode of test data bag includes:
The first data characteristics is extracted from the test data bag;
The first data characteristics extracted is detected using default Data Detection model;
The processing mode of test data bag is determined according to testing result.
The processor is additionally configured to:
Obtain training sample and the corresponding processing mode of training sample;
Extract the second data characteristics in training sample;
The default Data Detection model is obtained using second data characteristics and the training of corresponding processing mode;
The Data Detection model is output as being applicable the processing mode of the training sample.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 7 diagrammatically illustrates the structured flowchart of the test device according to the embodiment of the disclosure one.
As shown in fig. 7, including processor 710 and computer-readable storage medium according to the test device of the embodiment of the disclosure one
Matter 720.
Specifically, processor 710 can for example include general purpose microprocessor, instruction set processor and/or related chip group
And/or special microprocessor (for example, application specific integrated circuit (ASIC)), etc..Processor 710 can also include being used to cache using
The onboard storage device on way.Processor 710 can be performed for reference to described by Fig. 1-3 and disclosure other embodiment
According to single treatment units either multiple processing units of the different actions of the method flow of the disclosure each embodiment.
Computer-readable recording medium 720, for example, can be that can include, store, transmit, propagate or transmit appointing for instruction
Meaning medium.For example, readable storage medium storing program for executing can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device,
Device or propagation medium.The specific example of readable storage medium storing program for executing includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Optical storage
Device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication chain
Road.
Computer-readable recording medium 720 can include computer program 721, and the computer program 721 can include generation
Code/computer executable instructions, its when being performed as processor 710 so that processor 710 performs the embodiment of the present disclosure described by
Method flow and its any deformation.
Computer program 721 can be configured with such as computer program code including computer program module.Example
Such as, in the exemplary embodiment, the code in computer program 721 can include one or more program modules, for example including
721A, module 721B ....It should be noted that the dividing mode and number of module are not fixed, those skilled in the art can
To be combined according to actual conditions using suitable program module or program module, when the combination of these program modules is by processor 710
During execution so that processor 710 can perform the method flow and its any deformation described by the embodiment of the present disclosure.
In accordance with an embodiment of the present disclosure, processor 710 can use sender unit 730 and signal receiver 740 to hold
Method flow and its any deformation described by the row embodiment of the present disclosure.
Can be by there is the electricity of computing capability according to the above method of each embodiment of the disclosure, device, unit and/or module
Sub- equipment performs the software comprising computer instruction to realize.The system can include storage device, described above to realize
Various storages.The electronic equipment for having computing capability can include general processor, digital signal processor, dedicated processes
Device, re-configurable processor etc. are able to carry out the device of computer instruction, but not limited to this.Perform such instruction and cause electricity
Sub- equipment is configured as performing the above-mentioned operations according to the disclosure.Above-mentioned each equipment and/or module can be in an electronics
Realize, can also be realized in distinct electronic apparatuses in equipment.These softwares can be stored in a computer-readable storage medium.
The one or more programs of computer-readable recording medium storage (software module), one or more of programs include instruction, when
When being instructed described in one or more of electronic equipment computing device, the instruction causes electronic equipment to perform the side of the disclosure
Method.
These softwares can be stored as form (such as similar ROM etc. of volatile memory or Nonvolatile memory devices
Storage device), it is whether erasable or rewritable, or it is stored as form (such as RAM, storage core of memory
Piece, equipment or integrated circuit), or (such as, CD, DVD, disk or magnetic are stored on light computer-readable recording medium or magnetic computer-readable recording medium
Band etc.).It should be appreciated that storage device and storage medium are adapted for the machine readable storage dress for storing one or more programs
The embodiment put, one program or multiple programs include instruction, when executed, realize the implementation of the disclosure
Example.Embodiment provides program and stores the machine-readable storage device of this program, and described program includes being used to realize the disclosure
Any one claim described in device or method code.Furthermore, it is possible to via any medium (such as, via wired
The signal of communication that connection or wireless connection are carried) to send a telegram here and transmit these programs, multiple embodiments suitably include these programs.
Such as field programmable gate can also be used according to the method for each embodiment of the disclosure, device, unit and/or module
Array (FPGA), programmable logic array (PLA), on-chip system, the system on substrate, the system in encapsulation, special integrated electricity
Road (ASIC) can come real for carrying out the hardware such as integrated or encapsulation any other rational method or firmware to circuit
It is existing, or realized with software, the appropriately combined of three kinds of implementations of hardware and firmware.The system can include storage device,
To realize storage as described above.When realizing in such ways, used software, hardware and/or firmware be programmed or
It is designed as performing the corresponding above method, step and/or the function according to the disclosure.Those skilled in the art can be according to actual need
Come one or more of these systems and module suitably, or a part therein or some use it is different upper
Implementation is stated to realize.These implementations each fall within the protection domain of the disclosure.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of test device
When device is performed so that device enough performs above-mentioned method of testing, and methods described includes:
Receive test data bag;
The processing mode of test data bag is determined according to default Test Strategy;
The test data bag is handled according to the processing mode.
Wherein, the processing mode of the test data bag is determined according to default Test Strategy, including:
It is determined that current default Test Strategy;
When current default Test Strategy is delay policy, it is to be returned after delay preset time to determine the processing mode
Return the response results of the test data bag.
Wherein, the processing mode of the test data bag is determined according to default Test Strategy, including:
It is determined that current default Test Strategy;
When current default Test Strategy is without response policy, determine the processing mode not return to the test number
According to the response results of bag.
The basis presets the result that Test Strategy determines the test data bag, including:
It is determined that current default Test Strategy;
When current default Test Strategy is returns to error strategy, determine the processing mode to return to the test number
According to the errored response result of bag.
Wherein, the basis presets Test Strategy and determines that the processing mode of test data bag includes:
The first data characteristics is extracted from the test data bag;
The first data characteristics extracted is detected using default Data Detection model;
The processing mode of test data bag is determined according to testing result.
Methods described also includes:
Obtain training sample and the corresponding processing mode of training sample;
Extract the second data characteristics in training sample;
The default Data Detection model is obtained using second data characteristics and the training of corresponding processing mode;
The Data Detection model is output as being applicable the processing mode of the training sample.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (9)
1. a kind of method of testing, including:
Receive test data bag;
The processing mode of test data bag is determined according to default Test Strategy;
The test data bag is handled according to the processing mode.
2. the processing side of the test data bag is the method for claim 1, wherein determined according to default Test Strategy
Formula, including:
It is determined that current default Test Strategy;
When current default Test Strategy is delay policy, determine the processing mode to return to institute after delay preset time
State the response results of test data bag.
3. the processing side of the test data bag is the method for claim 1, wherein determined according to default Test Strategy
Formula, including:
It is determined that current default Test Strategy;
When current default Test Strategy is without response policy, determine the processing mode not return to the test data bag
Response results.
4. the method as described in claim 1, the result of the test data bag is determined according to default Test Strategy, bag
Include:
It is determined that current default Test Strategy;
When current default Test Strategy is returns to error strategy, determine the processing mode to return to the test data bag
Errored response result.
5. the method for claim 1, wherein the basis presets the processing mode that Test Strategy determines test data bag
Including:
The first data characteristics is extracted from the test data bag;
The first data characteristics extracted is detected using default Data Detection model;
The processing mode of test data bag is determined according to testing result.
6. method as claimed in claim 5, in addition to:
Obtain training sample and the corresponding processing mode of training sample;
Extract the second data characteristics in training sample;
The Data Detection model is obtained using second data characteristics and the training of corresponding processing mode;The data inspection
Survey the processing mode that model is output as being applicable the training sample.
7. a kind of test device, including:
Receiving module, is configured as receiving test data bag;
Determining module, is configured as determining the processing mode of test data bag according to default Test Strategy;
Processing module, is configured as handling the test data bag according to the processing mode.
8. a kind of test system, including:
One or more memories, be stored with executable instruction;And
One or more processors, perform the executable instruction, to realize the side according to claim any one of 1-6
Method.
9. a kind of machinable medium, be stored with executable instruction, and the instruction is realized according to power when being executed by processor
Profit requires the method described in 1~6 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710311424.3A CN107222332B (en) | 2017-05-05 | 2017-05-05 | Test method, device, system and machine readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710311424.3A CN107222332B (en) | 2017-05-05 | 2017-05-05 | Test method, device, system and machine readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107222332A true CN107222332A (en) | 2017-09-29 |
CN107222332B CN107222332B (en) | 2020-04-07 |
Family
ID=59943875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710311424.3A Active CN107222332B (en) | 2017-05-05 | 2017-05-05 | Test method, device, system and machine readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107222332B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110233779A (en) * | 2019-07-16 | 2019-09-13 | 迈普通信技术股份有限公司 | Test method, test macro and computer readable storage medium |
CN111385147A (en) * | 2020-03-06 | 2020-07-07 | 腾讯科技(深圳)有限公司 | Fault simulation method, device and computer readable storage medium |
CN113821481A (en) * | 2020-06-19 | 2021-12-21 | 北京金山云网络技术有限公司 | Test data source generation method and device and server |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020016937A1 (en) * | 2000-08-02 | 2002-02-07 | Henry Houh | Method and apparatus for utilizing a network processor as part of a test system |
CN1336744A (en) * | 2000-08-01 | 2002-02-20 | 上海龙林通信技术有限公司 | Safe Ethernet constituting method |
CN101540705A (en) * | 2009-04-01 | 2009-09-23 | 中兴通讯股份有限公司 | Message agent device and simulation-generation method of test environment |
CN102325057A (en) * | 2011-06-27 | 2012-01-18 | 中国商用飞机有限责任公司 | Network testing device |
CN106570513A (en) * | 2015-10-13 | 2017-04-19 | 华为技术有限公司 | Fault diagnosis method and apparatus for big data network system |
-
2017
- 2017-05-05 CN CN201710311424.3A patent/CN107222332B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1336744A (en) * | 2000-08-01 | 2002-02-20 | 上海龙林通信技术有限公司 | Safe Ethernet constituting method |
US20020016937A1 (en) * | 2000-08-02 | 2002-02-07 | Henry Houh | Method and apparatus for utilizing a network processor as part of a test system |
CN101540705A (en) * | 2009-04-01 | 2009-09-23 | 中兴通讯股份有限公司 | Message agent device and simulation-generation method of test environment |
CN102325057A (en) * | 2011-06-27 | 2012-01-18 | 中国商用飞机有限责任公司 | Network testing device |
CN106570513A (en) * | 2015-10-13 | 2017-04-19 | 华为技术有限公司 | Fault diagnosis method and apparatus for big data network system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110233779A (en) * | 2019-07-16 | 2019-09-13 | 迈普通信技术股份有限公司 | Test method, test macro and computer readable storage medium |
CN110233779B (en) * | 2019-07-16 | 2021-08-06 | 迈普通信技术股份有限公司 | Test method, test system and computer readable storage medium |
CN111385147A (en) * | 2020-03-06 | 2020-07-07 | 腾讯科技(深圳)有限公司 | Fault simulation method, device and computer readable storage medium |
CN111385147B (en) * | 2020-03-06 | 2021-07-27 | 腾讯科技(深圳)有限公司 | Fault simulation method, device and computer readable storage medium |
CN113821481A (en) * | 2020-06-19 | 2021-12-21 | 北京金山云网络技术有限公司 | Test data source generation method and device and server |
CN113821481B (en) * | 2020-06-19 | 2024-05-24 | 北京金山云网络技术有限公司 | Method and device for generating test data source and server |
Also Published As
Publication number | Publication date |
---|---|
CN107222332B (en) | 2020-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110414242B (en) | Method, device, equipment and medium for detecting business logic loophole | |
CN107294808B (en) | Interface test method, device and system | |
US20170168885A1 (en) | System and Method for Testing Internet of Things Network | |
CN109063486B (en) | Safety penetration testing method and system based on PLC equipment fingerprint identification | |
US9507696B2 (en) | Identifying test gaps using code execution paths | |
Awad et al. | Tools, techniques, and methodologies: A survey of digital forensics for scada systems | |
CN104462962B (en) | A kind of method for detecting unknown malicious code and binary vulnerability | |
CN104765682B (en) | Detection method and system under the line of cross site scripting leak | |
CN113114680B (en) | Detection method and detection device for file uploading vulnerability | |
CN105577799B (en) | A kind of fault detection method and device of data-base cluster | |
CN108241580B (en) | Client program testing method and terminal | |
US10970391B2 (en) | Classification method, classification device, and classification program | |
KR102061833B1 (en) | Apparatus and method for investigating cyber incidents | |
Wu et al. | Exploring the use of PLC debugging tools for digital forensic investigations on SCADA systems | |
US9591510B2 (en) | Systems and methods to create message traffic | |
CN107222332A (en) | Method of testing, device, system and machinable medium | |
JP2019505871A (en) | Method and apparatus for verifying supply chain of electronic device using side channel information in code analysis | |
CN107038108A (en) | The method of testing and device of software | |
CN104767655A (en) | Analog result detection method and device | |
Ennert et al. | Testing of IDS model using several intrusion detection tools | |
US11805142B2 (en) | Communication system and communication method | |
Potteiger et al. | Evaluating the effects of cyber-attacks on cyber physical systems using a hardware-in-the-loop simulation testbed | |
JP7074188B2 (en) | Security coping ability measurement system, method and program | |
CN117828605A (en) | System vulnerability detection method and device, electronic equipment and storage medium | |
US10055522B2 (en) | Automated checker generation |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |