VR Device Testing Method and Electronic Device
Through the simulation operation and image comparison of the VR equipment controlled by the robotic arm, the insufficient evaluation of the stability, sensitivity and battery life of the entire machine by the VR equipment testing method in the prior art is solved, and more accurate performance testing is achieved.
Patent Information
- Application Number
- CN202110363770.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-02
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2041-04-02
AI Technical Summary
The existing VR equipment testing methods lack effective simulation of performance indicators such as the stability, sensitivity and battery life of the whole machine, and it is difficult to evaluate in actual use scenarios.
The display device to be tested and the control device are controlled by the robotic arm for simulation operations, including movement, clicking and other actions, and combined with image comparison and time difference analysis, the equipment's response performance is evaluated.
It realizes accurate testing of the overall stability, sensitivity and battery life of VR equipment in actual use scenarios, improving the reliability and comprehensiveness of the test.
Smart Images

Figure CN115184699B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of device testing, and in particular, to a method for testing a VR device and an electronic device.
Background Art
[0002] A virtual reality (VR) device can use a computer to generate a simulated environment, enabling a user to obtain a feeling close to the real world in the simulated environment. Currently, common VR devices are mostly wearable devices, generally composed of a display device and a control device. Among them, the display device can be used to display VR images and process relevant instructions triggered by the control device; the control device can be used to control the movement of the cursor in the VR image and perform control operations such as clicking.
[0003] To ensure that the performance indicators of a VR device are normal, before the VR device leaves the factory, it is usually necessary to conduct performance tests on it. Currently, common tests generally focus on testing the image display effect of the display device, that is, comparing the image displayed by the display device with the expected image to determine whether the image display effect of the display device is normal. However, for performance indicators such as the overall machine stability, sensitivity, and battery life during actual use, their tests need to be combined with the actual use process, and currently, there is a lack of feasible testing methods.
Summary of the Invention
[0004] Embodiments of this application provide a method for testing a VR device and an electronic device, which are used to simulate the actual scenario of a user using a VR device and test performance indicators such as the overall machine stability, sensitivity, and battery life of the VR device during use.
[0005] In a first aspect, embodiments of this application provide a method for testing a VR device. The method is applied to a test device, and the test device is connected to a display device to be tested through a first robotic arm and to a control device to be tested through a second robotic arm. The method includes: sending a first simulated operation instruction to the first robotic arm, where the first simulated operation instruction is used to control the first robotic arm to perform a first simulated operation on the display device to be tested so that the display device to be tested displays a test image; sending a second simulated operation instruction to the second robotic arm, where the second simulated operation instruction is used to control the second robotic arm to drive the control device to be tested to perform a second simulated operation on the test image displayed by the display device to be tested; and determining the sensitivity of the display device to be tested according to the response duration of the display device to be tested to the second simulated operation.
[0006] In one possible implementation, a first analog operation instruction is sent to the first robotic arm. The first analog operation instruction is used to control the first robotic arm to perform a first analog operation on the display device under test so that the display device under test displays a test image, including: sending a first movement analog operation instruction to the first robotic arm, where the first movement analog operation instruction is used to control the first robotic arm to drive the display device under test to move at least once; when it is determined that the image displayed during the movement of the display device under test is the test image, sending a pause analog operation instruction to the first robotic arm, where the pause analog operation instruction is used to control the first robotic arm to stop driving the display device under test from moving.
[0007] In one possible implementation, the test image includes test icons; a second analog operation instruction is sent to the second robotic arm. The second analog operation instruction is used to control the second robotic arm to drive the control device under test to perform a second analog operation on the test image displayed on the display device under test, including: sending a second movement analog operation instruction to the second robotic arm, where the second movement analog operation instruction is used to control the second robotic arm to drive the control device under test to move at least once; when it is determined, based on the image displayed on the display device under test during the movement of the control device under test, that the cursor corresponding to the control device under test moves to the test icon, sending an icon click analog operation instruction to the second robotic arm so that the second robotic arm clicks the single-click function button of the control device under test.
[0008] In one possible implementation, sending the second movement analog operation instruction to the second robotic arm includes: sending a long-press analog operation instruction to the second robotic arm so that the second robotic arm long-presses the reset function button of the control device under test; when it is determined, based on the image displayed on the display device under test during the long-pressing of the reset function button, that the cursor corresponding to the control device under test is at the calibration position of the test image, sending the second movement analog operation instruction to the second robotic arm.
[0009] In one possible implementation, determining that the cursor corresponding to the device under test moves to the test icon according to the image displayed on the display device under test during the movement of the device under test includes: during the movement of the device under test, detecting, at a preset time interval, the deviation degree between the position where the cursor has reached in the image displayed on the display device under test and the position where the cursor should reach corresponding to the current position of the device under test; if the deviation degree is greater than a preset threshold, sending a deviation correction simulation operation instruction to the second robotic arm so that the second robotic arm drives the device under test to move the cursor to the position where it should reach; if the deviation degree is less than the preset threshold, continuing to detect the deviation degree at the preset time interval until it is determined that the cursor corresponding to the device under test moves to the test icon.
[0010] In one possible implementation, sending an icon click simulation operation instruction to the second robotic arm to enable the second robotic arm to click the single-click function button of the device under test includes: sending an icon positioning simulation operation instruction to the second robotic arm, where the icon positioning simulation operation instruction is used to control the second robotic arm to drive the device under test so that the cursor corresponding to the device under test moves within a preset range around the test icon; determining whether the icon style of the test icon is consistent with the reference icon style according to the image displayed on the display device under test during the movement of the cursor within the preset range around the test icon; when it is determined that the icon style of the test icon is consistent with the reference icon style, sending an icon click simulation operation instruction to the second robotic arm to enable the second robotic arm to click the single-click function button of the device under test.
[0011] In one possible implementation, determining the sensitivity of the display device under test according to the response duration of the display device under test to the second simulation operation includes: determining the time difference between the time when the second robotic arm clicks the single-click function button and the time when the interface corresponding to the test icon pops up; determining the sensitivity of the display device under test according to the time difference.
[0012] In one possible implementation, the method further includes: determining the overall stability of the display device under test according to the number of abnormal operation results that occur during the cyclic execution of the second simulation operation within a preset time period; determining the battery life of the display device under test according to the duration of the cyclic execution of the second simulation operation before the battery of the display device under test runs out.
[0013] In a second aspect, an embodiment of the present application provides a VR device testing apparatus, the apparatus includes: a first control module, configured to send a first simulation operation instruction to the first robotic arm, the first simulation operation instruction being used to control the first robotic arm to perform a first simulation operation on the display device under test so that the display device under test displays a test image; a second control module, configured to send a second simulation operation instruction to the second robotic arm, the second simulation operation instruction being used to control the second robotic arm to drive the control device under test to perform a second simulation operation on the test image displayed by the display device under test; a determination module, configured to determine the sensitivity of the display device under test according to the response duration of the display device under test to the second simulation operation.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor can execute the method as described in the first aspect by invoking the program instructions.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the method as described in the first aspect.
[0016] In the above technical solutions, first, a first simulation operation instruction is sent to the first robotic arm to control the first robotic arm to perform a first simulation operation on the display device under test so that the display device under test displays a test image. Then, a second simulation operation instruction is sent to the second robotic arm to control the second robotic arm to drive the control device under test to perform a second simulation operation on the test image displayed by the display device under test. Finally, the sensitivity of the display device under test is determined according to the response duration of the display device under test to the second simulation operation. The overall stability of the display device under test is determined according to the number of abnormal operation results occurring during the process of repeatedly performing the second simulation operation within a preset time period. The battery life of the display device under test is determined according to the duration of repeatedly performing the second simulation operation before the battery of the display device under test runs out. Thus, the actual scenario of a user using a VR device can be simulated, and performance indicators such as the overall stability, sensitivity, and battery life of the VR device during use can be tested.
Description of the Drawings
[0017] To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 Scene diagram of a VR device testing method provided by an embodiment of the present application;
[0019] Figure 2 Flowchart of a VR device testing method provided by an embodiment of the present application;
[0020] Figure 3 Structural schematic diagram of a VR device testing method provided by an embodiment of the present application;
[0021] Figure 4 Structural schematic diagram of another VR device testing method provided by an embodiment of the present application;
[0022] Figure 5 Structural schematic diagram of a VR device testing apparatus provided by an embodiment of the present application;
[0023] Figure 6 Schematic diagram of an electronic device provided by an embodiment of the present application.
Specific implementation manners
[0024] For a better understanding of the technical solution of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0025] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0026] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "the" and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0027] In the embodiments of the present application, a testing device can be provided, and this testing device can be used to execute the VR device testing method provided by the embodiments of the present application. In a possible implementation manner, the testing device provided by the embodiments of the present application can be a testing server.
[0028] Figure 1 Scene diagram of a VR device testing method provided by an embodiment of the present application.
[0029] Such as Figure 1As shown in the figure, the VR device to be tested in the embodiment of the present application may include a display device to be tested 11 and a control device to be tested 12. The testing device 13 is connected to the display device to be tested 11 through the first robotic arm 14 and is connected to the control device to be tested 12 through the second robotic arm 15. The testing device 13 can send control instructions to the first robotic arm 14 and the second robotic arm 15, so as to control the first robotic arm 14 and the second robotic arm 15 to drive the display device to be tested 11 and the control device to be tested 12 to move, realize the simulation of the actual scenario of the user using the VR device, and implement the VR device testing method provided by the embodiment of the present application during the simulation use process.
[0030] Figure 2 It is a flowchart of a VR device testing method provided by an embodiment of the present application. As Figure 2 shown, the above VR device testing method may include:
[0031] Step 101, the testing device sends a first simulation operation instruction to the first robotic arm.
[0032] In the embodiment of the present application, test scripts required for the test process can be deployed in the testing device in advance. The testing device can implement the VR device testing method provided by the embodiment of the present application by running the test scripts.
[0033] In the embodiment of the present application, the testing device can send a first simulation operation instruction to the first robotic arm to control the first robotic arm to perform a first simulation operation on the display device to be tested. The first simulation operation can be used to make the display device to be tested display a test image.
[0034] Specifically, first, the testing device can send a first moving simulation operation instruction to the first robotic arm.
[0035] In the embodiment of the present application, the first moving simulation operation instruction can be used to control the first robotic arm to drive the display device to be tested to move at least once. During the movement of the display device to be tested, the testing device can obtain the VR image displayed by the display device to be tested in real time. In a possible implementation manner, a screen mirroring protocol can be established between the testing device and the display device to be tested. Furthermore, the testing device can obtain the VR image displayed by the display device to be tested through screen mirroring and can perform real-time screen mirroring display. In another possible implementation manner, the testing device can use a camera to capture the VR image displayed by the display device to be tested.
[0036] Then, during the movement of the display device to be tested, when the testing device determines that the displayed image is a test image, it sends a pause simulation operation instruction to the first robotic arm.
[0037] In the embodiments of the present application, a reference image corresponding to a test image can be pre-stored in the test device. During the movement of the display device to be tested, the test device can compare the image displayed by the display device to be tested with the pre-stored reference image. When it is determined that the image displayed by the display device to be tested is the same as the reference image, the image displayed by the display device to be tested can be considered as the test image. At this time, the test device can send a pause simulation operation instruction to the first robotic arm. The pause simulation operation instruction can be used to control the first robotic arm to stop driving the display device to be tested to move.
[0038] Step 102, the test device sends a second simulation operation instruction to the second robotic arm.
[0039] In the embodiments of the present application, after obtaining the test image, the test device can send a second simulation operation instruction to the second robotic arm. The second simulation operation instruction can be used to control the second robotic arm to drive the control device to be tested to perform a second simulation operation on the test image displayed by the display device to be tested.
[0040] In the embodiments of the present application, the test image can include a test icon. The second simulation operation can be a click operation on the test icon. In an actual scenario, the test icon can be an icon corresponding to any application program. By clicking on the test icon, an interface pop-up instruction for the application program corresponding to the test icon can be triggered.
[0041] First, the test device can send a second movement simulation operation instruction to the second robotic arm.
[0042] In the embodiments of the present application, the second movement simulation operation instruction can control the second robotic arm to drive the control device to be tested to perform at least one movement. Furthermore, the cursor corresponding to the control device to be tested can be moved in the test image.
[0043] In the embodiments of the present application, the movement trajectory of the control device to be tested should be to move from the current position of the cursor to the position of the test icon. Since the current position of the cursor is uncertain, therefore, the position of the cursor can be corrected first, so as to position the cursor at the corrected position.
[0044] Specifically, the test device can send a long-press simulation operation instruction to the second robotic arm. The long-press simulation operation instruction can be used to control the second robotic arm to long-press the reset function button of the control device to be tested. During the process of long-pressing the reset function button, the test device can determine whether the cursor is located at the corrected position of the test image according to the image displayed by the display device to be tested. When it is determined that the cursor is located at the corrected position, the test device can send the above-mentioned second movement simulation operation instruction to the second robotic arm. Thus, the second robotic arm can be driven to drive the control device to be tested to move from the corrected position to the test image.
[0045] Among them, the specific value of the calibration position can be set according to the actual needs, for example, it can be the center position of the test image.
[0046] Then, during the movement of the device under test, when the test device determines that the cursor moves to the test icon according to the image displayed on the display device under test, it can send an icon click simulation operation instruction to the second robotic arm.
[0047] It should be noted that in the actual use scenario, the cursor corresponding to the device under test is generally a floating cursor, that is, even when the device under test is in a stationary state, the cursor will still make small floating movements. Therefore, during the process of the second robotic arm driving the device under test to move from the calibration position to the test icon, the cursor position may deviate from the set movement trajectory. Based on this, during the process of the second robotic arm driving the device under test to move from the calibration position to the test icon, the embodiment of the present application can locate the cursor position and correct the cursor position when it deviates from the set movement trajectory.
[0048] Among them, the specific implementation methods of cursor positioning and cursor position correction will be described in another embodiment of the present application.
[0049] When it is determined that the cursor moves to the test icon, the test device can send an icon click simulation operation instruction to the second robotic arm. The icon click simulation operation instruction can control the second robotic arm to click the single - click function button of the device under test. Thus, the click operation of the device under test on the test icon can be realized.
[0050] Step 103, the test device can determine the sensitivity of the display device under test according to the response duration of the second simulation operation of the display device under test.
[0051] In the embodiment of the present application, the test device can remember the time when the second robotic arm clicks the single - click function button of the device under test and the pop - up time of the interface corresponding to the test icon. Then, the test device can determine the sensitivity of the display device under test according to the time difference between the time when the second robotic arm clicks the single - click function button and the interface pop - up time. It can be understood that the shorter the above - mentioned time difference, the higher the sensitivity of the display device under test.
[0052] In the embodiment of the present application, the overall stability and battery life of the display device under test can also be tested.
[0053] Test of overall stability.
[0054] Specifically, the test device can control the device under test to repeatedly execute the above-mentioned second simulation operation on the test image. During this process, the test device can determine the number of abnormal operation results that occur within a preset time period based on the image displayed on the device under test. Among them, the abnormal operation results can include: popping up abnormal prompt interfaces such as program crashes and requests for restart. Furthermore, based on the number of abnormal operation results that occur within the preset time period, the test device can determine the overall stability of the device under test. The fewer the number of abnormal operation results, the better the overall stability.
[0055] Battery life test.
[0056] Specifically, when the device under test is in a fully charged state, the test device can control the device under test to repeatedly execute the above-mentioned second simulation operation on the test image. Furthermore, the battery life of the device under test can be determined based on the duration of repeatedly executing the second simulation operation before the battery of the device under test runs out.
[0057] In the embodiments of the present application, first, the test device sends a first simulation operation instruction to the first robotic arm to control the first robotic arm to perform a first simulation operation on the device under test so that the device under test displays a test image. Then, the test device sends a second simulation operation instruction to the second robotic arm to control the second robotic arm to drive the device under test to perform a second simulation operation on the test image displayed by the device under test. Finally, the test device determines the sensitivity of the device under test based on the response duration of the device under test to the second simulation operation. Based on the number of abnormal operation results that occur during the repeated execution of the second simulation operation within a preset time period, the overall stability of the device under test is determined. Based on the duration of repeatedly executing the second simulation operation before the battery of the device under test runs out, the battery life of the device under test is determined. Thus, the actual scenario of a user using a VR device can be simulated, and the performance indicators of the VR device during use can be tested.
[0058] In another embodiment of the present application, the specific implementation manners of the cursor positioning and cursor position correction in step 102 above are described.
[0059] In the embodiments of the present application, during the process of the second robotic arm driving the device under test to move, the test device can determine the corresponding position where the cursor should reach based on the current position of the device under test.
[0060] Based on the above description, a possible implementation manner for cursor positioning is that the test device can search for the cursor within a preset range around the position where the cursor should reach corresponding to the current position of the device under test at preset time intervals during the movement of the device under test, so as to achieve cursor positioning.
[0061] Such as Figure 3As shown, O is the calibration position and Z is the test icon. If the position where the cursor corresponding to the current position of the control device to be tested should reach is A, the test device can search for the cursor within a preset range around point A.
[0062] In another possible implementation, the test device can determine a circular search area centered at the calibration position at preset time intervals. Starting from the edge position of the circular search area, search for the cursor from the outside to the inside to achieve the positioning of the cursor. Among them, the value of the radius of the circular search area can be determined according to the distance between the position where the cursor should reach corresponding to each time node and the calibration position. Optionally, the value of the radius of the circular search area can be slightly larger than this distance.
[0063] As Figure 4 shown, O is the calibration position and Z is the test icon. If the position where the cursor corresponding to the current position of the control device to be tested should reach is B, then the circular area C can be determined. The center of the circular area C is the calibration position O, and the radius is slightly larger than the distance between the calibration position O and the position where the cursor should reach B. The test device can search for the cursor within the circular area C. Specifically, it can start from the edge position of the circular search area C and search for the cursor from the outside to the inside.
[0064] In the embodiments of the present application, after positioning the cursor, the deviation degree between the position where the cursor has reached in the image displayed on the display device to be tested and the corresponding position where the cursor should reach can be detected, and when the deviation degree is greater than the preset threshold, the cursor position can be corrected. In this regard, the embodiments of the present application can provide the following two possible implementation manners.
[0065] Method 1: If it is determined that the above deviation degree is greater than the preset threshold, the test device can send a deviation correction simulation operation instruction to the second robotic arm. The deviation correction simulation operation instruction can control the second robotic arm to drive the control device to be tested to move the cursor to the position where it should reach. If it is determined that the deviation degree is less than the preset threshold, the test device can continue to detect the deviation degree at preset time intervals until it is determined that the cursor corresponding to the control device to be tested moves to the test icon.
[0066] Method 2: If it is determined that the above deviation degree is greater than the preset threshold, the test device can send a starting point reset simulation operation instruction to the second robotic arm. The starting point reset simulation operation instruction can control the second robotic arm to re-determine the movement trajectory with the position where the cursor has reached as the starting point and the test icon as the end point, and drive the control device to be tested to move according to the re-determined movement trajectory. If it is determined that the deviation degree is less than the preset threshold, the test device can continue to detect the deviation degree at preset time intervals until it is determined that the cursor corresponding to the control device to be tested moves to the test icon.
[0067] Among them, the value of the preset threshold can be set according to the needs of the actual situation.
[0068] It should be noted that in the process of executing the VR device testing method provided in the embodiments of the present application, the above two cursor position correction methods can be used in combination. As an alternative solution, the usage frequencies of Method 1 and Method 2 can be set respectively. Among them, the usage frequency of Method 2 can be higher than that of Method 1.
[0069] In the embodiments of the present application, during the test, the position of the cursor corresponding to the device under test can be located, and when the cursor position deviates from the set movement trajectory, the cursor position can be corrected. Thus, the reliability of the VR device testing process can be ensured.
[0070] In another embodiment of the present application, a specific implementation manner of the above step 102 in which the testing device sends an icon click simulation operation instruction to the second robotic arm to enable the second robotic arm to click the single-click function button of the device under test to implement the click operation on the test icon is described.
[0071] In the embodiments of the present application, since the cursor corresponding to the device under test is a floating cursor, when the area of the test icon is small, the floating of the cursor may make it difficult to accurately click on the test icon.
[0072] Based on this, in the embodiments of the present application, first, the testing device can send an icon positioning simulation operation instruction to the second robotic arm. The icon positioning simulation operation instruction can be used to control the second robotic arm to drive the device under test so that the cursor corresponding to the device under test moves within a preset range around the test icon.
[0073] Then, during the movement of the cursor, the testing device can determine whether the icon style of the test icon is consistent with the reference icon style stored in advance according to the image displayed on the display device under test. If it is determined that the icon style of the test icon is consistent with the reference icon style, it is considered that the test icon has been selected. At this time, the testing device can send an icon click simulation operation instruction to the second robotic arm to enable the second robotic arm to click the single-click function button of the device under test.
[0074] Among them, the reference icon style is the style when the icon is selected, and can include the shape, color, etc. when selected.
[0075] Through the above method, when the area of the test icon is small, it is still possible to accurately click on the test icon, improving the reliability of the VR device testing process.
[0076] Figure 5 This is a schematic structural diagram of a VR device testing apparatus provided in the embodiments of the present application. As Figure 5 shown, the VR device testing apparatus provided in the embodiments of the present application may include: a first control module 41, a second control module 42, and a determination module 43.
[0077] The first control module 41 is configured to send a first simulation operation instruction to the first robotic arm. The first simulation operation instruction is used to control the first robotic arm to perform a first simulation operation on the display device under test so that the display device under test displays a test image.
[0078] The second control module 42 is configured to send a second simulation operation instruction to the second robotic arm. The second simulation operation instruction is used to control the second robotic arm to drive the control device under test to perform a second simulation operation on the test image displayed by the display device under test.
[0079] The determination module 43 is configured to determine the sensitivity of the display device under test according to the response duration of the display device under test to the second simulation operation.
[0080] In a specific implementation process, when the first control module 41 is configured to send a first simulation operation instruction to the first robotic arm, specifically, it is configured to send a first moving simulation operation instruction to the first robotic arm. The first moving simulation operation instruction is used to control the first robotic arm to drive the display device under test to perform at least one movement. When it is determined that the image displayed during the movement of the display device under test is the test image, a pause simulation operation instruction is sent to the first robotic arm. The pause simulation operation instruction is used to control the first robotic arm to stop driving the display device under test from moving.
[0081] In a specific implementation process, the test image includes a test icon. When the second control module 42 is configured to send a second simulation operation instruction to the second robotic arm, specifically, it is configured to send a second moving simulation operation instruction to the second robotic arm. The second moving simulation operation instruction is used to control the second robotic arm to drive the control device under test to perform at least one movement. According to the image displayed by the display device under test during the movement of the control device under test, when it is determined that the cursor corresponding to the control device under test moves to the test icon, an icon click simulation operation instruction is sent to the second robotic arm, so that the second robotic arm clicks the single-click function button of the control device under test.
[0082] In a specific implementation process, the second control module 42 sending a second moving simulation operation instruction to the second robotic arm includes: sending a long-press simulation operation instruction to the second robotic arm, so that the second robotic arm long-presses the reset function button of the control device under test. According to the image displayed by the display device under test during the process of long-pressing the reset function button, when it is determined that the cursor corresponding to the control device under test is located at the calibration position of the test image, a second moving simulation operation instruction is sent to the second robotic arm.
[0083] In a specific implementation process, the second control module 42 determines that the cursor corresponding to the device under test moves to the test icon according to the image displayed on the display device under test during the movement of the device under test, including: during the movement of the device under test, detecting at preset time intervals the deviation degree between the position where the cursor has reached in the image displayed on the display device under test and the position where the cursor should reach corresponding to the current position of the device under test. If the deviation degree is greater than the preset threshold, a deviation correction simulation operation instruction is sent to the second robotic arm, so that the second robotic arm drives the device under test to move the cursor to the position where it should reach; if the deviation degree is less than the preset threshold, continue to detect the deviation degree at preset time intervals until it is determined that the cursor corresponding to the device under test moves to the test icon.
[0084] In a specific implementation process, the second control module 42 sends an icon click simulation operation instruction to the second robotic arm to enable the second robotic arm to click the single-click function button of the device under test, including: sending an icon positioning simulation operation instruction to the second robotic arm, where the icon positioning simulation operation instruction is used to control the second robotic arm to drive the device under test so that the cursor corresponding to the device under test moves within a preset range around the test icon. According to the image displayed on the display device under test during the movement of the cursor within the preset range around the test icon, determine whether the icon style of the test icon is consistent with the reference icon style. When it is determined that the icon style of the test icon is consistent with the reference icon style, send an icon click simulation operation instruction to the second robotic arm to enable the second robotic arm to click the single-click function button of the device under test.
[0085] In a specific implementation process, when the determination module 43 is used to determine the sensitivity of the display device under test according to the response duration of the second simulation operation of the display device under test, it is specifically used to: determine the time difference between the time when the second robotic arm clicks the single-click function button and the time when the interface corresponding to the test icon pops up. Determine the sensitivity of the display device under test according to the time difference.
[0086] In a specific implementation process, the determination module 43 is also used to determine the overall stability of the display device under test according to the number of abnormal operation results that occur during the loop execution of the second simulation operation within a preset time period; determine the battery life of the display device under test according to the duration of the loop execution of the second simulation operation before the battery of the display device under test runs out.
[0087] In the embodiment of the present application, first, the first control module 41 sends a first simulation operation instruction to the first robotic arm to control the first robotic arm to perform a first simulation operation on the display device to be tested so that the display device to be tested displays a test image. Then, the second control module 42 sends a second simulation operation instruction to the second robotic arm to control the second robotic arm to drive the control device to be tested to perform a second simulation operation on the test image displayed by the display device to be tested. Finally, the determination module 43 determines the sensitivity of the display device to be tested according to the response duration of the display device to be tested to the second simulation operation. The overall stability of the display device to be tested is determined according to the number of abnormal operation results that occur during the process of repeatedly performing the second simulation operation within a preset time period. The battery life of the display device to be tested is determined according to the duration of repeatedly performing the second simulation operation before the battery of the display device to be tested runs out. Therefore, the actual scenario of a user using a VR device can be simulated, and the performance indicators of the VR device during use can be tested.
[0088] Figure 6 Schematic diagram of an electronic device provided by an embodiment of the present application, as Figure 6 shown, the above electronic device may include at least one processor; and at least one memory communicatively connected to the above processor, wherein: the memory stores program instructions executable by the processor, and the above processor can execute the VR device testing method provided by the embodiment of the present application by invoking the above program instructions.
[0089] Among them, the above electronic device may be a VR device testing device, and the specific form of the above electronic device is not limited in this embodiment.
[0090] Figure 6 The block diagram of an exemplary electronic device suitable for implementing the embodiments of the present application is shown. Figure 6 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
[0091] As Figure 6 shown, the electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors 410, a memory 430, a communication interface 420, and a communication bus 440 connecting different system components (including the memory 430 and the processor 410).
[0092] The communication bus 440 represents one or more of several types of bus architectures, including a memory bus or memory controller, a peripheral bus, an Accelerated Graphics Port, a processor, or a local bus using any of the various bus architectures. By way of example, and not limitation, these architectures include the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnection (PCI) bus.
[0093] An electronic device typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including both volatile and nonvolatile media, removable and non-removable media.
[0094] The memory 430 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device may further include other removable / non-removable, volatile / nonvolatile computer system storage media. Although Figure 6 not shown in FIG. [reference numeral], a disk drive for reading from and writing to a removable nonvolatile magnetic disk, such as a "floppy disk", and an optical disk drive for reading from or writing to a removable nonvolatile optical disk such as a Compact Disc Read Only Memory (CD-ROM), a Digital Video Disc Read Only Memory (DVD-ROM) or other optical media may be provided. In these instances, each drive may be connected to the communication bus 440 by one or more data media interfaces. The memory 430 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of the embodiments of the present application.
[0095] A program / util utility having a set (at least one) of program modules can be stored in the memory 430. Such program modules include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. The program modules generally execute the functions and / or methods in the embodiments described in this application.
[0096] The electronic device can also communicate with one or more external devices (such as a keyboard, a pointing device, a display, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device, and / or communicate with any device that enables the electronic device to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the communication interface 420. And, the electronic device can also communicate with one or more networks (such as a Local Area Network (LAN), a Wide Area Network (WAN), and / or a public network, such as the Internet) through a network adapter ( Figure 6 not shown in the figure). The above network adapter can communicate with other modules of the electronic device through the communication bus 440. It should be understood that although Figure 6 not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, Redundant Arrays of Independent Drives (RAID) systems, tape drives, and data backup storage systems, etc.
[0097] The processor 410 executes various functional applications and data processing by running the programs stored in the memory 430, such as implementing the VR device testing method provided in the embodiments of this application.
[0098] The embodiments of this application also provide a computer-readable storage medium. The above computer-readable storage medium stores computer instructions, and the above computer instructions cause the above computer to execute the VR device testing method provided in the embodiments of this application.
[0099] The above computer-readable storage medium may adopt any combination of one or more computer-readable media. The computer-readable media may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (hereinafter referred to as: ROM), an erasable programmable read-only memory (hereinafter referred to as: EPROM), or a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0100] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal may take various forms, including - but not limited to - an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0101] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0102] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external computer (e.g., by connecting through the Internet using an Internet service provider).
[0103] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of this application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0104] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be construed as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "a plurality" is at least two, such as two, three, etc., unless otherwise specifically defined.
[0105] Any process or method description in the flowchart or described in other ways herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a customized logic function or process. The scope of the preferred embodiments of this application includes additional implementations, where the functions can be executed in a manner not shown or discussed, including in a substantially simultaneous manner or in the reverse order according to the functions involved, which should be understood by those skilled in the art to which the embodiments of this application pertain.
[0106] It should be noted that the terminals involved in the embodiments of the present application may include, but are not limited to, personal computers (hereinafter referred to as: PCs), personal digital assistants (hereinafter referred to as: PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 players, MP4 players, etc.
[0107] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical, or other form.
[0108] In addition, each functional unit in the various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a hardware plus software functional unit.
[0109] The above are only the preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of protection of the present application.
Claims
1. A VR device testing method, characterized in that, The method is applied to a test device, which is connected to a display device under test through a first robotic arm and connected to a control device under test through a second robotic arm. The method includes: Sending a first simulation operation instruction to the first robotic arm, where the first simulation operation instruction is used to control the first robotic arm to perform a first simulation operation on the display device under test so that the display device under test displays a test image; this includes: sending a first movement simulation operation instruction to the first robotic arm, where the first movement simulation operation instruction is used to control the first robotic arm to drive the display device under test to move at least once; when it is determined that the image displayed during the movement of the display device under test is the test image, sending a pause simulation operation instruction to the first robotic arm, where the pause simulation operation instruction is used to control the first robotic arm to stop driving the display device under test from moving; Sending a second simulation operation instruction to the second robotic arm, where the second simulation operation instruction is used to control the second robotic arm to drive the control device under test to perform a second simulation operation on the test image displayed on the display device under test; this includes: the test image includes test icons; sending a second movement simulation operation instruction to the second robotic arm, where the second movement simulation operation instruction is used to control the second robotic arm to drive the control device under test to move at least once; when it is determined, based on the image displayed on the display device under test during the movement of the control device under test, that the cursor corresponding to the control device under test has moved to the test icon, sending an icon click simulation operation instruction to the second robotic arm so that the second robotic arm clicks the single - click function button of the control device under test; Based on the response duration of the display device under test to the second simulation operation, where the response duration is the time difference between the time when the second robotic arm clicks the single - click function button and the time when the interface corresponding to the test icon pops up, determine the sensitivity of the display device under test.
2. The method according to claim 1, wherein Sending a second movement simulation operation instruction to the second robotic arm includes: Sending a long - press simulation operation instruction to the second robotic arm so that the second robotic arm long - presses the reset function button of the control device under test; When it is determined, based on the image displayed on the display device under test during the long - press of the reset function button, that the cursor corresponding to the control device under test is at the calibration position of the test image, send the second movement simulation operation instruction to the second robotic arm.
3. The method according to claim 1, characterized in that, Determining that the cursor corresponding to the control device under test has moved to the test icon based on the image displayed on the display device under test during the movement of the control device under test includes: During the movement of the control device under test, detecting, at a preset time interval, the deviation degree between the position where the cursor has reached in the image displayed on the display device under test and the position where the cursor should reach corresponding to the current position of the control device under test; If the deviation degree is greater than a preset threshold, send a deviation correction simulation operation instruction to the second robotic arm so that the second robotic arm drives the control device under test to move the cursor to the position where it should reach; If the degree of deviation is less than the preset threshold, continue to detect the degree of deviation at the preset time interval until it is determined that the cursor corresponding to the device under test moves to the test icon.
4. The method according to claim 1, wherein Sending an icon click simulation operation instruction to the second robotic arm to cause the second robotic arm to click the single-click function button of the device under test, including: Sending an icon positioning simulation operation instruction to the second robotic arm, where the icon positioning simulation operation instruction is used to control the second robotic arm to drive the device under test so that the cursor corresponding to the device under test moves within a preset range around the test icon; Determining whether the icon style of the test icon is consistent with the reference icon style according to the image displayed on the device under test during the movement of the cursor within the preset range around the test icon; When it is determined that the icon style of the test icon is consistent with the reference icon style, sending an icon click simulation operation instruction to the second robotic arm to cause the second robotic arm to click the single-click function button of the device under test.
5. The method according to claim 1, wherein The method further includes: Determining the overall stability of the device under test according to the number of abnormal operation results that occur during the loop execution of the second simulation operation within a preset time period; Determining the battery life of the device under test according to the duration of the loop execution of the second simulation operation before the battery of the device under test runs out.
6. A VR device testing apparatus, characterized in that, Including: A first control module, configured to send a first simulation operation instruction to the first robotic arm, where the first simulation operation instruction is used to control the first robotic arm to perform a first simulation operation on the device under test so that the device under test displays a test image; Which includes: sending a first movement simulation operation instruction to the first robotic arm, where the first movement simulation operation instruction is used to control the first robotic arm to drive the device under test to perform at least one movement; when it is determined that the image displayed during the movement of the device under test is a test image, sending a pause simulation operation instruction to the first robotic arm, where the pause simulation operation instruction is used to control the first robotic arm to stop driving the device under test to move; A second control module, configured to send a second simulation operation instruction to the second robotic arm, where the second simulation operation instruction is used to control the second robotic arm to drive the device under test to perform a second simulation operation on the test image displayed on the device under test; which includes: the test image includes a test icon; sending a second movement simulation operation instruction to the second robotic arm, where the second movement simulation operation instruction is used to control the second robotic arm to drive the device under test to perform at least one movement; according to the image displayed on the device under test during the movement of the device under test, when it is determined that the cursor corresponding to the device under test moves to the test icon, sending an icon click simulation operation instruction to the second robotic arm to cause the second robotic arm to click the single-click function button of the device under test; A determination module, configured to determine the sensitivity of the display device to be tested according to the response duration of the second simulated operation by the display device to be tested, where the response duration is the time difference between the time when the second robotic arm clicks the single-click function button and the time when the interface corresponding to the test icon pops up.
7. An electronic device, characterized in that, Comprising: At least one processor; And At least one memory communicatively connected to the processor, wherein: The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 5 by invoking the program instructions.
Citation Information
Patent Citations
VR device and VR device detection method
CN109246423A
Receiver sensitivity control circuit of VR system
KR2019990019482U