Application program testing method, device, computer equipment and storage medium

By detecting the optical signal emitted by the terminal device, the difference between the transmission time of the control signal and the detection time of the optical signal is calculated, and the problem of low accuracy in the measurement of the control delay time in the prior art is solved, and an objective evaluation of the application performance is achieved. and test performance improvements.

CN114064443BActive Publication Date: 2024-12-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010748537.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-30
Publication Date
2024-12-20
Estimated Expiration
2040-07-30

AI Technical Summary

Technical Problem

In the prior art, the control delay time of applications is mainly measured by human subjective feelings, with low accuracy and it is difficult to objectively reflect the smoothness and equipment adaptability of applications.

Method used

By sending a control signal to the terminal device and sending an optical signal that meets the specific target conditions when the terminal device responds to data through the application, the optical signal is detected by using a photosensitive sensor to calculate the time difference between the time point of the control signal transmission and the time point of the optical signal detection. to determine the duration of the control delay.

Benefits of technology

Quantitative measurement of application control delay is realized, the objective accuracy and test performance of test results are improved, and the ability to evaluate application performance is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064443B_ABST
    Figure CN114064443B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an application testing method, device, computer equipment and storage medium, which belongs to the field of computer technology. The method includes: sending a control signal to a terminal device, the terminal device is used to respond to the control signal through an application to obtain response data, and then emit a light signal that meets the first target condition in the process of displaying the response data; detecting the light signal emitted by the terminal device; determining the time difference between the first time point of sending the control signal and the second time point of detecting the light signal that meets the first target condition as the control delay duration, and the control delay of the test application can be determined according to the control delay duration, so as to realize the quantification of the control delay, so that the test result of the application is more objective and accurate, and the test performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an application testing method, apparatus, computer equipment, and storage medium. Background Art

[0002] With the development of computer technology, there are more and more types of applications, such as game applications, multimedia applications or social applications. Among them, there will be control delays during the operation of applications. Control delay refers to the process from sending a control signal to the application to the application responding to the control signal, which takes a certain amount of time. The length of the control delay can reflect the fluency of the application, or the adaptability of the computer device running the application to the application, etc., which has important research significance. However, the current control delay is measured by people's subjective feelings, and the accuracy is low. Summary of the invention

[0003] The embodiments of the present application provide an application testing method, apparatus, computer equipment and storage medium, which can improve the accuracy of application testing. The technical solution is as follows:

[0004] In one aspect, a method for testing an application is provided, the method comprising:

[0005] Sending a control signal to a terminal device, wherein the terminal device is used to respond to the control signal through an application program to obtain response data, and then emit a light signal that meets a first target condition during the process of displaying the response data;

[0006] detecting an optical signal emitted by the terminal device;

[0007] The time difference between a first time point at which the control signal is sent and a second time point at which the light signal satisfying the first target condition is detected is determined as the control delay duration.

[0008] Optionally, the first target condition is that the intensity of the light signal is greater than the target intensity; or,

[0009] The first target condition is that the variation amplitude of the optical signal is greater than the target amplitude;

[0010] The first target condition is that the color of the light signal is a target color.

[0011] Optionally, determining a time difference between a first time point at which the control signal is sent and a second time point at which the light signal satisfying the first target condition is detected as a control delay duration includes:

[0012] converting the optical signal into an electrical signal;

[0013] The time difference between the first time point of sending the control signal and the second time point of obtaining the electrical signal that meets the second target condition is determined as the control delay duration, and the second target condition refers to the condition satisfied by the electrical signal corresponding to the optical signal that meets the first target condition.

[0014] Optionally, sending a control signal to a terminal device includes:

[0015] Sending the control signal to the terminal device at reference time intervals;

[0016] The step of determining a time difference between a first time point of sending the control signal and a second time point of detecting an optical signal that meets the first target condition as a control delay duration includes:

[0017] For each control signal sent, the time difference between a first time point at which the control signal is sent and a corresponding second time point is determined as the control delay duration corresponding to the control signal.

[0018] Optionally, after determining the time difference between the first time point of sending the control signal and the second time point of detecting the light signal that meets the first target condition as the control delay duration, the method further includes:

[0019] Displays the delay duration of the operation.

[0020] In another aspect, a method for testing an application is provided, the method comprising:

[0021] Receive control signals sent by the test equipment through the application;

[0022] Responding to the control signal through the application program to obtain response data;

[0023] During the process of displaying the response data, an optical signal satisfying a first target condition is emitted; the test device is used to detect the optical signal emitted by the terminal device, and the time difference between a first time point of sending the control signal and a second time point of detecting the optical signal satisfying the first target condition is determined as the control delay duration.

[0024] Optionally, the first target condition is that the intensity of the light signal is greater than the target intensity; or,

[0025] The first target condition is that the variation amplitude of the optical signal is greater than the target amplitude;

[0026] The first target condition is that the color of the light signal is a target color.

[0027] Optionally, after emitting a light signal satisfying a first target condition during the process of displaying the response data, the method further comprises:

[0028] After the duration of emitting the light signal satisfying the first target condition reaches the target duration during the process of displaying the response data, an light signal not satisfying the first target condition is emitted.

[0029] Optionally, in the process of responding to the control signal, sending at least one feedback signal to the test device according to the current response progress includes at least one of the following:

[0030] When receiving the control signal, sending a first feedback signal to the test device;

[0031] When the response data is acquired, a second feedback signal is sent to the test device;

[0032] The response data is decoded, and when the decoded response data is obtained, a third feedback signal is sent to the test device.

[0033] On the other hand, a test device is provided, the test device comprising a test board and a photosensitive sensor, the test board is connected to the photosensitive sensor, and the test board is connected to a terminal device;

[0034] The test board is used to send a control signal to the terminal device; the terminal device is used to respond to the control signal through an application program to obtain response data, and then emit an optical signal that meets the first target condition during the process of displaying the response data;

[0035] The photosensor is used to detect the optical signal emitted by the terminal device;

[0036] The photosensor is further used to convert the optical signal into an electrical signal and send the electrical signal to the test board;

[0037] The test board is also used to determine the time difference between a first time point of sending the control signal and a second time point of receiving an electrical signal that meets a second target condition as a control delay duration, wherein the second target condition refers to a condition satisfied by the electrical signal corresponding to the optical signal that meets the first target condition.

[0038] Optionally, the photosensor is further used to convert the optical signal into an analog signal and send the analog signal to the test board; or,

[0039] The photosensor is also used to convert the optical signal into an analog signal, convert the analog signal into a digital signal, and send the digital signal to the test board.

[0040] Optionally, the test board is used to send the control signal to the terminal device at a reference time interval;

[0041] The test board is also used to determine, for each control signal sent, a time difference between a first time point at which the control signal is sent and a corresponding second time point as a control delay duration corresponding to the control signal.

[0042] Optionally, the test board includes a handle simulator, a control processor, a communication interface and a light transmission interface, the handle simulator is connected to the terminal device via the communication interface, and the control processor is connected to the photosensor via the light reading interface;

[0043] The handle simulator is used to send the control signal to the terminal device through the communication interface, and send the control signal to the control processor;

[0044] The photosensor is further used to send the electrical signal to the control processor through the light transmission interface;

[0045] The control processor is used to receive the control signal and the electrical signal;

[0046] The control processor is further used to determine the time difference between a first time point of receiving the control signal and a second time point of receiving the electrical signal that meets the second target condition as the control delay duration.

[0047] Optionally, the test board further comprises a display screen, and the display screen is connected to the control processor;

[0048] The control processor is further used to send the control delay time to the display screen;

[0049] The display screen is used to receive the control delay time and display the control delay time.

[0050] Optionally, the test board further includes a control processing interface, and the control processor is connected to the terminal device through the control processing interface; the terminal device is also used to send at least one feedback signal to the test device according to the current response progress during the process of responding to the control signal;

[0051] The control processor is further configured to receive the at least one feedback signal through the control processing interface;

[0052] The control processor is further configured to determine a time difference between each two adjacent time points among the first time point, at least one third time point for receiving the at least one feedback signal, and the second time point.

[0053] Optionally, the handle simulator is used to send a first manipulation signal to the terminal device when a target triggering operation is detected;

[0054] The handle simulator is further used to send a second control signal to the terminal device when the target trigger operation is not detected.

[0055] Optionally, the test device further comprises an oscilloscope, the oscilloscope is connected to the test board, and the oscilloscope is connected to the photosensor;

[0056] The test board is further used to send the control signal to the oscilloscope while sending the control signal to the terminal device;

[0057] The oscilloscope is used to receive the control signal and display a first waveform of the control signal;

[0058] The photosensor is further used to send the electrical signal to the oscilloscope;

[0059] The oscilloscope is further used to receive the electrical signal and display a second waveform of the electrical signal;

[0060] The oscilloscope is further used to determine, in the first waveform, a first coordinate point at which the second control signal switches to the first control signal; in the second waveform, determine a second coordinate point corresponding to an electrical signal that meets a second target condition; and determine the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point as the control delay duration.

[0061] Optionally, the oscilloscope includes a first probe and a second probe, the oscilloscope is connected to the test board through the first probe, and the oscilloscope is connected to the photosensor through the second probe.

[0062] On the other hand, a test system is provided, the test system comprising a test device and a terminal device, the test device being connected to the terminal device;

[0063] The test device is used to send a control signal to the terminal device;

[0064] The terminal device is configured to, after obtaining response data by responding to the control signal through the application program, emit a light signal satisfying a first target condition during the process of displaying the response data;

[0065] The test device is further used to detect the optical signal emitted by the terminal device;

[0066] The testing device is further used to determine the time difference between a first time point of sending the control signal and a second time point of detecting the optical signal that meets the first target condition as the control delay duration.

[0067] Optionally, the testing device is also used to convert the optical signal into an electrical signal; and determine the time difference between a first time point of sending the control signal and a second time point of acquiring the electrical signal that satisfies a second target condition as the control delay duration, wherein the second target condition refers to the condition satisfied by the electrical signal corresponding to the optical signal that satisfies the first target condition.

[0068] Optionally, the test device is further configured to send the first manipulation signal to the terminal device when a target trigger operation is detected; or send the second manipulation signal to the terminal device when the target trigger operation is not detected;

[0069] The terminal device is further configured to, after obtaining response data by responding to the first control signal through the application program, emit a light signal satisfying the first target condition during a process of displaying the response data;

[0070] The testing device is further used to determine the time difference between a first time point of sending the first control signal and a second time point of detecting the optical signal that meets the first target condition as the control delay duration.

[0071] Optionally, the application includes a local application and a cloud application, and the test system further includes an application server;

[0072] The terminal device is further used to send the control signal to the application server through the local application;

[0073] The application server is used to obtain response data corresponding to the control signal through the cloud application and return the response data;

[0074] The terminal device is also used to receive the response data through the local application.

[0075] Optionally, the application server is further used to encode the response data through the cloud application and send the encoded response data to the terminal device;

[0076] The terminal device is further used to decode the response data through the local application to obtain decoded response data.

[0077] Optionally, the local application is a local game application, the cloud application is a cloud game application, and the application server is used to render the game screen corresponding to the control signal through the cloud game application, obtain game screen data, and return the game screen data;

[0078] The terminal device is used to receive the game screen data through the local game application.

[0079] Optionally, the terminal device is further configured to send at least one feedback signal to the test device according to a current response progress during a process of responding to the control signal;

[0080] The test device is also used to receive at least one feedback signal sent by the terminal device; determine the time difference between each two adjacent time points among the first time point, at least one third time point for receiving the at least one feedback signal, and the second time point.

[0081] Optionally, the test device is further used to send a handle simulation signal to the terminal device through a configured handle simulator.

[0082] In another aspect, an application testing device is provided, the device comprising:

[0083] A signal sending module, used for sending a control signal to a terminal device, wherein the terminal device is used for responding to the control signal through an application program to obtain response data, and then sending a light signal that meets a first target condition during the process of displaying the response data;

[0084] A signal detection module, used to detect the optical signal emitted by the terminal device;

[0085] The delay determination module is used to determine the time difference between a first time point of sending the control signal and a second time point of detecting the light signal that meets the first target condition as the control delay duration.

[0086] Optionally, the first target condition is that the intensity of the light signal is greater than the target intensity; or,

[0087] The first target condition is that the variation amplitude of the optical signal is greater than the target amplitude;

[0088] The first target condition is that the color of the light signal is a target color.

[0089] Optionally, the delay determination module includes:

[0090] A signal conversion unit, used for converting the optical signal into an electrical signal;

[0091] The first delay determination unit is used to determine the time difference between a first time point of sending the control signal and a second time point of obtaining an electrical signal that meets a second target condition as the control delay duration, wherein the second target condition refers to a condition satisfied by the electrical signal corresponding to the optical signal that meets the first target condition.

[0092] Optionally, the signal sending module includes:

[0093] A first signal sending unit, configured to send the control signal to the terminal device at a reference time interval;

[0094] The delay determination module comprises:

[0095] The second delay determination unit is used to determine, for each control signal sent, a time difference between a first time point at which the control signal is sent and a corresponding second time point as a control delay duration corresponding to the control signal.

[0096] Optionally, the control signal includes a first control signal and a second control signal, and the signal sending module includes:

[0097] A second signal sending unit, configured to send the first control signal to the terminal device when a target triggering operation is detected;

[0098] The second signal sending unit is further configured to send the second control signal to the terminal device when the target triggering operation is not detected;

[0099] The terminal device is used for, after obtaining response data by responding to the first control signal through the application, emitting a light signal satisfying the first target condition in the process of displaying the response data;

[0100] The delay determination module comprises:

[0101] The third delay determination unit is used to determine the time difference between the first time point of sending the first control signal and the second time point of detecting the optical signal that meets the first target condition as the control delay duration.

[0102] Optionally, the device further comprises:

[0103] A waveform display module, used for displaying the first waveform of the control signal;

[0104] The waveform display module is further used to display a second waveform corresponding to the optical signal;

[0105] The delay determination module comprises:

[0106] a coordinate point determination unit, configured to determine, in the first waveform, a first coordinate point at which the second control signal switches to the first control signal;

[0107] The coordinate point determination unit is further used to determine, in the second waveform, a second coordinate point corresponding to the optical signal that meets the first target condition;

[0108] The fourth delay determination unit is used to determine the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point as the control delay duration.

[0109] Optionally, the device further comprises:

[0110] a signal receiving module, configured to receive at least one feedback signal sent by the terminal device, wherein the at least one feedback signal is returned by the terminal device according to a response progress in a process in which the terminal device responds to the control signal;

[0111] The delay determination module is further used to determine the time difference between every two adjacent time points among the first time point, the third time point of receiving the at least one feedback signal, and the second time point.

[0112] Optionally, the device further comprises:

[0113] The delay display module is used to display the delay duration of the control.

[0114] Optionally, the signal sending module includes:

[0115] The third signal sending unit is used to send a handle simulation signal to the terminal device through a configured handle simulator.

[0116] In another aspect, an application testing device is provided, the device comprising:

[0117] A signal receiving module, used for receiving a control signal sent by a test device through an application program;

[0118] A signal response module, used to respond to the control signal through the application program to obtain response data;

[0119] The display module is used to emit an optical signal that meets the first target condition during the process of displaying the response data; the test device is used to detect the optical signal emitted by the terminal device, and determine the time difference between the first time point of sending the control signal and the second time point of detecting the optical signal that meets the first target condition as the control delay duration.

[0120] Optionally, the first target condition is that the intensity of the light signal is greater than the target intensity; or,

[0121] The first target condition is that the variation amplitude of the optical signal is greater than the target amplitude;

[0122] The first target condition is that the color of the light signal is a target color.

[0123] Optionally, the display module is further configured to emit a light signal that does not meet the first target condition after the duration of emitting the light signal that meets the first target condition reaches a target duration during the process of displaying the response data.

[0124] Optionally, the application includes a local application and a cloud application, and the signal response module includes:

[0125] A signal sending unit, configured to send the control signal to an application server through the local application; the application server is configured to obtain response data corresponding to the control signal through the cloud application and return the response data;

[0126] A data receiving unit is used to receive the response data through the local application.

[0127] Optionally, the application server is used to encode the response data through the cloud application and send the encoded response data to the terminal device; the apparatus further includes:

[0128] The data decoding module is used to decode the response data through the local application to obtain decoded response data.

[0129] Optionally, the local application is a local game application, the cloud application is a cloud game application, and the application server is used to render the game screen corresponding to the control signal through the cloud game application, obtain game screen data, and return the game screen data;

[0130] The data receiving unit is used to receive the game screen data through the local game application.

[0131] Optionally, the device further comprises:

[0132] The signal sending module is used to send at least one feedback signal to the test device according to the current response progress during the process of responding to the control signal.

[0133] Optionally, the signal sending module includes at least one of the following:

[0134] A first sending unit, configured to send a first feedback signal to the test device upon receiving the control signal;

[0135] A second sending unit, configured to send a second feedback signal to the test device when the response data is acquired;

[0136] The third sending unit is used to decode the response data and send a third feedback signal to the test device when the decoded response data is obtained.

[0137] Optionally, the signal response module includes:

[0138] an information acquisition unit, configured to respond to the control signal through the application program to obtain screen display information, wherein the screen display information includes the response data and light signal attribute information, wherein the light signal attribute information is used to indicate a light signal that meets the first target condition;

[0139] The display module comprises:

[0140] The display unit is used to display according to the screen display information, so as to emit a light signal that meets the first target condition during the process of displaying the response data.

[0141] On the other hand, a testing device is provided, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed in the application testing method described in the above aspects.

[0142] On the other hand, a terminal device is provided, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed in the application testing method described in the above aspects.

[0143] On the other hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed in the application testing method described in the above aspects.

[0144] On the other hand, a computer program product or a computer program is provided, wherein the computer program product or the computer program includes a computer program code, wherein the computer program code is stored in a computer-readable storage medium, wherein a processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device implements the operations performed in the application testing method described in the above aspects.

[0145] The method, apparatus, computer equipment and storage medium provided in the embodiments of the present application cooperate with each other through the test equipment and the terminal equipment, the test equipment sends a control signal at a first time point, the terminal equipment sends an optical signal that meets the first target condition when the application displays the response data to the control signal, to indicate that the application completes the response to the control signal, and the test equipment performs optical signal detection on the terminal equipment to determine the second time point when the terminal equipment sends the optical signal that meets the first target condition. The time difference between the first time point when the control signal is sent and the time when the terminal equipment sends the optical signal that meets the first target condition is the control delay duration of the application, and the control delay of the test application can be determined based on the control delay duration, thereby realizing the quantification of the control delay, making the test results of the application more objective and accurate, and improving the test performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0146] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0147] Figure 1 It is an architectural diagram of a test system provided in an embodiment of the present application.

[0148] Figure 2 This is an architecture diagram of another test system provided in an embodiment of the present application.

[0149] Figure 3 This is an architecture diagram of another test system provided in an embodiment of the present application.

[0150] Figure 4 This is an architecture diagram of another test system provided in an embodiment of the present application.

[0151] Figure 5 It is a flowchart of an application testing method provided in an embodiment of the present application.

[0152] Figure 6 It is a flowchart of another application testing method provided in an embodiment of the present application.

[0153] Figure 7 It is a flowchart of another application testing method provided in an embodiment of the present application.

[0154] Figure 8 It is a schematic diagram of a signal waveform provided in an embodiment of the present application.

[0155] Fig. 9It is a flowchart of another application testing method provided in an embodiment of the present application.

[0156] Fig.10 It is a structural schematic diagram of a testing device provided in an embodiment of the present application.

[0157] Fig.11 It is a structural schematic diagram of another testing device provided in an embodiment of the present application.

[0158] Fig.12 It is a structural diagram of an application testing device provided in an embodiment of the present application.

[0159] Fig.13 It is a structural diagram of another application testing device provided in an embodiment of the present application.

[0160] Fig.14 It is a structural diagram of another application testing device provided in an embodiment of the present application.

[0161] Fig.15 It is a structural diagram of another application testing device provided in an embodiment of the present application.

[0162] Fig.16 It is a structural diagram of a terminal device provided in an embodiment of the present application.

[0163] Fig.17 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0164] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0165] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of this application, a first time point may be referred to as a second time point, and similarly, a second time point may be referred to as a first time point.

[0166] Among them, at least one refers to one or more than one, for example, at least one feedback signal can be one feedback signal, two feedback signals, three feedback signals, or any integer greater than or equal to one. Each refers to each of at least one, for example, each control signal refers to each control signal of multiple control signals, and if the multiple control signals are 3 control signals, each control signal refers to each control signal of the 3 control signals.

[0167] Figure 1 This is an architecture diagram of a test system provided in an embodiment of the present application, see Figure 1 The test system includes: a test device 101 and a terminal device 102. A communication connection is established between the test device 101 and the terminal device 102, and an application is running in the terminal device 102. Through the interaction between the test device 101 and the terminal device 102, the application running in the terminal device is tested.

[0168] The terminal device 102 includes a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. Fig.10 The test device 1000 is similar to that in FIG. 1 and will not be described here.

[0169] Figure 2 is an architecture diagram of another test system provided in an embodiment of the present application, see Figure 2 The test system includes: a test device 201, a terminal device 202 and an application server 203. A communication connection is established between the test device 201 and the terminal device 202, and a communication connection is established between the terminal device 202 and the application server 203.

[0170] Among them, a local application is running in the terminal device 202, and a cloud application is running in the application server 203. The local application is associated with the cloud application. Through the interaction between the test device 201, the terminal device 202 and the application server 203, the local application and the cloud application are tested.

[0171] The application server 203 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, the terminal device 202 is directly or indirectly connected to the application server 203 via wired or wireless communication, which is not limited in this application. The test device 201 is connected to the following Fig.10 The test device 1000 is similar to that in FIG. 1 and will not be described here.

[0172] Figure 3 is an architecture diagram of another test system provided in an embodiment of the present application, see Figure 3The test system includes: a test device 301, a terminal device 302 and an application server 303. The test device 301 includes a handle 311, a photosensor 321 and an oscilloscope 331. The oscilloscope 331 includes a first probe 3311 and a second probe 3312. The first probe 3311 is connected to the photosensor 321, and the second probe 3312 is connected to the handle 311. The handle 311 is connected to the terminal device 302, and the photosensor 321 is placed at the display screen of the terminal device 302. The terminal device 302 establishes a communication connection with the application server 303 through a network.

[0173] Figure 4 is an architecture diagram of another test system provided in an embodiment of the present application, see Figure 4 The terminal device 401 runs a local application, the application server 402 is connected to the terminal device 401 via a network card, and the application server 402 runs a cloud application. The handle 403 is connected to the terminal device 401 via Bluetooth, or the handle 403 is connected to the terminal device 401 via USB (Universal Serial Bus). The test board 404 is connected to the handle 403 and the light sensor 405.

[0174] It should be noted that Figure 4 The system framework is only illustrated by taking the connection between the handle 403 and the test board 404 as an example. In another possible implementation, the test board 404 is configured with a handle simulator, and signal transmission is performed with the application in the terminal device 401 through the handle simulator.

[0175] In the above Figure 1 , Figure 2 , Figure 3 or Figure 4 Based on the test system shown, the application testing method provided in the following embodiment is executed. Figure 5 This is a flow chart of an application testing method provided by an embodiment of the present application. The execution subject of the embodiment of the present application is a testing device, see Figure 5 , the method comprising:

[0176] 501. Send a control signal to the terminal device.

[0177] An application is running in the terminal device, and the test device establishes a connection with the terminal device through the application. The test device sends a control signal to the terminal device, and the control signal is a control signal for the application, which is used to instruct the terminal device to respond to the control signal through the application. The terminal device receives the control signal through the application, responds to the control signal, obtains response data corresponding to the control signal, and displays the response data, and emits a light signal that meets the first target condition in the process of displaying the response data.

[0178] The application includes a game application, a multimedia playback application, or a social application, etc. Taking the application as a game application, the control signal is a signal for controlling the game scene, such as controlling the movement of a virtual character in the game scene or performing other operations, etc. The terminal device receives the control signal, parses the control signal, obtains corresponding game screen data, renders the game screen data, and displays the rendered game screen.

[0179] Among them, the first target condition is set by the terminal device. The first target condition is set to make the optical signal emitted by the terminal device when displaying response data different from the optical signal emitted when not displaying response data, so that it is possible to determine whether the terminal device is displaying response data based on the optical signal emitted by the terminal device.

[0180] 502. Detect an optical signal emitted by a terminal device.

[0181] When the test device sends a control signal to the terminal device, it starts to detect the terminal device to detect the optical signal emitted by the terminal device so as to determine whether the terminal device displays response data.

[0182] 503. Determine a time difference between a first time point at which the control signal is sent and a second time point at which the light signal meeting the first target condition is detected as a control delay duration.

[0183] Among them, the first time point when the test device sends the control signal is the time point when the test device requests the terminal device to respond, and the second time point when the test device detects the optical signal that meets the first target condition is the time point when the terminal displays the response data, that is, the time point when the terminal completes the response to the control signal. Therefore, the time difference between the first time point and the second time point is the control delay time length of the terminal device responding to the control signal through the application. According to the control delay time length, the control delay of the application can be determined, thereby completing the delay test of the application.

[0184] The method provided in the embodiment of the present application is that the test device and the terminal device cooperate with each other, the test device sends a control signal at a first time point, the terminal device sends an optical signal that meets the first target condition when the application displays the response data to the control signal, to indicate that the application has completed the response to the control signal, and the test device detects the optical signal of the terminal device to determine the second time point when the terminal device sends the optical signal that meets the first target condition. The time difference between the first time point when the control signal is sent and the time when the terminal device sends the optical signal that meets the first target condition is the control delay duration of the application. The control delay of the test application can be determined based on the control delay duration, which realizes the quantification of the control delay, makes the test results of the application more objective and accurate, and improves the test performance.

[0185] Figure 6 This is a flow chart of an application testing method provided by an embodiment of the present application. The execution subject of the embodiment of the present application is a terminal device, see Figure 6 , the method comprising:

[0186] 601. Receive a control signal sent by a test device through an application.

[0187] An application is running in the terminal device, and the test device establishes a connection with the terminal device through the application. The test device sends a control signal to the terminal device, which is a control signal for the application and is used to instruct the terminal device to respond to the control signal through the application, and the terminal device receives the control signal through the application.

[0188] 602. Respond to the control signal through the application program to obtain response data.

[0189] 603. In the process of displaying the response data, emit a light signal that meets the first target condition.

[0190] The terminal device displays the response data, and emits an optical signal that meets the first target condition during the process of displaying the response data. When the test device sends the control signal, it starts to detect the optical signal emitted by the terminal device. Therefore, when the terminal device displays the response data, the test device can detect the optical signal that meets the first target condition. The test device determines the time difference between the first time point of sending the control signal and the second time point of detecting the optical signal that meets the first target condition as the control delay duration. According to the control delay duration, the control delay of the application can be determined, thereby completing the delay test of the application.

[0191] The first target condition is the same as the first target condition in the above step 501 and will not be described again.

[0192] The method provided in the embodiment of the present application is that the test device and the terminal device cooperate with each other, the test device sends a control signal at a first time point, the terminal device sends an optical signal that meets the first target condition when the application displays the response data to the control signal, to indicate that the application has completed the response to the control signal, and the test device detects the optical signal of the terminal device to determine the second time point when the terminal device sends the optical signal that meets the first target condition. The time difference between the first time point when the control signal is sent and the time when the terminal device sends the optical signal that meets the first target condition is the control delay duration of the application. The control delay of the test application can be determined based on the control delay duration, which realizes the quantification of the control delay, makes the test results of the application more objective and accurate, and improves the test performance.

[0193] Figure 7 is a flowchart of another application testing method provided by an embodiment of the present application. The interactive subjects of the embodiment of the present application are the test device and the terminal device, see Figure 7 , the method comprising:

[0194] 701. The test device sends a control signal to the terminal device.

[0195] The test device is associated with an application running in the terminal device, and a connection is established with the terminal device through the application. The test device sends a control signal to the terminal device, which is a control signal for the application, and is used to instruct the terminal device to respond to the control signal through the application.

[0196] In a possible implementation, the control signal includes a first control signal and a second control signal. The test device sends the first control signal to the terminal device when a target trigger operation is detected, and sends the second control signal to the terminal device when no target trigger operation is detected.

[0197] The first control signal indicates that the terminal device responds, and the second control signal indicates that the terminal device does not need to respond. For example, the first control signal is a control signal with a level of 1, and the second control signal is a control signal with a level of 0. The target trigger operation is a trigger operation set by the test device, such as pressing a test button in the test device.

[0198] Optionally, the test device includes a test button, and the target trigger operation is a trigger operation on the test button. When the tester wants to perform a test, the test button is triggered, and the handle detects the trigger operation on the test button, and then sends a first control signal to the terminal device. If the handle does not detect the trigger operation on the test button, then a second control signal is sent to the terminal device.

[0199] In another possible implementation, the control signal includes a first control signal and a second control signal, and the test device periodically sends the control signal to the terminal device. The test device sends the first control signal to the terminal device once every first time period, and sends the second control signal to the terminal device once every second time period, and the first time period is greater than the second time period. For example, the test device sends the first control signal to the terminal device once every 5 seconds, 10 seconds, or 15 seconds, and sends the second control signal to the terminal device once every 1 millisecond, 3 milliseconds, or 8 milliseconds.

[0200] In another possible implementation, the test device periodically sends a control signal to the terminal device, for example, the test device sends a control signal to the terminal device every 1 millisecond, 3 milliseconds, or 8 milliseconds. Before sending the control signal to the terminal device, the test device determines whether a target trigger operation is currently detected. If a target trigger operation is currently detected, the test device sends a first control signal to the terminal device this time. If no target trigger operation is currently detected, the test device sends a second control signal to the terminal device this time.

[0201] In another possible implementation, the test device sends a handle simulation signal to the terminal device through a configured handle simulator.

[0202] Among them, the test device is configured with a handle simulator, which is used to generate and send a handle simulation signal. The handle simulator is a handle simulation program in the test device, or a handle device configured in the test device, or a handle simulator in other forms, which is not limited in the embodiments of the present application. The handle simulation signal is a signal generated by the handle simulator, which is used to simulate the signal input by the handle device. The handle simulation signal is sent to the terminal device, which can simulate the effect of the handle device inputting the signal on the terminal device, thereby controlling the application in the terminal device so that the application responds to the handle simulation signal.

[0203] Optionally, the handle simulation signal is a game handle simulation signal, which is used to simulate the signal input by a game handle device. Sending the game handle simulation signal to the terminal device can simulate the effect of the game handle device inputting the signal on the terminal device, thereby controlling the game application in the terminal device so that the game application responds to the game handle simulation signal.

[0204] 702. The terminal device receives a control signal sent by the test device through an application.

[0205] 703. The terminal device responds to the control signal through the application program and obtains response data.

[0206] The response data is data corresponding to the control signal. For example, when the application is a game application, the response data corresponding to the control signal includes game screen data, etc.; when the application is a multimedia data playback application, the response data corresponding to the control signal includes multimedia data, etc.; when the application is a social application, the response data corresponding to the control signal includes interactive data or shared data, etc.

[0207] In one possible implementation, the application includes a local application and a cloud application. A local application is running in the terminal device, and the local application is associated with a cloud application, and the cloud application is running in an application server. The cloud application in the application server provides services for the local application in the terminal device. The terminal device receives the control signal, and sends the control signal to the application server through the local application. The application server receives the control signal sent by the terminal device through the cloud application, obtains response data corresponding to the control signal, and returns the response data. The terminal device receives the response data returned by the application server through the local application.

[0208] Among them, when the terminal device receives the control signal, it does not need to parse the control signal, but uploads the control signal to the application server through the local application, and the cloud application in the application server parses the control signal, obtains the response data corresponding to the control signal, and returns the response data to the terminal device. In other words, the terminal device only needs to receive and upload the instruction, and does not need to directly respond to the control signal, but indirectly obtains the response data corresponding to the control signal through the application server.

[0209] Optionally, the application server encodes the response data through the cloud application and sends the encoded response data to the terminal device; after receiving the response data through the local application, the terminal device decodes the response data to obtain the decoded response data.

[0210] After the application server obtains the response data corresponding to the control signal through the cloud application, it encodes the response data to obtain the encoded response data, and transmits the encoded response data to the terminal device through the network. The terminal device receives the encoded response data through the local application, and decodes the response data to obtain the decoded response data.

[0211] Optionally, the local application is divided according to function, and the local application includes a signal receiving module, a network sending module, a network receiving module, a video decoding module and an analysis module. Among them, the signal receiving module is used to receive the control signal sent by the test device. The network sending module is used to convert the received control signal into a protocol format and send it to the application server through the network. The network receiving module is used to receive the response data sent by the application server. The video decoding module is used to decode the response data and send it to the system video memory of the terminal device. The analysis module is used to set the sending time of the feedback signal so as to analyze and locate the delay distribution.

[0212] Optionally, the application is a game application, the local application is a local game application, the cloud application is a cloud game application, the application server renders the game screen corresponding to the control signal through the cloud game application, obtains the game screen data, and returns the game screen data. The terminal device receives the game screen data through the local game application.

[0213] In the scenario of a cloud gaming application, the response data corresponding to the control signal is the game screen data, and the test device includes a game controller corresponding to the game application. The tester presses the button in the game controller so that the test device obtains the control signal and sends the control signal to the terminal device in a wired or wireless manner. After the terminal device obtains the control signal through the local gaming application, it transmits the control signal to the application server via the Internet. The application server obtains the control signal through the cloud gaming application, parses the control signal, renders the game screen, obtains the game screen data, encodes and compresses the game screen data, and transmits the encoded game screen data to the terminal device through the network. The terminal device receives the downstream game screen data through the local gaming application, decodes the game screen data, obtains the decoded game screen data, and displays the game screen data.

[0214] In another possible implementation, the terminal device directly parses the control signal through an application program to obtain response data corresponding to the control signal without obtaining the response data through other devices.

[0215] 704. The terminal device sends out an optical signal that meets the first target condition while displaying the response data.

[0216] When the terminal device obtains the response data corresponding to the control signal, the response data is displayed through the display screen of the terminal device, and in the process of displaying the response data, the display screen emits a light signal that meets the first target condition.

[0217] The first target condition is set by the terminal device, or is set by the terminal device and the test device together. The first target condition is set to make the optical signal emitted by the terminal device when displaying the response data different from the optical signal emitted when not displaying the response data, so that the test device can determine whether the terminal device is displaying the response data according to the optical signal emitted by the terminal device, that is, determine when the terminal device completes responding to the control signal according to the optical signal emitted by the terminal device.

[0218] In a possible implementation, the first target condition is that the intensity of the optical signal is greater than the target intensity. The terminal emits an optical signal with an intensity not greater than the target intensity when no response data is displayed, and emits an optical signal with an intensity greater than the target intensity when the response data is displayed.

[0219] Alternatively, the first target condition is that the variation amplitude of the optical signal is greater than the target amplitude. Then the terminal emits an optical signal in the process of displaying the response data, so that the variation amplitude of the optical signal is greater than the target amplitude compared with the optical signal emitted when the response data is not displayed, wherein the variation amplitude refers to the variation amplitude of the intensity of the optical signal. For example, the intensity of the optical signal emitted by the terminal in the process of not displaying the response data is the first intensity, and the intensity of the optical signal emitted in the process of displaying the response data is the second intensity, and the difference between the second intensity and the first intensity is the variation amplitude of the optical signal.

[0220] Alternatively, the first target condition is that the color of the light signal is the target color. The terminal device emits a light signal of the target color during the process of displaying the response data, and emits a light signal of a color other than the target color during the process of not displaying the response data.

[0221] In another possible implementation, the terminal device emits a light signal that does not meet the first target condition after the duration of the light signal that meets the first target condition during the process of displaying the response data reaches the target duration. The terminal device emits a light signal that meets the first target condition during the process of displaying the response data. When the terminal device determines that the duration of emitting the light signal reaches the target duration, the emitted light signal is switched so that the emitted light signal does not meet the first target condition. That is, when displaying the response data, the terminal device emits a light signal that meets the first target condition within the target duration. The target duration is set by the terminal device, for example, 0.5 seconds, 1 second, or 2 seconds.

[0222] In another possible implementation, the control signal includes a first control signal and a second control signal. The first control signal instructs the terminal device to respond, and the second control signal instructs the terminal device not to respond. For example, the first control signal is an electrical signal with a level of 1, and the electrical signal with a level of 1 can trigger the terminal device to perform a corresponding operation, and the second control signal is an electrical signal with a level of 0, and the electrical signal with a level of 0 cannot trigger the terminal device to perform other operations.

[0223] In the above steps 703-704, when the terminal receives the control signal, if the control signal is the first control signal, the terminal responds to the first control signal through the application program to obtain response data, and then emits a light signal that meets the first target condition during the process of displaying the response data. If the control signal received by the terminal is the second control signal, the control signal is not processed.

[0224] In another possible implementation, the above step 703 includes: the terminal device responds to the control signal through the application program to obtain screen display information, and the screen display information includes response data and light signal attribute information. The light signal attribute information is used to indicate a light signal that meets the first target condition. The light signal attribute information includes RGB (Red Green Blue, red, green, and blue) values, or YUV (Y represents brightness, U and V represent chromaticity) values, or includes other types of light signal attribute information. The light signal generated according to the light signal attribute information meets the first target condition.

[0225] Correspondingly, the above-mentioned step 704 includes: the terminal device displays according to the screen display information, and since the screen display information includes response data, the terminal device can display the response data when displaying according to the screen display information, and since the screen display information includes optical signal attribute information, the terminal device can determine the optical signal to be displayed according to the optical signal attribute information, and can emit the optical signal indicated by the optical signal attribute information when displaying according to the screen display information, thereby achieving the effect of emitting an optical signal that meets the first target condition in the process of displaying the response data.

[0226] 705. The test equipment detects the optical signal emitted by the terminal equipment.

[0227] The test equipment performs optical signal detection on the terminal equipment so as to detect the optical signal emitted by the terminal equipment.

[0228] In a possible implementation, the test device starts to detect the optical signal of the terminal device before sending the control signal to the terminal device, or the test device starts to detect the optical signal of the terminal device when sending the control signal to the terminal device. Then the test device can detect the optical signal that meets the first target condition when the terminal device displays the response data, and the optical signal that the terminal device sends when it does not display the response data.

[0229] In a possible implementation, the test device performs optical signal detection on the terminal device to obtain the intensity of the optical signal emitted by the terminal device. Alternatively, the test device performs optical signal detection on the terminal device to obtain the color of the optical signal emitted by the terminal device. Alternatively, the test device performs optical signal detection on the terminal device to obtain other information of the optical signal emitted by the terminal device, which is not limited in the embodiments of the present application.

[0230] 706. The testing device determines the time difference between the first time point of sending the control signal and the second time point of detecting the light signal that meets the first target condition as the control delay duration.

[0231] Among them, the first time point when the test device sends the control signal is the time point when the test device requests the terminal device to respond to the control signal. Since the terminal device sends an optical signal that meets the first target condition in the process of displaying the response data corresponding to the control signal, the second time point when the test device detects the optical signal that meets the first target condition is the time point when the terminal displays the response data, that is, the time point when the terminal completes the response to the control signal. Therefore, the time difference between the first time point and the second time point is the control delay duration for the terminal device to respond to the control signal through the application. According to the control delay duration, the control delay of the application can be determined, thereby completing the delay test of the application.

[0232] In one possible implementation, the testing device converts the detected optical signal into an electrical signal, and determines the time difference between a first time point when the control signal is sent and a second time point when the electrical signal that meets the second target condition is obtained as the control delay duration.

[0233] The test device detects the optical signal, converts the optical signal into an electrical signal, and determines the time point when the electrical signal is acquired as the time point when the optical signal is detected. Therefore, the test device determines the second time point when the electrical signal that meets the second target condition is acquired as the second time point when the optical signal that meets the first target condition is detected. The second time point when the test device acquires the electrical signal that meets the second target condition is the time point when the terminal displays the response data, that is, the time point when the terminal completes the response to the control signal. Therefore, the time difference between the first time point and the second time point when the electrical signal that meets the second target condition is acquired is the control delay duration for the terminal device to respond to the control signal through the application.

[0234] The second target condition refers to the condition satisfied by the electrical signal corresponding to the optical signal that satisfies the first target condition. When the optical signal satisfies the first target condition, the optical signal is converted into an electrical signal, and the electrical signal satisfies the second target condition; when the optical signal does not satisfy the first target condition, the optical signal is converted into an electrical signal, and the electrical signal does not satisfy the second target condition. Optionally, the second target condition is that the amplitude of the electrical signal is greater than the target amplitude, or the amplitude change amplitude of the electrical signal is greater than the target amplitude change amplitude, or the second target condition is other types of conditions, and it is only necessary to satisfy that the second target condition corresponds to the first target condition.

[0235] In another possible implementation, when the test device sends a control signal, the first time point of sending the control signal is stored, and when the test device detects an optical signal that meets the first target condition, the second time point of detecting the optical signal is stored. When the test device wants to determine the control delay duration of the application, the stored first time point and second time point are determined, the time difference between the first time point and the second time point is obtained, and the time difference is determined as the control delay duration.

[0236] In another possible implementation, the control signal sent by the test device includes a first control signal and a second control signal. When the terminal obtains the first control signal, it responds to the first control signal to obtain response data, and sends a light signal that meets the first target condition in the process of displaying the response data. When the terminal obtains the second control signal, it does not respond to the second control signal. Then the test device determines the time difference between the first time point when the first control signal is sent and the second time point when the light signal that meets the first target condition is detected as the control delay duration.

[0237] Optionally, the test device displays a first waveform of the control signal and a second waveform corresponding to the light signal. In the first waveform, a first coordinate point at which the second control signal switches to the first control signal is determined, and in the second waveform, a second coordinate point corresponding to the light signal that meets the first target condition is determined, and the difference between the abscissa of the first coordinate point and the abscissa of the second coordinate point is determined as the control delay duration.

[0238] While sending the control signal, the test device displays the first waveform of the control signal in real time, and the first waveform represents the change of the control signal over time. While detecting the optical signal emitted by the terminal device, the test device displays the second waveform corresponding to the optical signal in real time, and the second waveform represents the change of the optical signal over time. Among them, since the first control signal is different from the second control signal, the waveform of the first control signal is different from the waveform of the second control signal, then the test device can determine the first coordinate point at which the second control signal switches to the first control signal from the first waveform according to the change of the first waveform, and the time point at which the second control signal switches to the first control signal is the time point at which the test device sends the first control signal to the terminal device. Among them, since the waveform corresponding to the optical signal that meets the first target condition is different from the waveform corresponding to the optical signal that does not meet the first target condition, the test device can determine the second coordinate point corresponding to the optical signal that meets the first target condition from the second waveform according to the change of the second waveform.

[0239] Among them, the horizontal coordinates of the first waveform and the second waveform represent time, and the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point is the time difference between the first time point of sending the first control signal and the second time point of detecting the optical signal that meets the first target condition. Therefore, the test equipment determines the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point as the control delay duration.

[0240] Optionally, the horizontal coordinate of the first coordinate point is the first time point when the test device sends the first control signal, and the horizontal coordinate of the second coordinate point is the second time point when the test device detects the light signal that meets the first target condition. Optionally, the test device sets the horizontal coordinate of the first coordinate point to 0, and uses the horizontal coordinate of the first coordinate point as a reference starting point, and the horizontal coordinate of the second coordinate point is the time difference between the first time point and the second time point.

[0241] like Figure 8As shown, the solid line represents the first waveform, and the dotted line represents the second waveform. The coordinate point 801 at the first turning point of the first waveform is the first coordinate point where the second control signal is switched to the first control signal. The coordinate point 802 at the first turning point of the second waveform is the second coordinate point corresponding to the optical signal that meets the first target condition. The difference between the horizontal coordinate of the coordinate point 801 and the horizontal coordinate of the coordinate point 802 is the control delay duration.

[0242] It should be noted that the embodiment of the present application only describes the process of sending a control signal once. In another embodiment, the test device sends a control signal to the terminal device at a reference time interval, and the terminal device responds to each received control signal. Then, for each control signal sent, the test device determines the time difference between the first time point of sending the control signal and the corresponding second time point as the control delay duration corresponding to the control signal.

[0243] The time point when the test device sends the control signal is the first time point, and the time point when the light signal that meets the first target condition is first detected after sending the control signal is the second time point corresponding to the first time point.

[0244] 707. The test equipment displays the operation delay duration.

[0245] When the test device obtains the control delay duration, it displays the control delay duration so that the tester can intuitively view the control delay duration of the application and understand the control delay situation of the application.

[0246] It should be noted that the embodiment of the present application only describes the process of obtaining the control delay time from sending a control signal to completing the response to the control signal. In another embodiment, the process from sending a control signal to completing the response to the control signal includes multiple stages such as receiving the control signal, obtaining the response data, and decoding the response data. Each stage will cause a control delay. In order to facilitate understanding of the control delay at each stage, the terminal device sends at least one feedback signal to the test device according to the current response progress during the process of responding to the control signal. The test device receives at least one feedback signal sent by the terminal device, determines a third time point for receiving at least one feedback signal, and then determines the time difference between each two adjacent time points in the first time point, the third time point for receiving at least one feedback signal, and the second time point.

[0247] The testing device arranges the first time point, at least one third time point and the second time point in chronological order, and determines the time difference between every two adjacent time points in the chronological order to obtain multiple time differences, which are the control delay durations corresponding to multiple stages in the response process.

[0248] In a possible implementation, in the process of responding to the control signal, the terminal device sends at least one feedback signal to the test device according to the current response progress, including at least one of the following:

[0249] (1) When the terminal device receives the control signal, it sends a first feedback signal to the test device.

[0250] (2) When the terminal device obtains the response data sent by the application server, it sends a second feedback signal to the test device.

[0251] (3) The terminal device decodes the response data and sends a third feedback signal to the test device when obtaining the decoded response data.

[0252] For example, the terminal device sends a first feedback signal, a second feedback signal, and a third feedback signal to the test device respectively. The test device receives the first feedback signal, the second feedback signal, and the third feedback signal in chronological order.

[0253] The test equipment determines the time difference between the first time point of sending the control signal and the third time point of receiving the first feedback signal. The time difference is the control delay duration from sending the control signal to receiving the control signal. Based on the control delay duration, the control delay situation in the process of sending the control signal to receiving the control signal can be determined.

[0254] The test equipment determines the time difference between the third time point of receiving the first feedback signal and the third time point of receiving the second feedback signal. The time difference is the control delay duration from receiving the control signal to obtaining the response data corresponding to the control signal. Based on the control delay duration, the control delay situation in the process of receiving the control signal to obtaining the corresponding response data can be determined.

[0255] The test equipment determines the time difference between the third time point of receiving the second feedback signal and the third time point of receiving the third feedback signal. The time difference is the control delay duration from obtaining the response data to decoding the response data. Based on the control delay duration, the control delay situation in the process of decoding the response data can be determined.

[0256] The test equipment determines the time difference between the fourth time point of receiving the third feedback signal and the second time point. The time difference is the control delay duration from obtaining the decoded response data to displaying the response data. Based on the control delay duration, the control delay situation in the process from obtaining the decoded response data to displaying the response data can be determined.

[0257] By analyzing the control delay duration of each stage, it is possible to determine which stages mainly affect the control delay duration of the application, thereby finding out the reasons why the control delay duration of the application is too long, so as to optimize the application.

[0258] Fig. 9 It is a flowchart of another application testing method provided in an embodiment of the present application, wherein the testing device includes a handle 901, a testing board 905, and a light sensor 906. A local application 902 is running in the terminal device, the terminal device includes a display screen 904, and a cloud application 903 is running in the application server.

[0259] When a button of the handle 901 is pressed, the handle 901 sends a control signal to the local application 902 and the test board 905 in the terminal device.

[0260] The test board 905 records the time point of receiving the control signal. The local application 902 sends the control signal to the cloud application 903 in the application server. The cloud application 903 obtains the response data corresponding to the control signal, sends the response data to the local application 902, and the local application 902 transmits the response data to the display screen 904. The display screen 904 displays the response data, and the photosensitive sensor 906 detects the light signal emitted by the display screen 904 when displaying the response data, converts the light signal into an electrical signal, and sends it to the test board 905. The test board 905 records the time point of receiving the electrical signal. After that, the test board 905 determines the control delay duration based on the time point of receiving the control signal and the time point of receiving the electrical signal.

[0261] In the method provided by the embodiment of the present application, the test device and the terminal device cooperate with each other, the test device sends a control signal at a first time point, and the terminal device sends an optical signal that meets the first target condition when the application displays the response data to the control signal to indicate that the application has completed the response to the control signal, and the test device performs optical signal detection on the terminal device to determine the second time point when the terminal device sends the optical signal that meets the first target condition. The time difference between the first time point when the control signal is sent and the time when the terminal device sends the optical signal that meets the first target condition is the control delay duration of the application. The control delay of the test application can be determined based on the control delay duration, which realizes the quantification of the control delay, makes the test results of the application more objective and accurate, and improves the test performance.

[0262] In addition, the test device sends a control signal to the terminal device at reference time intervals, thereby initiating multiple control delay tests and obtaining multiple control delay durations. The control delay of the application is determined based on the multiple control delay durations, thereby avoiding the problem of inaccurate control delay durations caused by only performing a single control delay test, thereby further improving the accuracy of the test application.

[0263] Moreover, during the process of testing the application, the test device can vividly display the changes of the control signal and the optical signal by displaying the first waveform of the control signal and the second waveform corresponding to the optical signal, thereby intuitively reflecting the control delay of the application on the control signal.

[0264] In addition, the test equipment determines the time difference between each two adjacent time points among the first time point, the third time point of receiving at least one feedback signal, and the second time point. The multiple time differences obtained are the time spent in multiple stages in the response process, thereby determining the control delay duration of each stage. The control delay duration of each stage can be subsequently analyzed to determine which stages mainly affect the control delay duration of the application, thereby finding the reason why the control delay duration of the application is too long, so as to optimize the application.

[0265] In addition, the test device displays the control delay duration so that the tester can intuitively view the control delay duration of the application and understand the control delay situation of the application.

[0266] Fig.10 1 is a schematic diagram of the structure of a test device 1000 provided in an embodiment of the present application. The test device 1000 can be used to execute the steps executed by the test device in the above-mentioned application testing method.

[0267] like Fig.10 As shown, the testing device 1000 includes a testing board 1001 and a photosensor 1002 .

[0268] The test board 1001 is connected to the photosensitive sensor 1002, and the test board 1001 is also connected to the terminal device. Among them, the test board 1001 is a printed circuit board with a test function, and the photosensitive sensor 1002 is a sensor with a function of detecting light signals. The photosensitive sensor 1002 is placed at the display screen 1051 of the terminal device to detect the light signal emitted by the display screen 1051. The test board 1001 is used to send a control signal to the terminal device. After the terminal device responds to the control signal through the application to obtain response data, it emits a light signal that meets the first target condition during the process of displaying the response data. The photosensitive sensor 1002 is used to detect the light signal emitted by the terminal device, convert the light signal into an electrical signal, and send the electrical signal to the test board 1001. The test board 1001 is also used to determine the time difference between the first time point of sending the control signal and the second time point of receiving the electrical signal that meets the second target condition as the control delay duration. Among them, the second target condition refers to the condition satisfied by the electrical signal corresponding to the light signal that meets the first target condition.

[0269] Optionally, the photosensitive sensor 1002 is used to convert the optical signal into an analog signal, and send the analog signal to the test board 1001; or, the photosensitive sensor 1002 is used to convert the optical signal into an analog signal, convert the analog signal into a digital signal, and send the digital signal to the test board 1001. For example, the photosensitive sensor 1002 converts the analog signal that meets the second target condition into a digital signal with an amplitude of 1, and converts the analog signal that does not meet the second target condition into a digital signal with an amplitude of 0. Thus, the test board 1001 can determine whether the optical signal emitted by the terminal device is an optical signal that meets the first target condition based on the received digital signal, thereby determining whether the application responds to the control signal.

[0270] Optionally, the test board 1001 is used to send a control signal to the terminal device at intervals of a reference duration. The test board 1001 is also used to determine, for each control signal sent, the time difference between the first time point at which the control signal is sent and the corresponding second time point as the control delay duration corresponding to the control signal. Optionally, a test button is provided in the test board 1001, and when the test board 1001 detects a triggering operation on the test button, a control signal is sent to the terminal device once at intervals of a reference duration. Alternatively, when the test board 1001 is in a powered-on state, a control signal is sent to the terminal device once at intervals of a reference duration.

[0271] In a possible implementation, the test board 1001 includes a handle simulator 1011, which is connected to a terminal device. The handle simulator 1011 is used to send a handle simulation signal to the terminal device, and the handle simulation signal is used to simulate a signal input by the handle device.

[0272] In one possible implementation, the test board 1001 includes a handle simulator 1011, a control processor 1021, a communication interface 1031 and a light transmission interface 1041. The handle simulator 1011 is connected to the terminal device via the communication interface 1031, and the control processor 1021 is connected to the photosensor 1002 via the light reading interface.

[0273] The handle simulator 1011 is used to send a control signal to the terminal device through the communication interface 1031, and to send a control signal to the control processor 1021. The photosensitive sensor 1002 is used to send an electrical signal to the control processor 1021 through the light transmission interface 1041. The control processor 1021 is used to receive the control signal and the electrical signal, and determine the time difference between the first time point of receiving the control signal and the second time point of receiving the electrical signal that meets the second target condition as the control delay duration.

[0274] Optionally, the handle simulator 1011 is used to send a first control signal to the terminal device when a target trigger operation is detected; the handle simulator 1011 is also used to send a second control signal to the terminal device when no target trigger operation is detected.

[0275] Optionally, the test board 1001 further includes a display screen 1051, and the display screen 1051 is connected to the control processor 1021. The control processor 1021 is further configured to send the control delay time to the display screen 1051. The display screen 1051 is configured to receive the control delay time and display the control delay time.

[0276] Optionally, the test board 1001 further includes a control processing interface 1061, through which the control processor 1021 is connected to the terminal device, and the control processing interface 1061 is used to transmit a feedback signal. In the process of the terminal device responding to the control signal, at least one feedback signal is sent to the test device 1000 according to the current response progress. The control processor 1021 is also used to receive at least one feedback signal through the control processing interface 1061, and determine the time difference between each two adjacent time points in the first time point, at least one third time point at which at least one feedback signal is received, and the second time point.

[0277] In another possible implementation, the test device 1000 also includes an oscilloscope 1003, which is connected to the test board 1001, and the oscilloscope 1003 is also connected to the photosensor 1002. Among them, the test board 1001 is also used to send a control signal to the oscilloscope 1003 while sending a control signal to the terminal device. The photosensor 1002 is also used to send an electrical signal to the oscilloscope 1003. The oscilloscope 1003 is used to receive a control signal, display a first waveform of the control signal, and receive an electrical signal, and display a second waveform of the electrical signal. The oscilloscope 1003 is also used to determine, in the first waveform, a first coordinate point at which the second control signal switches to the first control signal, and in the second waveform, determine a second coordinate point corresponding to the electrical signal that meets the second target condition, and determine the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point as the control delay duration.

[0278] Optionally, the oscilloscope 1003 includes a first probe 1013 and a second probe 1023 , the oscilloscope 1003 is connected to the test board 1001 via the first probe 1013 , and the oscilloscope 1003 is connected to the photosensitive sensor 1002 via the second probe 1023 .

[0279] In another possible implementation, Fig.11 As shown, the test device 1100 is divided according to the function, and the test device 1100 includes a handle simulation unit 1101, a control processing unit 1102, an interface unit 1103 and a display unit 1104. Among them, the interface unit 1103 includes a USB / BT (Universal Serial Bus / Bluetooth) interface subunit 1113, a GPIO (General Purpose Input Output) interface subunit 1123 and a light sensing reading subunit 1133. Among them, the interface unit 1103 is connected to the handle simulation unit 1101 through the USB / BT interface subunit 1113, and the interface unit 1103 is also connected to the control processing unit 1102 through the GPIO interface subunit 1123 and the light sensing reading subunit 1133, the handle simulation unit 1101 is connected to the control processing unit 1102, and the control processing unit 1102 is connected to the display unit 1104.

[0280] The handle simulation unit 1101 is used to generate a control signal and send the control signal to the USB / BT interface subunit 1113 and the control processing unit 1102 .

[0281] Interface unit 1103: used to send control signals to the terminal device through the USB / BT interface sub-unit 1113, receive feedback signals returned by the terminal device through the GPIO interface sub-unit 1123, and convert optical signals emitted by the terminal device into electrical signals through the optical reading sub-unit 1133, and send them to the control processing unit 1102.

[0282] The control processing unit 1102 is used to determine the control delay time according to the time point of receiving the control signal and the electrical signal, and send the control delay time to the display unit 1104 .

[0283] Display unit 1104: used to display the received control delay time.

[0284] Fig.12 is a schematic diagram of the structure of an application testing device provided in an embodiment of the present application. Fig.12 , the device comprises:

[0285] The signal sending module 1201 is used to send a control signal to the terminal device, and the terminal device is used to respond to the control signal through the application program to obtain response data, and then send a light signal that meets the first target condition during the process of displaying the response data;

[0286] A signal detection module 1202, used to detect an optical signal emitted by a terminal device;

[0287] The delay determination module 1203 is used to determine the time difference between the first time point of sending the control signal and the second time point of detecting the light signal that meets the first target condition as the control delay duration.

[0288] Alternatively, see Fig.13 , the first target condition is that the intensity of the light signal is greater than the target intensity; or, the first target condition is that the amplitude of the change of the light signal is greater than the target amplitude; the first target condition is that the color of the light signal is the target color.

[0289] Alternatively, see Fig.13 The delay determination module 1203 includes:

[0290] A signal conversion unit 1213, used to convert the optical signal into an electrical signal;

[0291] The first delay determination unit 1223 is used to determine the time difference between the first time point of sending the control signal and the second time point of obtaining the electrical signal that meets the second target condition as the control delay duration, where the second target condition refers to the condition that the electrical signal corresponding to the optical signal that meets the first target condition meets.

[0292] Alternatively, see Fig.13 , the signal sending module 1201 includes:

[0293] The first signal sending unit 1211 is used to send a control signal to the terminal device at a reference time interval;

[0294] The delay determination module 1203 includes:

[0295] The second delay determining unit 1233 is used to determine, for each sent control signal, a time difference between a first time point at which the control signal is sent and a corresponding second time point as a control delay duration corresponding to the control signal.

[0296] Alternatively, see Fig.13 The control signal includes a first control signal and a second control signal. The signal sending module 1201 includes:

[0297] The second signal sending unit 1221 is used to send a first control signal to the terminal device when a target triggering operation is detected;

[0298] The second signal sending unit 1221 is further configured to send a second control signal to the terminal device when no target triggering operation is detected;

[0299] The terminal device is used to respond to the first control signal through the application program to obtain response data, and then emit a light signal that meets the first target condition during the process of displaying the response data;

[0300] The delay determination module 1203 includes:

[0301] The third delay determining unit 1243 is used to determine the time difference between the first time point of sending the first control signal and the second time point of detecting the light signal that meets the first target condition as the control delay duration.

[0302] Alternatively, see Fig.13 , the device further comprises:

[0303] A waveform display module 1204, used to display a first waveform of a control signal;

[0304] The waveform display module 1204 is also used to display a second waveform corresponding to the optical signal;

[0305] The delay determination module 1203 includes:

[0306] A coordinate point determination unit 1253, configured to determine, in the first waveform, a first coordinate point at which the second control signal is switched to the first control signal;

[0307] The coordinate point determination unit 1253 is further used to determine, in the second waveform, a second coordinate point corresponding to the optical signal that meets the first target condition;

[0308] The fourth delay determining unit 1263 is configured to determine the difference between the abscissa of the first coordinate point and the abscissa of the second coordinate point as the control delay duration.

[0309] Alternatively, see Fig.13 , the device further comprises:

[0310] The signal receiving module 1205 is used to receive at least one feedback signal sent by the terminal device, where the at least one feedback signal is returned according to the response progress in the process in which the terminal device responds to the control signal;

[0311] The delay determination module 1203 is further configured to determine a time difference between every two adjacent time points among the first time point, the third time point at which at least one feedback signal is received, and the second time point.

[0312] Alternatively, see Fig.13 , the device further comprises:

[0313] The delay display module 1206 is used to display the operation delay duration.

[0314] Alternatively, see Fig.13 , the signal sending module 1201 includes:

[0315] The third signal sending unit 1231 is used to send a handle simulation signal to the terminal device through the configured handle simulator.

[0316] It should be noted that: the application testing device provided in the above embodiment only uses the division of the above functional modules as an example when testing the application. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the test device is divided into different functional modules to complete all or part of the functions described above. In addition, the application testing device provided in the above embodiment and the application testing method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0317] The application testing device provided in the embodiment of the present application cooperates with the terminal device to send out a control signal at a first time point, and the terminal device sends out an optical signal that meets the first target condition when the application displays the response data to the control signal, to indicate that the application has completed the response to the control signal, and performs optical signal detection on the terminal device to determine the second time point when the terminal device sends out the optical signal that meets the first target condition. The time difference between the first time point when the control signal is sent out and the time when the terminal device sends out the optical signal that meets the first target condition is the control delay duration of the application. The control delay of the test application can be determined based on the control delay duration, thereby realizing the quantification of the control delay, making the test results of the application more objective and accurate, and improving the test performance.

[0318] Fig.14 is a schematic diagram of the structure of another application testing device provided in an embodiment of the present application. Fig.14 , the device comprises:

[0319] The signal receiving module 1401 is used to receive the control signal sent by the test device through the application program;

[0320] The signal response module 1402 is used to respond to the control signal through the application program and obtain response data;

[0321] The display module 1403 is used to emit an optical signal that meets the first target condition during the process of displaying the response data; the test equipment is used to detect the optical signal emitted by the terminal equipment, and determine the time difference between the first time point of sending the control signal and the second time point of detecting the optical signal that meets the first target condition as the control delay duration.

[0322] Alternatively, see Fig.15 , the first target condition is that the intensity of the light signal is greater than the target intensity; or, the first target condition is that the amplitude of the change of the light signal is greater than the target amplitude; the first target condition is that the color of the light signal is the target color.

[0323] Alternatively, see Fig.15 The display module 1403 is further configured to emit a light signal that does not meet the first target condition after the duration of emitting the light signal that meets the first target condition reaches the target duration during the process of displaying the response data.

[0324] Alternatively, see Fig.15 The application includes a local application and a cloud application. The signal response module 1402 includes:

[0325] The signal sending unit 1412 is used to send a control signal to the application server through the local application; the application server is used to obtain response data corresponding to the control signal through the cloud application and return the response data;

[0326] The data receiving unit 1422 is used to receive response data through a local application.

[0327] Alternatively, see Fig.15 The application server is used to encode the response data through the cloud application and send the encoded response data to the terminal device; the device also includes:

[0328] The data decoding module 1404 is used to decode the response data through the local application to obtain the decoded response data.

[0329] Alternatively, see Fig.15 , the local application is a local game application, the cloud application is a cloud game application, and the application server is used to render the game screen corresponding to the control signal through the cloud game application, obtain the game screen data, and return the game screen data;

[0330] The data receiving unit 1422 is used to receive game screen data through a local game application.

[0331] Alternatively, see Fig.15 , the device further comprises:

[0332] The signal sending module 1405 is used to send at least one feedback signal to the test device according to the current response progress in the process of responding to the control signal.

[0333] Alternatively, see Fig.15 The signal sending module 1405 includes at least one of the following:

[0334] The first sending unit 1415 is used to send a first feedback signal to the test device when receiving the control signal;

[0335] The second sending unit 1425 is used to send a second feedback signal to the test device when the response data is obtained;

[0336] The third sending unit 1435 is configured to decode the response data, and when the decoded response data is obtained, send a third feedback signal to the test device.

[0337] Optionally, the signal response module 1402 includes:

[0338] An information acquisition unit 1432, used to respond to the control signal through an application program to obtain screen display information, where the screen display information includes response data and light signal attribute information, where the light signal attribute information is used to indicate a light signal that meets a first target condition;

[0339] The display module 1403 includes:

[0340] The display unit 1413 is used to display according to the screen display information, so as to emit a light signal that meets the first target condition during the process of displaying the response data.

[0341] It should be noted that: the application testing device provided in the above embodiment only uses the division of the above functional modules as an example when testing the application. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal device is divided into different functional modules to complete all or part of the functions described above. In addition, the application testing device provided in the above embodiment and the application testing method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0342] The application testing device provided in the embodiment of the present application cooperates with the test equipment, and the test equipment sends a control signal at a first time point, and the terminal equipment sends an optical signal that meets the first target condition when the application displays the response data to the control signal, to indicate that the application completes the response to the control signal, and the test equipment detects the optical signal of the terminal equipment to determine the second time point when the terminal equipment sends the optical signal that meets the first target condition. The time difference between the first time point when the control signal is sent and the time when the terminal equipment sends the optical signal that meets the first target condition is the control delay duration of the application, and the control delay of the test application can be determined based on the control delay duration, thereby realizing the quantification of the control delay, making the test results of the application more objective and accurate, and improving the test performance.

[0343] Fig.16 The schematic diagram of the structure of the terminal device 1600 provided in the embodiment of the present application is shown. The terminal device 1600 can be used to execute the steps executed by the terminal device in the above-mentioned application testing method.

[0344] Typically, the terminal device 1600 includes: a processor 1601 and a memory 1602 .

[0345] The processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0346] The memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1602 is used to store at least one program code, which is used by the processor 1601 to implement the application program testing method provided in the method embodiment of the present application.

[0347] In some embodiments, the terminal device 1600 may further optionally include: a peripheral device interface 1603 and at least one peripheral device. The processor 1601, the memory 1602 and the peripheral device interface 1603 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1603 via a bus, a signal line or a circuit board. Optionally, the peripheral device includes: at least one of a radio frequency circuit 1604, a display screen 1605 and a power supply 1606.

[0348] The peripheral device interface 1603 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602, and the peripheral device interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602, and the peripheral device interface 1603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0349] The radio frequency circuit 1604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1604 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1604 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1604 can communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1604 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0350] The display screen 1605 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1605 is a touch display screen, the display screen 1605 also has the ability to collect touch signals on the surface or above the surface of the display screen 1605. The touch signal can be input to the processor 1601 as a control signal for processing. At this time, the display screen 1605 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1605 can be one, arranged on the front panel of the terminal device 1600; in other embodiments, the display screen 1605 can be at least two, respectively arranged on different surfaces of the terminal device 1600 or in a folding design; in other embodiments, the display screen 1605 can be a flexible display screen, arranged on a curved surface or a folding surface of the terminal device 1600. Even, the display screen 1605 can also be arranged as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 1605 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0351] The power supply 1606 is used to power various components in the terminal device 1600. The power supply 1606 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1606 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0352] In some embodiments, the terminal device 1600 further includes one or more sensors 1607 . The one or more sensors 1607 include but are not limited to: an acceleration sensor 1608 , a pressure sensor 1609 , and an optical sensor 1610 .

[0353] The acceleration sensor 1608 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal device 1600. For example, the acceleration sensor 1608 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1601 can control the display screen 1605 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1608. The acceleration sensor 1608 can also be used to collect motion data of games or users.

[0354] The pressure sensor 1609 can be set on the side frame of the terminal device 1600 and / or the lower layer of the display screen 1605. When the pressure sensor 1609 is set on the side frame of the terminal device 1600, it can detect the user's holding signal of the terminal device 1600, and the processor 1601 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1609. When the pressure sensor 1609 is set on the lower layer of the display screen 1605, the processor 1601 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1605. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0355] The optical sensor 1610 is used to collect the ambient light intensity. In one embodiment, the processor 1601 can control the display brightness of the display screen 1605 according to the ambient light intensity collected by the optical sensor 1610. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1605 is increased; when the ambient light intensity is low, the display brightness of the display screen 1605 is reduced. In another embodiment, the processor 1601 can also dynamically adjust the shooting parameters of the camera component 1606 according to the ambient light intensity collected by the optical sensor 1610.

[0356] Those skilled in the art will understand that Fig.16 The structure shown in the figure does not constitute a limitation on the terminal device 1600, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0357] Fig.17 It is a structural diagram of a server provided in an embodiment of the present application. The server 1700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1701 and one or more memories 1702, wherein the memory 1702 stores at least one program code, and the at least one program code is loaded and executed by the processor 1701 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.

[0358] The server 1700 may be used to execute the steps performed by the application server in the above-mentioned application testing method.

[0359] An embodiment of the present application provides a testing device, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the application program testing method of the above embodiment.

[0360] An embodiment of the present application also provides a terminal device, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the application program testing method of the above embodiment.

[0361] An embodiment of the present application also provides a computer-readable storage medium, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the application program testing method of the above embodiment.

[0362] An embodiment of the present application also provides a computer program product or a computer program, which includes a computer program code. The computer program code is stored in a computer-readable storage medium. A processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device implements the application testing method as described in the above embodiment.

[0363] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0364] The above description is only an optional embodiment of the embodiments of the present application and is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.

Claims

1. An application testing method, characterized in that: The method is performed by a test device, the test device comprising a test board, a test button, a photosensor and an oscilloscope, the test board comprising a handle simulation program, the test board being connected to the photosensor, and the oscilloscope being connected to the test board and the photosensor; the method comprises: When the test board detects a trigger operation on the test button, the test board sends a first control signal to the terminal device and the oscilloscope through the handle simulation program; or, when no trigger operation on the test button is detected, the test board sends a second control signal to the terminal device and the oscilloscope through the handle simulation program; the terminal device is used to respond to the first control signal and send the first control signal to the application server through a local application; the application server is used to receive the first control signal through a cloud application, obtain response data corresponding to the first control signal, and return the response data; the terminal device is also used to receive the response data through the local application, and emit a light signal that meets the first target condition in the process of displaying the response data; the terminal device does not need to respond to the second control signal, and the first control signal and the second control signal are used to simulate the signal input by the handle device; The test board receives a first feedback signal sent by the terminal device, where the first feedback signal is sent by the terminal device when the terminal device receives the control signal; The photosensor detects the optical signal emitted by the terminal device, converts the optical signal into an electrical signal, and sends the electrical signal to the test board and the oscilloscope; The test board determines the time difference between each two adjacent time points among a first time point of sending the first control signal, a third time point of receiving the first feedback signal, and a second time point of receiving the electrical signal that meets a second target condition; wherein the electrical signal that meets the second target condition is obtained by converting the optical signal that meets the first target condition; The test board determines the time difference between a first time point of sending the first control signal and a second time point of receiving the electrical signal that meets the second target condition as the control delay duration; The oscilloscope displays a first waveform and a second waveform, the first waveform is the waveform of the first control signal or the second control signal, and the second waveform is the waveform of the electrical signal; wherein, in the first waveform, the first coordinate point at which the second control signal switches to the first control signal represents the first time point, and in the second waveform, the second coordinate point at which the electrical signal switches to meet the second target condition represents the second time point, and the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point represents the control delay duration.

2. An application testing method, characterized in that: Executed by a terminal device, the method includes: Receiving a first control signal and a second control signal sent by a test device through a local application, wherein the first control signal and the second control signal are used to simulate a signal input by a handle device; the test device comprises a test board, a test button, a photosensitive sensor and an oscilloscope, the test board comprises a handle simulation program, and the test board is used to send the first control signal to the terminal device and the oscilloscope through the handle simulation program when a trigger operation on the test button is detected; the test board is also used to send the second control signal to the terminal device and the oscilloscope through the handle simulation program when no trigger operation on the test button is detected; When receiving the first control signal, sending a first feedback signal to the test device, and sending the first control signal to the application server through the local application; the application server is used to obtain response data corresponding to the first control signal through the cloud application, and return the response data; Receiving the response data through the local application; In the process of displaying the response data, an optical signal that meets the first target condition is emitted; the test board in the test device is used to receive the first feedback signal sent by the terminal device; the photosensor in the test device is used to detect the optical signal emitted by the terminal device, convert the optical signal into an electrical signal, and send the electrical signal to the test board and the oscilloscope; the oscilloscope in the test device is used to display a first waveform and a second waveform, the first waveform is the waveform of the first control signal or the second control signal, and the second waveform is the waveform of the electrical signal; the test board in the test device is also used to determine the time difference between each two adjacent time points in the first time point of sending the control signal, the third time point of receiving the first feedback signal, and the second time point of receiving the optical signal of the electrical signal that meets the second target condition, and the electrical signal that meets the second target condition is obtained by converting the optical signal that meets the first target condition; the test board is also used to determine the time difference between the first time point of sending the control signal and the second time point of receiving the electrical signal that meets the second target condition as the control delay duration; Among them, in the first waveform, the first coordinate point where the second control signal switches to the first control signal represents the first time point, in the second waveform, the second coordinate point where the electrical signal switches to meet the second target condition represents the second time point, and the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point represents the control delay duration.

3. The method according to claim 2, characterized in that The application server is used to encode the response data through the cloud application and send the encoded response data to the terminal device; After receiving the response data through the local application, the method further includes: The response data is decoded by the local application to obtain decoded response data.

4. The method according to claim 2, characterized in that: The local application is a local game application, the cloud application is a cloud game application, and the application server is used to render the game screen corresponding to the control signal through the cloud game application, obtain game screen data, and return the game screen data; The receiving the response data through the local application comprises: The game screen data is received through the local game application.

5. The method according to claim 2, characterized in that: The first target condition is that the intensity of the light signal is greater than the target intensity; or, The first target condition is that the variation amplitude of the optical signal is greater than the target amplitude; The first target condition is that the color of the light signal is a target color.

6. The method according to claim 2, characterized in that The application server is used to respond to the control signal through the cloud application to obtain screen display information, wherein the screen display information includes the response data and light signal attribute information, and the light signal attribute information is used to indicate the light signal that meets the first target condition; The step of emitting a light signal satisfying a first target condition during the process of displaying the response data comprises: Display is performed according to the screen display information, so as to emit a light signal satisfying the first target condition during the process of displaying the response data.

7. The method according to claim 2, characterized in that The method further comprises at least one of the following: When the response data is acquired, a second feedback signal is sent to the test device; The response data is decoded, and when the decoded response data is obtained, a third feedback signal is sent to the test device.

8. A testing device, characterized in that: The test device comprises a test board, a test button, a photosensor and an oscilloscope, wherein the test board comprises a handle simulation program, the test board is connected to the photosensor, the oscilloscope is connected to the test board and the photosensor, and the test board is connected to a terminal device; The test board is used to send a first control signal to the terminal device and the oscilloscope through the handle simulation program when a trigger operation on the test button is detected; or, when a trigger operation on the test button is not detected, send a second control signal to the terminal device and the oscilloscope through the handle simulation program; the terminal device is used to respond to the first control signal and send the first control signal to the application server through a local application; the application server is used to receive the first control signal through a cloud application, obtain response data corresponding to the first control signal, and return the response data; the terminal device is also used to receive the response data through the local application, and emit a light signal that meets the first target condition in the process of displaying the response data; the terminal device does not need to respond to the second control signal, and the first control signal and the second control signal are used to simulate the signal input by the handle device; The test board is further used to receive a first feedback signal sent by the terminal device, where the first feedback signal is sent by the terminal device when receiving the control signal; The photosensor is used to detect the optical signal emitted by the terminal device; The photosensor is further used to convert the optical signal into an electrical signal and send the electrical signal to the test board and the oscilloscope; The oscilloscope is used to display a first waveform and a second waveform, the first waveform is a waveform of the first control signal or the second control signal, and the second waveform is a waveform of the electrical signal; The test board is further used to determine the time difference between each two adjacent time points among a first time point of sending the first control signal, a third time point of receiving the first feedback signal, and a second time point of receiving the electrical signal that meets the second target condition; wherein the electrical signal that meets the second target condition is obtained by converting the optical signal that meets the first target condition; The test board is further used to determine the time difference between a first time point of sending the first control signal and a second time point of receiving the electrical signal that meets the second target condition as the control delay duration; Among them, in the first waveform, the first coordinate point where the second control signal switches to the first control signal represents the first time point, in the second waveform, the second coordinate point where the electrical signal switches to meet the second target condition represents the second time point, and the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point represents the control delay duration.

9. A testing system, characterized in that: The test system comprises a test device and a terminal device, wherein the test device comprises a test board, a test button, a photosensor and an oscilloscope, wherein the test board comprises a handle simulation program, the test board is connected to the photosensor, the oscilloscope is connected to the test board and the photosensor, and the test board is connected to the terminal device; The test board is used to send a first control signal to the terminal device and the oscilloscope through the handle simulation program when a trigger operation on the test button is detected; or send a second control signal to the terminal device and the oscilloscope through the handle simulation program when no trigger operation on the test button is detected; the terminal device is used to respond to the first control signal; The terminal device is configured to send a first feedback signal to the test device upon receiving the first control signal; The terminal device is further configured to send the first manipulation signal to an application server through a local application in response to the first manipulation signal; the application server is configured to receive the first manipulation signal through a cloud application, obtain response data corresponding to the first manipulation signal, and return the response data; The terminal device is further configured to receive the response data through the local application, and emit an optical signal satisfying a first target condition during display of the response data; The test board is further used to receive a first feedback signal sent by the terminal device; The photosensor is used to detect the optical signal emitted by the terminal device; The photosensor is further used to convert the optical signal into an electrical signal and send the electrical signal to the test board and the oscilloscope; The oscilloscope is used to display a first waveform and a second waveform, the first waveform is a waveform of the first control signal or the second control signal, and the second waveform is a waveform of the electrical signal; The test device is further used to determine the time difference between each two adjacent time points among a first time point of sending a first control signal, a third time point of receiving the first feedback signal, and a second time point of receiving an electrical signal that meets a second target condition; wherein the electrical signal that meets the second target condition is converted from an optical signal that meets the first target condition; The testing device is further used to determine the time difference between a first time point of sending the first control signal and a second time point of receiving the electrical signal that meets the second target condition as the control delay duration; Among them, in the first waveform, the first coordinate point where the second control signal switches to the first control signal represents the first time point, in the second waveform, the second coordinate point where the electrical signal switches to meet the second target condition represents the second time point, and the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point represents the control delay duration.

10. An application testing device, characterized in that: The device comprises: A signal receiving module, used for receiving a first control signal and a second control signal sent by a test device through a local application, wherein the first control signal and the second control signal are used to simulate a signal input by a handle device; the test device comprises a test board, a test button, a photosensitive sensor and an oscilloscope, the test board comprises a handle simulation program, and the test board is used for sending the first control signal to a terminal device and the oscilloscope through the handle simulation program when a trigger operation on the test button is detected; the test board is also used for sending the second control signal to the terminal device and the oscilloscope through the handle simulation program when no trigger operation on the test button is detected; a signal sending module, configured to send a first feedback signal to the test device upon receiving the first control signal; A signal response module, configured to send the first manipulation signal to an application server through the local application; the application server is configured to obtain response data corresponding to the first manipulation signal through a cloud application and return the response data; The signal response module is further used to receive the response data through the local application; a display module, configured to emit an optical signal satisfying a first target condition in the process of displaying the response data; a test board in the test device, configured to receive a first feedback signal sent by the terminal device; a photosensor in the test device, configured to detect an optical signal emitted by the terminal device, convert the optical signal into an electrical signal, and send the electrical signal to the test board and the oscilloscope; the oscilloscope in the test device, configured to display a first waveform and a second waveform, wherein the first waveform is a waveform of the first control signal or the second control signal, and the second waveform is a waveform of the electrical signal; the test board in the test device is further configured to determine a time difference between each two adjacent time points among a first time point of sending the control signal, a third time point of receiving the first feedback signal, and a second time point of receiving an optical signal satisfying a second target condition, wherein the electrical signal satisfying the second target condition is obtained by converting an optical signal satisfying the first target condition; the test board is further configured to determine a time difference between a first time point of sending the control signal and a second time point of receiving an electrical signal satisfying the second target condition as a control delay duration; Among them, in the first waveform, the first coordinate point where the second control signal switches to the first control signal represents the first time point, in the second waveform, the second coordinate point where the electrical signal switches to meet the second target condition represents the second time point, and the difference between the horizontal coordinate of the first coordinate point and the horizontal coordinate of the second coordinate point represents the control delay duration.

11. A testing device, characterized in that: The testing device comprises a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the application program testing method as claimed in claim 1.

12. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the application testing method as described in any one of claims 2 to 7.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the application testing method as claimed in claim 1, or to implement the application testing method as claimed in any one of claims 2 to 7.

14. A computer program product, comprising a computer program, wherein the computer program is loaded and executed by a processor to implement the application program testing method according to claim 1, or the application program testing method according to any one of claims 2 to 7.