CN110022239A - A kind of detection method, equipment and storage medium - Google Patents
A kind of detection method, equipment and storage medium Download PDFInfo
- Publication number
- CN110022239A CN110022239A CN201810016306.4A CN201810016306A CN110022239A CN 110022239 A CN110022239 A CN 110022239A CN 201810016306 A CN201810016306 A CN 201810016306A CN 110022239 A CN110022239 A CN 110022239A
- Authority
- CN
- China
- Prior art keywords
- port
- mentioned
- processing
- data message
- preset 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3648—Software debugging using additional hardware
- G06F11/3656—Software debugging using additional hardware using a specific debug interface
-
- 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
Abstract
The embodiment of the invention discloses a kind of detection method, equipment and storage medium, above-mentioned detection method is applied in detection device, and the detection device is integrated with detection platform, comprising: obtains preset data message and the corresponding expected processing result of preset data message;By first port by preset data message transmissions to second port;Wherein, first port is a port in detection device in multiple default ports;Second port is a port with first port physical connection in multiple default ports;Default processing parameter is obtained by detection platform;According to the preset data message that the analysis processing of default processing parameter is obtained from second port, the corresponding real processing results of preset data message are obtained;Wherein, processing parameter is preset for handling preset data message;According to expected processing result and real processing results, testing result is determined.
Description
Technical field
The present invention relates to the communications field more particularly to a kind of detection methods, equipment and storage medium.
Background technique
With the fast development of the communication technology, the function of communication equipment is increasingly comprehensive, and a communication equipment is usually integrated with
Multiple business function needs the mating support of bottom chip, upper layer software (applications), therefore, to chip, the upper layer software (applications) in communication equipment
It is particularly important to carry out automatic detection.Wherein, the purpose that automatic detection is carried out to communication equipment, primarily to verify data
Whether the process flow of message is correct.There are the networking diagrams in the case of tester for common by Fig. 1, as shown in Figure 1, existing inspection
Survey method usually requires to carry out networking, and the port of tester is connected with the port of communication equipment, specifically, the end of tester
Mouth 1 is connected with the port 1 of communication equipment, and tester constructs and sends message to communication equipment port 1, and communication equipment passes through port
It after 1 receives message, is exported after handling message, the port 2 of tester receives message and analyzed, to verify the report
Whether text is correctly forwarded, and testing result is finally obtained.
However, the process flow of used tester is complex when carrying out automatic detection to communication equipment at present,
And long processing period;On the other hand, tester, which carries out carrying into execution a plan for automatic detection, is provided by manufacturer, and flexibility is low.
Summary of the invention
The embodiment of the present invention provides a kind of detection method, equipment and storage medium, can exist efficiently against communication equipment
It is completely dependent on the defect of tester when automatic detection, simplifies automatic detection process, improves the flexibility of detection scheme.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is achieved in that
The embodiment of the invention provides a kind of detection methods, are applied in detection device, the detection device is integrated with inspection
Survey platform, which comprises
Obtain preset data message and the corresponding expected processing result of the preset data message;
By first port by the preset data message transmissions to second port;Wherein, the first port is detection
A port in equipment in multiple default ports;The second port is in the multiple default port, with the first end
The a port of mouth physical connection;
Default processing parameter is obtained by the detection platform;
According to the preset data message that the default processing parameter analysis processing is obtained from the second port, obtain
The corresponding real processing results of the preset data message;Wherein, the default processing parameter is used for the preset data report
Text is handled;
According to the expected processing result and the real processing results, testing result is determined.
It is in the above scheme, described to determine testing result according to the expected processing result and the real processing results,
Include:
Compare the expected processing result and the real processing results;
When the expected processing result is identical with the real processing results, determine that the testing result is logical for detection
It crosses;
When the expected processing result and the real processing results difference, determine that the testing result is not led to for detection
It crosses.
In the above scheme, described according to the expected processing result and the real processing results, determine testing result
Later, the method also includes:
The testing result is transmitted to the detection platform.
In the above scheme, after the transmission testing result, the method also includes:
The testing result is recorded by the detection platform.
In the above scheme, the acquisition preset data message and the corresponding expected processing result of the preset data message
Before, the method also includes:
The first port and the second port are determined from the multiple default port;
The first port and the second port is respectively configured;
First port described in physical connection and the second port.
It is in the above scheme, described that default processing parameter is obtained by the detection platform, comprising:
Obtain default Run Script;
The default Run Script is run by the detection platform, obtains the default processing parameter.
The embodiment of the present invention proposes a kind of detection device, and the detection device is integrated with detection platform, and the detection is set
Standby includes: processing module and detection module,
The processing module, for obtaining preset data message and the corresponding expected processing knot of the preset data message
Fruit;And pass through first port for the preset data message transmissions to second port;Wherein, the first port is that detection is set
A port in standby in multiple default ports;The second port is in the multiple default port, with the first port
The a port of physical connection;
The detection module, for obtaining default processing parameter by the detection platform;And according to the default place
Reason Parameter analysis handles the preset data message obtained from the second port, and it is corresponding to obtain the preset data message
Real processing results;Wherein, the default processing parameter is for handling the preset data message;
The processing module is also used to determine detection knot according to the expected processing result and the real processing results
Fruit.
In the above scheme, the processing module is also used to according to the expected processing result and the actual treatment knot
Fruit after determining testing result, sends the testing result.
The embodiment of the present invention proposes a kind of detection device, the detection device include processor, receiver, transmitter,
It is stored with memory, the communication interface of the processor-executable instruction, and for connecting the processor, receiver, transmission
The bus of device, the memory and the communication interface, when executed, the processor, receiver and
Transmitter executes detection method as described above.
The embodiment of the present invention proposes a kind of computer readable storage medium, is stored thereon with program, sets applied to detection
In standby, detection method as described above is realized when described program is executed by processor.
It can be seen that obtaining preset data report the embodiment of the invention provides a kind of detection method, equipment and storage medium
Text expected processing result corresponding with preset data message;By first port by preset data message transmissions to second port;
Wherein, first port is a port in detection device in multiple default ports;Second port be multiple default ports in, with
The a port of first port physical connection;Default processing parameter is obtained by detection platform;It is analyzed according to default processing parameter
The preset data message obtained from second port is handled, the corresponding real processing results of preset data message are obtained;Wherein, it presets
Processing parameter is for handling preset data message;According to expected processing result and real processing results, detection knot is determined
Fruit.That is, a kind of detection method, equipment and storage medium that the embodiment of the present invention proposes, in the feelings for not using tester
Under condition, sending and receiving for preset data message is carried out by the default port of communication equipment, and to preset data message into
After row processing, by comparing real processing results and expected processing result, testing result is determined, so as to efficiently against logical
Letter equipment is completely dependent on the defect of tester in automatic detection, simplifies automatic detection process, improves the spirit of detection scheme
Activity.
Detailed description of the invention
There are the networking diagrams in the case of tester for common by Fig. 1;
Fig. 2 is a kind of implementation process schematic diagram one for detection method that the embodiment of the present invention proposes;
Fig. 3 is proposition of the embodiment of the present invention without the networking diagram in the case of tester;
Fig. 4 is a kind of implementation process schematic diagram two for detection method that the embodiment of the present invention proposes;
Fig. 5 is a kind of implementation process schematic diagram three for detection method that the embodiment of the present invention proposes;
Fig. 6 is a kind of implementation process schematic diagram four for detection method that the embodiment of the present invention proposes;
Fig. 7 is a kind of implementation process schematic diagram five for detection method that the embodiment of the present invention proposes;
Fig. 8 is a kind of implementation process schematic diagram six for detection method that the embodiment of the present invention proposes;
Fig. 9 is the composed structure schematic diagram one for the detection device that the embodiment of the present invention proposes;
Figure 10 is the composed structure schematic diagram two for the detection device that the embodiment of the present invention proposes;
Figure 11 is the composed structure schematic diagram three for the detection device that the embodiment of the present invention proposes.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
Embodiment one
Fig. 2 is a kind of implementation process schematic diagram one for detection method that the embodiment of the present invention proposes, as shown in Fig. 2, at this
In the embodiment of invention, the method that detection device is detected be may comprise steps of:
Step 101 obtains preset data message and the corresponding expected processing result of preset data message.
In an embodiment of the present invention, the available preset data message of above-mentioned detection device and above-mentioned preset data message
Corresponding expected processing result.
It should be noted that in an embodiment of the present invention, Fig. 3 be the embodiment of the present invention propose without tester in the case of
Networking diagram, as shown in figure 3, the composed structure of above-mentioned detection device may include by central processing unit (Central
Processing Unit, CPU), detection chip, default port and detection platform constitute, wherein default port may include
First port, second port and third port.
Further, in an embodiment of the present invention, the available above-mentioned preset data message of above-mentioned detection device and upper
State the corresponding above-mentioned expected processing result of preset data message, wherein above-mentioned expected processing result is in above-mentioned detection device
When detection chip operates normally, after handling according to default processing parameter above-mentioned preset data message, the correspondence of acquisition
With above-mentioned preset data message, expected data message.
Further, in an embodiment of the present invention, above-mentioned detection device is obtaining above-mentioned preset data message and above-mentioned
It is expected that above-mentioned CPU can be read out above-mentioned preset data message after processing result.
Step 102 passes through first port for preset data message transmissions to second port;Wherein, first port is detection
A port in equipment in multiple default ports;Second port is in multiple default ports, with first port physical connection
A port.
In an embodiment of the present invention, above-mentioned detection device is obtaining above-mentioned preset data message and above-mentioned preset data report
It, can be by above-mentioned preset data message transmissions to first port, then by upper after the corresponding above-mentioned expected processing result of text
It states first port and is transmitted to second port.
It should be noted that in an embodiment of the present invention, above-mentioned second port is in above-mentioned multiple default ports, first
A port other than port.Further, above-mentioned second port and above-mentioned first port carry out physical connection, so as to so that
Above-mentioned second port receives the above-mentioned preset data message of above-mentioned first port transmission.
Further, in an embodiment of the present invention, the above-mentioned CPU in above-mentioned detection device to above-mentioned data message into
, can be by above-mentioned preset data message transmissions to above-mentioned first port after row is read, and it will be above-mentioned by above-mentioned first port
Preset data message transmissions go out above-mentioned detection device.
It should be noted that in an embodiment of the present invention, compared with prior art, above-mentioned CPU passes through above-mentioned first end
Above-mentioned preset data message transmissions are gone out the process of above-mentioned detection device by mouth, and the process of data packet is sent similar to tester.
Further, in an embodiment of the present invention, above-mentioned detection device is supreme by above-mentioned preset data message transmissions
First port is stated, after being transmitted to second port by above-mentioned first port, above-mentioned present count can be obtained by second port
According to message.
Further, in an embodiment of the present invention, the above-mentioned CPU in above-mentioned detection device is by above-mentioned preset data message
It is transmitted to after above-mentioned first port, since above-mentioned first port and above-mentioned second port are in physical connection state, above-mentioned the
Two-port netwerk can obtain above-mentioned preset data message, and the inspection by above-mentioned preset data message transmissions into above-mentioned detection device
Survey chip.
It should be noted that in an embodiment of the present invention, compared with prior art, above-mentioned detection chip passes through above-mentioned the
Two-port netwerk receives the process of above-mentioned preset data message, and the mistake of the data packet of tester transmission is received similar to detection device
Journey.
Step 103 obtains default processing parameter by detection platform.
In an embodiment of the present invention, above-mentioned detection device is by above-mentioned preset data message transmissions to first port, so
After being transmitted to second port by above-mentioned first port afterwards, default processing parameter can be obtained by detection platform.
It should be noted that in an embodiment of the present invention, the detection platform in above-mentioned detection device can run default
Run Script, to issue above-mentioned default processing parameter.Wherein, Tool Command Language (Tool can be used in above-mentioned Run Script
Command Language, TCL) it is constructed.
Further, in an embodiment of the present invention, above-mentioned detection platform can be integrated automatic detection platform
TESTORM。
Step 104, the preset data message obtained according to default processing parameter analysis processing from second port, are preset
The corresponding real processing results of data message;Wherein, processing parameter is preset for handling preset data message.
In an embodiment of the present invention, above-mentioned detection device by second port receive above-mentioned preset data message it
Afterwards, the above-mentioned preset data message that processing is obtained from second port can be analyzed according to default processing parameter, obtained above-mentioned default
The corresponding real processing results of data message.
It should be noted that in an embodiment of the present invention, above-mentioned default processing parameter be used for preset data message into
Row processing.
Further, in an embodiment of the present invention, the detection chip in above-mentioned detection device is passing through above-mentioned second end
After mouthful receiving above-mentioned preset data message, can according to above-mentioned default processing parameter to above-mentioned preset data message at
Reason analysis, to obtain the corresponding real processing results of above-mentioned preset data message.
Step 105, according to expected processing result and real processing results, determine testing result.
In an embodiment of the present invention, above-mentioned detection device is being obtained according to default processing parameter analysis processing from second port
The above-mentioned preset data message taken can be according to above-mentioned after obtaining the corresponding real processing results of above-mentioned preset data message
It is expected that processing result and above-mentioned real processing results, determine testing result.
Further, in an embodiment of the present invention, the detection chip in above-mentioned detection device is obtaining at above-mentioned reality
After managing result, above-mentioned real processing results can be synchronized to by the above-mentioned third port in above-mentioned multiple default ports
State CPU.
It should be noted that in an embodiment of the present invention, in the above-mentioned above-mentioned multiple default ports of third port, above-mentioned
A port other than Single port and above-mentioned second port.
Specifically, in an embodiment of the present invention, above-mentioned detection device can enable image feature to above-mentioned third port,
To above-mentioned CPU be made logical while above-mentioned detection chip exports above-mentioned real processing results by above-mentioned third port
The image feature for crossing above-mentioned third port obtains above-mentioned real processing results.
Further, after above-mentioned CPU obtains above-mentioned real processing results by the image feature of above-mentioned third port, just
Testing result can be determined according to above-mentioned expected processing result and above-mentioned real processing results.
The embodiment of the invention provides a kind of detection method, obtains preset data message and preset data message is corresponding pre-
Phase processing result;By first port by preset data message transmissions to second port;Wherein, first port is in detection device
A port in multiple default ports;Second port is an end in multiple default ports, with first port physical connection
Mouthful;Default processing parameter is obtained by detection platform;It is obtained according to the analysis processing of default processing parameter from second port default
Data message obtains the corresponding real processing results of preset data message;Wherein, processing parameter is preset to be used for preset data report
Text is handled;According to expected processing result and real processing results, testing result is determined.That is, the embodiment of the present invention
A kind of detection method proposed carries out preset data by the default port of communication equipment in the case where not using tester
Message sends and receives, and after handling preset data message, by comparing real processing results and expected processing
As a result, testing result is determined, so as to be completely dependent on lacking for tester in automatic detection efficiently against communication equipment
It falls into, simplifies automatic detection process, improve the flexibility of detection scheme;Also, it implements simple and convenient, convenient for universal, fits
It is wider with range.
Embodiment two
Fig. 4 is a kind of implementation process schematic diagram two for detection method that the embodiment of the present invention proposes, as shown in figure 4, being based on
Embodiment one, in an embodiment of the present invention, further, above-mentioned detection device is according to expected processing result and actual treatment knot
Fruit, the method for determining testing result may comprise steps of:
Step 105a, the expected processing result of comparison and real processing results.
In an embodiment of the present invention, above-mentioned detection device is handled according to above-mentioned default processing parameter analysis from second end
Mouthful above-mentioned preset data message obtained can will be upper after obtaining the corresponding real processing results of above-mentioned preset data message
It states expected processing result and above-mentioned real processing results is compared, to further determine that above-mentioned testing result.
It should be noted that in an embodiment of the present invention, above-mentioned testing result is that above-mentioned detection device is automated
It is obtained as a result, specifically, the above-mentioned testing result of above-mentioned detection device can detect for above-mentioned detection device after detection
Pass through, correspondingly, the above-mentioned testing result of above-mentioned detection device can not also pass through for the detection of above-mentioned detection device.
Step 105b, when expected processing result is identical with real processing results, determine that testing result passes through for detection.
In an embodiment of the present invention, above-mentioned detection device is by above-mentioned expected processing result and above-mentioned real processing results
After being compared, if above-mentioned expected processing result is identical with above-mentioned real processing results, above-mentioned detection device can be with
Think that above-mentioned testing result passes through for detection.
Further, in an embodiment of the present invention, the above-mentioned CPU in above-mentioned detection device is to above-mentioned expected processing knot
After fruit and above-mentioned real processing results are compared, if above-mentioned expected processing result is identical with above-mentioned real processing results,
So above-mentioned CPU can consider that above-mentioned real processing results meet the expected results handled above-mentioned preset data message,
Above-mentioned CPU can determine that above-mentioned testing result passes through for detection.
Step 105c, when expected processing result is with real processing results difference, determine that testing result does not pass through for detection.
In an embodiment of the present invention, above-mentioned detection device is by above-mentioned expected processing result and above-mentioned real processing results
After being compared, if above-mentioned expected processing result and above-mentioned real processing results are different, above-mentioned detection device can be with
Think that above-mentioned testing result does not pass through for detection.
Further, in an embodiment of the present invention, the above-mentioned CPU in above-mentioned detection device is to above-mentioned expected processing knot
After fruit and above-mentioned real processing results are compared, if above-mentioned expected processing result is different with above-mentioned real processing results,
So above-mentioned CPU can consider that above-mentioned real processing results do not meet the expected knot handled above-mentioned preset data message
Fruit, above-mentioned CPU can determine that above-mentioned testing result does not pass through for detection.
According to the description above it is found that 105a~105c, above-mentioned detection device can compare expection through the above steps
Processing result and real processing results;When expected processing result is identical with real processing results, determine testing result for detection
Pass through;When expected processing result is with real processing results difference, determine that testing result does not pass through for detection.That is, this
A kind of detection method that inventive embodiments propose, in the case where not using tester, by the default port of communication equipment into
Row preset data message sends and receives, and after handling preset data message, by comparing real processing results
With expected processing result, testing result is determined, so as to be completely dependent on efficiently against communication equipment in automatic detection
The defect of tester simplifies automatic detection process, improves the flexibility of detection scheme;Also, implement it is simple and convenient, just
In popularizing, the scope of application is wider.
Embodiment three
Fig. 5 is a kind of implementation process schematic diagram three for detection method that the embodiment of the present invention proposes, as shown in figure 5, being based on
Embodiment one, in an embodiment of the present invention, further, detection device according to expected processing result and real processing results,
After determining testing result, i.e., after step 105, method that detection device is detected can with the following steps are included:
Step 106 transmits testing result to detection platform.
In an embodiment of the present invention, above-mentioned detection device is according to above-mentioned expected processing result and above-mentioned actual treatment knot
Above-mentioned testing result after determining testing result, can be transmitted to above-mentioned detection platform by fruit.
Further, in an embodiment of the present invention, the above-mentioned detection chip in above-mentioned detection device is obtaining above-mentioned reality
After the processing result of border, above-mentioned real processing results can be synchronized to by the third port in above-mentioned multiple default ports
State CPU, above-mentioned CPU further according to above-mentioned expected processing result and above-mentioned real processing results, determine above-mentioned testing result it
Afterwards, above-mentioned testing result can be transmitted to above-mentioned detection platform.
Fig. 6 is a kind of implementation process schematic diagram four for detection method that the embodiment of the present invention proposes, as shown in fig. 6, at this
In the embodiment of invention, further, after detection device sends testing result, i.e., after step 106, detection device is examined
The method of survey can with the following steps are included:
Step 107 records testing result by detection platform.
In an embodiment of the present invention, above-mentioned detection device is after transmitting above-mentioned testing result to above-mentioned detection platform,
Above-mentioned testing result can be recorded by above-mentioned detection platform.
Further, in an embodiment of the present invention, above-mentioned CPU by above-mentioned testing result be transmitted to above-mentioned detection platform it
Afterwards, the above-mentioned detection platform in above-mentioned detection device can carry out recording and storage to above-mentioned testing result, consequently facilitating to upper
Testing result is stated to be read out and analyze.
The embodiment of the invention provides a kind of detection method, obtains preset data message and preset data message is corresponding pre-
Phase processing result;By first port by preset data message transmissions to second port;Wherein, first port is in detection device
A port in multiple default ports;Second port is an end in multiple default ports, with first port physical connection
Mouthful;Default processing parameter is obtained by detection platform;It is obtained according to the analysis processing of default processing parameter from second port default
Data message obtains the corresponding real processing results of preset data message;Wherein, processing parameter is preset to be used for preset data report
Text is handled;According to expected processing result and real processing results, testing result is determined, meanwhile, the embodiment of the present invention provides
Detection method can also by detection platform to testing result carry out recording and storage, so as to further to detection tie
Fruit is read out and analyzes.That is, a kind of detection method that the embodiment of the present invention proposes, the case where not using tester
Under, sending and receiving for preset data message is carried out by the default port of communication equipment, and carry out to preset data message
After processing, by comparing real processing results and expected processing result, testing result is determined, so as to efficiently against communication
Equipment is completely dependent on the defect of tester in automatic detection, simplifies automatic detection process, improves the flexible of detection scheme
Property;Also, implement simple and convenient, convenient for universal, the scope of application is wider.
Example IV
Fig. 7 is a kind of implementation process schematic diagram five for detection method that the embodiment of the present invention proposes, as shown in fig. 7, being based on
Embodiment three obtains preset data message and the corresponding expected processing result of preset data message in an embodiment of the present invention
Before, i.e., before step 101, method that above-mentioned detection device is detected can with the following steps are included:
Step 108 determines first port and second port from multiple default ports.
In an embodiment of the present invention, above-mentioned detection device can determine above-mentioned first end from above-mentioned multiple default ports
Mouth and above-mentioned second port.
Further, above-mentioned detection device can be selected from above-mentioned multiple default ports at least two ports are determined as
State first port and above-mentioned second port.Specifically, in an embodiment of the present invention, above-mentioned first port and above-mentioned second port
It can be used for the transmission of message.
It should be noted that in an embodiment of the present invention, above-mentioned detection device can also be from above-mentioned multiple default ports
Middle selection a port is determined as third port, and specifically, in an embodiment of the present invention, above-mentioned third port can be used for
The transmission of message.
First port and second port is respectively configured in step 109.
In an embodiment of the present invention, above-mentioned detection device is determining above-mentioned first port from above-mentioned multiple default ports
After above-mentioned second port, configuration processing can be carried out to above-mentioned first port and above-mentioned second port respectively.
Specifically, in an embodiment of the present invention, above-mentioned first port can be used for receiving the above-mentioned pre- of above-mentioned CPU transmission
If data message, meanwhile, above-mentioned first port can be also used for above-mentioned preset data message transmissions to above-mentioned second port, phase
Ying Di, above-mentioned detection device can carry out the enabled processing of transmission-receiving function to above-mentioned first port.
Specifically, in an embodiment of the present invention, above-mentioned second port can be used for receiving what above-mentioned first port was sent
Above-mentioned preset data message, meanwhile, above-mentioned second port can be also used for above-mentioned preset data message transmissions to above-mentioned detection
Above-mentioned detection chip in equipment, correspondingly, above-mentioned detection device can carry out transmission-receiving function to above-mentioned second port and enable
Processing.
Specifically, in an embodiment of the present invention, above-mentioned third port can be used for receiving what above-mentioned detection chip was sent
Above-mentioned real processing results, meanwhile, above-mentioned third port can be also used for above-mentioned real processing results being sent to above-mentioned detection
Above-mentioned detection platform in equipment, correspondingly, above-mentioned detection device can carry out transmission-receiving function to above-mentioned third port and enable
Processing.
Further, in an embodiment of the present invention, above-mentioned third port can be also used for above-mentioned real processing results
It is synchronized to above-mentioned CPU, correspondingly, above-mentioned detection device can carry out the enabled processing of image feature to above-mentioned third port.
Step 1010, physical connection first port and second port.
In an embodiment of the present invention, above-mentioned detection device is respectively carrying out above-mentioned first port and above-mentioned second port
It, can be with the above-mentioned first port of physical connection and above-mentioned second port after configuration processing.
It should be noted that in an embodiment of the present invention, above-mentioned detection device is to above-mentioned first port and above-mentioned
After Two-port netwerk carries out the enabled processing of transmission-receiving function, physics company can be carried out to above-mentioned first port and above-mentioned second port
It connects, so as to transmit above-mentioned preset data message by above-mentioned first port and above-mentioned second port.
Specifically, in an embodiment of the present invention, above-mentioned detection device is by above-mentioned first port and above-mentioned second port
After carrying out physical connection, above-mentioned preset data message can be passed through above-mentioned first by the above-mentioned CPU in above-mentioned detection device
Port and above-mentioned second port are transmitted to the above-mentioned detection chip in above-mentioned detection device.
The embodiment of the invention provides a kind of detection method, obtains preset data message and preset data message is corresponding pre-
Phase processing result;By first port by preset data message transmissions to second port;Wherein, first port is in detection device
A port in multiple default ports;Second port is an end in multiple default ports, with first port physical connection
Mouthful, by the configuration and connection to first port and second port, can have between CPU and detection chip by default port
Transmit default message in effect ground;Default processing parameter is obtained by detection platform;It is handled according to the analysis of default processing parameter from second
The preset data message that port obtains obtains the corresponding real processing results of preset data message;Wherein, processing parameter is preset to use
It is handled in preset data message;According to expected processing result and real processing results, testing result is determined.Namely
It says, a kind of detection method that the embodiment of the present invention proposes passes through the default end of communication equipment in the case where not using tester
Mouth carries out sending and receiving for preset data message, and after handling preset data message, by comparing actual treatment
As a result with expected processing result, testing result is determined, so as to complete in automatic detection efficiently against communication equipment
The defect of tester is relied on, simplifies automatic detection process, improves the flexibility of detection scheme;Also, implement simple side
Just, convenient for universal, the scope of application is wider.
Embodiment five
Fig. 8 is a kind of implementation process schematic diagram six for detection method that the embodiment of the present invention proposes, as shown in figure 8, being based on
Embodiment one, in an embodiment of the present invention, further, above-mentioned detection device obtains default processing parameter by detection platform
Method may comprise steps of:
Step 103a, default Run Script is obtained.
In an embodiment of the present invention, above-mentioned detection device is obtaining above-mentioned preset data message and above-mentioned preset data report
Before the corresponding above-mentioned expected processing result of text, above-mentioned detection device can first obtain default Run Script, above-mentioned pre- to obtain
If processing parameter.
It should be noted that in an embodiment of the present invention, the detection platform in above-mentioned detection device can run above-mentioned
Default Run Script, to issue above-mentioned default processing parameter.Wherein, Tool Command Language can be used in above-mentioned Run Script
(Tool Command Language, TCL) is constructed.
Step 103b, default Run Script is run by detection platform, obtains default processing parameter.
In an embodiment of the present invention, above-mentioned detection device can first pass through detection after obtaining default Run Script
Platform runs above-mentioned default Run Script, then obtains above-mentioned default processing parameter.
It should be noted that in an embodiment of the present invention, above-mentioned detection device needs first to above-mentioned default processing parameter
It is configured, to be handled according to above-mentioned default processing parameter above-mentioned preset data message.Further, above-mentioned default
Processing parameter can be the corresponding parameters of above-mentioned detection chip.
Further, in an embodiment of the present invention, the above-mentioned detection platform in above-mentioned detection device can be to above-mentioned pre-
If processing parameter is configured.Specifically, in an embodiment of the present invention, above-mentioned detection platform can be to above-mentioned default operation foot
This is run, to issue above-mentioned default processing parameter.
According to the description above it is found that 103a~103b, above-mentioned detection device are available default through the above steps
Run Script;And default Run Script is run by detection platform, obtain default processing parameter, it is seen then that provided by the invention
In detection method, detection device can issue default processing parameter to detection chip by integrated detection platform.That is,
A kind of detection method that the embodiment of the present invention proposes passes through the default port of communication equipment in the case where not using tester
Sending and receiving for preset data message is carried out, and after handling preset data message, by comparing actual treatment knot
Fruit and expected processing result, determine testing result, so as to efficiently against communication equipment in automatic detection completely according to
Rely the defect of tester, simplifies automatic detection process, improve the flexibility of detection scheme;Also, implement it is simple and convenient,
Convenient for universal, the scope of application is wider.
Embodiment six
Under same inventive concept based on embodiment one to embodiment five, Fig. 9 is that the detection that the embodiment of the present invention proposes is set
Standby composed structure schematic diagram one, as shown in figure 9, the detection device 1 that the embodiment of the present invention proposes includes: processing module 11 and inspection
Survey module 12.
Processing module 11, for obtaining preset data message and the corresponding expected processing result of preset data message;And
By first port by preset data message transmissions to second port;Wherein, first port is multiple default ends in detection device
A port in mouthful;Second port is a port with first port physical connection in multiple default ports.
Detection module 12, for obtaining default processing parameter by detection platform;And it is analyzed according to default processing parameter
The preset data message obtained from second port is handled, the corresponding real processing results of preset data message are obtained;Wherein, it presets
Processing parameter is for handling preset data message.
Processing module 11 is also used to determine testing result according to expected processing result and real processing results.
Further, in an embodiment of the present invention, processing module 11 are specifically used for relatively more expected processing result and reality
Processing result;And when expected processing result is identical with real processing results, determine that testing result passes through for detection;And work as
It is expected that determining that testing result does not pass through for detection when processing result and real processing results difference.
Further, in an embodiment of the present invention, processing module 11 are also used to according at expected processing result and reality
After reason is as a result, determine testing result, testing result is sent.
Figure 10 is the composed structure schematic diagram two for the detection device that the embodiment of the present invention proposes, as shown in Figure 10, the present invention
The detection device 1 that embodiment proposes further include: detection platform module 13.
Detection platform module 13 records testing result by detection platform after sending testing result.
Further, in an embodiment of the present invention, processing module 11 are also used to obtain preset data message and present count
Before the corresponding expected processing result of message, first port and second port are determined from multiple default ports;And respectively
Configure first port and second port;And physical connection first port and second port.
Further, in an embodiment of the present invention, detection platform module 13 is specifically used for obtaining default Run Script;
And default Run Script is run by detection platform, obtain default processing parameter.
Figure 11 is that the composed structure schematic diagram three for the detection device that the embodiment of the present invention proposes is based in practical applications
Under embodiment one to the same inventive concept of embodiment five, as shown in figure 11, detection device 1 may include processor 14, receive
Device 15, transmitter 16, the memory 17 for being stored with 14 executable instruction of processor, communication interface 18, and for connecting processor
14, the bus 19 of receiver 15, transmitter 16, memory 17 and communication interface 18.
In an embodiment of the present invention, processing module 11, detection module 12 and detection platform module 13 can be by being located at
Processor 14 on detection device 1 realizes that above-mentioned processor 14 can be application-specific IC (Application
Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor,
DSP), digital signal processing device (Digital Signal Processing Device, DSPD), programmable logic device
(ProgRAMmable Logic Device, PLD), field programmable gate array (Field ProgRAMmable Gate
Array, FPGA), CPU, controller, at least one of microcontroller, microprocessor.It is to be appreciated that being set for different
It is standby, can also be to be other for realizing the electronic device of above-mentioned processor function, the embodiment of the present invention is not especially limited.The inspection
Measurement equipment 1 can also include memory 17, which can connect with processor 14, wherein memory 17 is for storing
Executable program code, the program code include computer operation instruction, and memory 17 may include high speed RAM memory,
It may further include nonvolatile memory, for example, at least two magnetic disk storages.
In an embodiment of the present invention, bus 19 for connection communication interface 18, processor 14 and memory 17 and this
Being in communication with each other between a little devices.
In an embodiment of the present invention, memory 17, for storing instruction and data.
Processor 14, for obtaining preset data message and the corresponding expected processing result of preset data message;Pass through
Single port is by preset data message transmissions to second port;Wherein, first port is in multiple default port in detection device
A port;Second port is a port with first port physical connection in multiple default ports;It is obtained by detection platform
Take default processing parameter;According to the preset data message that the analysis processing of default processing parameter is obtained from second port, preset
The corresponding real processing results of data message;Wherein, processing parameter is preset for handling preset data message;According to pre-
Phase processing result and real processing results, determine testing result.
In practical applications, above-mentioned memory 17 can be volatibility first memory (volatile memory), such as
Arbitrary access first memory (Random-Access Memory, RAM);Or non-volatile first memories (non-
Volatile memory), for example, read-only first memory (Read-Only Memory, ROM), quick flashing first memory
(flash memory), hard disk (Hard Disk Drive, HDD) or solid state hard disk (Solid-State Drive, SSD);Or
The combination of the first memory of person's mentioned kind, and instruction and data is provided to processor 14.
The embodiment of the invention provides a kind of detection device, obtains preset data message and preset data message is corresponding pre-
Phase processing result;By first port by preset data message transmissions to second port;Wherein, first port is in detection device
A port in multiple default ports;Second port is an end in multiple default ports, with first port physical connection
Mouthful;Default processing parameter is obtained by detection platform;It is obtained according to the analysis processing of default processing parameter from second port default
Data message obtains the corresponding real processing results of preset data message;Wherein, processing parameter is preset to be used for preset data report
Text is handled;According to expected processing result and real processing results, testing result is determined.That is, the embodiment of the present invention
A kind of detection device proposed carries out preset data by the default port of communication equipment in the case where not using tester
Message sends and receives, and after handling preset data message, by comparing real processing results and expected processing
As a result, testing result is determined, so as to be completely dependent on lacking for tester in automatic detection efficiently against communication equipment
It falls into, simplifies automatic detection process, improve the flexibility of detection scheme;Also, it implements simple and convenient, convenient for universal, fits
It is wider with range.
In addition, each functional module in the present embodiment can integrate in one processing unit, it is also possible to each list
Member physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both can be with
Using formal implementation of hardware, can also be realized in the form of software function module.
If integrated unit realizes that being not intended as independent product is sold or made in the form of software function module
Used time can store in a computer readable storage medium, based on this understanding, the technical solution sheet of the present embodiment
The all or part of the part that contributes to existing technology or the technical solution can be with software product in other words in matter
Form embodies, which is stored in a storage medium, including some instructions are used so that a meter
It calculates machine equipment (can be personal computer, server or the network equipment etc.) or processor (processor) executes this implementation
The all or part of the steps of example method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
The embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with program, is applied to detection device
In, the method such as embodiment one to embodiment five is realized when which is executed by processor.
Specifically, the corresponding program instruction of one of the present embodiment detection method can be stored in CD, hard disk,
On the storage mediums such as USB flash disk, read by an electronic equipment when the program instruction corresponding with a kind of detection method in storage medium or
It is performed, includes the following steps:
Obtain preset data message and the corresponding expected processing result of preset data message;
By first port by preset data message transmissions to second port;Wherein, first port is more in detection device
A port in a default port;Second port is a port with first port physical connection in multiple default ports;
Default processing parameter is obtained by detection platform;
According to the preset data message that the analysis processing of default processing parameter is obtained from second port, preset data message is obtained
Corresponding real processing results;Wherein, processing parameter is preset for handling preset data message;
According to expected processing result and real processing results, testing result is determined.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention
Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code
The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the realization of equipment (system) and computer program product
Flow diagram and/or block diagram describe.It should be understood that flow diagram and/or box can be realized by computer program instructions
The combination of each flow and/or block in figure and the process in implementation process schematic diagram and/or block diagram and/or box.
These computer program instructions be can provide to general purpose computer, special purpose computer, Embedded Processor or other programmable datas
The processor of processing equipment is to generate a machine, so that passing through computer or the processor of other programmable data processing devices
The instruction of execution generate for realizing in one box of implementation process schematic diagram one process or multiple processes and/or block diagrams or
The device for the function of being specified in multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
The manufacture of device is enabled, which realizes in implementation process schematic diagram one process or multiple processes and/or block diagrams one
The function of being specified in a box or multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction that is executed on other programmable devices provide for realizing in one process of implementation process schematic diagram or multiple processes and/or
The step of function of being specified in one or more blocks of the block diagram.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (10)
1. a kind of detection method is applied in detection device, the detection device is integrated with detection platform, which is characterized in that institute
The method of stating includes:
Obtain preset data message and the corresponding expected processing result of the preset data message;
By first port by the preset data message transmissions to second port;Wherein, the first port is detection device
In a port in multiple default ports;The second port is in the multiple default port, with the first port object
Manage a port of connection;
Default processing parameter is obtained by the detection platform;
According to the preset data message that the default processing parameter analysis processing is obtained from the second port, described in acquisition
The corresponding real processing results of preset data message;Wherein, the default processing parameter be used for the preset data message into
Row processing;
According to the expected processing result and the real processing results, testing result is determined.
2. the method according to claim 1, wherein it is described according to the expected processing result and it is described it is practical at
Reason is as a result, determine testing result, comprising:
Compare the expected processing result and the real processing results;
When the expected processing result is identical with the real processing results, determine that the testing result passes through for detection;
When the expected processing result and the real processing results difference, determine that the testing result does not pass through for detection.
3. the method according to claim 1, wherein it is described according to the expected processing result and it is described it is practical at
After reason is as a result, determine testing result, the method also includes:
The testing result is transmitted to the detection platform.
4. according to the method described in claim 3, it is characterized in that, the method is also after the transmission testing result
Include:
The testing result is recorded by the detection platform.
5. according to the method described in claim 3, it is characterized in that, the acquisition preset data message and the preset data report
Before the corresponding expected processing result of text, the method also includes:
The first port and the second port are determined from the multiple default port;
The first port and the second port is respectively configured;
First port described in physical connection and the second port.
6. the method according to claim 1, wherein described obtain default processing ginseng by the detection platform
Number, comprising:
Obtain default Run Script;
The default Run Script is run by the detection platform, obtains the default processing parameter.
7. a kind of detection device, which is characterized in that the detection device is integrated with detection platform, and the detection device includes: place
Module and detection module are managed,
The processing module, for obtaining preset data message and the corresponding expected processing result of the preset data message;With
And pass through first port for the preset data message transmissions to second port;Wherein, the first port is in detection device
A port in multiple default ports;The second port is in the multiple default port, with the first port physics
The a port of connection;
The detection module, for obtaining default processing parameter by the detection platform;And joined according to the default processing
The preset data message that number analysis processing is obtained from the second port, obtains the corresponding reality of the preset data message
Processing result;Wherein, the default processing parameter is for handling the preset data message;
The processing module is also used to determine testing result according to the expected processing result and the real processing results.
8. detection device according to claim 7, which is characterized in that
The processing module, is also used to according to the expected processing result and the real processing results, determine testing result it
Afterwards, the testing result is sent.
9. a kind of detection device, which is characterized in that the detection device include processor, receiver, transmitter, be stored with it is described
The memory of processor-executable instruction, communication interface, and for connecting the processor, receiver, transmitter, the storage
The bus of device and the communication interface, when executed, the processor, receiver and transmitter execute such as
Method described in any one of claims 1-6.
10. a kind of computer readable storage medium, is stored thereon with program, it is applied in detection device, which is characterized in that described
As the method according to claim 1 to 6 is realized when program is executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810016306.4A CN110022239A (en) | 2018-01-08 | 2018-01-08 | A kind of detection method, equipment and storage medium |
PCT/CN2019/070436 WO2019134677A1 (en) | 2018-01-08 | 2019-01-04 | Detection method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810016306.4A CN110022239A (en) | 2018-01-08 | 2018-01-08 | A kind of detection method, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110022239A true CN110022239A (en) | 2019-07-16 |
Family
ID=67143553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810016306.4A Pending CN110022239A (en) | 2018-01-08 | 2018-01-08 | A kind of detection method, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110022239A (en) |
WO (1) | WO2019134677A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873236A (en) * | 2010-06-13 | 2010-10-27 | 中兴通讯股份有限公司 | Method and system for testing message |
CN104079920A (en) * | 2013-03-25 | 2014-10-01 | 安凯(广州)微电子技术有限公司 | Method and device for verifying image acquisition and processing |
CN104734911A (en) * | 2015-02-10 | 2015-06-24 | 重庆邮电大学 | CAN bus network management test system and method |
CN104932479A (en) * | 2015-04-27 | 2015-09-23 | 深圳市中电电力技术股份有限公司 | Automatic test method and system |
CN105279061A (en) * | 2014-06-26 | 2016-01-27 | 西安Tcl软件开发有限公司 | Server interface concurrent testing method and apparatus |
CN107480087A (en) * | 2017-08-14 | 2017-12-15 | 联想(北京)有限公司 | A kind of electronic equipment and control method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9350543B2 (en) * | 2012-07-26 | 2016-05-24 | Cisco Technology, Inc. | Method and system for homomorphicly randomizing an input |
CN106569950B (en) * | 2016-11-03 | 2019-03-26 | 瑞斯康达科技发展股份有限公司 | A kind of test macro of webmastering software and the test method of webmastering software |
CN107368412A (en) * | 2017-07-03 | 2017-11-21 | 上海前隆信息科技有限公司 | Automated testing method/system, computer-readable recording medium and electronic equipment |
CN107391379B (en) * | 2017-07-28 | 2021-01-01 | 武汉斗鱼网络科技有限公司 | Automatic interface testing method and device |
-
2018
- 2018-01-08 CN CN201810016306.4A patent/CN110022239A/en active Pending
-
2019
- 2019-01-04 WO PCT/CN2019/070436 patent/WO2019134677A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873236A (en) * | 2010-06-13 | 2010-10-27 | 中兴通讯股份有限公司 | Method and system for testing message |
CN104079920A (en) * | 2013-03-25 | 2014-10-01 | 安凯(广州)微电子技术有限公司 | Method and device for verifying image acquisition and processing |
CN105279061A (en) * | 2014-06-26 | 2016-01-27 | 西安Tcl软件开发有限公司 | Server interface concurrent testing method and apparatus |
CN104734911A (en) * | 2015-02-10 | 2015-06-24 | 重庆邮电大学 | CAN bus network management test system and method |
CN104932479A (en) * | 2015-04-27 | 2015-09-23 | 深圳市中电电力技术股份有限公司 | Automatic test method and system |
CN107480087A (en) * | 2017-08-14 | 2017-12-15 | 联想(北京)有限公司 | A kind of electronic equipment and control method |
Also Published As
Publication number | Publication date |
---|---|
WO2019134677A1 (en) | 2019-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10289779B2 (en) | Universal verification methodology (UVM) register abstraction layer (RAL) traffic predictor | |
CN110502374A (en) | The traffic capture debugging tool of the basic reason of equipment fault when identification is tested automatically | |
CN104618054B (en) | Parameter regulation means and device | |
WO2017000424A1 (en) | Protocol detection method and apparatus | |
KR101933723B1 (en) | Programmable protocol generator | |
US7804784B1 (en) | Cable tester | |
US11748218B2 (en) | Methods, electronic devices, storage systems, and computer program products for error detection | |
CN105846857B (en) | Determine the signal quality of electric interconnection | |
JP2005140785A (en) | System and method for obtaining s parameter by utilizing load | |
CN108549606A (en) | interface test method and device | |
US10430363B2 (en) | Systems and methods of in-situ digital eye characterization for serial data transmitter circuitry | |
CN103198001B (en) | Storage system capable of self-testing peripheral component interface express (PCIE) interface and test method | |
US20220091185A1 (en) | Margin test data tagging and predictive expected margins | |
CN107331421A (en) | A kind of SD card test system and method based on FPGA | |
US20130259100A1 (en) | Information processing apparatus, testing method, and computer-readable recording medium having stored therein testing program | |
CN107293330A (en) | The method and simulation checking system of simulating, verifying are carried out to random access memory ram | |
CN116663490A (en) | Verification method, platform, device and medium of asynchronous memory chip | |
CN110022239A (en) | A kind of detection method, equipment and storage medium | |
KR101473144B1 (en) | Semiconductor test method and system based on controller area network | |
WO2020150863A1 (en) | Optical communication module testing method and apparatus and terminal device | |
CN105897494A (en) | Testing method of network transmission rate | |
CN115480975A (en) | Wiring checking method and device | |
CN115616372A (en) | Fault injection test method and system | |
US9742654B1 (en) | Communication interface testing | |
US10935595B1 (en) | Methods for identifying integrated circuit failures caused by asynchronous clock-domain crossings in the presence of multiple modes |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190716 |