CN113014450B - Equipment testing method, device and computer readable medium - Google Patents

Equipment testing method, device and computer readable medium Download PDF

Info

Publication number
CN113014450B
CN113014450B CN202110205193.4A CN202110205193A CN113014450B CN 113014450 B CN113014450 B CN 113014450B CN 202110205193 A CN202110205193 A CN 202110205193A CN 113014450 B CN113014450 B CN 113014450B
Authority
CN
China
Prior art keywords
test
tested
equipment
port
test result
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.)
Active
Application number
CN202110205193.4A
Other languages
Chinese (zh)
Other versions
CN113014450A (en
Inventor
王一平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Teletest Technology Co ltd
Original Assignee
Beijing Teletest Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Teletest Technology Co ltd filed Critical Beijing Teletest Technology Co ltd
Priority to CN202110205193.4A priority Critical patent/CN113014450B/en
Publication of CN113014450A publication Critical patent/CN113014450A/en
Application granted granted Critical
Publication of CN113014450B publication Critical patent/CN113014450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a device testing method, a device and a computer readable medium. The method comprises the following steps: identifying a target identification code attached to a test fixture and equipment to be tested, and acquiring a target test serial number and an SN number corresponding to the target identification code; establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number; and executing the following steps for each device to be tested corresponding to the test serial number: acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system MES according to the SN number; determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state; if so, establishing connection with the equipment to be tested, and carrying out flow test on the equipment to be tested to obtain a flow test result of the equipment to be tested; and uploading the flow test result to the MES. The scheme of the invention can improve the efficiency of network equipment testing.

Description

Equipment testing method, device and computer readable medium
Technical Field
The present invention relates to the field of test technologies, and in particular, to a device test method, an apparatus, and a computer readable medium.
Background
Network devices and components are physical entities, such as computers, switches, routers, etc., connected into a network, and port traffic of a network device has a significant impact on the performance of the network device.
At present, the common operation steps of performing a flow test on a network communication device are divided into three steps, where a tester is first connected to a port, a cable or an optical fiber of a device to be tested, a test is started, and a test result is observed.
However, there is no effective management and control mechanism for performing traffic test on network devices currently, so there are a lot of repeated tests, which wastes test resources and results in low test efficiency.
Disclosure of Invention
The embodiment of the invention provides a device testing method, a device and a computer readable medium, which can improve the efficiency of network device testing.
In a first aspect, an embodiment of the present invention provides an apparatus testing method, including:
identifying a target identification code attached to a test fixture and equipment to be tested, and acquiring a target test serial number and an SN number corresponding to the target identification code;
establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number;
and executing the following steps for each device to be tested corresponding to the test serial number:
acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system MES according to the SN number;
determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state;
if so, establishing connection with the equipment to be tested, and carrying out flow test on the equipment to be tested to obtain a flow test result of the equipment to be tested;
and uploading the flow test result to the MES.
Preferably, the first and second electrodes are formed of a metal,
after determining whether the device to be tested can perform the flow test according to the test serial number of the device to be tested and the test result, before the device to be tested establishes the connection, the method further includes:
determining whether a parameter range corresponding to the configured flow test item is matched with a preset range, wherein the preset range represents a numerical value interval corresponding to a function supported by the equipment to be tested;
and if so, establishing connection with the equipment to be tested.
Preferably, the first and second electrodes are formed of a metal,
establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number, wherein the corresponding relation comprises the following steps:
and actively initiating an ARP protocol request to acquire the SN number through the program block corresponding to the target test serial number or actively initiating a telnet command to acquire the SN number through the program block corresponding to the target test serial number.
Preferably, the first and second electrodes are formed of a metal,
the establishing connection with the equipment to be tested, performing flow test on the equipment to be tested, and obtaining a flow test result of the equipment to be tested comprises:
the ports of the equipment to be tested are sequentially communicated in the equipment to be tested according to a preset sequence, and a first port is communicated with a last port in the preset sequence to form a full-port direct-connection loopback topology;
sending a test message to a second port of the network equipment to be tested through a first port; the first port is correspondingly connected with the second port of the equipment to be tested;
receiving the test message sent by a fourth port of the equipment to be tested through a third port; wherein the fourth port communicates with the second port inside the network device under test; the third port is correspondingly connected with the fourth port;
and analyzing the test message at the third port to obtain the flow test result.
Preferably, the first and second electrodes are formed of a metal,
when the flow test result comprises a packet loss test result, the test message comprises an RX field for identifying the number field of the received data packets and a TX field for identifying the number of the sent data packets;
when the test message comprises an RX field and a TX field, sending a preset number of data packets to the device to be tested so as to determine the number of the data packets received by the device to be tested and filling the RX field according to the number of the received data packets.
Preferably, the first and second electrodes are formed of a metal,
when the flow test result includes a packet loss test result, analyzing the test message to obtain the flow test result of the device to be tested, including:
calculating the packet loss rate of the device to be tested according to the number of the received data packets contained in the RX field and the number of the transmitted data packets contained in the TX field in the test message and according to the following packet loss rate calculation formula, where the packet loss rate calculation formula includes:
Figure BDA0002950148760000031
wherein S is the packet loss ratio, X is the number of the transmitted data packets, and Y is the number of the received data packets;
and if the packet loss rate is not greater than a preset threshold value, determining that the flow test result is qualified, and if the packet loss rate is greater than the threshold value, determining that the flow test result is unqualified.
Preferably, the first and second electrodes are formed of a metal,
when the test result comprises an internet Speed test result, the test message comprises a Speed field representing the internet Speed;
when the test result includes a network speed test result, the analyzing the test message to obtain the test result of the device to be tested includes:
analyzing network Speed information which is filled in a Speed field in the test message and is obtained through network Speed measurement, and judging whether the difference value between the standard network Speed and the network Speed information is not larger than a preset qualified difference value or not, if so, determining that the test result of the equipment to be tested is qualified, and if not, determining that the test result of the equipment to be tested is unqualified.
In a second aspect, an embodiment of the present invention provides a device testing apparatus based on the device testing method in any one of the first aspects, including:
the identification unit is used for identifying the target identification code attached to the test fixture and the equipment to be tested and obtaining a target test serial number and an SN number corresponding to the target identification code;
the association unit is used for establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number;
and the processing unit is used for executing the following steps to the equipment to be tested corresponding to each test serial number:
acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system MES according to the SN number;
determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state;
if so, establishing connection with the equipment to be tested, and carrying out flow test on the equipment to be tested to obtain a flow test result of the equipment to be tested;
and uploading the flow test result to the MES.
In a third aspect, an embodiment of the present invention provides an apparatus for testing a device, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to perform the method provided in any of the above first aspects.
In a fourth aspect, embodiments of the present invention provide a computer-readable medium having stored thereon computer instructions, which, when executed by a processor, cause the processor to perform the method provided in any of the first aspects.
The embodiment of the invention provides a device testing method, a device and a computer readable medium. According to the technical scheme, the target identification code attached to the test fixture or the equipment to be tested is identified, and the target test serial number corresponding to the target identification code and the SN number of the equipment to be tested are obtained; and establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number. And executing the following steps for the equipment to be tested corresponding to each test serial number: acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system (MES) according to the SN number; determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state; if so, establishing connection with the equipment to be tested, carrying out flow test on the equipment to be tested, obtaining a flow test result of the equipment to be tested, and uploading the flow test result to the MES. Therefore, in the scheme provided by the invention, the identification code is attached to the equipment to be tested and the test fixture in advance, the test serial number and the SN number corresponding to the equipment to be tested are obtained by scanning the identification code, the test state of the current test item of the equipment to be tested is obtained from MES according to the SN number, and whether the equipment to be tested can carry out flow test is determined according to the test state and the test serial number of the equipment to be tested; if, with the equipment to be tested establishes connection, it is right the equipment to be tested carries out the flow test, obtains the flow test result of equipment to be tested will the flow test result is uploaded MES, and whole process is accomplished automatically, has avoided only through the test repetition phenomenon that artifical manually operation test can lead to in the test in the past, has improved the efficiency of network equipment test.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for testing a device according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for testing devices according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a device testing apparatus according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, it is obvious that the described embodiments are some, but not all embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
As mentioned above, network devices and components are physical entities connected to a network, such as computers, switches, routers, etc., and port traffic of a network device has an important influence on the performance of the network device.
At present, the common operation steps of performing flow test on network communication equipment are divided into three steps, namely, firstly, connecting a port, a cable or an optical fiber of equipment to be tested through a tester, starting the test, and observing a test result.
However, there is no effective management and control mechanism for performing traffic test on network devices currently, so there are a lot of repeated tests, which wastes test resources and results in low test efficiency.
The following detailed description is provided with reference to the accompanying drawings, which illustrate embodiments of the present invention and, in particular, with reference to the device testing method, apparatus, and computer-readable medium.
As shown in fig. 1, an embodiment of the present invention provides an apparatus testing method, including:
step 101: identifying a target identification code attached to a test fixture and equipment to be tested, and acquiring a target test serial number and an SN number corresponding to the target identification code;
step 102: establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number;
step 103: and executing the following steps for each device to be tested corresponding to the test serial number: acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system MES according to the SN number;
step 104: determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state;
step 105: establishing connection with the equipment to be tested, and carrying out flow test on the equipment to be tested to obtain a flow test result of the equipment to be tested;
step 106: and uploading the flow test result to the MES.
According to the technical scheme, the target identification code attached to the test fixture or the equipment to be tested is identified, and the target test serial number corresponding to the target identification code and the SN number of the equipment to be tested are obtained; and establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number. And executing the following steps for the equipment to be tested corresponding to each test serial number: acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system MES according to the SN number; determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state of the current test item; if so, establishing connection with the equipment to be tested, carrying out flow test on the equipment to be tested, obtaining a flow test result of the equipment to be tested, and uploading the flow test result to the MES. In the scheme provided by the invention, an identification code is attached to the equipment to be tested and the test fixture in advance, a test serial number and an SN number corresponding to the equipment to be tested are obtained by scanning the identification code, the test state of the current test item of the equipment to be tested is obtained from MES according to the SN number, and whether the equipment to be tested can carry out flow test is determined according to the test state and the test serial number of the equipment to be tested; if, with the equipment to be tested establishes connection, it is right the equipment to be tested carries out the flow test, obtains the flow test result of equipment to be tested will the flow test result is uploaded MES, and whole process is accomplished automatically, has avoided only through the test repetition phenomenon that artifical manual operation test can lead to in the test in the past, has improved the efficiency of network equipment test.
In addition, the existing general scheme is based on manual operation starting test, in a production test scene, the mode starts the test without combining the actual state of equipment at the front station and the rear station, and the first pass yield cannot be accurately obtained. The first pass rate is a parameter for the product from the first process to the last process, the capability of the product to reach the finished product under all the processes in the production process of the product can be known, the first pass rate is a parameter for reflecting the quality control capability of an enterprise, the capability of the enterprise meeting the product requirements of customers is reflected, and the higher the first pass rate is, the stronger the capability is. According to the scheme, after the MES system is integrated in the flow test, the test state of the current test item of the equipment to be tested can be obtained, when the previous tests of the equipment to be tested are all qualified, the test state is a state representing that the equipment to be tested can be tested, and as mentioned above, the first pass rate is a parameter from one-time qualification of the first procedure to the last procedure, so that the first pass rate can be better counted by introducing the test state.
In an embodiment of the present invention, after determining whether the device under test can perform the traffic test according to the tested times and the test result, before establishing a connection with the device under test, the method further includes:
determining whether a parameter range corresponding to the configured flow test item is matched with a preset range, wherein the preset range represents a numerical value interval corresponding to a function supported by the equipment to be tested;
and if so, establishing connection with the equipment to be tested.
Specifically, the purpose of this step is to determine whether the items of the flow test are suitable for the device under test, and if the items of the flow test do not conform to the parameters or functions of the device under test, the obtained test result is meaningless. The flow test items tested in advance may be caused by errors in configuration of the test by the tester. Therefore, before the flow rate test is performed, it is necessary to determine whether the parameter range corresponding to the item of the flow rate test matches the preset range. Assuming that the theoretical maximum network speed of the device under test is 100mbps, and the passing standard of the flow test is set to 1000mbps due to errors, the test result is rejected due to the standard, but the device under test can actually meet the test standard, which results in unreliable test result. In addition, the number of configured ports, the port rate, the test items and the like can be checked to determine whether the test items and the like are correct, so that fool-proofing can be better realized. Fool-proofing is a behavior constraint means for prevention and correction, and by using a limiting method for avoiding errors, an operator can directly and correctly complete correct operation without paying attention and without experience and professional knowledge. In industrial design, in order to avoid the injury of machines or human bodies caused by misoperation of users (including unconscious actions, subconscious misoperation or careless limb actions), a precaution is taken against the possible situations, which is called fool-proofing.
In an embodiment of the present invention, establishing a corresponding relationship between the SN number and the device under test according to the target test serial number includes:
and actively initiating an ARP protocol request to acquire the SN number through the program block corresponding to the target test serial number or actively initiating a telnet command to acquire the SN number through the program block corresponding to the target test serial number.
In particular, acquiring the SN number may be done by actively initiating an ARP protocol or actively initiating a telnet command. ARP is a TCP/IP protocol that obtains a physical address from an IP address. When the host sends information, it broadcasts the ARP request containing the target IP address to all hosts on the LAN and receives the return message, so as to determine the physical address of the target. The Telnet protocol also belongs to the TCP/IP protocol family, and is the standard protocol and the main mode of the Internet remote login service. It provides the user with the ability to do remote host work on the local computer. The telnet program is used on the end user's computer and is used to connect to the server. The end user can enter commands in the telnet program that will run on the server as if entered directly on the server's console. The server can be controlled locally.
In an embodiment of the present invention, the establishing connection with the device to be tested to perform a traffic test on the device to be tested to obtain a traffic test result of the device to be tested includes:
the ports of the equipment to be tested are sequentially communicated in the equipment to be tested according to a preset sequence, and a first port is communicated with a last port in the preset sequence to form a full-port direct-connection loopback topology;
sending a test message to a second port of the network equipment to be tested through a first port; the first port is correspondingly connected with the second port of the equipment to be tested;
receiving the test message sent by a fourth port of the equipment to be tested through a third port; wherein the fourth port communicates with the second port inside the network device under test; the third port is correspondingly connected with the fourth port;
and analyzing the test message at the third port to obtain the flow test result.
Because the test device is connected with each port of the device to be tested, each port of the device to be tested can be tested according to the sending condition of the test message in the test process, and the port with the fault is positioned.
In an embodiment of the present invention, when the traffic test result includes a packet loss test result, the test packet includes an RX field identifying a number field of received data packets and a TX field identifying a number of transmitted data packets;
when the test message comprises an RX field and a TX field, sending a preset number of data packets to the device to be tested so as to determine the number of the data packets received by the device to be tested and filling the RX field according to the number of the received data packets.
In an embodiment of the present invention, when the traffic test result includes a packet loss test result, the analyzing the test packet to obtain the traffic test result of the device to be tested includes:
calculating the packet loss rate of the device to be tested according to the number of the received data packets contained in the RX field and the number of the transmitted data packets contained in the TX field in the test message and according to the following packet loss rate calculation formula, where the packet loss rate calculation formula includes:
Figure BDA0002950148760000101
wherein, S is the packet loss ratio, X is the number of the transmitted data packets, and Y is the number of the received data packets;
and if the packet loss rate is not greater than a preset threshold value, determining that the flow test result is qualified, and if the packet loss rate is greater than the threshold value, determining that the flow test result is unqualified.
In an embodiment of the present invention, when the test result includes a network Speed test result, the test packet includes a Speed field representing a network Speed;
when the test result includes a network speed test result, the analyzing the test message to obtain the test result of the device to be tested includes:
analyzing network Speed information which is filled in a Speed field in the test message and is obtained through network Speed measurement, and judging whether the difference value between the standard network Speed and the network Speed information is not larger than a preset qualified difference value or not, if so, determining that the test result of the equipment to be tested is qualified, and if not, determining that the test result of the equipment to be tested is unqualified.
Specifically, the foregoing embodiment specifically describes a specific process of performing a flow test on a device to be tested. The known flow test is realized through a test message, and the device to be tested can test according to fields contained in the test message when receiving the test message. The ports of the equipment to be tested are sequentially communicated in the equipment to be tested according to a preset sequence, and the first port and the last port in the preset sequence are communicated to form a full-port direct-connection loopback topology; sending a test message to a second port of the network equipment to be tested through a first port; the first port is correspondingly connected with the second port of the equipment to be tested; receiving the test message sent by a fourth port of the equipment to be tested through a third port; wherein the fourth port communicates with the second port inside the network device under test; the third port is correspondingly connected with the fourth port; if the fault port is determined to exist according to the test message, the test message only passes through the two ports of the equipment to be tested, so that the diagnosis range is reduced under the condition that the number of the ports of the equipment to be tested is large, the fault port can be conveniently and quickly diagnosed, the fault diagnosis performance is improved, and the fault test of all the ports can be covered.
Data in the network is composed of individual packets, and the firewall consumes resources for processing each packet. Throughput refers to the maximum rate that a device can accept without frame loss. Network throughput testing is one of the most important means in network maintenance and troubleshooting, and especially throughput testing is a necessary testing means when analyzing problems related to network performance. The most common technique for verifying and testing network bandwidth is throughput testing.
One of the tests of the packet loss rate is to send a certain number of data packets during the test, and calculate the data packets transmitted by the device to be tested, and if the number of the sent frames is equal to that of the received data packets, the phenomenon of packet loss does not occur. The network speed is an important index of the network device, and therefore, the network speed condition of the device to be tested is essential to the flow test. Analyzing network Speed information which is filled in a Speed field in the test message and is obtained through network Speed measurement, and judging whether the difference value between the standard network Speed and the network Speed information is not larger than a preset qualified difference value or not, if so, determining that the test result of the equipment to be tested is qualified, and if not, determining that the test result of the equipment to be tested is unqualified.
In summary, as shown in fig. 2, the specific steps of the above method for testing a device under test are as follows:
step 201: scanning a bar code on equipment to be tested to obtain a test serial number and an SN number in the bar code;
step 202: judging whether the current test item passes the station by MES according to the SN number of the equipment to be tested, if the current test item passes the station, directly finishing the process, and if the current test item passes the station, entering a flow test;
step 203: carrying out flow test on the equipment to be tested through a tester;
step 204: uploading the flow test result to the MES;
step 205: and calculating the first pass rate of the batch of equipment to be tested according to the test result in the MES.
As shown in fig. 3, an embodiment of the present invention provides a device testing apparatus based on the device testing method shown in fig. 1, including:
the identification unit 301 is configured to identify a target identification code attached to the test fixture and the device under test, and obtain a target test serial number and an SN number corresponding to the target identification code;
an association unit 302, configured to establish a corresponding relationship between the SN number and the device under test according to the target test serial number;
a processing unit 303, configured to execute, for each device to be tested corresponding to the test sequence number:
acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system MES according to the SN number;
determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state;
if so, establishing connection with the equipment to be tested, and carrying out flow test on the equipment to be tested to obtain a flow test result of the equipment to be tested;
and uploading the flow test result to the MES.
The present invention also provides a computer readable medium storing instructions for causing a computer to perform a device testing method as described herein. Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then a CPU or the like mounted on the expansion board or the expansion unit is caused to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the embodiments described above.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (9)

1. The equipment testing method is characterized by comprising the following steps:
identifying a target identification code attached to a test fixture and equipment to be tested, and acquiring a target test serial number and an SN number corresponding to the target identification code;
establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number;
and executing the following steps for each device to be tested corresponding to the test serial number:
acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system (MES) according to the SN number; when the previous tests of the equipment to be tested are all qualified, the test state is a state representing that the test can be carried out;
determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state;
if so, establishing connection with the equipment to be tested, and carrying out flow test on the equipment to be tested to obtain a flow test result of the equipment to be tested;
uploading the flow test result to the MES;
wherein, with the equipment to be tested establishes connection, it is right the equipment to be tested carries out the flow test, obtains the flow test result of equipment to be tested, includes:
the ports of the equipment to be tested are sequentially communicated in the equipment to be tested according to a preset sequence, and a first port is communicated with a last port in the preset sequence to form a full-port direct-connection loopback topology;
sending a test message to a second port of the equipment to be tested through a first port; the first port is correspondingly connected with the second port of the equipment to be tested;
receiving the test message sent by a fourth port of the equipment to be tested through a third port; the fourth port and the second port are communicated in the device to be tested; the third port is correspondingly connected with the fourth port;
and analyzing the test message at the third port to obtain the flow test result.
2. The method of claim 1,
after determining whether the device under test can perform the flow test according to the test serial number of the device under test and the test state, before the device under test establishes the connection, the method further includes:
determining whether a parameter range corresponding to the configured flow test item is matched with a preset range, wherein the preset range represents a numerical value interval corresponding to a function supported by the equipment to be tested;
and if so, establishing connection with the equipment to be tested.
3. The method of claim 1,
establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number, wherein the corresponding relation comprises the following steps:
and actively initiating an ARP protocol request to acquire the SN number through the program block corresponding to the target test serial number or actively initiating a telnet command to acquire the SN number through the program block corresponding to the target test serial number.
4. The method of claim 1,
when the flow test result comprises a packet loss test result, the test message comprises an RX field for identifying the number field of the received data packets and a TX field for identifying the number of the sent data packets;
when the test message comprises an RX field and a TX field, sending a preset number of data packets to the device to be tested so as to determine the number of the data packets received by the device to be tested and filling the RX field according to the number of the received data packets.
5. The method of claim 4,
when the traffic test result includes a packet loss test result, analyzing the test packet to obtain a traffic test result of the device to be tested, including:
calculating the packet loss rate of the device to be tested according to the number of the received data packets contained in the RX field and the number of the transmitted data packets contained in the TX field in the test message and according to the following packet loss rate calculation formula, where the packet loss rate calculation formula includes:
Figure FDA0003579841290000021
wherein, S is the packet loss ratio, X is the number of the transmitted data packets, and Y is the number of the received data packets;
and if the packet loss rate is not greater than a preset threshold value, determining that the flow test result is qualified, and if the packet loss rate is greater than the threshold value, determining that the flow test result is unqualified.
6. The method of claim 4,
when the test result comprises an internet Speed test result, the test message comprises a Speed field representing the internet Speed;
when the test result includes a network speed test result, the analyzing the test message to obtain the test result of the device to be tested includes:
analyzing network Speed information which is filled in a Speed field in the test message and is obtained through network Speed measurement, and judging whether the difference value between the standard network Speed and the network Speed information is not larger than a preset qualified difference value or not, if so, determining that the test result of the equipment to be tested is qualified, and if not, determining that the test result of the equipment to be tested is unqualified.
7. The device testing apparatus based on the device testing method according to any one of claims 1 to 6, comprising:
the identification unit is used for identifying the target identification code attached to the test fixture and the equipment to be tested and obtaining a target test serial number and an SN number corresponding to the target identification code;
the association unit is used for establishing a corresponding relation between the SN number and the equipment to be tested according to the target test serial number;
and the processing unit is used for executing the following steps to each device to be tested corresponding to the test serial number:
acquiring the test state of the current test item of the equipment to be tested from a manufacturing enterprise production process execution management system MES according to the SN number; when the previous tests of the equipment to be tested are all qualified, the test state is a state representing that the test can be carried out;
determining whether the equipment to be tested can carry out flow test or not according to the test serial number of the equipment to be tested and the test state;
if so, establishing connection with the equipment to be tested, and carrying out flow test on the equipment to be tested to obtain a flow test result of the equipment to be tested;
and uploading the flow test result to the MES.
8. Device testing apparatus, characterized by comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program, to perform the method of any of claims 1 to 6.
9. Computer readable medium, characterized in that it has stored thereon computer instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 6.
CN202110205193.4A 2021-02-24 2021-02-24 Equipment testing method, device and computer readable medium Active CN113014450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110205193.4A CN113014450B (en) 2021-02-24 2021-02-24 Equipment testing method, device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110205193.4A CN113014450B (en) 2021-02-24 2021-02-24 Equipment testing method, device and computer readable medium

Publications (2)

Publication Number Publication Date
CN113014450A CN113014450A (en) 2021-06-22
CN113014450B true CN113014450B (en) 2022-07-05

Family

ID=76409119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110205193.4A Active CN113014450B (en) 2021-02-24 2021-02-24 Equipment testing method, device and computer readable medium

Country Status (1)

Country Link
CN (1) CN113014450B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113828529B (en) * 2021-11-26 2022-02-11 南京派格测控科技有限公司 Processing method and system based on concatenation abnormity of serial measurement data

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213135A (en) * 2019-06-12 2019-09-06 武汉通威电子有限公司 A kind of fire wall performance test method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218048A (en) * 2017-06-30 2019-01-15 西门子公司 To the performance test methods and device of an industrial system being deployed on cloud
CN107465577A (en) * 2017-09-04 2017-12-12 太仓市同维电子有限公司 A kind of wide-band terminal production flow rate test method
CN110794265A (en) * 2019-10-15 2020-02-14 格力电器(武汉)有限公司 Test system applying safety instrument
CN111163134A (en) * 2019-12-11 2020-05-15 浙江极智通信科技股份有限公司 Equipment testing method and system
CN111445115B (en) * 2020-03-20 2023-10-17 Oppo(重庆)智能科技有限公司 Test item verification method, device, electronic equipment and computer readable storage medium
CN112346425B (en) * 2020-11-20 2024-01-16 宜宾市极米光电有限公司 Factory automation testing method, system, projection equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213135A (en) * 2019-06-12 2019-09-06 武汉通威电子有限公司 A kind of fire wall performance test method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梁伟杰.ADSL用户网络测试初探.《科技资讯》.2007,(第17期), *

Also Published As

Publication number Publication date
CN113014450A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN107465565B (en) Link test method and apparatus and system
US20060218447A1 (en) Packet trace diagnostic system
CN109495352B (en) Method and device for determining transmission path
JP2005006303A (en) Virtual network address
EP2974146B1 (en) Methods, systems, and computer readable media for assisting with the debugging of conditions associated with the processing of test packets by a device under test
CN113014450B (en) Equipment testing method, device and computer readable medium
CN105991358A (en) Method, device, test board and system for testing traffic of interface board
CN115001829B (en) Protocol vulnerability discovery method, device, equipment and storage medium
US20130042020A1 (en) Quick Network Path Discovery
CN103067395B (en) The method of diagnostic network fire compartment wall and device
CN110896368A (en) Network quality monitoring method and device
CN115190070B (en) Route detection method and device
US20030065767A1 (en) Multiple ping management
CN109995603B (en) Method and device for measuring packet loss under Tag model and electronic equipment
CN105828218A (en) Method for detecting transmission quality of multicast streams, device and system
CN115834365A (en) Method, device and equipment for home wide service diagnosis based on novel network
CN114553678A (en) Diagnosis method for soft SLB traffic problem of cloud network
US10162733B2 (en) Debugging failure of a service validation test
CN112738837A (en) WiFi AP equipment test system and method
CN113438125B (en) Test method and system
CN116566875A (en) Network card testing system and method
CN112532407B (en) Method, device and system for fault location
CN107819637A (en) The acquisition methods and device of handling capacity
CN114584999B (en) Monitoring system, method, equipment and computer storage medium
CN112445712B (en) Method and device for generating test source code

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