Method, device and equipment for testing screen state of terminal equipment
The robotic arm simulates the user's hand-held call movements to automatically detect changes in the screen status of the terminal device, solving the problems of high labor costs and subjectivity of detection results in the existing technology, and achieving efficient and accurate success rate testing of screen status changes.
Patent Information
- Application Number
- CN202411059825.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, testing the success rate of screen status changes of terminal equipment requires a large labor cost and time cost, and the test results are highly affected by the subjective factors of the test personnel, and the objectivity of the test results cannot be guaranteed.
The robot arm simulates the user's hand-held call action, carries the terminal device close to or away from the artificial head, collects the number of screen status changes and compares it with the expected results, and uses automated means to count the success rate of screen status changes of the terminal device, including determining the scene to be detected and obtaining Test data and calculate success rate.
It effectively saves labor costs and time costs, eliminates the interference of test personnel's subjective factors on test results, increases the test sample capacity, and improves the accuracy of test results.
Smart Images

Figure CN118803113A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of terminal equipment, and in particular to a method, device and equipment for testing the screen status of a terminal equipment. Background Art
[0002] When the terminal device detects the distance between itself and the user through ultrasonic sensing to execute the call screen-off function, it is necessary to detect and count the screen status changes of the terminal device to ensure that the terminal device does not change the screen status at the wrong time. In a handheld call, the functional detection scenario of the screen status change will include many scenarios, and the minimum number of test samples for a single scenario is more than 100 times. Therefore, in order to meet the user experience of this function, manual testing alone requires a large manpower cost and time cost, and the test results are highly affected by the subjective factors of the test personnel, and the objectivity of the test results cannot be guaranteed. Summary of the invention
[0003] The embodiments of the present invention provide a terminal device screen state testing method, apparatus and device, which are used to solve the problem in the prior art that testing the success rate of terminal device screen state change requires large manpower and time costs.
[0004] In a first aspect, an embodiment of the present invention provides a method for testing a screen status of a terminal device, the method comprising:
[0005] Determine the scene to be detected;
[0006] Acquire test data in the scene to be detected, the test data including the number of triggers and the number of screen state changes;
[0007] The screen state change success rate of the terminal device is determined according to the test data.
[0008] Optionally, determining a scene to be detected includes:
[0009] Setting different types of background noise through an audio output device, wherein the type of the background noise is determined according to the size of the background noise;
[0010] A closed space with the background noise is determined as the scene to be detected.
[0011] Optionally, the acquiring of test data in the scene to be detected includes:
[0012] When the robotic arm carrying the terminal device completes a swing, the trigger count is updated once;
[0013] When a screen state change of the terminal device is detected, the number of screen state changes is updated and counted.
[0014] Optionally, the trigger times include screen-off trigger times and screen-on trigger times;
[0015] When the robotic arm carrying the terminal device completes a swing, the number of screen-off trigger times is updated and counted, including:
[0016] Determining a first swing trajectory of the robotic arm according to a positional relationship between the robotic arm and the artificial head, wherein the first swing trajectory includes a swing angle, a swing direction, a swing distance of the robotic arm, and a holding angle between the robotic arm and the terminal device;
[0017] When the robotic arm completes a swing through the first trajectory, the number of screen-off triggering times is updated and counted once;
[0018] The mechanical arm is used to swing according to the first swing trajectory to bring the carried terminal device close to the artificial head and keep the distance between the terminal device and the artificial head within a communication distance;
[0019] When the robotic arm carrying the terminal device completes a swing, the number of screen-on trigger times is updated and counted, including:
[0020] Determining a second swing trajectory of the robotic arm according to a positional relationship between the robotic arm and the artificial head, the second swing trajectory including a swing angle, a swing direction, a swing distance of the robotic arm, and a holding angle between the robotic arm and the terminal device;
[0021] When the robotic arm completes a swing through the second trajectory, the number of screen light triggering times is updated and counted once;
[0022] The robotic arm is used to swing according to the second swing trajectory to move the carried terminal device away from the artificial head and keep the distance between the terminal device and the artificial head at a non-communication distance.
[0023] Optionally, the number of screen state changes includes the number of screen-on times and the number of screen-off times;
[0024] When detecting that a screen state change occurs on the terminal device, updating and counting the number of screen state changes once includes:
[0025] When the light sensor detects that the screen of the terminal device changes from an off state to a bright state, the number of times the screen is brightened is updated once;
[0026] When the light sensor detects that the screen of the terminal device changes from the on state to the off state, the screen off count is updated once.
[0027] Optionally, determining the screen state change success rate of the terminal device according to the test data includes: the screen state change success rate includes a screen off success rate and a screen on success rate;
[0028] Determine the screen off success rate of the terminal device by the number of screen off times and the number of screen off triggers;
[0029] The screen lighting success rate of the terminal device is determined by the screen lighting times and the screen lighting trigger times.
[0030] Optionally, the method further includes:
[0031] The terminal device is used to transmit ultrasonic waves and receive ultrasonic echoes;
[0032] When the terminal device determines that the distance to the artificial head is a call distance according to the ultrasonic echo, the screen state of the terminal device changes to a screen-off state;
[0033] When the terminal device determines that the distance to the artificial head is a non-communication distance according to the ultrasonic echo, the screen state of the terminal device changes to a bright screen state.
[0034] In a second aspect, an embodiment of the present invention provides a terminal device screen status testing device, the device comprising:
[0035] A first determination module determines a scene to be detected;
[0036] An acquisition module is used to acquire test data in the scene to be detected, wherein the test data includes the number of trigger times and the number of screen state changes;
[0037] The second determination module determines the screen state change success rate of the terminal device according to the test data.
[0038] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0039] at least one processor; and
[0040] at least one memory in communication with the processor, wherein:
[0041] The memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method as described in any one of the first aspects.
[0042] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any method described in the first aspect.
[0043] In the embodiment of the present invention, the robot arm simulates the action of the user holding the phone, and simulates the actual call scene by moving closer and farther away from the artificial head, collects the number of times the terminal device screen status changes and compares it with the expected result, and counts the success rate of the terminal device screen status change. The entire process is fully covered by automated means, without the need for manual testing, effectively saving labor costs and time costs, and eliminating the interference of subjective factors of the test personnel on the test results. At the same time, the detection sample capacity can be increased to improve the accuracy of the test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 The figure is a schematic diagram of the structure of a terminal device screen status testing system provided by an embodiment of the present application;
[0046] Figure 2 The figure is a flow chart of a terminal device screen status testing method provided by an embodiment of the present application;
[0047] Figure 3 The figure is a schematic diagram of the structure of a terminal device screen status testing device provided by an embodiment of the present application;
[0048] Figure 4 Shown is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0050] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0051] Terminal devices usually have a call screen-off function, that is, when the user holds the terminal device close to the head for a voice call, the display interface will be turned off, and the display interface will be re-lit when the user ends the voice call and holds the terminal device away from the head. This can save power of the terminal device and prevent users from accidentally touching the screen during a call.
[0052] In the related art, the terminal device usually detects the distance between the terminal device and the user through a sensor such as an infrared sensor, so as to sense whether the user is making a call based on whether the distance between the terminal device and the user is within the call distance. However, this method requires the setting of separate hardware and will cause more power consumption.
[0053] To solve this problem, the terminal device can also detect the distance between the terminal device and the user through ultrasonic sensing. Ultrasonic sensing is to replace the traditional sensor detection method with ultrasonic detection during the user's hand-held call to realize the screen-on and screen-off operation of the terminal device, which saves / reuses hardware. Therefore, whether the ultrasonic sensing method can accurately sense the distance between the terminal device and the user during the user's hand-held call, thereby controlling the change of the screen state, is the key to improving the user experience.
[0054] In handheld calls, the function detection of screen state changes will include many scenarios, such as the success rate of screen state changes in regular calls, the success rate of screen state changes at different angles, the success rate of screen state changes in different call applications, the success rate of screen state changes under different background noises, etc. Each scenario test sample needs to be tested at least a hundred times. Therefore, in order to meet the user experience of this function, manual testing alone requires a large manpower cost and time cost, and the test results are highly affected by the subjective factors of the testers, and the objectivity of the test results cannot be guaranteed.
[0055] In order to effectively solve the above-mentioned manual testing problem, an embodiment of the present invention provides an automated terminal device screen status testing method, which realizes automated detection of screen status changes during a handheld call during testing, greatly reduces labor costs, and effectively improves work efficiency.
[0056] like Figure 1 FIG. 1 is a schematic diagram of a terminal device screen status test system provided by an embodiment of the present invention. Figure 1 The terminal device screen state test system includes: an audio output device 101, a mechanical arm 102, a terminal device 103, a light sensor 104 and a host computer 105. In addition, the terminal device screen state test system also includes an artificial head for simulating a user's head. The terminal device is held on the mechanical arm, and the host computer establishes communication connections with the terminal device, the mechanical arm, the audio output device and the light sensor, respectively, and can perform information interaction.
[0057] The audio output device 101 is used to output different types of background noise to simulate the interference of environmental noise on ultrasonic waves in real scenes. The audio output device can output different types of background noise based on the size of the background noise.
[0058] The mechanical arm 102 is used to hold the terminal device to simulate the user's hand-held call action. The mechanical arm swings by holding the terminal device, and moves closer to or away from the artificial head used to simulate the user's head, so that the terminal device triggers the screen state change.
[0059] The terminal device 103 is deployed on the mechanical arm, and moves closer to or farther from the artificial head by swinging the mechanical arm. The terminal device is used to transmit ultrasonic waves and receive ultrasonic echoes. When the distance to the artificial head is determined to be a communication distance by ultrasonic echoes, the screen state is changed from a bright screen state to a dark screen state; when the distance to the artificial head is determined to be a non-communication distance by ultrasonic echoes, the screen state is changed from a dark screen state to a bright screen state.
[0060] The light sensor 104 is used to identify and count the screen brightness of the terminal device. By identifying whether the screen of the terminal device changes from on to off or from off to on, it is determined whether the terminal device has completed the screen state change and the number of screen state changes is counted.
[0061] The host computer 105 is used to obtain test data, that is, to obtain the trigger times of the mechanical arm completing the swing and the screen state change times of the terminal device, and to determine the screen state change success rate of the terminal device accordingly. The host computer is also used to control the background noise output by the audio output device and the swing trajectory of the mechanical arm, and to receive the statistical results of the light sensor.
[0062] Combination Figure 1 The terminal device screen status test system shown in FIG. Figure 2 As shown, a terminal device screen status test method provided by an embodiment of the present invention is applied to Figure 1 The host computer 105 shown in FIG. Figure 2 The specific steps of the method include:
[0063] S201, determining a scene to be detected.
[0064] Specifically, build in a closed space Figure 1 The terminal device screen status test system shown is used as the scene to be tested.
[0065] Among them, since the environmental noise will cause certain interference to the ultrasonic wave when the user is actually making a handheld call, resulting in a low accuracy rate of the terminal device detecting the distance between the user and the ultrasonic wave, different types of background noise are set through the audio output device to simulate the environmental noise, so as to test the terminal device's distance detection accuracy in different noise scenarios.
[0066] The audio output device outputs different types of background noise. The type of background noise is determined by the size of the background noise. Depending on the size of the background noise, multiple types of background noise can be output, such as quiet, noisy, and bustling.
[0067] Each type of background noise is set with a corresponding decibel threshold. For example, 0-40 decibels can be set as a quiet type of background noise, 40-80 decibels can be set as a noisy type of background noise, and above 80 decibels can be set as a loud type of background noise.
[0068] Generally, you can use high-fidelity speakers as audio output devices.
[0069] S202, obtaining test data in a scene to be detected, wherein the test data includes a triggering number and a screen state changing number.
[0070] Specifically, when the robotic arm carrying the terminal device completes a swing, the trigger count is updated once; when a screen state change of the terminal device is detected, the screen state change count is updated once.
[0071] Among them, the number of triggers includes the number of screen-off triggers when the handheld terminal device is close to the head when the user answers the call, and the number of screen-on triggers when the handheld terminal device is far away from the head when the user hangs up the call.
[0072] When determining the number of screen-off triggering times, the first swing trajectory of the robotic arm is set according to the positional relationship between the robotic arm and the artificial head. The first swing trajectory specifically includes the swing angle, swing direction, swing distance of the robotic arm, and the holding angle between the robotic arm and the terminal device. The robotic arm is used to swing according to the planned first swing trajectory to bring the held terminal device close to the artificial head and keep the distance between the terminal device and the artificial head at a talking distance to complete the screen-off triggering. The number of screen-off triggering times is updated once the robotic arm completes a swing through the first trajectory.
[0073] When determining the number of times the screen is triggered, the second swing trajectory of the robotic arm is set according to the positional relationship between the robotic arm and the artificial head. The second swing trajectory specifically includes the swing angle, swing direction, swing distance of the robotic arm, and the holding angle between the robotic arm and the terminal device. The robotic arm is used to swing according to the planned second swing trajectory to move the held terminal device away from the artificial head, and keep the distance between the terminal device and the artificial head at a non-talking distance, thereby completing the triggering of the screen. The number of screen triggers is updated once the robotic arm completes a swing through the second trajectory. The second trajectory can be set to the reverse trajectory of the first trajectory, or other trajectories that move the terminal device away from the artificial head.
[0074] Among them, the call distance is a preset distance. When the terminal device determines through ultrasonic echo that the distance between the terminal device and the artificial head is less than or equal to the preset distance, the screen state will be changed to the off state; when the terminal device determines through ultrasonic echo that the distance between the terminal device and the artificial head is greater than the preset distance, the screen state will be changed to the bright screen state.
[0075] Optionally, since different users have different usage habits, and the angle and posture of the user's hand-holding when making a call will affect the test results, in order to simulate the different usage habits of different users, multiple sets of different position relationships between the robotic arm and the artificial head can be set, as well as multiple sets of different first swing trajectories and second swing trajectories can be set to collect multiple sets of test data.
[0076] The number of screen status changes includes the number of times the screen is on and the number of times the screen is off.
[0077] When the light sensor detects that the screen of the terminal device changes from no light to light, that is, changes from the screen-off state to the screen-on state, it is determined that the terminal device has completed lighting the screen, and the number of screen-on times is updated once; when the light sensor detects that the screen of the terminal device changes from light to no light, that is, changes from the screen-on state to the screen-off state, it is determined that the terminal device has completed screen-off, and the number of screen-off times is updated once.
[0078] S203: Determine the screen state change success rate of the terminal device according to the test data.
[0079] Specifically, the number of triggers in the test data is compared with the number of screen state changes to determine the success rate of the screen state change, that is, the success rate of triggering the screen state change each time the robotic arm holds the terminal device close to or away from the artificial head.
[0080] In addition to counting the overall screen state change success rate of the terminal device, the screen turn-on success rate and screen turn-off success rate of the terminal device can also be counted separately. The screen turn-off times and screen turn-off trigger times are compared to determine the screen turn-off success rate of the terminal device; the screen turn-on times and screen turn-on trigger times are compared to determine the screen turn-on success rate of the terminal device.
[0081] Optionally, after completing the statistics of the success rate of the screen state change of the terminal device, the upper computer can automatically generate a test report to show the success rate of the screen state change of the terminal device to the user.
[0082] In the embodiment of the present invention, the robot arm simulates the action of the user holding the phone, and simulates the actual call scene by moving closer and farther away from the artificial head, collects the number of times the terminal device screen status changes and compares it with the expected result, and counts the success rate of the terminal device screen status change. The entire process is fully covered by automated means, without the need for manual testing, effectively saving labor costs and time costs, and eliminating the interference of subjective factors of the test personnel on the test results. At the same time, the detection sample capacity can be increased to improve the accuracy of the test results.
[0083] Corresponding to the above-mentioned terminal device screen status testing method, the present application embodiment also provides a terminal device screen status testing device. Figure 3 , is a structural diagram of a terminal device screen status testing device provided in an embodiment of the present application. The terminal device screen status testing device may include: a first determination module 301, an acquisition module 302 and a second determination module 303.
[0084] The first determination module 301 determines a scene to be detected.
[0085] The acquisition module 302 acquires test data in the scene to be detected, where the test data includes the number of triggers and the number of screen state changes.
[0086] The second determination module 303 determines the screen state change success rate of the terminal device according to the test data.
[0087] Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present specification. Figure 4 As shown, the electronic device may include at least one processor; and at least one memory communicatively connected to the processing unit, wherein: the memory stores program instructions that can be executed by the processing unit, and the processor calls the program instructions to execute the terminal device screen status test method provided in this embodiment.
[0088] The electronic device can be a device capable of intelligently communicating with a user, such as a cloud server, and the specific form of the electronic device is not limited in the embodiments of this specification. It can be understood that the electronic device here is the machine mentioned in the method embodiment.
[0089] Figure 4 A block diagram of an exemplary electronic device suitable for implementing the embodiments of the present description is shown. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of this specification.
[0090] like Figure 4As shown, the electronic device is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors 410, communication interface 420, memory 430, and a communication bus 440 connecting different system components (including memory 430, communication interface 420 and processor 410).
[0091] The communication bus 440 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0092] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0093] The memory 430 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 430 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of each embodiment of the present specification.
[0094] A program / utility having a set (at least one) of program modules may be stored in memory 430, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described in this specification.
[0095] The processor 410 executes various functional applications and data processing by running the programs stored in the memory 430, such as implementing the terminal device screen status testing method provided in the embodiment shown in this specification.
[0096] An embodiment of the present specification provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the terminal device screen status testing method provided by the embodiment shown in the present specification.
[0097] The above-mentioned non-transitory computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (Read Only Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (Erasable Programmable Read Only Memory; hereinafter referred to as: EPROM) or flash memory, 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, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0098] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0099] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0100] Computer program code for performing the operations of this specification may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0101] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0102] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this specification, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0103] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of this specification belong.
[0104] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0105] It should be noted that the terminals involved in the embodiments of this specification may include but are not limited to personal computers (Personal Computer; hereinafter referred to as: PC), personal digital assistants (Personal Digital Assistant; hereinafter referred to as: PDA), wireless handheld devices, tablet computers (Tablet Computer), mobile phones, MP3 players, MP4 players, etc.
[0106] In the embodiments provided in this specification, 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 only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0107] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0108] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of this specification.
[0109] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A terminal device screen status testing method, characterized in that: The method comprises: Determine the scene to be detected; Acquire test data in the scene to be detected, the test data including the number of triggers and the number of screen state changes; The screen state change success rate of the terminal device is determined according to the test data.
2. The method according to claim 1, characterized in that The determining of the scene to be detected includes: Setting different types of background noise through an audio output device, wherein the type of the background noise is determined according to the size of the background noise; A closed space with the background noise is determined as the scene to be detected.
3. The method according to claim 1, characterized in that: The acquiring of test data in the scene to be detected includes: When the robotic arm carrying the terminal device completes a swing, the trigger count is updated once; When a screen state change of the terminal device is detected, the number of screen state changes is updated and counted.
4. The method according to claim 3, characterized in that The trigger times include screen-off trigger times and screen-on trigger times; When the robotic arm carrying the terminal device completes a swing, the number of screen-off trigger times is updated and counted, including: Determining a first swing trajectory of the robotic arm according to a positional relationship between the robotic arm and the artificial head, wherein the first swing trajectory includes a swing angle, a swing direction, a swing distance of the robotic arm, and a holding angle between the robotic arm and the terminal device; When the robotic arm completes a swing through the first trajectory, the number of screen-off triggering times is updated and counted once; The mechanical arm is used to swing according to the first swing trajectory to bring the carried terminal device close to the artificial head and keep the distance between the terminal device and the artificial head within a communication distance; When the robotic arm carrying the terminal device completes a swing, the number of screen light triggers is updated and counted, including: Determining a second swing trajectory of the robotic arm according to a positional relationship between the robotic arm and the artificial head, the second swing trajectory including a swing angle, a swing direction, a swing distance of the robotic arm, and a holding angle between the robotic arm and the terminal device; When the robotic arm completes a swing through the second trajectory, the number of screen light triggering times is updated and counted once; The robotic arm is used to swing according to the second swing trajectory to move the carried terminal device away from the artificial head and keep the distance between the terminal device and the artificial head at a non-communication distance.
5. The method according to claim 3, characterized in that: The number of screen status changes includes the number of screen on times and screen off times; When detecting that a screen state change occurs on the terminal device, updating and counting the number of screen state changes once includes: When the light sensor detects that the screen of the terminal device changes from an off state to a bright state, the number of times the screen is brightened is updated once; When the light sensor detects that the screen of the terminal device changes from the on state to the off state, the screen off count is updated once.
6. The method according to claim 1, characterized in that The determining the screen state change success rate of the terminal device according to the test data includes: the screen state change success rate includes a screen off success rate and a screen on success rate; Determine the screen off success rate of the terminal device by the number of screen off times and the number of screen off triggers; The screen lighting success rate of the terminal device is determined by the screen lighting times and the screen lighting trigger times.
7. The method according to claim 1, characterized in that The method further comprises: The terminal device is used to transmit ultrasonic waves and receive ultrasonic echoes; When the terminal device determines that the distance to the artificial head is a call distance according to the ultrasonic echo, the screen state of the terminal device changes to a screen-off state; When the terminal device determines that the distance to the artificial head is a non-communication distance according to the ultrasonic echo, the screen state of the terminal device changes to a bright screen state.
8. A terminal device screen status testing device, characterized in that: The device comprises: A first determination module determines a scene to be detected; An acquisition module is used to acquire test data in the scene to be detected, wherein the test data includes the number of trigger times and the number of screen state changes; The second determination module determines the screen state change success rate of the terminal device according to the test data.
9. An electronic device, characterized in that: include: at least one processor; as well as at least one memory in communication with 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 7 by calling the program instructions.
10. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
