Device testing method, system, computer device and storage medium

By automatically controlling the interaction between the equipment and various attribute interaction objects and obtaining the interaction results, the problem of low efficiency of traditional equipment testing is solved, and efficient and accurate performance testing is achieved.

CN116127990BActive Publication Date: 2025-09-30SHENZHEN SMARTMORE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211580998.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2025-09-30
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

Traditional equipment testing methods are inefficient and cannot avoid manual operation errors, resulting in low testing efficiency.

Method used

By determining interactive objects with multiple attributes, controlling the movement of the target device and interacting with the interactive objects, obtaining the interaction results, and determining the performance test results based on the interaction results, manual testing and observation can be avoided.

Benefits of technology

It improves the efficiency of equipment testing, ensures the accuracy and automation of test results, and reduces human errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116127990B_ABST
    Figure CN116127990B_ABST
Patent Text Reader

Abstract

The present application relates to a device testing method, system, computer device and storage medium. The method includes: determining interactive objects with multiple attributes set for the target device to be tested; interactive objects are objects that will interact with the target device during the use of the target device; there are differences in the interaction results between interactive objects with different attributes and the target device; when testing the target device, the interactive objects with multiple attributes are switched; for each interactive object switched to, the target device is controlled to move, and during the movement of the target device, the target device is controlled to interact with the interactive object to obtain the interaction result; the relative position of the target device and the interactive object changes during the movement; the performance test result of the target device is determined based on the interaction results of the target device for each interactive object switched to. The use of this method can improve the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a device testing method, system, computer device, and storage medium. Background Art

[0002] With the development of computer technology, various new technologies have emerged, enriching the functionality of devices. For example, embedded technology enables sports terminals to connect to the internet, provide instant messaging, and capture images. To ensure the proper functioning of these devices, testing is often necessary.

[0003] In traditional technologies, equipment needs to be tested and observed manually, which is prone to errors and time-consuming, resulting in low efficiency of equipment testing. Summary of the Invention

[0004] Based on this, it is necessary to provide a device testing method, system, computer device, computer-readable storage medium and computer program product that can improve efficiency in response to the above technical problems.

[0005] In a first aspect, the present application provides a device testing method. The method comprises:

[0006] Determine the interactive objects with various attributes set for the target device to be tested; interactive objects are objects that interact with the target device during use; interactive objects with different attributes will produce different results with the target device;

[0007] When testing the target device, switch between interactive objects with multiple attributes;

[0008] For each interactive object switched to, the target device is controlled to move, and during the movement of the target device, the target device is controlled to interact with the interactive object to obtain an interaction result; the relative position of the target device and the interactive object changes during the movement;

[0009] The performance test result of the target device is determined according to the interaction results of the target device for each interaction object switched to.

[0010] In one embodiment, before determining the interactive objects with multiple attributes set for the target device to be tested, the method further includes:

[0011] When a new version of the program submitted to the code repository is detected, the new version of the program is compiled to obtain an executable file to be updated;

[0012] Generate a hash value for the executable file and obtain file verification information;

[0013] Sending the executable file and the file verification information to the target device to instruct the target device to verify the executable file based on the file verification information;

[0014] If the verification is passed, the executable file is run through the target device to achieve interaction with the interactive object.

[0015] In one embodiment, the executable file includes a driver for the target device; before determining the interactive objects for setting multiple properties for the target device to be tested, the method further includes:

[0016] Get the driver test results obtained by running the driver on the target device;

[0017] When the driver test result indicates that the driver is normal, a step of determining interactive objects of multiple properties set for the target device to be tested is performed.

[0018] In one embodiment, for each interactive object switched to, controlling the target device to move includes:

[0019] generating, by the control device, a control instruction for each interactive object switched to;

[0020] The control device sends a control instruction to the operating device to instruct the operating device to control the movement of the target device in response to the control instruction.

[0021] In one embodiment, the interactive objects with multiple attributes include interactive objects with multiple visual attributes; at least one graphic code is provided on the interactive objects; the image quality of images generated after the graphic codes on the interactive objects with different visual attributes are captured differs; during the movement of the target device, the target device is controlled to interact with the interactive objects, and the interaction results obtained include:

[0022] During the movement of the target device, the target device is controlled to collect a target graphic code image of the graphic code on the interactive object, and the target device recognizes the target graphic code image to obtain a recognition result.

[0023] In one embodiment, the target device moves along a preset path; the preset path is set based on the position of the graphic code on the interactive object; during the movement of the target device, controlling the target device to capture a target graphic code image of the graphic code on the interactive object includes:

[0024] Determine an image acquisition position corresponding to the position of the graphic code on the interactive object from the preset path; the image acquisition position is a position for acquiring an image of the graphic code;

[0025] When the target device moves to the image acquisition position, the target device is triggered to acquire a target graphic code image of the graphic code on the interactive object.

[0026] In one embodiment, during the movement of the target device, controlling the target device to capture a target graphic code image of a graphic code on an interactive object includes:

[0027] During the movement of the target device, the target device performs preliminary image acquisition of the graphic code on the interactive object to obtain a reference graphic code image;

[0028] Adjust the parameters of the target device according to the quality of the reference graphic code image;

[0029] The target graphic code image of the graphic code on the interactive object is collected by the target device after parameter adjustment; the image quality of the target graphic code image is better than the image quality of the reference graphic code image.

[0030] In a second aspect, the present application also provides a device testing system. The system includes a control device, a manipulation device, a computer device, and a target device;

[0031] The control device is used to determine the interactive objects of various attributes set for the target device to be tested; the interactive objects are objects that interact with the target device during use of the target device; the interactive results between interactive objects of different attributes and the target device vary; when testing the target device, the interactive objects of various attributes are switched;

[0032] The manipulation device is used to control the movement of the target device for each interactive object switched to, and during the movement of the target device, control the target device to interact with the interactive object to obtain an interaction result; the relative position of the target device and the interactive object changes during the movement;

[0033] Target device, used to interact with the interactive object and obtain the interaction result;

[0034] The computer device is used to determine the performance test result of the target device according to the interaction result of the target device with respect to each interaction object switched to.

[0035] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of each embodiment of the method described in the present application.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of each embodiment of the method described in the present application.

[0037] In a fifth aspect, the present application further provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps in each embodiment of the method described in the present application.

[0038] The device testing method, system, computer device, storage medium, and computer program product described above determine interactive objects with multiple attributes set for a target device to be tested; interactive objects are objects that interact with the target device during use of the target device; there are differences in the interaction results between interactive objects with different attributes and the target device. Considering the interaction with interactive objects with different attributes, the influence of the attributes of the interactive objects on the test results can be avoided, thereby ensuring the accuracy of the test results. When testing the target device, interactive objects with multiple attributes are switched; for each interactive object switched to, the target device is controlled to move, and during the movement of the target device, the target device is controlled to interact with the interactive object to obtain an interaction result; the relative position of the target device with the interactive object changes during the movement; and the performance test result of the target device is determined based on the interaction results of the target device for each interactive object switched to. By switching interactive objects with multiple attributes and controlling the movement of the target device, the target object interacts with the interactive object to obtain an interaction result, thereby determining the performance test result based on the interaction result, without the need for manual testing and observation of the device, and thus improving test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 An application environment diagram of a device testing method in one embodiment;

[0040] Figure 2 1 is a flow chart of a device testing method according to an embodiment;

[0041] Figure 3 A diagram illustrating an application environment of a device testing method according to another embodiment;

[0042] Figure 4 is a structural block diagram of a device testing system in one embodiment;

[0043] Figure 5 is a diagram of the internal structure of a computer device in one embodiment;

[0044] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0046] The device testing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the target device 102 communicates with the test device 104 via a network.

[0047] The test device 104 can determine interactive objects with various attributes set for the target device to be tested; interactive objects are objects that interact with the target device during use of the target device; and there are differences in the interaction results between interactive objects with different attributes and the target device.

[0048] When testing a target device, the test device 104 can switch between interactive objects with various attributes. The test device 104 can control the movement of the target device for each interactive object it switches to. During the movement of the target device 102, the target device 102 can interact with the interactive object and obtain an interaction result. The relative position of the target device and the interactive object changes during the movement.

[0049] The testing device 104 may determine a performance test result of the target device according to the interaction results of the target device with respect to each interactive object switched to.

[0050] The test device 104 may include at least one of a terminal or a server. The terminal may include at least one of various personal computers, laptops, smartphones, tablet computers, IoT devices, or portable wearable devices. IoT devices may include at least one of smart speakers, smart TVs, smart air conditioners, or smart car devices. Portable wearable devices may include at least one of smart watches, smart bracelets, or head-mounted devices. The server may be implemented as a standalone server or a server cluster consisting of multiple servers.

[0051] In one embodiment, Figure 2 As shown, a device testing method is provided, which is applied to a system including a target device and a test device and is implemented through interaction between the target device and the test device.

[0052] In this embodiment, the method includes the following steps:

[0053] S202: Determine interactive objects with multiple attributes set for the target device to be tested.

[0054] The interactive object is an object that interacts with the target device during its use. The interaction results between interactive objects with different attributes and the target device vary.

[0055] For example, the target device to be tested may include an embedded device. Interactive objects with various attributes may be set on a switch, which is connected to a control device. The test device can use the control device to determine the interactive objects with various attributes set for the target device on the switch. It is understood that an embedded device is composed of hardware and software and is capable of independent operation. Its software content only includes the software runtime environment and its operating system, while its hardware content includes various aspects such as signal processors, memory, and communication modules.

[0056] In one embodiment, the test equipment may include a computer device, a control device, and a manipulation device, wherein the control device may be an industrial computer, the manipulation device may be a robotic arm, and the computer device may be a host computer of the target device.

[0057] In one embodiment, interactive objects with multiple attributes can be materials with multiple visual attributes. It is understood that materials refer to physical materials and can include materials, parts, semi-finished products, outsourced components, and other materials circulating within the production field, other than final products, as well as scraps, scraps, and various wastes inevitably generated during the production process. For example, a material can be at least one of a printed circuit board, a metal plate, or other parts.

[0058] S204: When testing the target device, switching the interactive objects of multiple attributes.

[0059] For example, when testing a target device, the test device may control a switcher through a control device to switch interactive objects of various attributes.

[0060] In one embodiment, the switch may be, but is not limited to, a disk switch. The control device may control the disk switch to rotate to switch interactive objects of multiple attributes.

[0061] S206 , for each interactive object switched to, controlling the target device to move, and during the movement of the target device, controlling the target device to interact with the interactive object to obtain an interaction result.

[0062] The relative position of the target device and the interaction object changes during the movement.

[0063] For example, the test device can control the target device to move for each interactive object switched to by the operating device. During the movement of the target device, the test device can control the target device to detect the interactive object switched to and obtain a detection result.

[0064] In one embodiment, a detection device is provided on the target device. The target device can detect the interactive object through the detection device. The detection device can include at least one of a photoelectric device, an infrared emitting device, a laser emitting device, a radar, or a sonar. For example, the target device can be a barcode scanner, and the detection device can be a camera.

[0065] In one embodiment, controlling the movement of the target device may include controlling at least one of movement or rotation of the target device. For example, controlling the target device to move from one location to another location or controlling the target device to rotate at at least one location.

[0066] It should be noted that as the target device moves, at least one of the relative position between the target device and the interactive object or the posture of the target device may change. The relative position may include at least one of a relative angle or a relative distance. Movement of the target device may change the relative position between the target device and the interactive object, while rotation of the target device may change the posture of the target device.

[0067] S208: Determine a performance test result of the target device according to the interaction results of the target device with respect to each interaction object switched to.

[0068] Exemplarily, the target device may send the interaction result to the control device. The control device may forward the interaction result to the computer device. The test device may analyze the interaction results of the target device for each interactive object switched to by the computer device to obtain the performance test result of the target device. The performance test result is used to indicate whether the performance of the target device meets the requirements. For example, the performance test result may include the interaction success rate and the interaction time. When the interaction success rate is not less than the success threshold and the interaction time is not greater than the duration threshold, it is determined that the performance of the target device can meet the requirements. Among them, the interaction time refers to the time it takes for the target device to interact with the interactive object to achieve the interaction result.

[0069] In the above-mentioned device testing method, multiple interactive objects with different attributes are determined for the target device to be tested; the interactive objects are objects that will interact with the target device during the use of the target device; the interaction results between interactive objects with different attributes and the target device are different. Considering the interaction with interactive objects with different attributes, the influence of the attributes of the interactive objects on the test results can be avoided, thereby ensuring the accuracy of the test results. When testing the target device, the interactive objects with multiple attributes are switched; for each interactive object switched to, the target device is controlled to move, and during the movement of the target device, the target device is controlled to interact with the interactive object to obtain an interaction result; the relative position of the target device and the interactive object changes during the movement; the performance test result of the target device is determined based on the interaction results of the target device for each interactive object switched to. By switching the interactive objects with multiple attributes and controlling the movement of the target device, the target object interacts with the interactive object to obtain an interaction result, thereby determining the performance test result based on the interaction result, without the need to manually test and observe the embedded device, and thus improving the test efficiency.

[0070] In one embodiment, before determining the interactive objects with multiple properties set for the target device to be tested, it also includes: when a new version of the program submitted to the code repository is detected, the new version of the program is compiled to obtain an executable file to be updated; a hash value of the executable file is generated to obtain file verification information; the executable file and the file verification information are sent to the target device to instruct the target device to verify the executable file based on the file verification information; if the verification passes, the executable file is run through the target device to realize interaction with the interactive object.

[0071] For example, a developer can write a new version of a program for a target device and submit the new version to a code repository on a remote server. Upon detecting a new version of the program submitted to the code repository, the remote server can send the new version to a computer device, and the test device can compile the new version of the program using the computer device to obtain an executable file to be updated on the target device. It is understood that the executable file can be a binary file. The test device can generate a hash value of the executable file using a message digest algorithm on the computer device to obtain file verification information. It is understood that the message digest algorithm can include any one of MD5, MD4, MD3, or MD2.

[0072] The computer device can communicate with the target device over a network. The test device can then send the executable file and file verification information to the target device via the computer device. The target device can parse the file verification information to verify the integrity of the executable file. If the verification passes, the target device can run the executable file to interact with the target device. As you can understand, copying the executable file directly to the target device over a network poses security risks. Adding file verification can ensure security.

[0073] In one embodiment, the computer device can be connected to the target device via a serial port to copy the executable file to the target device, and the target device can run the executable file.

[0074] In this embodiment, the new version of the program is compiled to obtain the executable file to be updated; a hash value of the executable file is generated to obtain file verification information; the executable file and the file verification information are sent to the target device to instruct the target device to verify the executable file based on the file verification information; if the verification passes, the executable file is run through the target device, which can avoid the security risks caused by the incomplete executable file and improve the security of the target device version update.

[0075] In one embodiment, the executable file includes a driver for a target device; before determining interactive objects with multiple properties set for the target device to be tested, the method further includes: obtaining a driver test result obtained by running the driver on the target device; when the driver test result indicates that the driver is normal, executing the step of determining interactive objects with multiple properties set for the target device to be tested.

[0076] Exemplarily, the executable file may include at least one of a driver or a software development kit for the target device. After verification, the target device may run the driver to complete a test of its own basic functions and obtain a driver test result. The target device may send the driver test result to the control device. If the driver test result indicates that the driver is normal, the test device may execute the step of determining the interactive object with multiple attributes set for the target device to be tested.

[0077] In this embodiment, a driver test result is obtained by running a driver on a target device. When the driver test result indicates that the driver is normal, a step of determining interactive objects with multiple properties set for the target device to be tested is performed. This can avoid the impact of driver abnormalities on device testing and ensure the accuracy of device testing.

[0078] In one embodiment, for each interactive object switched to, controlling the movement of the target device includes: generating a control instruction for each interactive object switched to by a control device; and sending the control instruction to a manipulation device by the control device to instruct the manipulation device to control the movement of the target device in response to the control instruction.

[0079] For example, after sending the executable file and file verification information to the target device, the computer device sends a start instruction to the control device. It is understood that upon receiving the start instruction, the control device does not immediately initiate the test process. Instead, it initiates the test process if the driver test results indicate that the driver is functioning properly. If the driver test results indicate that the driver is functioning properly, the test device can generate control instructions for each interactive object switched to via the control device. The test device can send the control instructions to the control device via the control device. The control device can control the movement of the target device in response to the control instructions.

[0080] In one embodiment, the computer device may send a start instruction to the control device and the operating device to start the control device and the operating device.

[0081] In one embodiment, the test device can determine a preset path set for an interactive object through a control device and generate a control instruction based on the preset path corresponding to the interactive object switched to. The operating device can respond to the control instruction and control the barcode scanner to move along the preset path indicated by the control instruction.

[0082] In one embodiment, the control device may include an industrial computer installed at the test site. The manipulation device may include a robotic arm installed at the test site.

[0083] In this embodiment, the control device generates a control instruction for each interactive object switched to; the control device sends the control instruction to the operating device to instruct the operating device to control the movement of the target device in response to the control instruction. The target device is tested through communication between the control device and the operating device, thereby improving efficiency.

[0084] In one embodiment, the interactive objects with multiple attributes include interactive objects with multiple visual attributes; at least one graphic code is provided on the interactive objects; there is a difference in imaging quality of images generated after the graphic codes on the interactive objects with different visual attributes are captured; during the process of moving the target device, controlling the target device to interact with the interactive object to obtain an interaction result includes: during the process of moving the target device, controlling the target device to capture a target graphic code image of the graphic code on the interactive object, and recognizing the target graphic code image through the target device to obtain a recognition result.

[0085] Among them, different visual attributes cause different interferences on image acquisition. When the target device acquires images of graphic codes on different interactive objects, it will be interfered by multiple visual attributes, resulting in differences in the imaging quality of the acquired graphic code images.

[0086] For example, the image quality of the graphic code can affect the accuracy of the recognition result generated by the target device. While the target device is in motion, it can capture a target graphic code image of the graphic code on the interactive object and recognize the target graphic code image to obtain a recognition result. The interaction result can include the recognition result. The recognition result can include the target graphic code image, decoding result, and decoding time.

[0087] In one embodiment, the computer device may be a host computer. The host computer may obtain recognition results. The host computer stores the correct decoding results for each graphic code. The host computer may determine a decoding accuracy rate by comparing the recognition results with the correct decoding results for each graphic code. If the decoding accuracy rate is not less than an accuracy rate threshold and the decoding time is not greater than a duration threshold, the host computer may determine a performance test result indicating that the performance of the target device meets the requirements.

[0088] In this embodiment, during the movement of the target device, the target device is controlled to collect the target graphic code image of the graphic code on the interactive object, and the target device recognizes the target graphic code image to obtain a recognition result, simulating the scenario of scanning the code of the interactive object to ensure the accuracy of the target device test result.

[0089] In one embodiment, the target device moves along a preset path; the preset path is set based on the position of the graphic code on the interactive object; during the movement of the target device, controlling the target device to capture a target graphic code image of the graphic code on the interactive object includes: determining an image capture position corresponding to the position of the graphic code on the interactive object from the preset path; the image capture position is a position for capturing an image of the graphic code; when the target device moves to the image capture position, triggering the target device to capture the target graphic code image of the graphic code on the interactive object.

[0090] The preset path is obtained by traversing the position of each graphic code on the interactive object.

[0091] For example, the test device may determine, via a control device, an image capture position on a preset path corresponding to the position of the graphical code on the interactive object. When the operating device controls the target device to move to the image capture position, the control device may send a graphical code recognition instruction to the target device. In response to the graphical code recognition instruction, the target device may capture a target graphical code image of the graphical code on the interactive object.

[0092] In one embodiment, the target device may continuously capture images of the graphic code on the interactive object during movement, and recognize the captured target graphic code to obtain a first recognition result.

[0093] In one embodiment, if the first recognition result does not include a decoded result for each graphical code on the interactive object, the test device can perform the following steps: determining the image capture position corresponding to the position of the graphical code on the interactive object along a preset path, and then performing the following steps to obtain a second recognition result. It is understood that combining the continuous scanning and triggered scanning methods can test the continuous scanning function while avoiding the possibility of missing graphical codes affecting the scanning accuracy.

[0094] In this embodiment, an image acquisition position corresponding to the position of the graphic code on the interactive object is determined from a preset path; when the target device moves to the image acquisition position, the target device is triggered to capture the target graphic code image of the graphic code on the interactive object, ensuring that the target device captures the graphic code on the interactive object, avoiding omissions, and improving the accuracy of the test.

[0095] In one embodiment, during the movement of the target device, controlling the target device to capture a target graphic code image of the graphic code on the interactive object includes: during the movement of the target device, performing preliminary image capture of the graphic code on the interactive object by the target device to obtain a reference graphic code image; adjusting parameters of the target device according to the quality of the reference graphic code image; capturing a target graphic code image of the graphic code on the interactive object by the target device after the parameter adjustment; and the image quality of the target graphic code image is better than the image quality of the reference graphic code image.

[0096] For example, for a new interactive object switched to, the target device needs to adjust parameters to ensure the imaging quality of the graphic code. During the movement of the target device, the test device can use the target device to perform preliminary image acquisition of the graphic code on the interactive object to obtain a reference graphic code image. The target device can adaptively adjust parameters related to imaging quality through a binary search method. For example, if the clarity of the reference graphic code image does not meet the clarity threshold or the sharpness of the reference graphic code image does not meet the sharpness threshold, the target device can determine that the image quality of the reference graphic code image does not meet the quality requirements. In this case, the target device can adaptively adjust parameters. After the parameters are adjusted, the target device can acquire a target graphic code image of the graphic code on the interactive object.

[0097] In one embodiment, the target device can be a barcode scanner. The barcode scanner can adjust camera parameters. It is understood that materials with different visual properties have different impacts on the image quality of the target device's captured images. Therefore, the barcode scanner needs to adaptively adjust parameters for different materials to ensure the quality of the target graphic code image and the decoding effect.

[0098] In this embodiment, during the movement of the target device, the target device performs preliminary image capture of the graphic code on the interactive object to obtain a reference graphic code image; the target device is adjusted according to the quality of the reference graphic code image; the target device after the adjustment captures the target graphic code image of the graphic code on the interactive object, and the accuracy of the test can be ensured by adjusting the parameters of the target device for different interactive objects.

[0099] In one embodiment, Figure 3 The following diagram shows the application environment of the device testing method. The test equipment includes an operating device, a control device, and a host computer. A developer submits a new version of a program to a code repository on a remote server. The remote server can send the new version of the program to the host computer, which compiles the new version to generate an executable file to be updated and generates file verification information. The host computer can communicate with the target device via the network, send the executable file and file verification information to the target device, and send a start command to the control device. The control device can send control commands to the operating device, which in response to the control commands controls the movement of the target device. While in motion, the target device can capture a target graphic code image of the graphic code on the material it is switching to and recognize the target graphic code image to obtain a recognition result. The control device can obtain the recognition result and forward it to the host computer. The host computer can analyze the recognition result to obtain performance test results.

[0100] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0101] Based on the same inventive concept, embodiments of the present application also provide a device testing system for implementing the aforementioned device testing method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations in one or more device testing system embodiments provided below can be found in the aforementioned limitations on the device testing method and will not be further elaborated here.

[0102] In one embodiment, Figure 4As shown, a device testing system 400 is provided, comprising: a control device 402, a manipulation device 404, a target device 406 and a computer device 408; wherein:

[0103] The control device 402 is used to determine interactive objects of various attributes set for the target device 406 to be tested; interactive objects are objects that interact with the target device 406 during use of the target device 406; interactive objects of different attributes have different interaction results with the target device 406; when testing the target device 406, the interactive objects of various attributes are switched; the operating device 404 is used to control the movement of the target device 406 for each interactive object switched to, and control the target device 406 to interact with the interactive object during the movement of the target device 406 to obtain an interaction result; the relative position of the target device 406 and the interactive object changes during the movement;

[0104] The target device 406 is used to interact with the interactive object and obtain the interaction result;

[0105] The computer device 408 is configured to determine a performance test result of the target device 406 according to the interaction results of the target device 406 with respect to each interactive object switched to.

[0106] In one embodiment, the computer device 408 is used to compile the new version of the program when a new version of the program is detected and submitted to the code repository to obtain an executable file to be updated; generate a hash value of the executable file and obtain file verification information; and send the executable file and the file verification information to the target device 406.

[0107] The target device 406 is configured to verify the executable file based on the file verification information; if the verification passes, the executable file is run to implement interaction with the interactive object.

[0108] In one embodiment, the executable file includes a driver for the target device 406; the control device 402 is used to obtain the driver test results obtained by running the driver on the target device 406; when the driver test results indicate that the driver is normal, the step of determining the interactive objects with multiple properties set for the target device 406 to be tested is executed.

[0109] In one embodiment, the control device 402 is configured to generate a control instruction for each interactive object switched to; and send the control instruction to the manipulation device 404 .

[0110] The manipulation device 404 is used to control the movement of the target device 406 in response to the control instruction.

[0111] In one embodiment, the interactive objects with multiple attributes include interactive objects with multiple visual attributes; at least one graphic code is provided on the interactive objects; there is a difference in imaging quality of images generated after the graphic codes on the interactive objects with different visual attributes are captured; the control device 402 is used to control the target device 406 to capture a target graphic code image of the graphic code on the interactive object during the movement of the target device 406; the target device 406 is used to recognize the target graphic code image and obtain a recognition result.

[0112] In one embodiment, the target device 406 moves along a preset path; the preset path is set based on the position of the graphic code on the interactive object; the control device 402 is used to determine an image capture position corresponding to the position of the graphic code on the interactive object from the preset path; the image capture position is a position for capturing an image of the graphic code; when the target device 406 moves to the image capture position, the target device 406 is triggered to capture a target graphic code image of the graphic code on the interactive object.

[0113] In one embodiment, the target device 406 is used to perform preliminary image capture of the graphic code on the interactive object to obtain a reference graphic code image during the movement of the target device 406; adjust the parameters of the target device 406 according to the quality of the reference graphic code image; after the parameter adjustment is completed, capture the target graphic code image of the graphic code on the interactive object; the image quality of the target graphic code image is better than the image quality of the reference graphic code image.

[0114] Each device in the aforementioned device testing system may be implemented in whole or in part through software, hardware, or a combination thereof. Each of the aforementioned devices may be embedded in or independent of the processor in computer device 408 in hardware form, or may be stored in a memory in computer device 408 in software form, so that the processor can call and execute the corresponding operations of each of the aforementioned devices.

[0115] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store executable files and file verification information. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a device testing method is implemented.

[0116] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, the device testing method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.

[0117] Those skilled in the art will understand that Figure 5 or Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0118] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0119] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0120] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0121] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0122] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0123] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A device testing method, characterized in that: The method comprises: Determining interactive objects of various attributes set for a target device to be tested; the interactive objects are objects that interact with the target device during use of the target device; and there are differences in the interaction results between interactive objects of different attributes and the target device; When testing the target device, switching the interactive objects of the multiple attributes; For each interactive object switched to, controlling the target device to move, and during the movement of the target device, controlling the target device to interact with the interactive object to obtain an interaction result; the relative position of the target device and the interactive object changes during the movement; A performance test result of the target device is determined according to the interaction results of the target device with respect to each interaction object switched to.

2. The method according to claim 1, characterized in that Before determining the interactive objects with multiple attributes set for the target device to be tested, the method further includes: When a new version of the program submitted to the code repository is detected, the new version of the program is compiled to obtain an executable file to be updated; Generate a hash value of the executable file to obtain file verification information; Sending the executable file and the file verification information to a target device to instruct the target device to verify the executable file based on the file verification information; If the verification is passed, the executable file is run through the target device to implement interaction with the interactive object.

3. The method according to claim 2, characterized in that The executable file includes a driver for the target device; Before determining the interactive objects with multiple attributes set for the target device to be tested, the method further includes: Obtaining a driver test result obtained by running the driver on the target device; In the case where the driver test result indicates that the driver is normal, the step of determining the interactive objects with multiple attributes set for the target device to be tested is performed.

4. The method according to claim 1, wherein The controlling the target device to move for each interactive object switched to includes: generating, by the control device, a control instruction for each interactive object switched to; The control device sends the control instruction to the operating device to instruct the operating device to control the movement of the target device in response to the control instruction.

5. The method according to any one of claims 1 to 4, characterized in that The interactive objects of multiple attributes include interactive objects of multiple visual attributes; at least one graphic code is set on the interactive objects; There are differences in the imaging quality of images generated after the graphic codes on interactive objects with different visual attributes are collected; During the movement of the target device, controlling the target device to interact with the interactive object to obtain an interaction result includes: During the movement of the target device, the target device is controlled to collect a target graphic code image of the graphic code on the interactive object, and the target device recognizes the target graphic code image to obtain a recognition result.

6. The method according to claim 5, characterized in that The target device moves along a preset path; the preset path is set based on the position of the graphic code on the interactive object; During the movement of the target device, controlling the target device to collect the target graphic code image of the graphic code on the interactive object includes: Determining an image acquisition position corresponding to the position of the graphic code on the interactive object from the preset path; the image acquisition position is a position for acquiring an image of the graphic code; When the target device moves to the image acquisition position, the target device is triggered to acquire a target graphic code image of the graphic code on the interactive object.

7. The method according to claim 5, characterized in that During the movement of the target device, controlling the target device to collect the target graphic code image of the graphic code on the interactive object includes: During the movement of the target device, the target device performs preliminary image acquisition of the graphic code on the interactive object to obtain a reference graphic code image; Adjusting parameters of the target device according to the quality of the reference graphic code image; The target graphic code image of the graphic code on the interactive object is collected by the target device after parameter adjustment; the image quality of the target graphic code image is better than the image quality of the reference graphic code image.

8. A device testing system, characterized in that: The system includes a control device, a manipulation device, a computer device and a target device; The control device is configured to determine interactive objects of various attributes set for a target device to be tested; the interactive objects are objects that interact with the target device during use of the target device; interactive objects of different attributes have different interaction results with the target device; and when testing the target device, the interactive objects of various attributes are switched; The manipulation device is used to control the movement of the target device for each interactive object switched to, and during the movement of the target device, control the target device to interact with the interactive object to obtain an interaction result; the relative position of the target device and the interactive object changes during the movement; The target device is used to interact with the interactive object to obtain an interaction result; The computer device is used to determine the performance test result of the target device according to the interaction results of the target device with respect to each interaction object switched to.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Equipment testing method and device, terminal equipment and storage medium

    CN113794602A

  • Business interaction graph generation method and device, equipment and storage medium

    CN114218052A