CN105490875A - Automatic testing method, device and system and product to be tested - Google Patents

Automatic testing method, device and system and product to be tested Download PDF

Info

Publication number
CN105490875A
CN105490875A CN201510834065.0A CN201510834065A CN105490875A CN 105490875 A CN105490875 A CN 105490875A CN 201510834065 A CN201510834065 A CN 201510834065A CN 105490875 A CN105490875 A CN 105490875A
Authority
CN
China
Prior art keywords
test
tested
product
tcp
udp message
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
Application number
CN201510834065.0A
Other languages
Chinese (zh)
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201510834065.0A priority Critical patent/CN105490875A/en
Publication of CN105490875A publication Critical patent/CN105490875A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention discloses an automatic testing method. The automatic testing method comprises the following steps: receiving user datagram protocol (UDP) data packets broadcast by at least one product to be tested in a local area network, wherein the UDP data packets comprise Internet protocol (IP) addresses of corresponding products to be tested; performing transmission control protocol (TCP) connections with the corresponding products to be tested according to the IP addresses in the UDP data packets; and sending testing instructions to the products to be tested in a TCP way in order that the products to be tested are tested according to the testing instructions. The invention also discloses an automatic testing device, a product to be tested and an automatic testing system. Through adoption of the embodiment of the invention, the data transmission rate and the testing efficiency of the automatic testing system can be increased.

Description

A kind of automatic test approach, device, product to be tested and system
Technical field
The present invention relates to technical field of measurement and test, particularly relate to a kind of automatic test approach, device, product to be tested and system.
Background technology
In technical field of measurement and test, general method of testing is that product to be tested, collecting device are connected to a main control computer, and the various performances that main control computer utilizes collecting device to treat test products are tested.
Existing method of testing adopts Serial Port Line to connect main control computer and product to be tested mostly, and main control computer sends instruction and reception data by serial ports to product to be tested, realizes checking and the test for the treatment of the function of test products.There is following shortcoming in this method of testing: because data transfer rate in serial communication is slow, for the test macro needing transferring large number of data in test process, uses Serial Port Transmission data that data messaging efficiency can be caused low.In addition, because of the serial ports limited amount that a main control computer provides, the quantity of the product to be tested making main control computer to access simultaneously and to test also is restricted, and then affects testing efficiency.
In addition, for the product to be tested with RJ45 Ethernet interface, can use twisted pair line connection main control computer and product to be tested, main control computer is sent test instruction by the mode of network to product to be tested, obtains test data, so treat test products carry out functional verification and test.This man-to-man test mode can improve the transmission rate of data between main control computer and product to be tested.But also there is shortcoming in this method of testing: because a main control computer same time can only test a product to be tested, its testing efficiency is also very low.
Summary of the invention
For the problems referred to above, many aspects of the present invention provide one automatically to test the means of communication, device, product to be tested and system, a main control computer can be made simultaneously to locate and test multiple product to be tested, improving the message transmission rate of test macro, and then improving testing efficiency.
In order to solve the problem, one aspect of the present invention provides a kind of automatic test approach, comprises the steps: the UDP message bag of at least one the product broadcast to be tested received in local area network (LAN); Wherein the IP address of corresponding product to be tested drawn together by UDP message handbag described in each; TCP connection is carried out with corresponding product described to be tested according to the described IP address in described UDP message bag; Send test instruction by TCP mode to described product to be tested, test according to described test instruction to make described product to be tested.
As the improvement of such scheme, described UDP message bag also comprises port, product unique identifier and identifying code;
Carry out TCP according to the described IP address in described UDP message bag and corresponding product described to be tested to connect and be specially:
Extract the described IP address in described UDP message, port, product unique identifier and identifying code;
Judging that described identifying code meets the requirements in situation, carry out TCP connection by described IP address, port and product unique identifier with corresponding product described to be tested.
As the further improvement of such scheme, after carrying out TCP connection with corresponding described product to be tested, further comprising the steps of:
Open the thread monitored TCP and connect, to monitor TCP connection status;
When judging that described TCP connects generation interruption, then re-start TCP with described product to be tested and be connected;
After re-starting TCP successful connection, continue to test described product to be tested according to the testing progress before described TCP disconnecting;
If re-start TCP connection failure and the frequency of failure exceedes set point, then discriminating test does not pass through, and sends the notice of manual detection.
Another step as such scheme is improved, and described local area network (LAN) comprises Dynamic Host Configuration Protocol server, for being product automatic IP address allocation to be tested.
A step again as such scheme is improved, and described local area network (LAN) also comprises peripheral test apparatus; Described after sending test instruction by TCP mode to described product to be tested, further comprising the steps of:
Data acquisition instructions is sent, to make described peripheral test apparatus according to the test data of described data acquisition instructions collection by described output of products to be tested to the peripheral test apparatus corresponding with described product to be tested;
Receive the test data that described peripheral test apparatus returns;
Described test data and the test data index preset are compared: if described test data reaches described default test data index, then send the notice of testing and passing through;
If described test data does not reach described default test data index, then send the notice that test is not passed through.
Another aspect of the present invention provides a kind of automatic test approach, comprises the steps: in local area network (LAN), broadcast UDP message bag; Local IP address drawn together by wherein said UDP message handbag; Receive the TCP connection request that main control computer sends, and set up TCP with described main control computer and be connected; Wherein, described TCP connection request is that described main control computer carries out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested and sends; Receive the test instruction that described main control computer is sent by TCP mode, and test according to described test instruction.
For solving the problem, another aspect of the present invention provides a kind of automatic testing equipment, comprising: UDP message bag receiver module, for receiving the UDP message bag of at least one the product broadcast to be tested in local area network (LAN); Wherein the IP address of corresponding product to be tested drawn together by UDP message handbag described in each; TCP link block, for carrying out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested; Test instruction sending module, for sending test instruction by TCP mode to described product to be tested, tests according to described test instruction to make described product to be tested.
As the improvement of such scheme, described UDP message bag also comprises port, product unique identifier and identifying code; Described TCP link block specifically comprises: extraction unit, for extracting described IP address in described UDP message, port, product unique identifier and identifying code; Linkage unit, for judging that described identifying code meets the requirements in situation, carries out TCP connection by described IP address, port and product unique identifier with corresponding product described to be tested.
As the further improvement of such scheme, described automatic testing equipment also comprises TCP and connects monitoring module, and described TCP connects monitoring module and specifically comprises: monitor and open unit, for opening the thread monitored TCP and connect, to monitor TCP connection status; Reconnect unit, for when judging that described TCP connects generation interruption, re-starting TCP with described product to be tested and being connected; Testing progress regulation and control unit, for after re-starting TCP successful connection, continues to test described product to be tested according to the testing progress before described TCP disconnecting; Test judgement unit, for re-starting TCP connection failure and the frequency of failure exceedes set point, then discriminating test is not passing through, and sends the notice of manual detection.
Another step as such scheme is improved, described automatic testing equipment also comprises: test data collection module, for sending data acquisition instructions to the peripheral test apparatus corresponding with described product to be tested, to make described peripheral test apparatus according to the test data of described data acquisition instructions collection by described output of products to be tested; Test data receiver module, for receiving the test data that described peripheral test apparatus returns; Test data comparison module, for comparing described test data and the test data index preset; If described test data reaches described default test data index, then send the notice of testing and passing through; If described test data does not reach described default test data index, then send the notice that test is not passed through.
Another aspect of the present invention provides a kind of product to be tested, comprising: UDP message bag sending module, for broadcasting UDP message bag in local area network (LAN); Local IP address drawn together by wherein said UDP message handbag; TCP request receiving module, for receiving the TCP connection request that main control computer sends, and sets up TCP with described main control computer and is connected; Test instruction receiver module, for receiving the test instruction that described main control computer sends, and tests according to described test instruction; Wherein, described test instruction is sent by TCP mode after described main control computer carries out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested.
Another aspect of the present invention provides a kind of Auto-Test System, comprises automatic testing equipment and at least one product to be tested.
Compared with prior art, owing to have employed gateway device in the present invention, main control computer is connected with multiple product to be tested, and h.323-configured gateway equipment is Dynamic Host Configuration Protocol server, for product automatic IP address allocation to be tested, product to be tested and main control computer is made to form a local area network (LAN), and by mode that udp broadcast is connected with TCP, allow main control computer can identify and distinguish different products to be tested in local area network (LAN), and then realize a main control computer and locate simultaneously and test multiple product to be tested, thus improve message transmission rate and the testing efficiency of test macro.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of automatic test approach in the embodiment of the present invention 1.
Fig. 2 is the schematic flow sheet setting up TCP connection of the automatic test approach in the embodiment of the present invention 1.
Fig. 3 is the schematic flow sheet of the monitoring TCP connection status of automatic test approach in the embodiment of the present invention 1.
Fig. 4 is the schematic diagram of the first method being connected main control computer, peripheral test apparatus and product to be tested and configuring of automatic test approach in the embodiment of the present invention 1.
Fig. 5 is the schematic diagram of the second method being connected main control computer, peripheral test apparatus and product to be tested and configuring of automatic test approach in the embodiment of the present invention 1.
Fig. 6 is the schematic flow sheet of the test data of the collection output of products to be tested of automatic test approach in the embodiment of the present invention 1.
Fig. 7 is the schematic flow sheet of a kind of automatic test approach in the embodiment of the present invention 2.
Fig. 8 is the structural representation of a kind of automatic testing equipment in the embodiment of the present invention 3.
Fig. 9 is the structural representation of the TCP link block of automatic testing equipment in the embodiment of the present invention 3.
Figure 10 is the structural representation that the TCP of automatic testing equipment in the embodiment of the present invention 3 connects monitoring module.
Figure 11 is the structural representation of the test data module of the collection output of products to be tested of automatic testing equipment in the embodiment of the present invention 3.
Figure 12 is the structural representation of a kind of product to be tested in the embodiment of the present invention 4.
Figure 13 is the structural representation of a kind of Auto-Test System in the embodiment of the present invention 5.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In an embodiment of the present invention, before treating test products and automatically testing, workman is needed to be connected with main control computer by gateway device by product to be tested, and h.323-configured gateway equipment is Dynamic Host Configuration Protocol server, then Dynamic Host Configuration Protocol server is the product automatic IP address allocation to be tested be connected on gateway device, makes product to be tested and main control computer be in same local area network (LAN).
Fig. 1 is the schematic flow sheet of a kind of automatic test approach in the embodiment of the present invention 1.
When testing beginning, open the test main program on main control computer, test main program opens UDP service routine, and monitor the udp broadcast in local area network (LAN), its method of testing, see Fig. 1, comprises the following steps:
The UDP message bag of S11, at least one the product broadcast to be tested received in local area network (LAN).
Wherein, the IP address of corresponding product to be tested drawn together by UDP message handbag described in each; Described product to be tested is complete machine.
S12, carry out TCP connection according to the described IP address in described UDP message bag with corresponding product described to be tested.
Wherein, described UDP message bag also comprises port, product unique identifier and identifying code.
Such as: 192.168.0.10.XXXXXXX drawn together by the UDP message handbag of a product broadcast to be tested, and wherein, the IP address of this product to be tested is 192.168.1.10, and unique identifier is XXXXXXX.
Wherein, the concrete grammar of TCP connection is carried out as shown in Figure 2 according to the described IP address in described UDP message bag with corresponding product described to be tested:
S121, the described IP address of extracting in described UDP message, port, product unique identifier and identifying code;
S122, when judging that described identifying code meets the requirements, carry out TCP connection by described IP address, port and product unique identifier with corresponding product described to be tested.
Wherein, after carrying out TCP connection with corresponding described product to be tested, further comprising the steps of, idiographic flow schematic diagram as shown in Figure 3:
S123, unlatching monitor the thread that TCP connects, to monitor TCP connection status;
S124, when judge described TCP connect occur interrupt, then re-start TCP with described product to be tested and be connected;
S125, after re-starting TCP successful connection, according to before described TCP disconnecting testing progress continue described product to be tested is tested;
If S126 re-starts TCP connection failure and the frequency of failure exceedes set point, then discriminating test does not pass through, and sends the notice of manual detection.
S13, send test instruction by TCP mode to described product to be tested, test according to described test instruction to make described product to be tested.
Such as: whether the loudspeaker that main control computer tests product to be tested are normal.Main control computer sends the instruction of test horn to product to be tested, product to be tested is after receiving described test horn instruction, can be play the sound of one section of characteristic frequency and volume by loudspeaker, main control computer then controls microphone and gathers described voice signal and transmit back main control computer analysis.
Wherein, when described main control computer sends test instruction to product to be tested, concrete test instruction structure is as follows:
Test case order Test item code Test item parameter
Wherein, test case order is from 0; Test item parameter can be multiple, and concrete test item parameter determines according to the character of different test item.Such as:
The instruction carrying out TV lane testing may be defined as: 0, and 1010.Wherein, 0 test case order is represented; 1010 represent TV lane testing, without the need to test item parameter.
Carry out the instruction of HDMI1 lane testing may be defined as: 1,1030,500,5,4.Wherein, 1 test case order is represented; 1030 represent HDMI1 lane testing; Test item parameter 500,5,4 representatives are tested every 500 milliseconds of shootings photo, altogether carry out 5 tests, if wherein 4 times are tested successfully, are judged as that test is passed through.
In the embodiment of the present invention 1, described local area network (LAN) can also comprise peripheral test apparatus.
Such as: in the test station of automatic production line, be provided with N number of test platform, N number of test platform is equipped with respectively the peripheral test apparatus of test needed for product to be tested, wherein, N is integer, N >=1.Main control computer can treat test products output test data by controlling peripheral test apparatus gathers, and before utilizing peripheral test apparatus to carry out data acquisition, needs main control computer, peripheral test apparatus and product to be tested to carry out being connected and configuring.In the embodiment of the present invention 1, be connected main control computer, peripheral test apparatus and product to be tested and configure to have been come by two kinds of methods, first method concrete steps are as follows, as shown in Figure 4:
S101, the peripheral test apparatus on N number of test platform to be connected with main control computer by gateway device;
The IP address of S102, configuration peripheral test apparatus; Wherein, IP address with product ID to distinguish the type of peripheral test apparatus and affiliated test platform;
S103, h.323-configured gateway equipment are the automatic method of salary distribution of Dynamic Host Configuration Protocol server;
S104, product to be tested being connected to gateway device, is product automatic IP address allocation to be tested to make Dynamic Host Configuration Protocol server.
Such as: when the first product to be tested is connected to the gateway device on first test platform, Dynamic Host Configuration Protocol server is just the first product automatic IP address allocation to be tested, can determine the corresponding relation of peripheral test apparatus on first test platform and the first product to be tested thus.
The second method be connected main control computer, peripheral test apparatus and product to be tested and configure then needs to be equipped with gateway device respectively on N number of test platform, the concrete steps of second method as shown in Figure 5:
S201, the gateway device on the i-th test platform is connected to main control computer, and the gateway device of configuration is the automatic method of salary distribution of Dynamic Host Configuration Protocol server; Wherein, i is integer, 1≤i≤N;
S202, the peripheral test apparatus on the i-th test platform being connected to gateway device, is peripheral test apparatus automatic IP address allocation on the i-th platform to make Dynamic Host Configuration Protocol server;
S203, product to be tested being accessed the gateway device on the i-th test platform, is product automatic IP address allocation to be tested to make Dynamic Host Configuration Protocol server.
Such as: when the peripheral test apparatus on the i-th platform is connected to the gateway device on this platform, Dynamic Host Configuration Protocol server is just ancillary equipment automatic IP address allocation, because ancillary equipment is connected to same gateway device, with the network parameter be associated with Dynamic Host Configuration Protocol server in the IP address that ancillary equipment obtains; When product to be tested accesses the gateway device on the i-th platform, the IP address that product to be tested obtains also with the network parameter be associated with Dynamic Host Configuration Protocol server, thus can by the IP address of peripheral test apparatus and product to be tested with the network parameter determination peripheral test apparatus be associated with Dynamic Host Configuration Protocol server and the corresponding relation of product to be tested.
In embodiment 1, describedly can also to comprise the following steps after sending test instruction by TCP mode to described product to be tested, as shown in Figure 6:
S131, send data acquisition instructions to the peripheral test apparatus corresponding with described product to be tested, to make described peripheral test apparatus according to the test data of described data acquisition instructions collection by described output of products to be tested;
S132, receive the test data that described peripheral test apparatus returns;
S133, described test data and the test data index preset to be compared: if described test data reaches described default test data index, then send and test the notice passed through;
If the described test data of S134 does not reach described default test data index, then send the notice that test is not passed through.Fig. 7 is the schematic flow sheet of a kind of automatic test approach in the embodiment of the present invention 2.
The mode that product to be tested starts to test can be send notification instruction by the button by remote controller, after product to be tested receives the notification instruction starting to test, open UDP client-side program, with to broadcast data packet in local area network (LAN), product to be tested opens TCP service routine to monitor the TCPSocket in local area network (LAN) simultaneously, its method of testing, see Fig. 7, comprises the following steps:
S21, in local area network (LAN), broadcast UDP message bag.
Wherein, local IP address drawn together by described UDP message handbag.
S22, receive the TCP connection request that main control computer sends, and set up TCP with described main control computer and be connected.
Wherein, described TCP connection request is that described main control computer carries out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested and sends.
When after the described TCP connection request receiving the transmission of described main control computer, described UDP message bag of going off the air.
S23, receive the test instruction that described main control computer sent by TCP mode, and test according to described test instruction.
After test completes, test result can be sent to main control computer by TCP mode by product to be tested, but this not necessarily.Such as: when carrying out software version number, HDCPKey state verification project, software version number, HDCPKey state are returned to main control computer by TCP mode by product to be tested.But after completing test to the loudspeaker of product to be measured, then do not need product to be tested to return test result to main control computer, but by the microphone be connected on main control computer by gather transmission of sound signals to main control computer.
Wherein, when product to be tested returns test result to main control computer, concrete to return test result information structure as follows:
The unique identifier of product to be tested Test case order Test item code Test result
Wherein, test result 0 represent not by, 1 represent test pass through.Such as: test result XXXXXXX, 1,1020,1, represent XXXXXXX test products AV lane testing and pass through.
See Fig. 8, be a kind of automatic testing equipment that the embodiment of the present invention 3 provides, comprise:
UDP message bag receiver module 11, for receiving the UDP message bag of at least one the product broadcast to be tested in local area network (LAN); Wherein the IP address of corresponding product to be tested drawn together by UDP message handbag described in each;
TCP link block 12, for carrying out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested;
Test instruction sending module 13, for sending test instruction by TCP mode to described product to be tested, tests according to described test instruction to make described product to be tested.
Wherein, TCP link block 12, see Fig. 9, specifically comprises:
Extraction unit 121, for extracting described IP address in described UDP message, port, product unique identifier and identifying code;
Linkage unit 122, for judging that described identifying code meets the requirements in situation, carries out TCP connection by described IP address, port and product unique identifier with corresponding product described to be tested.
Described automatic testing equipment also comprises TCP and connects monitoring module 14, and described TCP connects monitoring module 14, see Figure 10, specifically comprises:
Monitor and open unit 141, for opening the thread monitored TCP and connect, to monitor TCP connection status;
Reconnect unit 142, for when judging that described TCP connects generation interruption, re-starting TCP with described product to be tested and being connected;
Testing progress regulation and control unit 143, for after re-starting TCP successful connection, continues to test described product to be tested according to the testing progress before described TCP disconnecting;
Test judgement unit 144, for re-starting TCP connection failure and the frequency of failure exceedes set point, then discriminating test is not passing through, and sends the notice of manual detection.
See Figure 11, described automatic testing equipment also comprises:
Test data collection module 15, for sending data acquisition instructions to the peripheral test apparatus corresponding with described product to be tested, to make described peripheral test apparatus according to the test data of described data acquisition instructions collection by described output of products to be tested;
Test data receiver module 16, for receiving the test data that described peripheral test apparatus returns;
Test data comparison module 17, for comparing described test data and the test data index preset; If described test data reaches described default test data index, then send the notice of testing and passing through; If described test data does not reach described default test data index, then send the notice that test is not passed through.
See Figure 12, be the one product to be tested that the embodiment of the present invention 4 provides, comprise: UDP message bag sending module 21, for broadcasting UDP message bag in local area network (LAN); Local IP address drawn together by wherein said UDP message handbag;
TCP request receiving module 22, for receiving the TCP connection request that main control computer sends, and sets up TCP with described main control computer and is connected;
Test instruction receiver module 23, for receiving the test instruction that described main control computer sends, and tests according to described test instruction; Wherein, described test instruction is sent by TCP mode after described main control computer carries out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested.
See Figure 13, be a kind of Auto-Test System that the embodiment of the present invention 5 provides, comprise: automatic testing equipment 31 and at least one product 32 to be tested.Wherein, described automatic testing equipment 31 is the automatic testing equipment in upper Fig. 8 embodiment 3, and described product 32 to be tested is the product to be tested in upper Figure 12 embodiment 4.
Automatic test approach provided by the invention, device, product to be tested and system, by Network Management Equipment, a main control computer is connected with multiple product to be tested simultaneously, human configuration gateway device is relied on to be Dynamic Host Configuration Protocol server, for product automatic IP address allocation to be tested, form a local area network (LAN) to make product to be tested and main control computer.In local area network (LAN), the mode be connected with TCP by udp broadcast, allows main control computer can identify and distinguish different products to be tested, and then realizes a main control computer and locate simultaneously and test multiple product to be tested.Relative to prior art, the present invention can improve message transmission rate and the testing efficiency of test macro.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.

Claims (12)

1. an automatic test approach, is characterized in that, comprises the steps:
Receive the UDP message bag of at least one the product broadcast to be tested in local area network (LAN); Wherein the IP address of corresponding product to be tested drawn together by UDP message handbag described in each;
TCP connection is carried out with corresponding product described to be tested according to the described IP address in described UDP message bag;
Send test instruction by TCP mode to described product to be tested, test according to described test instruction to make described product to be tested.
2. a kind of automatic test approach as claimed in claim 1, is characterized in that, described UDP message bag also comprises port, product unique identifier and identifying code;
Carry out TCP according to the described IP address in described UDP message bag and corresponding product described to be tested to connect and be specially:
Extract the described IP address in described UDP message, port, product unique identifier and identifying code;
Judging that described identifying code meets the requirements in situation, carry out TCP connection by described IP address, port and product unique identifier with corresponding product described to be tested.
3. a kind of automatic test approach as claimed in claim 1, is characterized in that, after carrying out TCP connection according to the described IP address in described UDP message bag with corresponding described product to be tested, further comprising the steps of:
Monitor the thread that TCP connects, monitoring TCP connection status;
When judging that described TCP connects generation interruption, then re-start TCP with described product to be tested and be connected;
After re-starting TCP successful connection, continue to test described product to be tested according to the testing progress before described TCP disconnecting;
If re-start TCP connection failure and the frequency of failure exceedes set point, then discriminating test does not pass through, and sends the notice of manual detection.
4. a kind of automatic test approach as claimed in claim 1, is characterized in that, described local area network (LAN) also comprises Dynamic Host Configuration Protocol server, for being product automatic IP address allocation to be tested.
5. a kind of automatic test approach as claimed in claim 1, is characterized in that, described local area network (LAN) also comprises peripheral test apparatus; Described after sending test instruction by TCP mode to described product to be tested, further comprising the steps of:
Data acquisition instructions is sent, to make described peripheral test apparatus according to the test data of described data acquisition instructions collection by described output of products to be tested to the peripheral test apparatus corresponding with described product to be tested;
Receive the test data that described peripheral test apparatus returns;
Described test data and the test data index preset are compared: if described test data reaches described default test data index, then send the notice of testing and passing through;
If described test data does not reach described default test data index, then send the notice that test is not passed through.
6. an automatic test approach, is characterized in that, comprises the steps:
UDP message bag is broadcasted in local area network (LAN); Local IP address drawn together by wherein said UDP message handbag;
Receive the TCP connection request that main control computer sends, and set up TCP with described main control computer and be connected; Wherein, described TCP connection request is that described main control computer carries out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested and sends;
Receive the test instruction that described main control computer is sent by TCP mode, and test according to described test instruction.
7. an automatic testing equipment, is characterized in that, comprising:
UDP message bag receiver module, for receiving the UDP message bag of at least one the product broadcast to be tested in local area network (LAN); Wherein the IP address of corresponding product to be tested drawn together by UDP message handbag described in each;
TCP link block, for carrying out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested;
Test instruction sending module, for sending test instruction by TCP mode to described product to be tested, tests according to described test instruction to make described product to be tested.
8. a kind of automatic testing equipment as claimed in claim 7, is characterized in that, described UDP message bag also comprises port, product unique identifier and identifying code;
Described TCP link block specifically comprises:
Extraction unit, for extracting described IP address in described UDP message, port, product unique identifier and identifying code;
Linkage unit, for judging that described identifying code meets the requirements in situation, carries out TCP connection by described IP address, port and product unique identifier with corresponding product described to be tested.
9. a kind of automatic testing equipment as claimed in claim 7, is characterized in that, also comprise TCP and connect monitoring module, described TCP connects monitoring module and specifically comprises:
Monitor and open unit, for opening the thread monitored TCP and connect, to monitor TCP connection status;
Reconnect unit, for when judging that described TCP connects generation interruption, re-starting TCP with described product to be tested and being connected;
Testing progress regulation and control unit, for after re-starting TCP successful connection, continues to test described product to be tested according to the testing progress before described TCP disconnecting;
Test judgement unit, for re-starting TCP connection failure and the frequency of failure exceedes set point, then discriminating test is not passing through, and sends the notice of manual detection.
10. a kind of automatic testing equipment as claimed in claim 7, is characterized in that, also comprise:
Test data collection module, for sending data acquisition instructions to the peripheral test apparatus corresponding with described product to be tested, to make described peripheral test apparatus according to the test data of described data acquisition instructions collection by described output of products to be tested;
Test data receiver module, for receiving the test data that described peripheral test apparatus returns;
Test data comparison module, for comparing described test data and the test data index preset; If described test data reaches described default test data index, then send the notice of testing and passing through; If described test data does not reach described default test data index, then send the notice that test is not passed through.
11. 1 kinds of products to be tested, is characterized in that, comprising:
UDP message bag sending module, for broadcasting UDP message bag in local area network (LAN); Local IP address drawn together by wherein said UDP message handbag;
TCP request receiving module, for receiving the TCP connection request that main control computer sends, and sets up TCP with described main control computer and is connected;
Test instruction receiver module, for receiving the test instruction that described main control computer sends, and tests according to described test instruction; Wherein, described test instruction is sent by TCP mode after described main control computer carries out TCP connection according to the IP address in described UDP message bag with corresponding product described to be tested.
12. 1 kinds of Auto-Test Systems, is characterized in that, comprise automatic testing equipment as claimed in claim 7 and at least one product to be tested as claimed in claim 11.
CN201510834065.0A 2015-11-25 2015-11-25 Automatic testing method, device and system and product to be tested Pending CN105490875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510834065.0A CN105490875A (en) 2015-11-25 2015-11-25 Automatic testing method, device and system and product to be tested

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510834065.0A CN105490875A (en) 2015-11-25 2015-11-25 Automatic testing method, device and system and product to be tested

Publications (1)

Publication Number Publication Date
CN105490875A true CN105490875A (en) 2016-04-13

Family

ID=55677616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510834065.0A Pending CN105490875A (en) 2015-11-25 2015-11-25 Automatic testing method, device and system and product to be tested

Country Status (1)

Country Link
CN (1) CN105490875A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131112A (en) * 2016-06-14 2016-11-16 上海电气集团股份有限公司 A kind of rehabilitation training apparatus monitoring method and rehabilitation training of upper limbs equipment
CN106488468A (en) * 2016-10-14 2017-03-08 深圳Tcl新技术有限公司 WiFi performance test methods and system
CN108092843A (en) * 2017-03-24 2018-05-29 深圳市必联电子有限公司 A kind of router universal testing method
CN108377170A (en) * 2018-02-13 2018-08-07 成都天锐星通科技有限公司 A kind of frequency spectrum parameter detection method, electronic equipment and electronic device
CN108650335A (en) * 2018-04-10 2018-10-12 Oppo广东移动通信有限公司 The method, apparatus and test equipment being communicatively coupled with mobile terminal to be tested
CN108667536A (en) * 2018-04-26 2018-10-16 国网冀北电力有限公司秦皇岛供电公司 A kind of test method and device for analog signal communication system
CN109039830A (en) * 2018-09-20 2018-12-18 武汉指针科技有限公司 A kind of collecting method of interchanger
CN109426240A (en) * 2017-09-05 2019-03-05 大唐联仪科技有限公司 A kind of test method and device
CN109743347A (en) * 2018-11-23 2019-05-10 北京千方科技股份有限公司 A kind of reader automated testing method and system
CN111800805A (en) * 2020-06-09 2020-10-20 惠州高盛达科技有限公司 Wireless function detection method and system for wireless intelligent product
CN112135384A (en) * 2020-09-28 2020-12-25 江门市征极光兆科技有限公司 Automatic testing device and method for WIFI lamp
CN113489629A (en) * 2020-08-14 2021-10-08 青岛海信电子产业控股股份有限公司 Control end equipment, controlled end equipment and equipment networking method
CN115134279A (en) * 2021-05-19 2022-09-30 深圳方位通讯科技有限公司 Terminal testing method and device and computer readable storage device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070245134A1 (en) * 2006-04-12 2007-10-18 Hon Hai Precision Industry Co., Ltd. Testing device and testing method for computer
CN102118283A (en) * 2011-03-30 2011-07-06 大唐移动通信设备有限公司 Method and device for testing communication equipment
CN102195823A (en) * 2010-03-04 2011-09-21 智易科技股份有限公司 Running test method for network communication product
CN102984034A (en) * 2012-12-24 2013-03-20 中怡(苏州)科技有限公司 Testing structure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070245134A1 (en) * 2006-04-12 2007-10-18 Hon Hai Precision Industry Co., Ltd. Testing device and testing method for computer
CN102195823A (en) * 2010-03-04 2011-09-21 智易科技股份有限公司 Running test method for network communication product
CN102118283A (en) * 2011-03-30 2011-07-06 大唐移动通信设备有限公司 Method and device for testing communication equipment
CN102984034A (en) * 2012-12-24 2013-03-20 中怡(苏州)科技有限公司 Testing structure

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131112A (en) * 2016-06-14 2016-11-16 上海电气集团股份有限公司 A kind of rehabilitation training apparatus monitoring method and rehabilitation training of upper limbs equipment
CN106488468A (en) * 2016-10-14 2017-03-08 深圳Tcl新技术有限公司 WiFi performance test methods and system
CN108092843A (en) * 2017-03-24 2018-05-29 深圳市必联电子有限公司 A kind of router universal testing method
CN109426240A (en) * 2017-09-05 2019-03-05 大唐联仪科技有限公司 A kind of test method and device
CN108377170A (en) * 2018-02-13 2018-08-07 成都天锐星通科技有限公司 A kind of frequency spectrum parameter detection method, electronic equipment and electronic device
CN108650335A (en) * 2018-04-10 2018-10-12 Oppo广东移动通信有限公司 The method, apparatus and test equipment being communicatively coupled with mobile terminal to be tested
CN108667536A (en) * 2018-04-26 2018-10-16 国网冀北电力有限公司秦皇岛供电公司 A kind of test method and device for analog signal communication system
CN109039830A (en) * 2018-09-20 2018-12-18 武汉指针科技有限公司 A kind of collecting method of interchanger
CN109743347A (en) * 2018-11-23 2019-05-10 北京千方科技股份有限公司 A kind of reader automated testing method and system
CN109743347B (en) * 2018-11-23 2022-02-18 北京千方科技股份有限公司 Automatic test method and system for reader-writer
CN111800805A (en) * 2020-06-09 2020-10-20 惠州高盛达科技有限公司 Wireless function detection method and system for wireless intelligent product
CN111800805B (en) * 2020-06-09 2024-04-09 惠州高盛达科技有限公司 Wireless function detection method and system for wireless intelligent product
CN113489629A (en) * 2020-08-14 2021-10-08 青岛海信电子产业控股股份有限公司 Control end equipment, controlled end equipment and equipment networking method
CN113489629B (en) * 2020-08-14 2022-11-18 青岛海信电子产业控股股份有限公司 Control end equipment, controlled end equipment and equipment networking method
CN112135384A (en) * 2020-09-28 2020-12-25 江门市征极光兆科技有限公司 Automatic testing device and method for WIFI lamp
CN112135384B (en) * 2020-09-28 2023-02-24 江门市征极光兆科技有限公司 Automatic testing device and method for WIFI lamp
CN115134279A (en) * 2021-05-19 2022-09-30 深圳方位通讯科技有限公司 Terminal testing method and device and computer readable storage device

Similar Documents

Publication Publication Date Title
CN105490875A (en) Automatic testing method, device and system and product to be tested
CN103955381B (en) Management server carries out volume software upgrade method and system to terminal device
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
US6772437B1 (en) Cable modems and systems and methods for identification of a noise signal source on a cable network
CN102684951B (en) The system of selection of many Wide Area Network interface networking, system and network equipment
CN110430096A (en) A kind of gateway test method and equipment
US20130104116A1 (en) Method and apparatus for upgrading wireless repeater
CN107205239B (en) Method for detecting wireless network connection and detection equipment
CN105430459B (en) Audio data play method, device and intelligent TV set
WO2011152989A2 (en) System and method for using multiple network addresses to establish synchronization of a device under test and test equipment controlling the test
CN103024462A (en) Method for network detection and digital terminal
CN110418358A (en) The bluetooth test method and device of circuit board
CN103957552B (en) The method for improving data communication reliability in automatic weather station
CN111885679A (en) Distribution network testing method and system of Internet of things equipment
CN111064552A (en) Intelligent device control method and device, electronic device and storage medium
CN102387524B (en) Indoor distributed monitoring system for WLAN (Wireless Local Area Network)
CN101188846A (en) A system and method for realizing remote detection of base station
CN104486174A (en) Networking method and networking device for intelligent terminals
CN103326771B (en) RRU optical fiber link management method, device and remote radio unit system
CN103533069B (en) Method for starting automatic configuration of network equipment and network equipment
CN108696859B (en) Method for accessing Internet by double-card mobile terminal and double-card mobile terminal
CN111181810A (en) Performance test method and system for MoCA equipment
CN102892141A (en) Function detection method and system for to-be-detected STA (station)
KR101762862B1 (en) Automatic configuration method and automatic configuration system for client terminal at exclusive network
CN104754762B (en) Automatically method, controller and the system of controller are found in the customized network of software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication