Product automatic testing method, device, equipment and computer readable storage medium

By detecting whether the product has been taken away and generating a virtual serial port to establish a connection with the new product, the problem of low testing efficiency of variable communication serial port products in the existing technology is solved, and the automatic testing support of the Atlas test framework for variable communication serial port products is realized. Improved testing efficiency.

CN115426286BActive Publication Date: 2024-10-11GEER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211058224.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2024-10-11
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

The existing Atlas test framework only supports automatic testing of products with fixed serial ports and cannot support variable communication serial ports. As a result, testers need to manually click a button to start testing, which is inefficient.

Method used

Automatic testing is achieved by detecting whether the product has been removed from the test location and generating a virtual serial port to establish a communication connection with the new product.

Benefits of technology

Improved the testing efficiency of variable communication serial port products, enabling the Atlas test framework to support automatic testing of variable communication serial port products, improving testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115426286B_ABST
    Figure CN115426286B_ABST
Patent Text Reader

Abstract

The present invention discloses a product automatic testing method, device, equipment and computer-readable storage medium, the method is applied to a testing device, the testing device is connected to a communication board, the method comprises: after each test of a product placed in a test position corresponding to the communication board is completed, detecting whether the product is taken away from the test position; after detecting that the product is taken away from the test position, detecting whether a new product is placed in the test position; when detecting that a new product is placed in the test position, generating a virtual serial port corresponding to the communication board, and establishing a communication connection with the new product through the virtual serial port, and testing the new product based on the communication connection. The present invention implements a product automatic testing solution that supports a variable communication serial port, and solves the problem that when testing a product with a variable communication serial port, a tester needs to manually click a button to start the test, which results in low test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to a product automatic testing method, device, equipment and computer-readable storage medium. Background Art

[0002] Different suppliers and foundries have their own product testing frameworks. In order to unify and standardize management, the Atlas testing framework was introduced. The Atlas framework provides a way to build a variety of testers and test sequences, integrates data upload, routing control, serial communication methods, and facilitates the development of test programs. However, the framework currently only supports automatic testing of products with fixed serial ports, but not products with variable communication serial ports. Therefore, during testing, testers need to manually click a button to start the test, which is inefficient. Summary of the invention

[0003] The main purpose of the present invention is to provide a product automatic testing method, device, equipment and computer-readable storage medium, aiming to provide a product automatic testing solution that supports variable communication serial ports, so as to solve the problem of low testing efficiency when testing products with variable communication serial ports, requiring testers to manually click a button to start testing.

[0004] To achieve the above object, the present invention provides a product automatic testing method, the product automatic testing method comprising the following steps:

[0005] Whenever the product placed at the test position corresponding to the communication board is tested, detecting whether the product is taken away from the test position;

[0006] After detecting that the product is taken away from the test position, detecting whether a new product is placed on the test position;

[0007] When it is detected that a new product is placed on the test position, a virtual serial port corresponding to the communication board is generated, and a communication connection is established with the new product through the virtual serial port, and the new product is tested based on the communication connection.

[0008] Optionally, the step of detecting whether the product is taken away from the test position comprises:

[0009] Detecting whether there is a physical connection between the product and the communication board;

[0010] If a physical connection between the product and the communication board is detected, determining that the product has not been removed from the testing location;

[0011] If no physical connection between the product and the communication board is detected, it is determined that the product is removed from the testing location.

[0012] Optionally, the step of detecting whether a new product is placed on the test position includes:

[0013] Detecting whether there is a physical connection between the product and the communication board;

[0014] If it is detected that there is a physical connection between the product and the communication board, it is determined that a new product is placed on the test position;

[0015] If no physical connection between the product and the communication board is detected, it is determined that no new product is placed on the test position.

[0016] Optionally, after the step of testing the new product based on the communication connection, the method further includes:

[0017] After the test of the new product is completed, the communication information cached in the communication board is cleared.

[0018] Optionally, after the step of testing the new product based on the communication connection, the method further includes:

[0019] After testing of new products is completed, power off the new products.

[0020] Optionally, after the step of testing the new product based on the communication connection, the method further includes:

[0021] When the new product is tested and the test result is that the test is passed, outputting first indication information to indicate that the test is passed;

[0022] When the test result of the new product is a test failure after the test is completed, the second indication information is output to indicate the test failure.

[0023] Optionally, the method further comprises:

[0024] When it is detected that the new product is taken away from the test position, the output of the first indication information or the second indication information is stopped.

[0025] To achieve the above object, the present invention further provides a product automatic testing device, which is applied to a testing device, the testing device is connected to a communication board, and the product automatic testing device comprises:

[0026] A first detection module, used for detecting whether the product is taken away from the test position after the product placed at the test position corresponding to the communication board is tested;

[0027] A second detection module, for detecting whether a new product is placed on the test position after detecting that the product is taken away from the test position;

[0028] The test module is used to generate a virtual serial port corresponding to the communication board when it is detected that a new product is placed on the test position, establish a communication connection with the new product through the virtual serial port, and test the new product based on the communication connection.

[0029] To achieve the above-mentioned purpose, the present invention also provides a product automatic testing device, which includes: a memory, a processor, and a product automatic testing program stored in the memory and executable on the processor, and the product automatic testing program, when executed by the processor, implements the steps of the product automatic testing method described above.

[0030] In addition, to achieve the above objectives, the present invention also proposes a computer-readable storage medium, on which a product automatic testing program is stored, and when the product automatic testing program is executed by a processor, the steps of the product automatic testing method described above are implemented.

[0031] In the present invention, a communication board is connected through a test device, and whenever the test device completes testing of a product placed at a test position corresponding to the communication board, it is detected whether the product is taken away from the test position; when it is detected that the product is taken away from the test position, it is detected whether a new product is placed at the test position; when it is detected that a new product is placed at the test position, a virtual serial port corresponding to the communication board is generated, and a communication connection is established with the new product through the virtual serial port, and the new product is tested based on the communication connection. The present invention implements a product automatic testing solution that supports variable communication serial ports, thereby solving the problem of low test efficiency when a tester manually clicks a button to start testing when testing a product with a variable communication serial port. The product automatic testing solution can be applied to the Atlas test framework, so that the framework can support automatic testing of products with variable communication serial ports, thereby improving the low test efficiency when the framework is used for testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention;

[0033] Figure 2 A schematic diagram of the process of the first embodiment of the automatic product testing method of the present invention;

[0034] Figure 3 It is a functional module diagram of a preferred embodiment of the automatic product testing device of the present invention.

[0035] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0036] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0037] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0038] It should be noted that the automatic product testing equipment in the embodiment of the present invention may be a headset, a smart phone, a personal computer, a server or other equipment, and is not specifically limited here.

[0039] like Figure 1 As shown, the product automatic test equipment may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0040] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation on the product automatic test equipment, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0041] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a product automatic test program. The operating system is a program that manages and controls the hardware and software resources of the device and supports the operation of the product automatic test program and other software or programs. Figure 1 In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the product automatic test program stored in the memory 1005 and perform the following operations:

[0042] Whenever the product placed at the test position corresponding to the communication board is tested, detecting whether the product is taken away from the test position;

[0043] After detecting that the product is taken away from the test position, detecting whether a new product is placed on the test position;

[0044] When it is detected that a new product is placed on the test position, a virtual serial port corresponding to the communication board is generated, and a communication connection is established with the new product through the virtual serial port, and the new product is tested based on the communication connection.

[0045] Further, the operation of detecting whether the product is taken away from the test position includes:

[0046] Detecting whether there is a physical connection between the product and the communication board;

[0047] If a physical connection between the product and the communication board is detected, determining that the product has not been removed from the testing location;

[0048] If no physical connection between the product and the communication board is detected, it is determined that the product is removed from the testing location.

[0049] Furthermore, the operation of detecting whether a new product is placed on the test position includes:

[0050] Detecting whether there is a physical connection between the product and the communication board;

[0051] If it is detected that there is a physical connection between the product and the communication board, it is determined that a new product is placed on the test position;

[0052] If no physical connection between the product and the communication board is detected, it is determined that no new product is placed on the test position.

[0053] Further, after the operation of testing the new product based on the communication connection, the processor 1001 may also be used to call the product automatic testing program stored in the memory 1005 to perform the following operations:

[0054] After the test of the new product is completed, the communication information cached in the communication board is cleared.

[0055] Further, after the operation of testing the new product based on the communication connection, the processor 1001 may also be used to call the product automatic testing program stored in the memory 1005 to perform the following operations:

[0056] After testing of new products is completed, power off the new products.

[0057] Further, after the operation of testing the new product based on the communication connection, the processor 1001 may also be used to call the product automatic testing program stored in the memory 1005 to perform the following operations:

[0058] When the new product is tested and the test result is that the test is passed, outputting first indication information to indicate that the test is passed;

[0059] When the test result of the new product is a test failure after the test is completed, the second indication information is output to indicate the test failure.

[0060] Furthermore, the processor 1001 may also be used to call the product automatic test program stored in the memory 1005 to perform the following operations:

[0061] When it is detected that the new product is taken away from the test position, the output of the first indication information or the second indication information is stopped.

[0062] Based on the above structure, various embodiments of the product automatic testing method are proposed.

[0063] Reference Figure 2 , Figure 2 It is a flowchart of the first embodiment of the automatic product testing method of the present invention.

[0064] The embodiment of the present invention provides an embodiment of a product automatic testing method. It should be noted that although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than here. In this embodiment, the product automatic testing method is applied to a test device, and the test device is connected to a communication board. The test device can be a personal computer, a smart phone, or other device, which is not limited in this embodiment. In this embodiment, the product automatic testing method includes:

[0065] Step S10, after each test of a product placed at a test position corresponding to the communication board is completed, detecting whether the product has been taken away from the test position;

[0066] The test equipment can be connected to one or more communication boards, and a test position is set at each communication board. Each test position is used to place a product, and the product placed at the test position is connected to the communication board corresponding to the test position through a physical interface. The test equipment tests the products placed at each test position. The product can be a product with a variable communication serial port, such as headphones. A variable communication serial port means that when a product is physically connected to an external device through a physical interface, it cannot communicate with the external device directly through the physical interface, and it is necessary to communicate with the external device through a virtual serial port generated by software. The content of the product test is not limited in this embodiment. For example, the active noise reduction function, audio playback function, etc. of the headphones can be tested. When the product is a headset, the function of the communication board can be equivalent to an earphone box, and replacing the earphone box with a communication board can reduce the testing cost.

[0067] Whenever the test equipment completes the test of the product placed at the test position corresponding to the communication board, it detects whether the product has been taken away from the test position. It should be noted that when there are multiple communication boards, each communication board can be tested separately. For the sake of convenience, the following description takes one communication board as an example.

[0068] There are many ways to detect whether the test product has been taken away from the test position, which are not limited in this embodiment. For example, when testing a product, the test device and the product establish a communication connection through a virtual serial port. After the test is completed, the test device can determine whether the product has been taken away from the test position by detecting whether it can receive a response message fed back by the product through the virtual serial port. That is, when the test device does not receive a response message fed back by the product within a preset time period, it can be determined that the product has been taken away from the test position.

[0069] Further, in one embodiment, the step of detecting whether the product is taken away from the test position in step S10 includes:

[0070] Step S101, detecting whether there is a physical connection between the product and the communication board;

[0071] Step S102, if it is detected that there is a physical connection between the product and the communication board, it is determined that the product has not been removed from the test position;

[0072] Step S103: If no physical connection is detected between the product and the communication board, it is determined that the product is removed from the test position.

[0073] In this embodiment, the test device can determine whether the product has been taken away from the test position by detecting whether there is a physical connection between the product and the communication board. There are many specific implementation methods for detecting whether there is a physical connection between the product and the communication board, which are not limited here. For example, in one embodiment, a test program based on the Atlas framework can be installed in the test device, and a detection script for detecting whether there is a physical connection between the product and the communication board is set in the test program. When the detection script detects that there is a physical connection between the product and the communication board, it returns a first keyword, and when it detects that there is no physical connection between the product and the communication board, it returns a second keyword; the test program determines whether the product has been taken away from the test position based on the returned keyword, for example, when the keyword is the first keyword, it is determined that the product has not been taken away from the test position, and when the keyword is the second keyword, it is determined that the product has been taken away from the test position.

[0074] Step S20, after detecting that the product is taken away from the test position, detecting whether a new product is placed on the test position;

[0075] When the testing device detects that the product is taken away from the testing position, it can start to detect whether a new product is placed on the testing position. The new product may be a product that has not been tested before, or a product that has been tested before, which is not limited in this embodiment. It should be noted that the operation of placing the product on the testing position can be performed manually or by an automatic material picker.

[0076] There are many ways to detect whether a new product is placed on the test position, which are not limited in this embodiment. For example, a pressure sensor can be set at the test position, and the pressure sensor feeds back a pressure signal to the test equipment, and the test equipment determines whether a new product is placed at the test position based on the pressure signal. It is understandable that the pressure signal fed back by the pressure sensor is different when a product is placed at the test position and when no product is placed.

[0077] Further, in one embodiment, the step S20 of detecting whether a new product is placed on the test position includes:

[0078] Step S201, detecting whether there is a physical connection between the product and the communication board;

[0079] Step S202, if it is detected that there is a physical connection between the product and the communication board, it is determined that a new product is placed on the test position;

[0080] Step S203: If no physical connection is detected between the product and the communication board, it is determined that no new product is placed on the test position.

[0081] In this embodiment, the test device can determine whether a new product is placed in the test position by detecting whether there is a physical connection between the product and the communication board. There are many specific implementation methods for detecting whether there is a physical connection between the product and the communication board, which are not limited here. For example, in one embodiment, a test program based on the Atlas framework can be installed in the test device, and a detection script for detecting whether there is a physical connection between the product and the communication board is set in the test program. When the detection script detects that there is a physical connection between the product and the communication board, it returns a first keyword, and when it detects that there is no physical connection between the product and the communication board, it returns a second keyword; the test program determines whether a new product is placed in the test position based on the returned keyword. For example, when the keyword is the first keyword, it is determined that a new product is placed in the test position, and when the keyword is the second keyword, it is determined that no new product is placed in the test position.

[0082] Step S30, when it is detected that a new product is placed on the test position, a virtual serial port corresponding to the communication board is generated, and a communication connection is established with the new product through the virtual serial port, and the new product is tested based on the communication connection.

[0083] When a new product is detected to be placed in the test position, the test device generates a virtual serial port corresponding to the communication board. The method of generating the virtual serial port is not limited in this embodiment. For example, in one embodiment, the test device can generate a group of virtual serial ports (kis0, kis1, kis2, kis3), where kis0 is used for burning, kis2 is used for communication, and kis1 and kis3 are used for other purposes; when the test device is connected to multiple communication boards, the test device generates a different virtual serial port for each communication board. For example, when 12 communication boards are connected, 12 groups of virtual serial ports are generated, and the kis number generated for each communication board is different.

[0084] The test device establishes a communication connection with the new product through the generated virtual serial port, and tests the new product based on the communication connection.

[0085] In this embodiment, the communication board is connected through the test equipment. Whenever the test equipment completes the test of the product placed in the test position corresponding to the communication board, it detects whether the product is taken away from the test position; when it is detected that the product is taken away from the test position, it detects whether a new product is placed in the test position; when it is detected that the new product is placed in the test position, a virtual serial port corresponding to the communication board is generated, and a communication connection is established with the new product through the virtual serial port, and the new product is tested based on the communication connection. This embodiment implements a product automatic testing solution that supports variable communication serial ports, thereby solving the problem of low test efficiency when the tester needs to manually click a button to start the test when testing products with variable communication serial ports. The product automatic testing solution can be applied to the Atlas test framework, so that the framework can support automatic testing of products with variable communication serial ports, thereby improving the low test efficiency when the framework is used for testing.

[0086] Further, based on the above first embodiment, a second embodiment of the product automatic testing method of the present invention is proposed. In this embodiment, after the step of testing the new product based on the communication connection in step S30, the method further includes:

[0087] Step S40, after the test of the new product is completed, the communication information cached in the communication board is cleared.

[0088] When the test equipment and the product communicate through the virtual port, the communication board will cache the communication information exchanged during the communication process between the test equipment and the product. In order to avoid the communication information cached in the communication board during the test of the previous product affecting the test of the next product, the test equipment can clear the communication information cached in the communication board after completing the test of each product.

[0089] Furthermore, in another embodiment, the testing device may clear the communication information cached in the communication board after detecting that a new product is placed on the testing position.

[0090] Further, in one embodiment, after the step of testing the new product based on the communication connection in step S30, the method further includes:

[0091] Step S50, after the test of the new product is completed, the new product is powered off.

[0092] To prevent the communication board from continuously charging the product when the product is not removed from the test position after the product test is completed, the test equipment can power off the product after the product test is completed.

[0093] Further, in one embodiment, after the step of testing the new product based on the communication connection in step S30, the method further includes:

[0094] Step S60, when the new product is tested and the test result is that the test is passed, output first indication information to indicate that the test is passed;

[0095] To facilitate the tester to understand the test results, the test device can output corresponding indication information according to the test results after the test of the new product is completed. When the test result is that the test is passed, the test device can output first indication information, and the first indication information is used to indicate to the tester that the product test has passed. The specific output form of the first indication information can be set as needed, and is not limited in this embodiment. For example, the indicator light can turn green to indicate that the test has passed.

[0096] Step S70: When the test result of the new product is a test failure after the test is completed, output second indication information to indicate the test failure.

[0097] When the test result is a test failure, the test device can output a second indication information, which is used to indicate to the tester that the product test failed. The specific output form of the second indication information can be set as needed and is not limited in this embodiment. For example, the indicator light can turn red to indicate a test failure.

[0098] Furthermore, in one embodiment, the product testing method further comprises:

[0099] Step S80, when it is detected that the new product is taken away from the test position, stop outputting the first indication information or the second indication information.

[0100] When the test of the new product is completed, before the new product is taken away from the test position, the test equipment outputs the first indication information or the second indication information according to the test result. When it is detected that the new product is taken away from the test position, the test equipment stops outputting the first indication information or the second indication information.

[0101] Furthermore, in one embodiment, a test program based on the Atlas framework can be installed in the test device, and the test program includes a script for initializing the connection between the product and the communication board, a script for establishing the connection between the product and the communication board, a script for powering off the product, and a script for generating a virtual serial port. The script for initializing the connection between the product and the communication board is used to clear the communication information cached in the communication board and reset all related connections to prevent interference with the next test. The script for establishing the connection between the product and the communication board is used to determine whether the product is placed in the test position through keywords. The script for powering off the product prevents the product from continuing to be charged after the product test is completed. The script for generating a virtual serial port is used to generate a virtual serial port, and establish a connection with the product through the virtual serial port for communication.

[0102] During the test, the test program in the test equipment is opened, and the script that establishes the connection between the product and the communication board is used to continuously detect whether the test product is placed. When the product is detected to be placed, the test is started, and the indicator light indicates whether the test has passed or failed after the test is completed. After the test is completed, the script that establishes the connection between the product and the communication board is restarted to continuously detect whether the test product is placed. When the product is detected to be removed, the indicator light goes out, and the detection continues to detect whether a new product is placed. When the product is detected to be placed, the next test is started.

[0103] In addition, an embodiment of the present invention further provides a product automatic testing device, the product automatic testing device is applied to a testing device, the testing device is connected to a communication board, and the test device is connected to a communication board. Figure 3 , the product automatic testing device comprises:

[0104] A first detection module 10 is used to detect whether the product is taken away from the test position after the product placed at the test position corresponding to the communication board is tested;

[0105] The second detection module 20 is used to detect whether a new product is placed on the test position after detecting that the product is taken away from the test position;

[0106] The test module 30 is used to generate a virtual serial port corresponding to the communication board when it is detected that a new product is placed on the test position, establish a communication connection with the new product through the virtual serial port, and test the new product based on the communication connection.

[0107] Furthermore, the first detection module 10 is also used for:

[0108] Detecting whether there is a physical connection between the product and the communication board;

[0109] If a physical connection between the product and the communication board is detected, determining that the product has not been removed from the testing location;

[0110] If no physical connection between the product and the communication board is detected, it is determined that the product is removed from the testing location.

[0111] Furthermore, the second detection module 20 is also used for:

[0112] Detecting whether there is a physical connection between the product and the communication board;

[0113] If it is detected that there is a physical connection between the product and the communication board, it is determined that a new product is placed on the test position;

[0114] If no physical connection between the product and the communication board is detected, it is determined that no new product is placed on the test position.

[0115] Furthermore, the product automatic testing device also includes:

[0116] The clearing module is used to clear the communication information cached in the communication board after the test of the new product is completed.

[0117] Furthermore, the product automatic testing device also includes:

[0118] The power-off module is used to power off the new product after the test of the new product is completed.

[0119] Furthermore, the product automatic testing device also includes:

[0120] A first output module is used to output first indication information indicating that the test has passed when the test result of the new product is passed after the test is completed;

[0121] The second output module is used to output second indication information to indicate test failure when the test result of the new product is test failure after the test is completed.

[0122] Furthermore, the product automatic testing device also includes:

[0123] A stop module is used to stop outputting the first indication information or the second indication information when it is detected that the new product is taken away from the test position.

[0124] The various embodiments of the automatic product testing device of the present invention can refer to the various embodiments of the automatic product testing method of the present invention, which will not be described in detail here.

[0125] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a product automatic testing program is stored. When the product automatic testing program is executed by a processor, the steps of the product automatic testing method described below are implemented.

[0126] The various embodiments of the product automatic testing device and the computer-readable storage medium of the present invention can all refer to the various embodiments of the product automatic testing method of the present invention, and will not be described in detail here.

[0127] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0128] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0130] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A product automatic testing method, It is characterized in that The product automatic testing method is applied to a testing device, the testing device is connected to a communication board, and the product automatic testing method comprises the following steps: Whenever the product placed at the test position corresponding to the communication board is tested, whether the product is taken away from the test position is detected; wherein the product includes a product with a variable communication serial port, and the variable communication serial port means that when the product is physically connected to an external device through a physical interface, it cannot communicate with the external device directly through the physical interface, and needs to communicate with the external device through a virtual serial port generated by software; After detecting that the product is taken away from the test position, detecting whether a new product is placed on the test position; When it is detected that a new product is placed on the test position, a virtual serial port corresponding to the communication board is generated, and a communication connection is established with the new product through the virtual serial port, and the new product is tested based on the communication connection.

2. The product automatic testing method according to claim 1, It is characterized in that The step of detecting whether the product has been taken away from the test position comprises: Detecting whether there is a physical connection between the product and the communication board; If a physical connection between the product and the communication board is detected, determining that the product has not been removed from the testing location; If no physical connection between the product and the communication board is detected, it is determined that the product is removed from the testing location.

3. The product automatic testing method according to claim 1, It is characterized in that The step of detecting whether a new product is placed on the test position comprises: Detecting whether there is a physical connection between the product and the communication board; If it is detected that there is a physical connection between the product and the communication board, it is determined that a new product is placed on the test position; If no physical connection between the product and the communication board is detected, it is determined that no new product is placed on the test position.

4. The product automatic testing method according to claim 1, It is characterized in that After the step of testing the new product based on the communication connection, the method further includes: After the test of the new product is completed, the communication information cached in the communication board is cleared.

5. The product automatic testing method according to claim 1, It is characterized in that After the step of testing the new product based on the communication connection, the method further includes: After testing of new products is completed, power off the new products.

6. The product automatic testing method according to any one of claims 1 to 5, It is characterized in that After the step of testing the new product based on the communication connection, the method further includes: When the new product is tested and the test result is that the test is passed, outputting first indication information to indicate that the test is passed; When the test result of the new product is a test failure after the test is completed, the second indication information is output to indicate the test failure.

7. The product automatic testing method according to claim 6, It is characterized in that The method further comprises: When it is detected that the new product is taken away from the test position, the output of the first indication information or the second indication information is stopped.

8. A product automatic testing device, It is characterized in that The product automatic testing device is applied to a testing device, the testing device is connected to a communication board, and the product automatic testing device comprises: A first detection module is used to detect whether the product is taken away from the test position after the product placed at the test position corresponding to the communication board is tested; wherein the product includes a product with a variable communication serial port, and the variable communication serial port means that when the product is physically connected to an external device through a physical interface, it cannot communicate with the external device directly through the physical interface, and needs to communicate with the external device through a virtual serial port generated by software; A second detection module, for detecting whether a new product is placed on the test position after detecting that the product is taken away from the test position; The test module is used to generate a virtual serial port corresponding to the communication board when it is detected that a new product is placed on the test position, establish a communication connection with the new product through the virtual serial port, and test the new product based on the communication connection.

9. A product automatic testing equipment, It is characterized in that The product automatic testing equipment comprises: a memory, a processor and a product automatic testing program stored in the memory and executable on the processor. When the product automatic testing program is executed by the processor, the steps of the product automatic testing method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores an automatic product testing program, and when the automatic product testing program is executed by a processor, the steps of the automatic product testing method according to any one of claims 1 to 7 are implemented.