Testing method, device, upper computer and system for equipment to be tested

Through the coordination of the upper computer with the power supply and camera, dynamic automated testing of electronic devices is realized, the problem of time-consuming manual real-time observation is solved, and the testing efficiency is improved.

CN119316701APending Publication Date: 2025-01-14GOLDANA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411328636.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In dynamic stress testing of electronic equipment, real-time observation and judgment of human eyes are required, which consumes a lot of manpower and time.

Method used

Design a test method, connect the upper computer to the equipment to be tested, the power supply power supply and the camera, control the power supply power supply to power the equipment, and record video in the motion state of the equipment, obtain test results through video analysis, and realize automated testing.

Benefits of technology

Dynamic automated testing of electronic devices is realized, saving manpower and time, and improving testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316701A_ABST
    Figure CN119316701A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device, an upper computer and a system for testing to-be-tested equipment, the method and the device are applied to the upper computer, the upper computer is connected with the to-be-tested equipment, a power supply and a camera, the power supply is connected with the to-be-tested equipment, and the method comprises the following steps: under the condition that the power supply supplies power to the to-be-tested equipment, the camera is connected with the to-be-tested equipment; controlling the to-be-tested equipment to move; under the condition that the to-be-tested equipment is in the motion state, controlling the camera to record the motion process of the to-be-tested equipment to obtain a first recorded video; and obtaining a target test result of the to-be-tested device according to the first recorded video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of automated testing technology, and more specifically, to a testing method, device, host computer, and system for a device under test. Background Art

[0002] Currently, when testing electronic equipment, if there is a need for dynamic stress testing of the electronic equipment, then when performing dynamic stress testing on the electronic equipment, human eyes are usually required to make real-time observations and judgments, which consumes a lot of manpower and time. Summary of the invention

[0003] An object of the embodiments of the present disclosure is to provide a new technical solution for testing a device under test.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for testing a device under test is provided, which is applied to a host computer, wherein the host computer is respectively connected to the device under test, a power supply, and a camera, and the power supply is connected to the device under test, and the method comprises:

[0005] When the device under test is powered by the power supply, controlling the device under test to move;

[0006] When the device under test is in motion, controlling the camera to record the motion process of the device under test to obtain a first recorded video;

[0007] A target test result of the device under test is obtained according to the first recorded video.

[0008] Optionally, controlling the device under test to move when the device under test is powered by the power supply comprises:

[0009] In a case where the device under test is powered by the power supply, a control instruction for controlling the movement of the device under test is sent to the device under test, so that the device under test moves according to the control instruction.

[0010] Optionally, the first recorded video includes a second recorded video of each round of movement of the device under test in multiple rounds of movement during the movement process.

[0011] The obtaining a target test result of the device under test according to the first recorded video includes:

[0012] For any wheel movement of the device under test during the movement process, comparing the second recorded video of the device under test during the any wheel movement with the standard video to obtain a first test result of the device under test during the any wheel movement;

[0013] According to the first test result of the device under test in the arbitrary wheel movement, obtaining a second test result of the device under test in the arbitrary wheel movement;

[0014] A target test result of the device under test is obtained according to the second test result of each round of movement of the device under test in the multiple rounds of movement.

[0015] Optionally, for any wheel movement of the device under test during the movement process, comparing the second recorded video of the device under test in the any wheel movement with a standard video to obtain a first test result of the device under test in the any wheel movement includes:

[0016] For any wheel motion of the device under test during the motion process, grayscale processing is performed on each frame image of the second recorded video of the device under test and each frame image of the standard video during the any wheel motion;

[0017] Obtaining the similarity between each frame image of the second recorded video after grayscale processing and the corresponding frame image of the standard video;

[0018] A first test result of the device under test in the arbitrary wheel motion is obtained according to the similarity between each frame image of the second recorded video after grayscale processing and the corresponding frame image of the standard video.

[0019] Optionally, obtaining a second test result of the device under test in the arbitrary wheel motion according to the first test result of the device under test in the arbitrary wheel motion includes:

[0020] For any wheel movement of the device under test during the movement process, obtaining the movement time of the device under test during the any wheel movement;

[0021] A second test result of the device under test during the arbitrary wheel movement is obtained according to the first test result of the device under test during the arbitrary wheel movement, the movement time, and a confirmation instruction returned by the device under test in response to the power supply instruction as to whether the arbitrary wheel moves normally.

[0022] Optionally, the method further comprises:

[0023] A power supply instruction is sent to the power supply, so that the power supply supplies power to the device under test based on the power supply parameters carried in the power supply instruction.

[0024] Optionally, the host computer is connected to the device under test via a serial port board, the host computer is connected to the camera via a first network card, and is connected to the power supply via a second network card.

[0025] According to a second aspect of an embodiment of the present disclosure, a testing device for a device under test is provided, which is applied to a host computer, wherein the host computer is respectively connected to the device under test, a power supply, and a camera, and the power supply is connected to the device under test, and the device comprises:

[0026] A first control module, used for controlling the movement of the device under test when the device under test is powered by the power supply;

[0027] A second control module is used to control the camera to record the movement process of the device under test to obtain a first recorded video when the device under test is in motion;

[0028] A processing module is used to obtain a target test result of the device under test according to the first recorded video.

[0029] According to a third aspect of an embodiment of the present disclosure, a host computer is provided, the host computer comprising:

[0030] Memory for storing executable computer instructions;

[0031] The processor is used to execute the testing method of the device under test according to the first aspect above under the control of the executable computer instructions.

[0032] According to a fourth aspect of an embodiment of the present disclosure, a test system is provided, the test system comprising:

[0033] Equipment under test;

[0034] The host computer as described in the third aspect above, the host computer is connected to the device under test through a serial port board;

[0035] A camera, wherein the camera is connected to the host computer via a first network card;

[0036] A power supply, wherein the power supply is connected to the host computer via a second network card, and the power supply is also connected to the device under test.

[0037] One beneficial effect of the embodiments of the present disclosure is that the host computer is connected to the device under test, the power supply and the camera respectively, and the power supply is also connected to the device under test. Specifically, the host computer can control the power supply to supply power to the device under test, and when the power supply is used to supply power to the device under test, the host computer can control the movement of the device under test, and when the control device is in motion, the host computer controls the camera to record the movement process of the device under test to obtain a first recorded video, and then obtain the target test result of the device under test based on the first recorded video. Through the embodiments of the present disclosure, based on the hardware foundation of the host computer, the camera and the power supply, dynamic automated testing of the device under test is realized, saving manpower and time.

[0038] Other features and advantages of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the specification.

[0040] Figure 1 is a schematic diagram of a test system according to an embodiment of the present disclosure;

[0041] Figure 2 is a flow chart of a method for testing a device under test according to an embodiment of the present disclosure;

[0042] Figure 3 is a flow chart of a method for testing a device under test according to an example of the present disclosure;

[0043] Figure 4 is a principle block diagram of a testing device for a device under test according to an embodiment of the present disclosure;

[0044] Figure 5 It is a principle block diagram of a host computer according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0045] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.

[0046] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0047] The technologies, methods and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, the technologies, methods and equipment should be considered as part of the specification.

[0048] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0049] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0050] <System Embodiment>

[0051] The present disclosure provides a testing system. Figure 1 It is a hardware schematic diagram of a test system provided according to an embodiment of the present disclosure.

[0052] Reference Figure 1 The test system 1 includes a device under test 11, a host computer 12, a camera 13 and a power supply 14, a serial port board 15, a first network card 16 and a second network card 17.

[0053] It should be noted that in order to prevent the test process from being affected by the external environment, the device under test 11, camera 13, power supply 14, serial port board 15, first network card 16 and second network card 17 in the test system 1 can be placed in a dark box.

[0054] The power supply 14 is connected to the host computer 12 through the second network card 17, and the power supply 14 is also connected to the device under test 11. The host computer 12 controls the power supply 14 to supply power to the device under test 11 through the second network card 17. Generally, the power supply 14 can be a DC power supply, and this embodiment does not limit the model of the DC power supply.

[0055] The host computer 12 is connected to the device under test 11 via the serial port board 15 , and the host computer 12 is used to send a control instruction for controlling the device under test 11 to move to the device under test 11 via the serial port board 15 .

[0056] Usually, the serial port board 15 can be a USB to UART serial port chip, through which a seamless conversion between a USB interface and a UART serial port can be realized. The operator can convert a USB interface to a UART serial port through a simple plug-in operation, thereby realizing serial port communication between devices.

[0057] The camera 13 is connected to the host computer 12 via the first network card 16 , and the host computer 12 is used to control the camera 13 to record the movement process of the device under test 11 to obtain a first recorded video, and analyze the first recorded video to obtain a target test result of the device under test 11 .

[0058] <Method Example>

[0059] Figure 2 A test method for a device under test according to an embodiment of the present disclosure is shown. The test method for the device under test can be implemented by a host computer, which can be Figure 1 The host computer 12 shown in the figure, wherein the host computer is connected to the device under test, the power supply and the camera respectively, and the power supply is connected to the device under test. Figure 2 As shown, the testing method of the device under test in this embodiment may include the following steps S2100 to S2300:

[0060] Step S2100: Controlling the movement of the device under test while the device under test is powered by the power supply.

[0061] The power supply may be a DC power supply, and this embodiment does not limit the type of the DC power supply.

[0062] In this embodiment, the host computer may send a power supply instruction to the power supply, so that the power supply supplies power to the device under test based on the power supply parameters carried in the power supply instruction.

[0063] The power supply parameter may be a voltage, which is usually a voltage when the device under test is in a normal working state.

[0064] Specifically, refer to Figure 1 and Figure 3 , the host computer is connected to the power supply through the second network card, and the power supply is also connected to the device under test. The host computer can send a power supply instruction to the power supply through the second network card, and the power supply instruction carries a voltage at which the device under test can work normally. After the power supply receives the power supply instruction sent by the host computer, it can supply power to the device under test based on the voltage to ensure that a normal working environment is provided for the device under test.

[0065] In an optional embodiment, in this step S2100, when the device under test is powered by the power supply, controlling the movement of the device under test may further include: when the device under test is powered by the power supply, sending a control instruction for controlling the movement of the device under test to the device under test, so that the device under test moves according to the control instruction.

[0066] The control instruction may be a Uart instruction.

[0067] Specifically, refer to Figure 1 and Figure 3 , the host computer is connected to the device under test through the serial port board. When the device under test is powered by the power supply, the host computer can send a control instruction for controlling the movement of the device under test to the device under test. After the device under test receives the control instruction sent by the host computer, it can start to move. It should be noted that the so-called movement includes, for example but not limited to, lighting effects and sports movements.

[0068] In another optional embodiment, when the device under test receives the control instruction sent by the host computer, it can respond to the control instruction and return a confirmation instruction to the host computer to confirm whether it moves normally. The confirmation instruction is a Uart instruction.

[0069] After executing the above step S2100 and controlling the movement of the device under test in the case where the device under test is powered by the power supply, the following steps are performed:

[0070] Step S2200: When the device under test is in motion, control the camera to record the motion process of the device under test to obtain a first recorded video.

[0071] The first recorded video includes a second recorded video of each round of movement of the device under test in the multiple rounds of movement during the movement process.

[0072] Generally, a round of motion in a motion process refers to a complete motion. For example, taking the motion structure in the device under test in motion as an example, the motion structure moving from the bottom to the top and then returning from the top to the bottom can be called a round of motion. In a motion process, generally multiple rounds of motion are included.

[0073] Specifically, refer to Figure 1 and Figure 3 , the host computer is connected to the camera through the first network card. When the device under test is in motion, the host computer can send a recording instruction to the camera through the first network card. After the camera receives the recording instruction, it can record each round of multiple rounds of motion of the device under test during the motion process, obtain the second recorded video corresponding to the multiple rounds of motion, and return it to the host computer through the first network card. The host computer will analyze the recorded video through the open source computer vision library (OpenCV) to obtain the test results of the device under test. It can be understood that the recorded video includes, for example but not limited to, the motion trajectory and light changes to be tested.

[0074] When the device under test is in motion during the execution of step S2200, the camera is controlled to record the motion process of the device under test. After obtaining the first recorded video, the following steps are performed:

[0075] Step S2300: Obtain a target test result of the device under test according to the first recorded video.

[0076] In an optional embodiment, the step S2300 of obtaining the target test result of the device under test according to the first recorded video may further include the following steps S2310 to S2330:

[0077] Step S2310: for any wheel movement of the device under test during the movement process, compare the second recorded video of the device under test in the any wheel movement with the standard video to obtain a first test result of the device under test in the any wheel movement.

[0078] Among them, the standard video is a recorded video that has passed manual inspection. Usually, when the device under test is in the first round of movement, on the one hand, the camera can record the device under test to obtain a second recorded video; on the other hand, the tester's human eyes will also observe the movement of the device under test. If the second recorded video of the first round of movement passes the manual verification, the second recorded video of the first round of movement can be used as the standard video. It can be understood that if the second recorded video obtained by the first round of movement recording fails to pass the manual verification, the second recorded video obtained by the second round of movement recording will continue to be manually verified until the second recorded video obtained by a certain round of movement recording passes the manual verification, and the second recorded video obtained by the round of movement recording is stored in the host computer as the standard video.

[0079] Optionally, this step S2310 compares the second recorded video of the device under test in the arbitrary wheel movement with the standard video for any wheel movement of the device under test during the movement process, and obtaining the first test result of the device under test in the arbitrary wheel movement may further include the following steps S2311 to S2313:

[0080] Step S2311: for any round of motion of the device under test during the motion process, grayscale processing is performed on each frame of the second recorded video of the device under test and each frame of the standard video in the any round of motion.

[0081] Step S2312, obtaining the similarity between each frame image of the second recorded video after grayscale processing and the corresponding frame image of the standard video.

[0082] Step S2313, obtaining a first test result of the device under test in the arbitrary wheel motion according to the similarity between each frame image of the second recorded video after grayscale processing and the corresponding frame image of the standard video.

[0083] Next, the above steps S2311 to S2313 are explained. The upper computer reads each frame of the stored standard video through the cv2.imread() function in OpenCV, and converts each frame of the image from the BGR color space to the grayscale space through the cv2.cvtColor() function in OpenCV to facilitate image grayscale analysis, and saves each frame of the processed grayscale image through the cv2.imwrite() function in OpenCV.

[0084] In addition, after receiving the second recorded video of the device under test in any wheel motion sent by the camera, the host computer will also read each frame of the second recorded video through the cv2.imread() function, and convert each frame of the image from the BGR color space to the grayscale space through the cv2.cvtColor() function to facilitate image grayscale analysis, and save each frame of the processed grayscale image through the cv2.imwrite() function.

[0085] Finally, the host machine will use the cv2.matchTemplate() function in OpenCV to compare the similarity of each frame of the standard video and each frame of the second recorded video to achieve comparative analysis of the recorded images. Among them, this function evaluates the similarity of two frames of images by calculating the structural similarity index (SSIM). Generally, the similarity ranges from -1 to 1, and the closer the value is to 1, the more similar the two frames of images are. During the test, the host machine will use the above algorithm to compare and analyze the second recorded video of each round of movement of the device under test with the standard video, and obtain the preliminary test results of each round of movement as the first test results of each round of movement.

[0086] Step S2320: obtaining a second test result of the device under test in the arbitrary wheel motion according to the first test result of the device under test in the arbitrary wheel motion.

[0087] Optionally, the step S2320 of obtaining the second test result of the device under test in the arbitrary wheel motion according to the first test result of the device under test in the arbitrary wheel motion may further include the following steps S2321 to S2322:

[0088] Step S2321: for any wheel movement of the device under test during the movement process, obtain the movement time of the device under test in the any wheel movement.

[0089] For example, taking the moving structure in the device under test being in motion as an example, since the moving structure moves from the bottom to the top and then returns from the top to the bottom, which can be called a round of motion, the time for the moving structure to move from the bottom to the top and then returns from the top to the bottom is the motion time of the device under test in the round of motion. For example, the motion time can be 3s, 6s, etc., depending on the actual test, and this embodiment does not limit this.

[0090] Step S2322, obtaining a second test result of the device under test during the arbitrary wheel movement according to the first test result of the device under test during the arbitrary wheel movement, the movement time, and a confirmation instruction returned by the device under test in response to the power supply instruction as to whether the arbitrary wheel moves normally.

[0091] Specifically, after the upper computer obtains the first test result of each round of movement of the device under test during the movement process, for any round of movement, the upper computer can combine the first test result of the device under test in that round of movement, the movement time, and the confirmation instruction returned by the device under test in response to the power supply instruction as to whether the round of movement is normal, to obtain the second test result of the device under test in that round of movement.

[0092] According to the above steps S2311 to S2322, the host computer combines the preliminary test results of each round of movement, the movement time of the device under test in each round of movement, and the confirmation instruction of whether each round of movement of the device under test is normal in response to the power supply instruction, and obtains the confirmation instruction of the device under test in each round of movement. final Test results, test results are more accurate.

[0093] Step S2330: Obtain a target test result of the device under test according to the second test result of each round of movement of the device under test in the multiple rounds of movement.

[0094] Specifically, the host computer may combine the second test result of each round of movement of the device under test in multiple rounds of movement into the target test result of the device under test.

[0095] Specifically, after obtaining the target test result of the device under test, the host computer will save the target test result to a local file. If the test result corresponding to a certain round of movement in the target test result is passed, the test result of the certain round of movement can be marked as Pass; if the test result corresponding to a certain round of movement in the target test result is failed, the test result of the certain round of movement can be recorded as Fail.

[0096] It should be noted that the host computer will also perform statistical analysis on the target test results. For example, when a Fail item appears in the target test results, the host computer will read the current voltage and current, compare and analyze them with the voltage and current of the normal operation of the device under test, and record them in the test log. This will determine whether the test failure is caused by unstable power supply voltage / current, thereby saving R&D analysis time.

[0097] According to the embodiment of the present disclosure, the host computer is connected to the device under test, the power supply and the camera respectively, and the power supply is also connected to the device under test. Specifically, the host computer can control the power supply to supply power to the device under test, and when the power supply is used to supply power to the device under test, the host computer can control the movement of the device under test, and when the control device is in motion, control the camera to record the movement process of the device under test to obtain a first recorded video, and then obtain the target test result of the device under test according to the first recorded video. Through the embodiment of the present disclosure, based on the hardware foundation of the host computer, the camera and the power supply, dynamic automatic testing of the device under test is realized, saving human resources and time.

[0098] <Device Example>

[0099] Figure 4 The schematic diagram of the principle of the testing device of the device under test according to an embodiment is applied to a host computer, the host computer is respectively connected to the device under test, a power supply and a camera, and the power supply is connected to the device under test. Figure 4 As shown, the testing device 400 for the device under test includes a first control module 410 , a second control module 420 and a processing module 430 .

[0100] A first control module 410, configured to control the movement of the device under test when the device under test is powered by the power supply;

[0101] The second control module 420 is used to control the camera to record the movement process of the device under test to obtain a first recorded video when the device under test is in motion;

[0102] The processing module 430 is used to obtain a target test result of the device under test according to the first recorded video.

[0103] In one embodiment, the first control module 410 is specifically configured to send a control instruction for controlling the movement of the device under test to the device under test when the power supply is used to power the device under test, so that the device under test moves according to the control instruction.

[0104] In one embodiment, the first recorded video includes a second recorded video of each round of movement of the device under test in multiple rounds of movement during the movement process; the processing module 430 is specifically used to compare the second recorded video of the device under test in any round of movement of the device under test in the movement process with the standard video to obtain a first test result of the device under test in the any round of movement; obtain a second test result of the device under test in the any round of movement based on the first test result of the device under test in the any round of movement; obtain a target test result of the device under test based on the second test result of each round of movement of the device under test in the multiple rounds of movement.

[0105] In one embodiment, the processing module 430 is specifically used to perform grayscale processing on each frame image of the second recorded video of the device under test and each frame image of the standard video in any round of movement of the device under test in the movement process; obtain the similarity between each frame image of the second recorded video after the grayscale processing and the corresponding frame image of the standard video; and obtain the first test result of the device under test in the arbitrary round of movement according to the similarity between each frame image of the second recorded video after the grayscale processing and the corresponding frame image of the standard video.

[0106] In one embodiment, the processing module 430 is specifically used to obtain the movement time of the device under test in any wheel movement of the device under test during the movement process; and obtain the second test result of the device under test in any wheel movement according to the first test result of the device under test in the any wheel movement, the movement time, and the confirmation instruction of whether the any wheel moves normally returned by the device under test in response to the power supply instruction.

[0107] In one embodiment, the apparatus 400 further includes a sending module (not shown in the figure) configured to send a power supply instruction to the power supply so that the power supply supplies power to the device under test based on the power supply parameters carried in the power supply instruction.

[0108] In one embodiment, the host computer is connected to the device under test via a serial port board, the host computer is connected to the camera via a first network card, and is connected to the power supply via a second network card.

[0109] According to the embodiment of the present disclosure, the host computer is connected to the device under test, the power supply and the camera respectively, and the power supply is also connected to the device under test. Specifically, the host computer can control the power supply to supply power to the device under test, and when the power supply is used to supply power to the device under test, the host computer can control the movement of the device under test, and when the control device is in motion, control the camera to record the movement process of the device under test to obtain a first recorded video, and then obtain the target test result of the device under test according to the first recorded video. Through the embodiment of the present disclosure, based on the hardware foundation of the host computer, the camera and the power supply, dynamic automatic testing of the device under test is realized, saving manpower and time.

[0110] <Equipment Embodiment>

[0111] Figure 5 FIG. 1 is a schematic diagram of the hardware structure of a host computer according to an embodiment. Figure 5 As shown, the host computer 500 includes a processor 510 and a memory 520 .

[0112] The memory 520 may be used to store executable computer instructions.

[0113] The processor 510 can be used to execute the testing method of the device under test according to the method embodiment of the present disclosure under the control of the executable computer instructions.

[0114] The host computer 500 may be Figure 1 The upper computer 12 shown may also be a device with other hardware structures, which is not limited here.

[0115] In another embodiment, the host computer 500 may include the above-mentioned testing device 400 of the device under test.

[0116] In one embodiment, each module of the above device under test testing apparatus 400 can be implemented by the processor 510 running computer instructions stored in the memory 520 .

[0117] <Computer Readable Storage Medium>

[0118] The embodiment of the present disclosure further provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the testing method of the device under test provided by the embodiment of the present disclosure is executed.

[0119] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0120] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0121] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0122] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0123] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0124] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0125] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0126] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes 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 box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0127] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims

1. A method for testing a device under test, characterized in that: Applied to a host computer, the host computer is respectively connected to the device under test, a power supply and a camera, the power supply is connected to the device under test, and the method includes: When the device under test is powered by the power supply, controlling the device under test to move; When the device under test is in motion, controlling the camera to record the motion process of the device under test to obtain a first recorded video; A target test result of the device under test is obtained according to the first recorded video.

2. The method according to claim 1, characterized in that: The step of controlling the movement of the device under test when the device under test is powered by the power supply comprises: In a case where the device under test is powered by the power supply, a control instruction for controlling the movement of the device under test is sent to the device under test, so that the device under test moves according to the control instruction.

3. The method according to claim 2, characterized in that The first recorded video includes a second recorded video of each round of movement of the device under test in the multiple rounds of movement during the movement process, The obtaining a target test result of the device under test according to the first recorded video includes: For any wheel movement of the device under test during the movement process, comparing the second recorded video of the device under test during the any wheel movement with the standard video to obtain a first test result of the device under test during the any wheel movement; According to the first test result of the device under test in the arbitrary wheel movement, obtaining a second test result of the device under test in the arbitrary wheel movement; A target test result of the device under test is obtained according to the second test result of each round of movement of the device under test in the multiple rounds of movement.

4. The method according to claim 3, characterized in that For any wheel movement of the device under test during the movement process, comparing the second recorded video of the device under test during the any wheel movement with the standard video to obtain a first test result of the device under test during the any wheel movement, including: For any wheel motion of the device under test during the motion process, grayscale processing is performed on each frame image of the second recorded video of the device under test and each frame image of the standard video during the any wheel motion; Obtaining the similarity between each frame image of the second recorded video after grayscale processing and the corresponding frame image of the standard video; A first test result of the device under test in the arbitrary wheel motion is obtained according to the similarity between each frame image of the second recorded video after grayscale processing and the corresponding frame image of the standard video.

5. The method according to claim 3, characterized in that: The step of obtaining a second test result of the device under test during the arbitrary wheel movement according to the first test result of the device under test during the arbitrary wheel movement comprises: For any wheel movement of the device under test during the movement process, obtaining the movement time of the device under test during the any wheel movement; A second test result of the device under test during the arbitrary wheel movement is obtained according to the first test result of the device under test during the arbitrary wheel movement, the movement time, and a confirmation instruction returned by the device under test in response to the power supply instruction as to whether the arbitrary wheel moves normally.

6. The method according to claim 1, characterized in that The method further comprises: A power supply instruction is sent to the power supply, so that the power supply supplies power to the device under test based on the power supply parameters carried in the power supply instruction.

7. The method according to claim 1, characterized in that The host computer is connected to the device under test through a serial port board, the host computer is connected to the camera through a first network card, and is connected to the power supply through a second network card.

8. A testing device for a device under test, characterized in that: Applied to a host computer, the host computer is respectively connected to the device under test, a power supply and a camera, the power supply is connected to the device under test, and the device comprises: A first control module, used for controlling the movement of the device under test when the device under test is powered by the power supply; A second control module is used to control the camera to record the movement process of the device under test to obtain a first recorded video when the device under test is in motion; A processing module is used to obtain a target test result of the device under test according to the first recorded video.

9. A host computer, characterized in that: The host computer comprises: Memory for storing executable computer instructions; A processor is used to execute the test method of the device under test according to any one of claims 1 to 7 under the control of the executable computer instructions.

10. A testing system, characterized in that: The test system comprises: Equipment under test; The host computer according to claim 9, wherein the host computer is connected to the device under test via a serial port board; A camera, wherein the camera is connected to the host computer via a first network card; A power supply, wherein the power supply is connected to the host computer via a second network card, and the power supply is also connected to the device under test.