Product testing method and device and storage medium
Automatically determine the test items and connections through the product identification code and serial number, solving the problem of inefficient camera manual testing, realizing automated testing, and improving testing efficiency.
Patent Information
- Application Number
- CN202411338531.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-01-03
AI Technical Summary
Existing cameras need to be repeatedly operated during manual testing before leaving the factory, resulting in long test time and inefficient efficiency.
The test items are determined through the product identification code, and the connection is established using the product serial number, testing instructions are generated and sent to the product to be tested, and the test results are determined based on the response data to realize automated testing.
It reduces the tedious operation of manual testing, improves testing efficiency, and shortens the testing time of each product.
Smart Images

Figure CN119254945A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of quality inspection technology, and in particular to a product testing method, device and storage medium. Background Art
[0002] In order to ensure product quality before leaving the factory, camera products need to undergo a series of tests, such as hardware function testing, quality testing, life testing, and factory information burning.
[0003] At present, cameras are generally tested manually before leaving the factory. However, since there are many functions to be tested and the testing methods for each function are different, the manual testing process requires repeated operations to complete the inspection of all functions. This repetitive and cumbersome testing process results in a long time required for testing each product, which affects the overall testing efficiency and makes the testing process inefficient and time-consuming. Summary of the invention
[0004] The main purpose of this application is to provide a product testing method, equipment and storage medium, aiming to solve the technical problem that repeated operations are required to complete the inspection of all functions during manual testing. This repetitive and cumbersome testing process results in a long time required for testing each product, resulting in low testing efficiency.
[0005] To achieve the above object, the present application provides a product testing method, which is applied to a test end, and the method includes: Determine the test items corresponding to the product to be tested according to the product identification code of the product to be tested; Acquire the product serial number of the product to be tested, and establish a connection with the product to be tested based on the product serial number; Generate a test instruction corresponding to the test item, and send the test instruction to the product to be tested; Based on the response data of the test instruction fed back by the product to be tested, a test result corresponding to the product to be tested is determined.
[0006] In one embodiment, before the step of establishing a connection with the product to be tested based on the product serial number, the step further includes: Sending a serial number confirmation request to the service platform based on the product serial number, receiving a traversal result of the service platform's response to the product serial number confirmation request, and determining whether the product serial number is correct based on the traversal result; If the product serial number is correct, establishing a connection with the product to be tested based on the product serial number; If the product serial number is incorrect, obtain a new product serial number and repeat the above steps until a connection is established.
[0007] In one embodiment, the method further comprises: A service platform identification code is obtained, and based on the product identification code, it is determined whether the service platform identification code can test the product to be tested, and a service platform corresponding to the service platform identification code that can test the product to be tested is used as a target service platform.
[0008] In one embodiment, the method further comprises: The product identification code and / or the product serial number and / or the service platform identification code of the target service platform are sent to the product to be tested, so that the product identification code and / or the product serial number and / or the service platform identification code of the target service platform are used as the mark of the product to be tested.
[0009] In one embodiment, the method further comprises: The test result is displayed and sent to the target service platform, so that the target service platform can send the test result to the client when receiving the result confirmation request from the client.
[0010] In one embodiment, the step of generating a test instruction corresponding to the test item and sending the test instruction to the product to be tested includes: When the test item includes multiple functions to be tested, generating sub-test instructions corresponding to each function to be tested; The sub-test instruction is sent to the product to be tested at a preset frequency.
[0011] In one embodiment, the method further comprises: If the test result is a test failure, a test instruction is sent to the product to be tested after a preset period of time, and then response data of the test instruction fed back by the product to be tested is executed to determine the test result corresponding to the product to be tested.
[0012] In one embodiment, the method includes: issuing a prompt based on the test results corresponding to each function to be tested.
[0013] In addition, to achieve the above-mentioned purpose, the present application also provides a product testing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the product testing device is used to execute the steps of the product testing method described above.
[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to implement the steps of the product testing method as described above.
[0015] The present application provides a product testing method, which receives a product identification code input by a management personnel or a product identification code sent by a server, determines the corresponding test items of the product to be tested according to the product identification code, then obtains the product serial number of the product to be tested, establishes a connection with the product to be tested according to the product serial number, and can determine whether to establish a connection with the product to be tested by whether the product serial number is correct and / or whether the product serial number exists in a service platform. After the connection is established, a corresponding test instruction is generated according to the test items of the product to be tested, and then the test instruction is sent to the product to be tested to test the product to be tested, and then the response data made by the product to be tested based on the test instruction is received to determine the test result of the product to be tested, thereby completing the testing of the test items corresponding to the product to be tested.
[0016] In summary, the present application utilizes the product identification code to determine the test items corresponding to the product to be tested, utilizes the product serial number to determine whether to establish a connection to test the product to be tested, and automatically completes the test of the product to be tested according to the test items after the connection is established. This overcomes the problem of repeated operations required to complete the inspection of all functions during manual testing. This repetitive and cumbersome testing process results in a long time required to test each product, resulting in low testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A flowchart of the first embodiment of the product testing method of the present application is provided; Figure 2 A flow chart of the second embodiment of the product testing method of the present application; Figure 3 A flow chart of the third embodiment of the product testing method of the present application; Figure 4 A schematic diagram of the overall architecture provided for the product testing method of this application; Figure 5 The overall process diagram provided for the product testing method of this application; Figure 6 This is a schematic diagram of the structure of the product testing equipment in the embodiment of the present application.
[0020] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0023] The main solution of the present application is: a product testing method, applied to the test end, the method comprising: determining the test items corresponding to the product to be tested according to the product identification code of the product to be tested; obtaining the product serial number of the product to be tested, and establishing a connection with the product to be tested based on the product serial number; generating test instructions corresponding to the test items, and sending the test instructions to the product to be tested; determining the test results corresponding to the product to be tested based on the response data of the test instructions fed back by the product to be tested.
[0024] At present, cameras are generally tested manually before leaving the factory. However, since there are many functions to be tested and the testing methods for each function are different, the manual testing process requires repeated operations to complete the inspection of all functions. This repetitive and cumbersome testing process results in a long time required for testing each product, which affects the overall testing efficiency and makes the testing process inefficient and time-consuming.
[0025] The present application utilizes the product identification code to determine the test items corresponding to the product to be tested, utilizes the product serial number to determine whether to establish a connection to test the product to be tested, and automatically completes the test of the product to be tested according to the test items after the connection is established. This overcomes the problem that repeated operations are required to complete the inspection of all functions during the manual testing process. This repetitive and cumbersome testing process results in a long time required to test each product, resulting in low testing efficiency.
[0026] It should be noted that the execution subject of this embodiment can be a product testing system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a product testing device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the product testing system as an example of the execution subject to illustrate this embodiment and the following embodiments.
[0027] Based on this, this application proposes a product testing method of the first embodiment, please refer to Figure 1 , the product testing method comprises steps S10 to S40: Step S10: determining the test items corresponding to the product to be tested according to the product identification code of the product to be tested.
[0028] It should be noted that before testing the product to be tested, it is necessary to first determine the product identification code, product serial number and corresponding service platform identification code and other test information of the product to be tested. After the product is produced, the management personnel can input the number of products to be tested and the type of products and other information into the service platform, and the service platform will generate the corresponding batch identification code, the product identification code and product serial number of each product to be tested and other test information, and the test information generated by the service platform is associated with the service platform through the service platform identification code. When testing the product to be tested, the product identification code of the product to be tested is input into the test terminal through the management personnel or the service platform, and the test terminal determines the corresponding test items of the product to be tested according to the product identification code.
[0029] The test items of the product to be tested are predetermined according to the product type. The service platform has pre-stored test items corresponding to each type of product that need to be tested. When the manager inputs the product type into the service platform, the test items of the product to be tested are automatically determined according to the product type, and the test items are associated with the batch identification code and product identification code of the product to be tested.
[0030] When testing a single product, the product identification code of the product to be tested is input into the test end; when testing multiple products, the batch identification code of the product to be tested can be input into the test end, and the test end determines the test items of the product to be tested by the batch identification code, and displays the total number, tested number and untested number of the batch of products to be tested on the test end, so that the management personnel can grasp the latest test situation.
[0031] The service platform can be a TUTK (ThroughTek) PTZ server, a third-party platform such as Tuya, which is a global AI+IoT platform, or a local server WO.
[0032] Among them, the product identification code corresponds one-to-one to each product to be tested, and the product serial number corresponds one-to-one to each product to be tested. The batch identification code of the product to be tested is when the management personnel enter the number of products to be tested into the service platform. The products to be tested corresponding to the number belong to the same batch, that is, the batch identification code indicates the products to be tested corresponding to the current number.
[0033] For example, in the embodiment of the present application, the product to be tested is illustrated by taking the camera as an example. This batch produces 100 Class A cameras. The test items of Class A cameras include packaging test, function test and authorization-4G, signal strength test, and function test (excluding 4G items). After the manager enters the number of cameras to be tested 100 and the camera type Class A into the service platform, the service platform will generate product identification codes, product serial numbers and batch identification codes corresponding to the 100 cameras to be tested, and associate the service platform identification code of the service platform with the product identification code and the product serial number. When testing the Class A camera, the product identification code of the camera to be tested is entered into the test end, and the test end confirms the corresponding test item according to the product identification code, or the batch identification code of the 100 Class A cameras is entered into the test end, and the test end determines the test items of the batch of cameras to be tested according to the batch identification code.
[0034] Step S20, obtaining the product serial number of the product to be tested, and establishing a connection with the product to be tested based on the product serial number.
[0035] It should be noted that after confirming the test items of the product to be tested, the product serial number corresponding to the product to be tested is obtained, and whether to establish a connection with the product to be tested to implement testing of the product to be tested is determined by whether the product serial number is correct.
[0036] The product serial number can be obtained by the administrator inputting it on the human-computer interaction display screen at the test end, by the test end scanning the QR code, barcode, etc. on the product to be tested, or by sending a request signal to the service platform through the association between the product identification code and the product serial number to obtain the product serial number.
[0037] Whether the product serial number is correct is determined by checking the length, format, and check digit of the obtained product serial number, whether there is a product serial number identical to the obtained product serial number in the service platform, and so on.
[0038] After confirming that the product serial number is correct, the test end establishes a connection with the product to be tested. The test end and the product to be tested can achieve data transmission through wired connection or wireless connection. When the connection between the test end and the product to be tested is achieved through a wired connection, if the product to be tested is single, the product to be tested and the test end can be directly connected through the USB interface; if there are multiple products to be tested, a multi-port external network card can be set between the product to be tested and the test end. The product to be tested can be connected to the multi-port external network card through the USB interface, and then connected to the test end through the multi-port external network card through the USB interface to achieve the connection between the product to be tested and the test end.
[0039] Among them, the method for confirming whether the product to be tested is single or multiple can be determined by whether the product identification code or the batch identification code is received. When the product identification code is received, the product to be tested is single, and when the batch identification code is received, the product to be tested is multiple.
[0040] It can be seen from the above step S10 that the product identification code, product serial number, batch identification code and service platform identification code of Class A cameras are interrelated. When the test end receives the product identification code corresponding to camera x, such as the product identification code of camera x is d-5e942365-n, the corresponding product serial number can be confirmed in the service platform through the product identification code d-5e942365-n. If the product serial number corresponding to the product identification code d-5e942365-n in the service platform is FN5GSJE3ZJLDIMA2CYZQ, when the obtained product serial number is FN5GSJE3ZJLDIMA2CYZQ, it is confirmed that the obtained product serial number is correct. At this time, a connection is established with the camera x to be tested to complete the test of camera x. If the obtained product serial number is FN5GJE3CYLKIDWY4XNSH, it is determined that the product serial number is not the product serial number of camera x, and no connection is established.
[0041] Optionally, when the obtained product serial number does not correspond to the product identification code, but there is a product serial number identical to the obtained product serial number on the service platform, the obtained product serial number is used as the product serial number of the product to be tested. For example, the product identification code of camera y is d-5e7463-j, and the product serial number corresponding to the product identification code in the service platform is FN2BSYD4NM. When the obtained product serial number is FN2NXGELAS, the product serial number FN2NXGELAS exists in the service platform and has not been used. At this time, the product serial number FN2NXGELAS is used as the product serial number of camera y, and a connection with camera y is established to implement the test of camera y.
[0042] It should be noted that before the test end establishes a connection with the product to be tested, it is necessary to test the communication interface of the product to be tested. By connecting the product to be tested with the test end, and then determining whether the communication interface of the product to be tested can communicate normally through the indication of whether the connection is successful or not, it is ensured that the test end can establish a connection with the product to be tested normally after confirming that the product serial number of the product to be tested is correct. For example, before testing a camera, it is necessary to test its communication interface, save the relevant test item data in the camera, and then establish a connection between the camera and the external network card. If the communication interface test is abnormal or the external network card connection is abnormal, the status of the connection between the communication interface and the external network card will be displayed on the test end, thereby completing the test of the communication interface of the product to be tested.
[0043] In a feasible implementation, the test end may include a test terminal and a test device. The test terminal is communicatively connected to the test device to achieve real-time communication. The test terminal may be a computer. The test device may include an indicator light, a camera, a controller, a communication device, etc. The controller is electrically connected to the communication device, the camera, and the indicator light. The test device is connected to the test terminal via the communication device to achieve real-time communication. The test terminal generates corresponding test instructions according to the test items and sends them to the product to be tested. By placing the product to be tested on the test device, the test device can obtain the serial number of the product to be tested by scanning, and can also display the connection status of the product to be tested and the test terminal through the indicator light, or display the test results of the product to be tested and other information through the indicator light.
[0044] In a feasible implementation, the product to be tested itself is provided with an indicator light. When the product to be tested receives an instruction to test the communication interface of the product to be tested, the connection status is displayed by the indicator light provided on the product to be tested. When multiple products to be tested are tested at the same time, the management personnel can quickly determine the test results of each product to be tested.
[0045] Step S30, generating a test instruction corresponding to the test item, and sending the test instruction to the product to be tested.
[0046] It should be noted that after establishing a connection with the product to be tested, a corresponding test instruction is generated according to the test items corresponding to the product to be tested, and the test instruction is sent to the product to be tested to complete the test of the test items of the product to be tested.
[0047] Optionally, if the product to be tested has multiple test items, a corresponding test instruction is generated according to each test item, and then the test instruction corresponding to each test item is sent to the product to be tested respectively to complete the testing of each test item of the product to be tested.
[0048] For example, the test items corresponding to camera n include packaging test, communication function test, signal strength test, and functional test (excluding communication function). Then, test instructions corresponding to the packaging test, communication function test, signal strength test, and functional test (excluding communication function) are generated respectively and sent to the product to be tested.
[0049] In order to ensure that when the product under test receives the test instruction from the test end, the product under test can parse the test instruction and complete the test, the communication protocol of the test end and the product under test is matched. For example, after the product under test establishes a connection with the test end, the product under test and the test end use TCP communication to implement command issuance and data transmission. The product under test starts a TCP service. After the product under test is successfully connected to the test end, the test end will display the firmware and version information of the hardware device, and functional testing can begin. Functional test items also include sleep power consumption test, aging test and finished product test. The connection status is indicated by the LED light on the test end to indicate success or failure. After failure, the cause of the abnormality can be determined by the status indication of the light.
[0050] Step S40: determining a test result corresponding to the product to be tested based on the response data of the test instruction fed back by the product to be tested.
[0051] It should be noted that after the test instruction is sent to the product under test, the product under test will make corresponding actions or reactions based on the test instruction. The test end monitors the response data of the product under test based on the test instruction in real time to determine the test results corresponding to the test items of the product under test.
[0052] Among them, the response data includes test success and test failure. Through the response data of test success and test failure, it is possible to determine whether the program corresponding to the corresponding test item is successfully burned into the product to be tested. If the test is successful, it means that the program corresponding to the test item is successfully burned into the product to be tested. If the test fails, it indicates that the program corresponding to the test item has failed to be burned or an error has occurred in the program. Optionally, different response data are used to identify the situation where program burning fails or program errors occur, which is convenient for management personnel to handle.
[0053] When there are multiple test items, if one of the test items fails, the test result of the product to be tested is an unqualified product.
[0054] The present application receives the product identification code input by the manager or the product identification code sent by the service end, determines the test items of the corresponding product to be tested according to the product identification code, and then obtains the product serial number of the product to be tested, establishes a connection with the product to be tested according to the product serial number, and determines whether to establish a connection with the product to be tested by whether the product serial number is correct and / or whether the product serial number exists in the service platform. After the connection is established, the corresponding test instructions are generated according to the test items of the product to be tested, and then the test instructions are sent to the product to be tested to test the product to be tested, and then the response data made by the product to be tested based on the test instructions is received to determine the test results of the product to be tested, thereby completing the test of the test items corresponding to the product to be tested. By using the product identification code to determine the test items corresponding to the product to be tested, using the product serial number to determine whether to establish a connection to test the product to be tested, and automatically completing the test of the product to be tested according to the test items after the connection is established, the problem of repeated operations required to complete the inspection of all functions in the manual testing process is overcome. This repetitive and cumbersome testing process results in a long time required for testing each product, resulting in low testing efficiency.
[0055] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , the robot control method comprises the following steps: Step S10: determining the test items corresponding to the product to be tested according to the product identification code of the product to be tested.
[0056] The specific implementation of this step can refer to step S10 in the first embodiment, and will not be described in detail here.
[0057] Step S201, sending a serial number confirmation request to a service platform based on the product serial number, receiving a traversal result of the service platform's response to the product serial number confirmation request, and determining whether the product serial number is correct based on the traversal result.
[0058] It should be noted that the product serial number is input into the test end through the management personnel or the service platform. After receiving the product serial number, the test end needs to determine whether the product serial number is correct. By sending a serial number confirmation request to the service platform, the service platform determines whether the product serial number is correct. The service platform traverses the product serial number corresponding to the product serial number confirmation request sent by the test end in the serial numbers in the service platform, and determines whether there is a product serial number in the service platform that is the same as the product serial number of the product to be tested sent by the test terminal, and sends the traversal result generated after the traversal to the test end.
[0059] The product serial number in the service platform corresponds to each product to be tested. Therefore, the number of product serial numbers in the service platform is consistent with the number of products to be tested. The product serial numbers in the service platform can be marked as used serial numbers and unused serial numbers respectively. Because the product serial number is unique, the product serial number cannot be reused and cannot appear on two products to be tested at the same time. That is, when the service platform receives a product serial number confirmation request, it will traverse the received product serial number in the unused serial numbers to determine whether the product serial number is correct.
[0060] In the embodiment of the present application, the product to be tested is illustrated by taking a camera as an example. This batch produces 100 Class A cameras, and the corresponding batch identification code is 1, and the product identification code and product serial number are both 100. If there are 23 cameras that have been tested, then 23 of the corresponding 100 product serial numbers have been used, and 77 have not been used. When the test end is testing the camera m to be tested, the obtained product serial number is FN5GSJENG7SJ8KLB1DIY. When the service platform receives the serial number confirmation request, it traverses and searches the product serial number FN5GSJENG7SJ8KLB1DIY in the 77 unused serial numbers to confirm whether there is a product serial number of camera m in the unused serial numbers. If there is an unused serial number that is the same as the product serial number, the traversal result with the correct serial number is fed back to the test end. If there is no unused serial number that is the same as the product serial number, the traversal result with the wrong serial number is fed back to the test end.
[0061] Step S202: if the product serial number is correct, a connection is established with the product to be tested based on the product serial number; if the product serial number is incorrect, a new product serial number is obtained, and the above steps are repeated until a connection is established.
[0062] It should be noted that if it is confirmed through the service platform that the product serial number of the product to be tested is correct, a connection between the test end and the product to be tested is established to realize data transmission between the test end and the product to be tested, thereby realizing the testing of the product to be tested; if it is confirmed through the service platform that the product serial number of the product to be tested is incorrect, a new product serial number is obtained again and the new product serial number is verified until the correct product serial number is obtained.
[0063] Step S301: when the test item includes multiple functions to be tested, generate sub-test instructions corresponding to each function to be tested.
[0064] It should be noted that a test item may include multiple functions to be tested, and each function to be tested has a different corresponding test instruction. Therefore, it is necessary to generate a corresponding sub-test instruction for each function to be tested, so as to complete the test of each function to be tested.
[0065] Among them, the test items include but are not limited to packaging test, functional test and authorization-4G, signal strength test, functional test (except 4G item), and packaging test includes multiple functions that need to be tested, including but not limited to physical performance test, dimensional stability test, sealing performance test, durability test, environmental protection test, safety test, aging test, etc. Functional test and authorization-4G include but are not limited to communication interface test, signal strength test includes but is not limited to 4G signal strength, communication quality test, data transmission speed test, etc. Functional test includes but is not limited to button test, speaker test, microphone test, motor test, indicator light test, white light test, IRCut test, power test, PIR test, station information check, firmware version check, storage function test, etc.
[0066] During the test of the product to be tested, the functions to be tested can be configured according to the characteristics of the product or the actual needs of the test. After the test, each function to be tested can display whether the test has passed, and the test can be repeated. In addition, the test can be controlled manually or automatically by the test end.
[0067] For example, when performing a functional test, the functions to be tested include a button test, a speaker test, and an indicator light test. The test end generates corresponding test instructions 1, 2, and 3 for the button test, speaker test, and indicator light test according to the functions to be tested, and sends the test instructions 1, 2, and 3 to the product to be tested to complete the button test, speaker test, and indicator light test. In addition, because the product to be tested is in a powered-on state during the test of the product to be tested, and the buttons, indicator lights, speakers, etc. are all set on the product to be tested, the button test, indicator light test, and speaker test can be performed directly on the product to be tested by manual operation. The button test is also completed in the process of testing the indicator lights and speakers by controlling the buttons. In the process of manual operation, the test results can also be manually uploaded on the human-computer interaction interface of the test end. If the first test fails, you can choose to repeat the operation. For the test of functions such as lights and speakers, it is faster to test through manual operation. There is no need to install image acquisition or sound acquisition equipment to collect the aperture or sound information generated during the test, and then analyze the collected information to determine whether the test is passed. The test can be completed quickly by observation during manual operation.
[0068] Step S302: Send the sub-test instruction to the product to be tested at a preset frequency.
[0069] It should be noted that different functions to be tested require different test times. Therefore, the sending frequency of each sub-test instruction can be set in advance according to the test time required for different functions to be tested. The sub-test instructions can be sent to the product to be tested according to the preset sending frequency to complete the test of the function to be tested corresponding to each sub-test instruction.
[0070] In a feasible implementation manner, if the test result is a test failure, a test instruction is sent to the product to be tested after a preset time period.
[0071] It should be noted that, for each test item and each function to be tested in each test item, if there is a test failure, the test instruction corresponding to the test item or the function to be tested will be sent to the product to be tested again to complete the test, and you can choose to retest the function to be tested that has failed after all the functions to be tested have been tested, or you can choose to send the test instruction to the product to be tested immediately for a second test when the test result fed back by the test end as a failure is received from the product to be tested. Therefore, the preset time length can be the current function to be tested as the starting point and the time when the last function to be tested is completed as the end point, and the preset time length is the length of time from the current function to be tested to the end of the test of the last function to be tested; the preset time length can also be 0, and the action of sending the test instruction again will be executed immediately when a test failure is received.
[0072] For example, the functions to be tested of the product to be tested include button test, power test, speaker test, microphone test, motor test, indicator light test, white light test, IRCut test, and PIR test. The tests are performed in the above order. The motor test is currently being tested. The functions to be tested that are arranged after the motor test include indicator light test, white light test, IRCut test, and PIR test, and the corresponding required test times are 2 minutes, 4 minutes, 10 minutes, and 10 minutes, respectively. For the motor test, it is necessary to control the horizontal and vertical rotation range, speed, and stability to ensure that the motor works normally. If the test fails, you can choose to immediately send the sub-test instruction corresponding to the motor test to the product to be tested, or you can choose to send the sub-test instruction of the motor test again after all the tests of the functions to be tested arranged behind are completed, that is, send the sub-test instruction of the motor test after the preset duration of 26 minutes.
[0073] When multiple functions under test fail during the testing of the product under test, the functions under test that failed can be retested after all the functions under test are tested. The frequency of sending sub-test instructions for the retest is determined based on the functions under test that failed, thereby completing the testing of the functions under test that failed.
[0074] During the process of testing the product under test, the feedback generated by the product under test to the sub-test instruction is monitored in real time, and the sending time of the next sub-test instruction is adjusted according to the feedback. If the sub-test instruction of the function under test that failed the current test is sent to the product under test immediately when the test fails, the sending time of the sub-test instruction of the next function under test needs to be adjusted. For example, if the current function under test is the indicator light test, and the required test time is 2 minutes, if the indicator light test fails, the sub-test instruction of the next function under test needs to be sent to the product under test after 2 minutes.
[0075] Step S40: determining a test result corresponding to the product to be tested based on the response data of the test instruction fed back by the product to be tested.
[0076] The specific implementation of this step can refer to step S40 in the first embodiment, and will not be described in detail here.
[0077] In a feasible implementation manner, a prompt is issued based on the test results corresponding to each function to be tested.
[0078] It should be noted that, for the test results of each function to be tested, the test results can be tested to the management personnel by installing indicator lights corresponding to each test function on the test equipment at the test end. Each function to be tested corresponds to an indicator light, and a unified prompt can be given after all functions to be tested are tested, so that the test results of the functions to be tested of the current product to be tested can be quickly understood; the corresponding test results can also be displayed through indicator lights after the tests of each function to be tested are completed, so as to remind the management personnel that the function being tested of the current product to be tested has failed.
[0079] An indicator light corresponding to each function to be tested is installed on the test equipment. During the test, the test result of each function to be tested is displayed by the indicator light. During the test, the test result of each test function is displayed in real time by the indicator light. Different test results can be displayed by different colors of the indicator light or different states of the indicator light.
[0080] In the present application, before testing the product to be tested, the service platform generates corresponding test information such as product serial number and product identification code according to the number of products to be tested and test items. After the product identification code is input into the test end, the test end determines the corresponding test item according to the product identification code and obtains the product serial number. By checking the product serial number, it is ensured that the obtained product serial number exists in the service platform, thereby establishing a connection with the product to be tested, and then generating corresponding sub-test instructions according to each function to be tested of the product to be tested. The sending frequency of each sub-test instruction is set according to the test time required for each function to be tested. When the test fails, the sub-test instruction corresponding to the function to be tested that failed the test can be sent again to the product to be tested after a preset time to retest the function to be tested. At the same time, the test results are monitored in real time and displayed. The correctness of the product serial number is determined based on the product serial number and the product serial number in the service platform. After the product serial number is written into the product to be tested during the test, the user or manager can query the test result of the product to be tested in the platform through the product serial number. If the product serial number is wrong, the corresponding test result cannot be queried when querying through the product serial number. The test items corresponding to the product to be tested are determined by using the product identification code. After confirming that the product serial number is correct, a connection is established to test the product to be tested. After the connection is established, the test of the product to be tested is automatically completed according to the test items.
[0081] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment and / or the second embodiment can refer to the above description, and will not be described in detail later. Figure 3 , the robot control method comprises the following steps: Step S10: determining the test items corresponding to the product to be tested according to the product identification code of the product to be tested.
[0082] The specific implementation of this step can refer to step S10 in the first embodiment, and will not be described in detail here.
[0083] Step S20, obtaining the product serial number of the product to be tested, and establishing a connection with the product to be tested based on the product serial number.
[0084] The specific implementation of this step can refer to step S20 in the first embodiment, and will not be described in detail here.
[0085] Step S30, generating a test instruction corresponding to the test item, and sending the test instruction to the product to be tested.
[0086] The specific implementation of this step can refer to step S30 in the first embodiment, and will not be described in detail here.
[0087] Step S40: determining a test result corresponding to the product to be tested based on the response data of the test instruction fed back by the product to be tested.
[0088] The specific implementation of this step can refer to step S40 in the first embodiment, and will not be described in detail here.
[0089] Step S50, obtaining a service platform identification code, determining whether the service platform identification code can test the product to be tested based on the product identification code, and taking the service platform corresponding to the service platform identification code that can test the product to be tested as the target service platform.
[0090] It should be noted that different service platforms can be used to generate product identification codes, product serial numbers, batch identification codes and other test information for different products to be tested. Therefore, when testing the product to be tested, only the corresponding service platform contains the corresponding information of the product to be tested, and the test information of the product to be tested does not exist in other service platforms. It is impossible to provide the test end with test information such as the product serial number of the product to be tested during the test. After determining the corresponding product to be tested by the product identification code, the product identification code of the product to be tested is sent to the currently connected service platform to confirm whether the product identification code exists in the current service platform. If the product identification code exists, it is determined that the current service platform can provide test information for the product to be tested, and the current service platform is used as the target service platform. A connection is established between the target service platform and the test end to test the product to be tested.
[0091] The service platform includes but is not limited to TUTK (ThroughTek) PTZ server, Tuya and other third-party platforms. Tuya is a global AI+IoT platform, and it can also be a local server WO.
[0092] In the embodiment of the present application, the products to be tested are illustrated by taking cameras as an example. The first batch of products to be tested includes 100 cameras of type Y. The manager inputs the number of the first batch of products to be tested and the corresponding test items into the service platform k, and the server k generates 100 corresponding test information, including 1 batch identification code, 100 product identification codes and 100 product serial numbers and the service platform identification code 192.168.1.1:8080 of the service platform k; the second batch of products to be tested includes 50 cameras of type X. The manager inputs the number of the second batch of products to be tested and the corresponding test items into the service platform j, and the service platform j generates 1 batch identification code, 50 product identification codes, 50 product serial numbers and the service platform identification code of the service platform j for the corresponding 50 cameras to be tested. The service platform identification code is 192.168.1.1:6060. If the camera P to be tested is the first batch of cameras to be tested, the service platform identification code it obtains is 192.168.1.1:6060. By matching the product identification code in the service platform with the service platform identification code of 192.168.1.1:6060, it is determined that the product identification code of the camera P to be tested does not exist in the service platform. Then, the service platform j corresponding to the service platform identification code is not the target service platform of the camera P to be tested. Then, the service platform identification code is obtained again until the service platform k with the service platform identification code of 192.168.1.1:8080 is obtained. The service platform k is used as the target service platform, and the service platform k provides test information for the camera P to be tested so that the camera P to be tested can complete the test.
[0093] Step S60, sending the product identification code and / or the product serial number and / or the service platform identification code of the target service platform to the product to be tested, so as to use the product identification code and / or the product serial number and / or the service platform identification code of the target service platform as a mark of the product to be tested.
[0094] It should be noted that after testing the product to be tested, the product identification code, product serial number and service platform identification code are written into the product to be tested as a mark of the product to be tested, so that the test results of the product to be tested can be queried later based on the product identification code or product serial number or service platform identification code. For products to be tested with different test results, after the product identification code, product serial number, service platform and other information are written into the product to be tested, the test progress of the product to be tested and the test results of each function to be tested during the test process can be tracked based on this information.
[0095] Step S70: display the test result and send it to the target service platform, so that the target service platform can send the test result to the client when receiving the result confirmation request from the client.
[0096] It should be noted that, for example, in order to help understand the implementation process of the product testing method obtained by combining the above-mentioned embodiment 1, embodiment 2 and embodiment 3, please refer to Figure 5 , Figure 5 A brief flow chart of a product testing method is provided, specifically, Figure 4 As shown, after the production of the products to be tested is completed, the management personnel upload or input the quantity and type of the products to be tested into the service platform. The service platform pre-stores the test items that need to be tested for each type of products to be tested. After receiving the quantity and type of the products to be tested, the service platform automatically generates a product identification code, product serial number, and batch identification code for each product to be tested, and associates it with the service platform identification code to form the test information of the product to be tested. When testing the product to be tested, the identification code or batch identification code of the product to be tested is sent to the test end through the service platform, or the service platform displays the test information of the product to be tested after generating it so that the management personnel can obtain the test information of the product to be tested, so that the management personnel can manually input the batch identification code or product identification code of the product to be tested into the test end. After receiving the product identification code or batch identification code, the test end confirms whether the current service platform can complete the test of the product to be tested, and confirms whether the product identification code or batch identification code is associated with the service platform identification code. The service platform that can test the product to be tested is used as the target service platform, and then the product serial number on the product to be tested is obtained by manual input or scanning, or the product serial number is sent to the test end by the target service platform. After obtaining the product serial number of the product to be tested, the test end After the serial number is listed, a serial number confirmation request for the product serial number is sent to the target service platform to determine whether the current product serial number is correct. When there is an unused serial number consistent with the product serial number in the target service platform, it is determined that the product serial number is correct, and then a connection is established between the product to be tested and the test end. Then the test end generates corresponding test instructions according to the test items of the product to be tested, and when there are multiple functions to be tested in the test items, corresponding sub-test instructions are generated for each function to be tested, and the time required for each test instruction to be tested is used as the sending frequency of the sub-test instruction, thereby completing the test of each function to be tested. During the test, the response data of the product to be tested to each test instruction is monitored in real time, and the success or failure of each function to be tested is determined through the response data, thereby determining the test result of the product to be tested, and completing the test of the product to be tested.
[0097] At the same time, after the test point establishes a connection with the product to be tested, the product identification code, product serial number, and service platform identification code are sent to the product to be tested to mark the product to be tested, ensuring that the test process of the product to be tested can be tracked. After the test is completed, the test end will display the test results and send them to the target service platform, so that users can directly query the test results of the product based on the product identification code or product serial number, thereby improving the user experience.
[0098] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the product testing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0099] The present application provides a product testing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the product testing method in the above-mentioned embodiment one.
[0100] Reference below Figure 6 , which shows a schematic diagram of the structure of a product testing device suitable for implementing the embodiment of the present application. The product testing device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as computers, etc. Figure 6 The product testing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0101] like Figure 6As shown, the product testing equipment may include a processing device 1001 (e.g., a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the product testing equipment are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the product testing device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a product testing device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0102] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0103] The product testing device provided by the present application adopts a product testing method in the above embodiment to solve the technical problem of how to improve work accuracy and efficiency. Compared with the prior art, the beneficial effects of the product testing device provided by the present application are the same as the beneficial effects of the product testing method provided by the above embodiment, and the other technical features in the product testing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0104] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0105] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0106] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute a product testing method in the above-mentioned embodiment.
[0107] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0108] The computer-readable storage medium may be included in a product testing device; or may exist independently without being assembled into a product testing device.
[0109] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a product testing device, the product testing device: determines the test items corresponding to the product to be tested according to the product identification code of the product to be tested; obtains the product serial number of the product to be tested, and establishes a connection with the product to be tested based on the product serial number; generates test instructions corresponding to the test items, and sends the test instructions to the product to be tested; determines the test results corresponding to the product to be tested based on the response data of the test instructions fed back by the product to be tested.
[0110] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0111] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0112] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0113] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned product testing method, and can solve the technical problem of how to improve the accuracy and efficiency of robot work. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the product testing method provided in the above-mentioned embodiment, and will not be repeated here.
[0114] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A product testing method, characterized in that: Applied to the test end, the method includes: Determine the test items corresponding to the product to be tested according to the product identification code of the product to be tested; Acquire the product serial number of the product to be tested, and establish a connection with the product to be tested based on the product serial number; Generate a test instruction corresponding to the test item, and send the test instruction to the product to be tested; Based on the response data of the test instruction fed back by the product to be tested, a test result corresponding to the product to be tested is determined.
2. The method according to claim 1, characterized in that Before the step of establishing a connection with the product to be tested based on the product serial number, the step further includes: Sending a serial number confirmation request to the service platform based on the product serial number, receiving a traversal result of the service platform's response to the product serial number confirmation request, and determining whether the product serial number is correct based on the traversal result; If the product serial number is correct, establishing a connection with the product to be tested based on the product serial number; If the product serial number is incorrect, obtain a new product serial number and repeat the above steps until a connection is established.
3. The method according to claim 1, characterized in that The method further comprises: A service platform identification code is obtained, and based on the product identification code, it is determined whether the service platform identification code can test the product to be tested, and a service platform corresponding to the service platform identification code that can test the product to be tested is used as a target service platform.
4. The method according to claim 3, characterized in that The method further comprises: The product identification code and / or the product serial number and / or the service platform identification code of the target service platform are sent to the product to be tested, so that the product identification code and / or the product serial number and / or the service platform identification code of the target service platform are used as the mark of the product to be tested.
5. The method according to claim 4, characterized in that The method further comprises: The test result is displayed and sent to the target service platform, so that the target service platform can send the test result to the client when receiving the result confirmation request from the client.
6. The method according to claim 1, characterized in that The step of generating a test instruction corresponding to the test item and sending the test instruction to the product to be tested comprises: When the test item includes multiple functions to be tested, generating sub-test instructions corresponding to each function to be tested; The sub-test instruction is sent to the product to be tested at a preset frequency.
7. The method according to claim 1, characterized in that The method further comprises: If the test result is a test failure, a test instruction is sent to the product to be tested after a preset period of time, and then response data of the test instruction fed back by the product to be tested is executed to determine the test result corresponding to the product to be tested.
8. The method according to claim 6, characterized in that The method comprises: Prompts are issued based on the test results corresponding to each of the functions to be tested.
9. A product testing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the product testing method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the product testing method according to any one of claims 1 to 8 are implemented.
