CN114064443A - Application program testing method and device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN114064443A
CN114064443A CN202010748537.1A CN202010748537A CN114064443A CN 114064443 A CN114064443 A CN 114064443A CN 202010748537 A CN202010748537 A CN 202010748537A CN 114064443 A CN114064443 A CN 114064443A
Authority
CN
China
Prior art keywords
signal
response data
control signal
optical signal
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010748537.1A
Other languages
Chinese (zh)
Inventor
杨卫
魏雪
闫龙阁
赖晶
龙小昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010748537.1A priority Critical patent/CN114064443A/en
Publication of CN114064443A publication Critical patent/CN114064443A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application discloses an application program testing method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: sending a control signal to a terminal device, wherein the terminal device is used for sending an optical signal meeting a first target condition in the process of displaying response data after responding to the control signal through an application program to obtain the response data; detecting an optical signal sent by terminal equipment; the time difference between the first time point of sending the control signal and the second time point of detecting the optical signal meeting the first target condition is determined as the control delay time, the control delay condition of the test application program can be determined according to the control delay time, the quantification of the control delay is realized, the test result of the application program is more objective and accurate, and the test performance is improved.

Description

Application program testing method and device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an application program testing method, an application program testing device, computer equipment and a storage medium.
Background
With the development of computer technology, the variety of applications, such as game applications, multimedia applications, social applications, or the like, is increasing. In which there is a control delay in the running process of the application program. The manipulation delay is a process from sending a manipulation signal to an application program to finishing the response of the application program to the manipulation signal, and takes a certain time. The control delay time can reflect the fluency of the application program, or the adaptation degree of the computer equipment running the application program to the application program, and the like, and has important research significance. However, at present, the control delay time is measured by subjective feeling of people, and the accuracy is low.
Disclosure of Invention
The embodiment of the application program testing method and device, computer equipment and storage medium can improve the accuracy of application program testing. The technical scheme is as follows:
in one aspect, an application program testing method is provided, and the method includes:
sending a control signal to a terminal device, wherein the terminal device is used for sending an optical signal meeting a first target condition in the process of displaying response data after responding to the control signal through an application program to obtain the response data;
detecting an optical signal sent by the terminal equipment;
and determining a time difference between a first time point of sending the control signal and a second time point of detecting the optical signal meeting the first target condition as a control delay time.
Optionally, the first target condition is that the intensity of the optical signal is greater than a target intensity; or,
the first target condition is that the variation amplitude of the optical signal is greater than a target amplitude;
the first target condition is that the color of the light signal is a target color.
Optionally, the determining a time difference between a first time point of sending the manipulation signal and a second time point of detecting the optical signal satisfying the first target condition as a manipulation delay duration includes:
converting the optical signal into an electrical signal;
and determining a time difference between a first time point of sending the control signal and a second time point of obtaining an electrical signal meeting a second target condition as the control delay time, wherein the second target condition is a condition that the electrical signal corresponding to the optical signal meeting the first target condition meets.
Optionally, the sending the control signal to the terminal device includes:
sending the control signal to the terminal equipment every reference time length;
the determining, as a manipulation delay duration, a time difference between a first time point at which the manipulation signal is transmitted and a second time point at which the optical signal satisfying the first target condition is detected includes:
for each transmitted control signal, determining a time difference between a first time point and a corresponding second time point of the transmission of the control signal as a control delay time corresponding to the control signal.
Optionally, after determining a time difference between a first time point when the manipulation signal is transmitted and a second time point when the optical signal satisfying the first target condition is detected as a manipulation delay duration, the method further includes:
and displaying the control delay time.
In another aspect, an application testing method is provided, the method including:
receiving a control signal sent by test equipment through an application program;
responding to the control signal through the application program to obtain response data;
emitting an optical signal satisfying a first target condition in the process of displaying the response data; the test equipment is used for detecting the optical signal sent by the terminal equipment, and determining the time difference between a first time point for sending the control signal and a second time point for detecting the optical signal meeting the first target condition as the control delay time.
Optionally, the first target condition is that the intensity of the optical signal is greater than a target intensity; or,
the first target condition is that the variation amplitude of the optical signal is greater than a target amplitude;
the first target condition is that the color of the light signal is a target color.
Optionally, after the emitting the optical signal satisfying the first target condition in the process of displaying the response data, the method further includes:
and after the time length for sending the optical signal meeting the first target condition in the process of displaying the response data reaches the target time length, sending the optical signal not meeting the first target condition.
Optionally, in the process of responding to the control signal, at least one feedback signal is sent to the test device according to the current response progress, where the feedback signal includes at least one of the following:
when the control signal is received, a first feedback signal is sent to the test equipment;
when the response data is acquired, sending a second feedback signal to the test equipment;
and when the response data is decoded to obtain the decoded response data, sending a third feedback signal to the test equipment.
On the other hand, the test equipment comprises a test board card and a photosensitive sensor, wherein the test board card is connected with the photosensitive sensor and is connected with the terminal equipment;
the test board card is used for sending an operation signal to the terminal equipment; the terminal equipment is used for responding to the control signal through an application program to obtain response data and then sending an optical signal meeting a first target condition in the process of displaying the response data;
the photosensitive sensor is used for detecting optical signals sent by the terminal equipment;
the photosensitive sensor is also used for converting the optical signal into an electrical signal and sending the electrical signal to the test board card;
the test board card is further configured to determine a time difference between a first time point at which the control signal is sent and a second time point at which the electrical signal satisfying a second target condition is received as a control delay time, where the second target condition is a condition that the electrical signal corresponding to the optical signal satisfying the first target condition satisfies.
Optionally, the photosensitive sensor is further configured to convert the optical signal into an analog signal, and send the analog signal to the test board card; or,
the photosensitive sensor is also used for converting the optical signal into an analog signal, converting the analog signal into a digital signal and sending the digital signal to the test board card.
Optionally, the test board is configured to send the control signal to the terminal device every reference time length;
the test board card is further configured to determine, for each sent control signal, a time difference between a first time point and a corresponding second time point at which the control signal is sent, as a control delay duration corresponding to the control signal.
Optionally, the test board comprises a handle simulator, a control processor, a communication interface and a light sensing transmission interface, the handle simulator is connected with the terminal device through the communication interface, and the control processor is connected with the photosensitive sensor through the light sensing reading interface;
the handle simulator is used for sending the control signal to the terminal equipment through the communication interface and sending the control signal to the control processor;
the photosensitive sensor is also used for sending the electric signal to the control processor through the light sensation transmission interface;
the control processor is used for receiving the control signal and the electric signal;
the control processor is further configured to determine a time difference between a first time point of receiving the manipulation signal and a second time point of receiving the electrical signal satisfying the second target condition as a manipulation delay time length.
Optionally, the test board further comprises a display screen, and the display screen is connected with the control processor;
the control processor is further configured to send the control delay duration to the display screen;
and the display screen is used for receiving the control delay time and displaying the control delay time.
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 equipment is also used for sending at least one feedback signal to the test equipment according to the current response progress in the process of responding to the control signal;
the control processor is further configured to receive the at least one feedback signal through the control processing interface;
the control processor is further configured to determine a time difference between every two adjacent time points of the first time point, the at least one third time point at which the at least one feedback signal is received, and the second time point.
Optionally, the handle simulator is configured to send a first control signal to the terminal device when a target trigger operation is detected;
the handle simulator is further used for sending a second control signal to the terminal device under the condition that the target triggering operation is not detected.
Optionally, the test equipment further comprises an oscilloscope, the oscilloscope is connected with the test board card, and the oscilloscope is connected with the photosensitive sensor;
the test board card is also used for sending the control signal to the oscilloscope while sending the control signal to the terminal equipment;
the oscilloscope is used for receiving the control signal and displaying a first waveform of the control signal;
the photosensitive sensor is also used for sending the electric signal to the oscilloscope;
the oscilloscope is further used for receiving the electric signal and displaying a second waveform of the electric signal;
the oscilloscope is further used for determining a first coordinate point switched from the second control signal to the first control signal in the first waveform; determining a second coordinate point corresponding to the electric signal meeting a second target condition in the second waveform; determining a difference between the abscissa of the first coordinate point and the abscissa of the second coordinate point as the manipulation delay time.
Optionally, the oscilloscope comprises a first probe and a second probe, the oscilloscope is connected with the test board card through the first probe, and the oscilloscope is connected with the photosensitive sensor through the second probe.
In another aspect, a test system is provided, where the test system includes a test device and a terminal device, and the test device is connected to the terminal device;
the test equipment is used for sending an operation signal to the terminal equipment;
the terminal device is used for responding to the control signal through an application program to obtain response data and then sending an optical signal meeting a first target condition in the process of displaying the response data;
the test equipment is also used for detecting an optical signal sent by the terminal equipment;
the test equipment is further configured to determine a time difference between a first time point at which the control signal is transmitted and a second time point at which the optical signal satisfying the first target condition is detected as a control delay time.
Optionally, the test device is further configured to convert the optical signal into an electrical signal; and determining a time difference between a first time point of sending the control signal and a second time point of obtaining an electrical signal meeting a second target condition as the control delay time, wherein the second target condition is a condition that the electrical signal corresponding to the optical signal meeting the first target condition meets.
Optionally, the test device is further configured to send the first control signal to the terminal device when a target trigger operation is detected; or, the second control signal is sent to the terminal device under the condition that the target trigger operation is not detected;
the terminal device is further configured to send an optical signal meeting the first target condition in a process of displaying response data after the application program responds to the first control signal to obtain the response data;
the test equipment is further configured to determine a time difference between the first time point at which the first control signal is sent and a second time point at which the optical signal satisfying the first target condition is detected as the control delay duration.
Optionally, the application program includes a local application program and a cloud application program, and the test system further includes an application server;
the terminal device is further configured to send the control signal to the application server through the local application program;
the application server is used for acquiring response data corresponding to the control signal through the cloud application program and returning the response data;
the terminal device is further configured to receive the response data through the local application program.
Optionally, the application server is further configured to encode the response data through the cloud application program, and send the encoded response data to the terminal device;
the terminal device is further configured to decode the response data through the local application program to obtain decoded response data.
Optionally, the local application program is a local game application program, the cloud application program is a cloud game application program, and the application server is configured to render a game picture corresponding to the control signal through the cloud game application program, obtain game picture data, and return the game picture data;
and the terminal equipment is used for receiving the game picture data through the local game application program.
Optionally, the terminal device is further configured to send at least one feedback signal to the test device according to a current response progress in a process of responding to the control signal;
the test equipment is also used for receiving at least one feedback signal sent by the terminal equipment; determining a time difference between every two adjacent time points of the first time point, the at least one third time point at which the at least one feedback signal is received, and the second time point.
Optionally, the testing device is further configured to send a handle simulation signal to the terminal device through a configured handle simulator.
In another aspect, an application testing apparatus is provided, the apparatus including:
the terminal device is used for sending an optical signal meeting a first target condition in the process of displaying response data after responding to the control signal through an application program to obtain the response data;
the signal detection module is used for detecting an optical signal sent by the terminal equipment;
and the delay determining module is used for determining the time difference between a first time point of sending the control signal and a second time point of detecting the optical signal meeting the first target condition as the control delay time.
Optionally, the first target condition is that the intensity of the optical signal is greater than a target intensity; or,
the first target condition is that the variation amplitude of the optical signal is greater than a target amplitude;
the first target condition is that the color of the light signal is a target color.
Optionally, the delay determining module includes:
a signal conversion unit for converting the optical signal into an electrical signal;
a first delay determining unit, configured to determine, as the control delay duration, a time difference between a first time point at which the control signal is sent and a second time point at which an electrical signal meeting a second target condition is obtained, where the second target condition is a condition that the electrical signal corresponding to the optical signal meeting the first target condition is met.
Optionally, the signal sending module includes:
the first signal sending unit is used for sending the control signal to the terminal equipment at intervals of reference time length;
the delay determination module includes:
and the second delay determining unit is used for determining the time difference between the first time point and the corresponding second time point of the transmission of the control signal as the control delay duration corresponding to the control signal for each transmitted control signal.
Optionally, the control signal includes a first control signal and a second control signal, and the signal sending module includes:
the second signal sending unit is used for sending the first control signal to the terminal equipment under the condition that target triggering operation is detected;
the second signal sending unit is further configured to send the second control signal to the terminal device when the target trigger operation is not detected;
the terminal device is used for responding to the first control signal through the application program to obtain response data, and then sending out an optical signal meeting the first target condition in the process of displaying the response data;
the delay determination module includes:
a third delay determining unit, configured to determine a time difference between the first time point at which the first manipulation signal is sent and a second time point at which the optical signal satisfying the first target condition is detected as the manipulation delay duration.
Optionally, the apparatus further comprises:
the waveform display module is used for displaying a first waveform of the control signal;
the waveform display module is further configured to display a second waveform corresponding to the optical signal;
the delay determination module includes:
a coordinate point determination unit configured to determine a first coordinate point switched from the second manipulation signal to the first manipulation signal in the first waveform;
the coordinate point determining unit is further configured to determine, in the second waveform, a second coordinate point corresponding to the optical signal that satisfies the first target condition;
a fourth delay determining unit configured to determine a difference between the abscissa of the first coordinate point and the abscissa of the second coordinate point as the manipulation delay time period.
Optionally, the apparatus further comprises:
the signal receiving module is used for receiving at least one feedback signal sent by the terminal equipment, and the at least one feedback signal is returned by the terminal equipment according to a response progress in the process of responding to the control signal;
the delay determining module is further configured to determine a time difference between every two adjacent time points of the first time point, the third time point at which the at least one feedback signal is received, and the second time point.
Optionally, the apparatus further comprises:
and the delay display module is used for displaying the control delay duration.
Optionally, the signal sending module includes:
and the third signal sending unit is used for sending the handle simulation signal to the terminal equipment through the configured handle simulator.
In another aspect, an application testing apparatus is provided, the apparatus including:
the signal receiving module is used for receiving the control signal sent by the testing equipment through the application program;
the signal response module is used for responding to the control signal through the application program to obtain response data;
the display module is used for sending out an optical signal meeting a first target condition in the process of displaying the response data; the test equipment is used for detecting the optical signal sent by the terminal equipment, and determining the time difference between a first time point for sending the control signal and a second time point for detecting the optical signal meeting the first target condition as the control delay time.
Optionally, the first target condition is that the intensity of the optical signal is greater than a target intensity; or,
the first target condition is that the variation amplitude of the optical signal is greater than a target amplitude;
the first target condition is that the color of the light signal is a target color.
Optionally, the display module is further configured to send out the optical signal that does not satisfy the first target condition after a duration of sending out the optical signal that satisfies the first target condition reaches a target duration in the process of displaying the response data.
Optionally, the application programs include a local application program and a cloud application program, and the signal response module includes:
the signal sending unit is used for sending the control signal to an application server through the local application program; the application server is used for acquiring response data corresponding to the control signal through the cloud application program and returning the response data;
and the data receiving unit is used for receiving the response data through the local application program.
Optionally, the application server is configured to encode the response data through the cloud application program, and send the encoded response data to the terminal device; the device further comprises:
and the data decoding module is used for decoding the response data through the local application program to obtain the decoded response data.
Optionally, the local application program is a local game application program, the cloud application program is a cloud game application program, and the application server is configured to render a game picture corresponding to the control signal through the cloud game application program, obtain game picture data, and return the game picture data;
the data receiving unit is used for receiving the game picture data through the local game application program.
Optionally, the apparatus further comprises:
and the signal sending module is used for sending at least one feedback signal to the test equipment according to the current response progress in the process of responding to the control signal.
Optionally, the signal sending module includes at least one of:
the first sending unit is used for sending a first feedback signal to the test equipment when receiving the control signal;
the second sending unit is used for sending a second feedback signal to the test equipment when the response data is acquired;
and the third sending unit is used for sending a third feedback signal to the test equipment when the response data is decoded to obtain the decoded response data.
Optionally, the signal response module includes:
an information obtaining unit, configured to respond to the control signal through the application program to obtain picture display information, where the picture display information includes the response data and optical signal attribute information, and the optical signal attribute information is used to indicate an optical signal that meets the first target condition;
the display module includes:
and the display unit is used for displaying according to the picture display information so as to send out an optical signal meeting the first target condition in the process of displaying the response data.
In another aspect, a test device is provided, the test device comprising a processor and a memory, the memory having stored therein at least one program code, the at least one program code being loaded and executed by the processor to perform the operations performed in the application testing method according to the above aspect.
In another aspect, a terminal device is provided, which includes a processor and a memory, where 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 operations executed in the application program testing method according to the above aspect.
In another aspect, a computer-readable storage medium is provided, in which at least one program code is stored, the at least one program code being loaded and executed by a processor to implement the operations performed in the application testing method according to the above aspect.
In another aspect, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer program code stored in a computer-readable storage medium, the computer program code being read by a processor of a computer device from the computer-readable storage medium, the computer program code being executed by the processor such that the computer device implements the operations performed in the application testing method according to the above aspect.
The method, the device, the computer equipment and the storage medium provided by the embodiment of the application are characterized in that the test equipment is matched with the terminal equipment, the test equipment sends out the operation control signal at a first time point, the terminal equipment sends out the optical signal meeting a first target condition when the application program displays response data to the operation control signal so as to indicate that the application program finishes responding to the operation control signal, the test equipment carries out optical signal detection on the terminal equipment, and a second time point of the terminal equipment sending out the optical signal meeting the first target condition is determined. The time difference between the first time point of sending the control signal and the optical signal meeting the first target condition sent by the terminal equipment is the control delay time of the application program, and the control delay condition of the application program can be determined according to the control delay time, so that the control delay is quantized, the test result of the application program is more objective and accurate, and the test performance is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an architecture diagram of a test system according to an embodiment of the present disclosure.
Fig. 2 is an architecture diagram of another test system provided in an embodiment of the present application.
FIG. 3 is a block diagram of another test system according to an embodiment of the present disclosure.
FIG. 4 is a block diagram of another test system according to an embodiment of the present disclosure.
Fig. 5 is a flowchart of an application testing method according to an embodiment of the present application.
Fig. 6 is a flowchart of another application program testing method provided in the embodiment of the present application.
Fig. 7 is a flowchart of another application program testing method provided in the embodiment of the present application.
Fig. 8 is a schematic diagram of a signal waveform provided in an embodiment of the present application.
Fig. 9 is a flowchart of another application program testing method provided in the embodiment of the present application.
Fig. 10 is a schematic structural diagram of a test apparatus according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of another testing apparatus provided in an embodiment of the present application.
Fig. 12 is a schematic structural diagram of an application testing apparatus according to an embodiment of the present application.
Fig. 13 is a schematic structural diagram of another application test apparatus according to an embodiment of the present application.
Fig. 14 is a schematic structural diagram of another application test apparatus according to an embodiment of the present application.
Fig. 15 is a schematic structural diagram of another application test apparatus according to an embodiment of the present application.
Fig. 16 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Fig. 17 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various concepts, which are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, a first point in time may be referred to as a second point in time, and similarly, a second point in time may be referred to as a first point in time, without departing from the scope of the present application.
For example, the at least one feedback signal may be any integer number of feedback signals greater than or equal to one, such as one feedback signal, two feedback signals, three feedback signals, and the like. Each refers to each of the at least one, for example, each of the plurality of steering signals refers to each of the plurality of steering signals, and if the plurality of steering signals is 3 steering signals, each of the plurality of steering signals refers to each of the 3 steering signals.
Fig. 1 is an architecture diagram of a test system provided in an embodiment of the present application, and referring to fig. 1, the test system includes: a test device 101 and a terminal device 102. Communication connection is established between the test equipment 101 and the terminal equipment 102, an application program runs in the terminal equipment 102, and the application program running in the terminal equipment is tested through interaction between the test equipment 101 and the terminal equipment 102.
The terminal device 102 includes, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. The test apparatus 101 is similar to the test apparatus 1000 described below in fig. 10 and will not be described here.
Fig. 2 is an architecture diagram of another test system provided in an embodiment of the present application, and referring to fig. 2, the test system includes: test equipment 201, terminal equipment 202 and application server 203. A communication connection is established between the test device 201 and the terminal device 202 and between the terminal device 202 and the application server 203.
The terminal device 202 runs a local application program, the application server 203 runs a cloud application program, the local application program is associated with the cloud application program, and the local application program and the cloud application program are tested through interaction among the testing device 201, the terminal device 202 and the application server 203.
The application server 203 is an independent physical server, or a server cluster or distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), big data and artificial intelligence platform, and the like. Optionally, the terminal device 202 and the application server 203 are directly or indirectly connected through wired or wireless communication, and the application is not limited herein. The test apparatus 201 is similar to the test apparatus 1000 in fig. 10 described below, and will not be described here for the time being.
Fig. 3 is an architecture diagram of another test system provided in an embodiment of the present application, and referring to fig. 3, the test system includes: test equipment 301, terminal equipment 302 and application server 303. The test apparatus 301 includes a handle 311, a light sensor 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 light sensitive sensor 321 and the second probe 3312 is connected to the handle 311. The handle 311 is connected to the terminal device 302, and the light sensor 321 is disposed at the display screen of the terminal device 302. The terminal device 302 establishes a communication connection with the application server 303 via a network.
Fig. 4 is an architecture diagram of another test system according to an embodiment of the present application, referring to fig. 4, a local application is run in a terminal device 401, an application server 402 is connected to the terminal device 401 through a network card, and a cloud application is run in the application server 402. The handle 403 is connected to the terminal device 401 by bluetooth, or the handle 403 is connected to the terminal device 401 by USB (Universal Serial Bus). The test board 404 is connected to the handle 403 and the photosensor 405.
It should be noted that the system framework in fig. 4 is described by taking only the connection of the handle 403 and the test board 404 as an example, in another possible implementation manner, a handle simulator is configured in the test board 404, and signal transmission is performed with the application program in the terminal device 401 through the handle simulator.
On the basis of the test system shown in fig. 1, fig. 2, fig. 3 or fig. 4, the application test method provided in the following embodiment is performed. Fig. 5 is a flowchart of an application testing method provided in an embodiment of the present application. The execution subject of the embodiment of the present application is a test device, and referring to fig. 5, the method includes:
501. and sending the control signal to the terminal equipment.
An application program runs in the terminal equipment, and the test equipment is connected with the terminal equipment through the application program. And the test equipment sends a control signal to the terminal equipment, wherein the control signal is a control signal for the application program and is used for indicating the terminal equipment to respond to the control signal through the application program. The terminal device receives the control signal through the application program, responds to the control signal to obtain response data corresponding to the control signal, displays the response data, and sends out an optical signal meeting a first target condition in the process of displaying the response data.
The application programs include game application programs, multimedia playing application programs or social contact application programs and the like. Taking the application program as a game application program as an example, the control signal is a signal for controlling a game scene, such as controlling a virtual character in the game scene to move or executing other operations. The terminal device receives the control signal, analyzes the control signal to obtain corresponding game picture data, renders the game picture data, and displays the rendered game picture.
The first target condition is set by the terminal device, and the first target condition is set to enable the optical signal sent by the terminal device when the response data is displayed to be different from the optical signal sent by the terminal device when the response data is not displayed, so that whether the terminal device displays the response data or not can be determined according to the optical signal sent by the terminal device.
502. And detecting an optical signal sent by the terminal equipment.
When the test equipment sends the control signal to the terminal equipment, the test equipment starts to detect the terminal equipment to detect the optical signal sent by the terminal equipment so as to determine whether the terminal equipment displays the response data.
503. And determining a time difference between a first time point of sending the control signal and a second time point of detecting the optical signal meeting the first target condition as a control delay time length.
The first time point when the test equipment sends the control signal is a time point when the test equipment requests the terminal equipment to respond, and the second time point when the test equipment detects the optical signal meeting the first target condition is a time point when the test equipment displays response data for the terminal, namely the time point when the terminal finishes responding to the control signal. Therefore, the time difference between the first time point and the second time point is the control delay time of the terminal device responding to the control signal through the application program, and the control delay condition of the application program can be determined according to the control delay time, so that the delay test of the application program is completed.
According to the method provided by the embodiment of the application, the test equipment and the terminal equipment are matched with each other, the test equipment sends out the operation control signal at the first time point, the terminal equipment sends out the optical signal meeting the first target condition when the application program displays the response data to the operation control signal so as to indicate that the application program finishes responding to the operation control signal, the test equipment carries out optical signal detection on the terminal equipment, and the second time point of the terminal equipment sending out the optical signal meeting the first target condition is determined. The time difference between the first time point of sending the control signal and the optical signal meeting the first target condition sent by the terminal equipment is the control delay time of the application program, and the control delay condition of the application program can be determined according to the control delay time, so that the control delay is quantized, the test result of the application program is more objective and accurate, and the test performance is improved.
Fig. 6 is a flowchart of an application testing method according to an embodiment of the present application. An execution subject of the embodiment of the present application is a terminal device, and referring to fig. 6, the method includes:
601. and receiving the control signal sent by the testing equipment through the application program.
An application program runs in the terminal equipment, and the test equipment is connected with the terminal equipment through the application program. The test equipment sends a control signal to the terminal equipment, wherein the control signal is a control signal for the application program and is used for indicating the terminal equipment to respond to the control signal through the application program, and then the terminal equipment receives the control signal through the application program.
602. And responding to the control signal through the application program to obtain response data.
603. An optical signal satisfying the first target condition is emitted in the course of displaying the response data.
The terminal device displays the response data and sends out an optical signal meeting the first target condition in the process of displaying the response data. When the test equipment sends the control signal, the optical signal sent by the terminal equipment is detected, so that when the terminal equipment displays response data, the test equipment can detect the optical signal meeting a first target condition, the test equipment determines the time difference between a first time point for sending the control signal and a second time point for detecting the optical signal meeting the first target condition as control delay time, and according to the control delay time, the control delay condition of the application program can be determined, and the delay test of the application program is completed.
The first target condition is the same as the first target condition in step 501, and is not described herein again.
According to the method provided by the embodiment of the application, the test equipment and the terminal equipment are matched with each other, the test equipment sends out the operation control signal at the first time point, the terminal equipment sends out the optical signal meeting the first target condition when the application program displays the response data to the operation control signal so as to indicate that the application program finishes responding to the operation control signal, the test equipment carries out optical signal detection on the terminal equipment, and the second time point of the terminal equipment sending out the optical signal meeting the first target condition is determined. The time difference between the first time point of sending the control signal and the optical signal meeting the first target condition sent by the terminal equipment is the control delay time of the application program, and the control delay condition of the application program can be determined according to the control delay time, so that the control delay is quantized, the test result of the application program is more objective and accurate, and the test performance is improved.
Fig. 7 is a flowchart of another application program testing method provided in the embodiment of the present application. The interaction subject of the embodiment of the application is a test device and a terminal device, and referring to fig. 7, the method includes:
701. and the test equipment sends the control signal to the terminal equipment.
The test device is associated with an application program running in the terminal device, and connection is established with the terminal device through the application program. And the test equipment sends a control signal to the terminal equipment, wherein the control signal is a control signal for the application program and is used for indicating the terminal equipment to respond to the control signal through the application program.
In one possible implementation, the control signal includes a first control signal and a second control signal. The test equipment sends a first control signal to the terminal equipment when detecting the target trigger operation, and sends a second control signal to the terminal equipment when not detecting the target trigger operation.
The first control signal indicates that the terminal equipment responds, and the second control signal indicates that the terminal equipment 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 a pressing operation of a test button in the test device.
Optionally, the test device includes a test button, and the target trigger operation is a trigger operation on the test button. When a tester wants to test, the operation of the test button is triggered, the handle detects the trigger operation of the test button, a first control signal is sent to the terminal equipment, and if the handle does not detect the trigger operation of the test button, a second control signal is sent to the terminal equipment.
In another possible implementation manner, the control signal includes a first control signal and a second control signal, and the test device periodically transmits the control signal to the terminal device. The test equipment sends a first control signal to the terminal equipment every other first time length, sends a second control signal to the terminal equipment every other second time length, and the first time length is longer than the second time length. For example, the test device sends the first control signal to the terminal device every 5 seconds, 10 seconds or 15 seconds, and sends the second control signal to the terminal device every 1 millisecond, 3 milliseconds or 8 milliseconds.
In another possible implementation, the test device sends the control signal to the terminal device periodically, for example, the test device sends the control signal to the terminal device once every 1 millisecond, 3 milliseconds, or 8 milliseconds. The method comprises the steps that before the test equipment sends an operation signal to the terminal equipment, whether a target trigger operation is detected currently or not is determined, if the target trigger operation is detected currently, the test equipment sends a first operation signal to the terminal equipment at this time, and if the target trigger operation is not detected currently, the test equipment sends a second operation signal to the terminal equipment at this time.
In another possible implementation manner, the testing device sends a handle simulation signal to the terminal device through the configured handle simulator.
The handle simulator is configured in the testing device, and is used for generating and sending a handle simulation signal, and the handle simulator is a handle simulation program in the testing device, or a handle device configured in the testing device, or another form of handle simulator, which is not limited in this application. The handle analog signal is a signal generated by the handle simulator, and is used for simulating a signal input by the handle equipment, sending the handle analog signal to the terminal equipment, and simulating the effect of inputting the signal on the terminal equipment by the handle equipment, so that an application program in the terminal equipment is controlled, and the application program responds to the handle analog signal.
Optionally, the handle simulation signal is a gamepad simulation signal, and is used for simulating a signal input by a gamepad device, and sending the gamepad simulation signal to the terminal device, so that an effect of inputting a signal on the terminal device by the gamepad device can be simulated, and a game application program in the terminal device is controlled, so that the game application program responds to the gamepad simulation signal.
702. And the terminal equipment receives the control signal sent by the testing equipment through the application program.
703. The terminal equipment responds to the control signal through the application program to obtain response data.
Wherein, the response data is the data corresponding to the control signal. For example, when the application program is a game application program, the response data corresponding to the manipulation signal includes game screen data and the like; when the application program is a multimedia data playing application program, the response data corresponding to the control signal comprises multimedia data and the like; when the application program is a social application program, the response data corresponding to the control signal includes interactive data or shared data and the like.
In one possible implementation, the applications include a native application and a cloud application. The terminal equipment runs a local application program, the local application program is associated with a cloud application program, and the cloud application program runs in an application server. And providing services for the local application program in the terminal equipment by the cloud application program in the application server. The terminal device receives the control signal and sends the control signal to the application server through the local application program. The application server receives the control signal sent by the terminal equipment through the cloud application program, acquires response data corresponding to the control signal and returns the response data. And the terminal equipment receives response data returned by the application server through the local application program.
The terminal equipment receives the control signal, does not need to analyze the control signal, uploads the control signal to the application server through the local application program, and the cloud application program in the application server analyzes the control signal to obtain response data corresponding to the control signal and returns the response data to the terminal equipment. That is, the terminal device only needs to execute the receiving and uploading of 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.
Optionally, the application server encodes the response data through a cloud application program, and sends the encoded response data to the terminal device; and after receiving the response data through the local application program, the terminal equipment decodes the response data to obtain the decoded response data.
The application server encodes the response data after obtaining the response data corresponding to the control signal through the cloud application program to obtain encoded response data, transmits the encoded response data to the terminal device through the network, and the terminal device decodes the encoded response data after receiving the encoded response data through the local application program to obtain decoded response data.
Optionally, the local application is divided according to functions, 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. The signal receiving module is used for receiving a control signal sent by the testing equipment. The network sending module is used for converting the protocol format of the received control signal and sending the control signal to the application server through the network. The network receiving module is used for receiving response data sent by the application server. And the video decoding module is used for decoding the response data and then sending the decoded response data to the system video memory of the terminal equipment. The analysis module is used for setting the sending time of the feedback signal so as to analyze and position the delay distribution.
Optionally, the application program is a game application program, the local application program is a local game application program, the cloud application program is a cloud game application program, and the application server renders a game screen corresponding to the control signal through the cloud game application program to obtain game screen data and returns the game screen data. The terminal device receives the game screen data through the local game application.
Under the scene of the cloud game application program, the response data corresponding to the control signal is game picture data, and the testing device comprises a game handle corresponding to the game application program. The tester presses the key in the gamepad, so that the test equipment acquires the control signal and sends the control signal to the terminal equipment in a wired or wireless mode. And after the terminal equipment acquires the control signal through the local game application program, the control signal is transmitted to the application server through the Internet. The application server obtains the control signal through the cloud game application program, analyzes the control signal, renders a game picture, obtains game picture data, codes and compresses the game picture data, and transmits the coded game picture data to the terminal equipment through a network. The terminal device receives the descending game picture data through the local game application program, decodes the game picture data to obtain the decoded game picture data, and displays the game picture data.
In another possible implementation manner, the terminal device directly analyzes the control signal through an application program to obtain response data corresponding to the control signal, and does not need to obtain the response data through other devices.
704. The terminal device sends out an optical signal meeting a first target condition in the process of displaying the response data.
And the terminal equipment acquires response data corresponding to the control signal, displays the response data through a display screen of the terminal equipment, and sends an optical signal meeting a first target condition in the process of displaying the response data.
The first target condition is set by the terminal device, or is set by the terminal device and the testing device together. The first target condition is set to enable the optical signal sent by the terminal device when the response data is displayed to be different from the optical signal sent by the terminal device when the response data is not displayed, so that the test device can determine whether the terminal device is displaying the response data according to the optical signal sent by the terminal device, that is, determine when the terminal device completes responding to the control signal according to the optical signal sent by the terminal device.
In one 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 having an intensity not greater than the intensity of the target when the response data is not displayed, and emits an optical signal having an intensity greater than the intensity of the target when the response data is displayed.
Alternatively, the first target condition is that the amplitude of the variation of the optical signal is larger than the target amplitude. The terminal emits an optical signal in the process of displaying the response data, so that the variation amplitude of the optical signal is larger 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 a first intensity, the intensity of the optical signal emitted in the process of displaying the response data is a second intensity, and the difference between the second intensity and the first intensity is the variation amplitude of the optical signal.
Alternatively, the first target condition is that the color of the light signal is a target color. The terminal device emits a light signal whose color is the target color in the process of displaying the response data and emits a light signal whose color is not the target color in the process of not displaying the response data.
In another possible implementation manner, the terminal device sends out the optical signal which does not satisfy the first target condition after the time length for sending out the optical signal which satisfies the first target condition in the process of displaying the response data reaches the target time length. The terminal equipment sends out an optical signal meeting a first target condition in the process of displaying the response data, and when the terminal equipment determines that the time length for sending out the optical signal reaches the target time length, the sent out optical signal is switched, so that the sent out optical signal does not meet the first target condition. That is, the terminal device sends out the optical signal satisfying the first target condition within the target time length when displaying the response data. The target time length is set by the terminal device, and is, for example, 0.5 second, 1 second, 2 seconds, or the like.
In another possible implementation manner, the control signal includes a first control signal and a second control signal. The first control signal indicates that the terminal equipment responds, and the second control signal indicates that the terminal equipment does not need to respond. For example, the first control signal is an electrical signal with a level of 1, the electrical signal with the 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, the electrical signal with the level of 0 cannot trigger the terminal device to perform other operations.
In the step 703 and 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 sends out an optical signal meeting the first target condition in the process of displaying the response data. And if the control signal received by the terminal is the second control signal, the control signal is not processed.
In another possible implementation manner, the step 703 includes: the terminal equipment responds to the control signal through the application program to obtain picture display information, and the picture display information comprises response data and optical signal attribute information. Wherein the optical signal attribute information is used to indicate an optical signal satisfying the first target condition. The light signal attribute information includes RGB (Red Green Blue, Red, Green, Blue) values, or YUV (Y stands for brightness, U and V stand for chromaticity) values, or other types of light signal attribute information. Wherein the optical signal generated according to the optical signal attribute information satisfies a first target condition.
Accordingly, step 704 includes: the terminal equipment displays according to the picture display information, because the picture display information comprises the response data, the terminal equipment can display the response data when displaying according to the picture display information, and because the picture display information comprises the optical signal attribute information, the terminal equipment can determine the optical signal to be displayed according to the optical signal attribute information, and can send the optical signal indicated by the optical signal attribute information when displaying according to the picture display information, thereby realizing the effect of sending the optical signal meeting the first target condition in the process of displaying the response data.
705. The test equipment detects the optical signal sent by the terminal equipment.
The test equipment carries out optical signal detection on the terminal equipment so as to detect the optical signal sent by the terminal equipment.
In one possible implementation manner, the test device starts optical signal detection on the terminal device before sending the manipulation signal to the terminal device, or the test device starts optical signal detection on the terminal device when sending the manipulation signal to the terminal device. The test device is able to detect the optical signal emitted by the terminal device when the response data is displayed that meets the first target condition, and the optical signal emitted by the terminal device when the response data is not displayed.
In one possible implementation manner, the test device performs optical signal detection on the terminal device to obtain the intensity of the optical signal sent by the terminal device. Or, the test equipment detects the optical signal of the terminal equipment to obtain the color of the optical signal sent by the terminal equipment. Or, the test device performs optical signal detection on the terminal device to obtain other information of the optical signal sent by the terminal device, which is not limited in this embodiment of the present application.
706. The test equipment determines a time difference between a first time point of sending the manipulation signal and a second time point of detecting the optical signal satisfying the first target condition as a manipulation delay time.
The first time point when the test equipment sends the control signal is the time point when the test equipment requests the terminal equipment to respond to the control signal. Since the terminal device sends the optical signal meeting the first target condition in the process of displaying the response data corresponding to the manipulation signal, the test device detects the second time point of the optical signal meeting the first target condition, and displays the response data for the terminal, that is, the time point when the terminal completes the response to the manipulation signal. Therefore, the time difference between the first time point and the second time point is the control delay time of the terminal device responding to the control signal through the application program, and the control delay condition of the application program can be determined according to the control delay time, so that the delay test of the application program is completed.
In one possible implementation manner, the test device converts the detected optical signal into an electrical signal, and determines a time difference between a first time point when the control signal is sent and a second time point when the electrical signal meeting a second target condition is acquired as the control delay time.
The testing equipment detects the optical signal, converts the optical signal into an electrical signal, and determines the time point of acquiring the electrical signal as the time point of detecting the optical signal. Therefore, the test apparatus determines a second point in time at which the electrical signal satisfying the second target condition is acquired as a second point in time at which the optical signal satisfying the first target condition is detected. The second time point when the test device acquires the electrical signal satisfying the second target condition is a time point when the response data is displayed for the terminal, that is, a 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 electric signal meeting the second target condition is acquired is the control delay time of the terminal device responding to the control signal through the application program.
The second target condition is a condition that the electrical signal corresponding to the optical signal satisfying the first target condition satisfies. When the optical signal meets a first target condition, converting the optical signal into an electrical signal, and enabling the electrical signal to meet a 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 variation of the electrical signal is greater than the target amplitude variation, or the second target condition is another type of condition, and it is only necessary to satisfy that the second target condition corresponds to the first target condition.
In another possible implementation manner, when the test device sends the manipulation signal, the first time point at which the manipulation signal is sent is stored, and when the test device detects an optical signal satisfying the first target condition, the second time point at which the optical signal is detected is stored. When the test equipment needs to determine the control delay time length of the application program, the stored first time point and the 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 time length.
In another possible implementation manner, the control signal sent by the test equipment includes a first control signal and a second control signal, and the terminal responds to the first control signal to obtain response data when acquiring the first control signal, and sends an optical signal meeting a first target condition in a process of displaying the response data. And the terminal acquires the second control signal and does not respond to the second control signal. The test device determines a time difference between a first time point at which the first manipulation signal is transmitted and a second time point at which the optical signal satisfying the first target condition is detected as a manipulation delay time period.
Optionally, the test device displays a first waveform of the control signal and displays a second waveform corresponding to the optical signal. In the first waveform, a first coordinate point switched from the second manipulation signal to the first manipulation signal is determined, in the second waveform, a second coordinate point corresponding to the optical signal satisfying the first target condition is determined, and a difference between an abscissa of the first coordinate point and an abscissa of the second coordinate point is determined as the manipulation delay time period.
The test equipment displays a first waveform of the control signal in real time while sending the control signal, wherein the first waveform represents the change condition of the control signal along with time. The test equipment displays a second waveform corresponding to the optical signal in real time while detecting the optical signal sent by the terminal equipment, wherein the second waveform represents the change condition of the optical signal along with time. The test equipment can determine a first coordinate point of the first control signal switched from the second control signal according to the change condition of the first waveform from the first waveform, wherein the time point of the first control signal switched from the second control signal is the time point of the test equipment sending the first control signal to the terminal equipment. And the test equipment can determine a second coordinate point corresponding to the optical signal meeting the first target condition from the second waveform according to the change condition of the second waveform, because the waveform corresponding to the optical signal meeting the first target condition is different from the waveform corresponding to the optical signal not meeting the first target condition.
The abscissa of the first waveform and the abscissa of the second waveform represent time, and a difference between the abscissa of the first coordinate point and the abscissa of the second coordinate point is a time difference between a first time point at which the first manipulation signal is transmitted and a second time point at which the optical signal satisfying the first target condition is detected.
Optionally, an abscissa of the first coordinate point is a first time point when the test device sends the first control signal, and an abscissa of the second coordinate point is a second time point when the test device detects the optical signal satisfying the first target condition. Alternatively, the test apparatus sets the abscissa of the first coordinate point to 0, and takes the abscissa of the first coordinate point as a reference starting point, and the abscissa of the second coordinate point is a time difference between the first time point and the second time point.
As shown in fig. 8, the solid line represents a first waveform, the dotted line represents a second waveform, the coordinate point 801 at the first turning point of the first waveform is the first coordinate point switched from the second control signal 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 satisfying the first target condition, and the difference between the abscissa of the coordinate point 801 and the abscissa of the coordinate point 802 is the control delay time.
It should be noted that, the embodiment of the present application only describes a process of sending a manipulation signal once. In another embodiment, the test device sends the control signal to the terminal device every reference time duration, and the terminal device responds to each received control signal. The test equipment determines the time difference between the first time point and the corresponding second time point of the transmission of the control signal as the control delay time corresponding to the control signal for each transmitted control signal.
The time point when the test equipment sends the control signal is a first time point, and after the control signal is sent, the time point when the optical signal meeting the first target condition is detected for the first time is a second time point corresponding to the first time point.
707. The test equipment displays the manipulation delay time.
When the test equipment acquires the control delay time, the control delay time is displayed, so that a tester can visually check the control delay time of the application program, and the control delay condition of the application program can be conveniently known.
It should be noted that the embodiments of the present application only describe the process of obtaining the duration of the steering delay from the transmission of the steering signal to the completion of the response to the steering signal. In another embodiment, the process of sending the control signal until the response to the control signal is completed includes a plurality of stages, such as receiving the control signal, acquiring response data, and decoding the response data, where each stage causes a control delay. The test equipment receives at least one feedback signal sent by the terminal equipment, determines a third time point for receiving the at least one feedback signal, and further determines a time difference between every two adjacent time points in the first time point, the third time point for receiving the at least one feedback signal and the second time point.
The test equipment sorts the first time point, the at least one third time point and the second time point according to a time sequence, and determines a time difference between every two adjacent time points in the time sequence to obtain a plurality of time differences, wherein the time differences are respectively control delay durations corresponding to a plurality of stages in a response process.
In a possible implementation manner, in the process of responding to the manipulation signal, the terminal device sends at least one feedback signal to the test device according to the current response progress, where the feedback signal includes at least one of the following:
(1) and when the terminal equipment receives the control signal, sending a first feedback signal to the test equipment.
(2) And when the terminal equipment acquires the response data sent by the application server, sending a second feedback signal to the test equipment.
(3) And the terminal equipment decodes the response data and sends a third feedback signal to the test equipment when the decoded response data is obtained.
Taking the example that the terminal device sends the first feedback signal, the second feedback signal, and the third feedback signal to the test device, the test device receives the first feedback signal, the second feedback signal, and the third feedback signal in sequence according to the time sequence.
The test equipment determines the time difference between a first time point of sending the control signal and a third time point of receiving the first feedback signal, wherein the time difference is the control delay time from sending the control signal to receiving the control signal, and the control delay condition in the process from sending the control signal to receiving the control signal can be determined according to the control delay time.
The test equipment determines a time difference between a third time point of receiving the first feedback signal and a third time point of receiving the second feedback signal, wherein the time difference is a control delay time from receiving the control signal to acquiring the response data corresponding to the control signal, and according to the control delay time, the control delay condition from receiving the control signal to acquiring the corresponding response data can be determined.
The test equipment determines the time difference between a third time point of receiving the second feedback signal and a third time point of receiving the third feedback signal, wherein the time difference is the control delay time from the acquisition of the response data to the decoding of the response data, and the control delay condition in the process of decoding the response data can be determined according to the control delay time.
The test equipment determines the time difference between a fourth time point for receiving the third feedback signal and the second time point, wherein the time difference is the control delay time from the decoded response data to the display response data, and the control delay condition from the decoded response data to the display response data can be determined according to the control delay time.
By analyzing the control delay time of each stage, the control delay time of the application program can be determined to be mainly influenced by which stages, so that the reason why the control delay time of the application program is too large is found, and the application program is optimized.
Fig. 9 is a flowchart of another application program testing method provided in this embodiment of the present application, where the testing apparatus includes a handle 901, a test board 905, and a photosensitive sensor 906. The terminal device runs a local application 902, the terminal device comprises a display screen 904, and the application server runs a cloud application 903.
When a key 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.
The test board 905 records the time point of receiving the control signal. And the local application 902 sends a manipulation signal to the cloud application 903 in the application server. The cloud application 903 acquires response data corresponding to the control signal, transmits the response data to the local application 902, the local application 902 transmits the response data to the display screen 904, the display screen 904 displays the response data, the photosensitive sensor 906 detects an optical signal sent by the display screen 904 when the response data is displayed, the optical signal is converted into an electric signal and is sent to the test board 905, and the test board 905 records the time point of receiving the electric signal. Then, the test board 905 determines the control delay time according to the time point of receiving the control signal and the time point of receiving the electrical signal.
In the method provided by the embodiment of the application, the test device and the terminal device are matched with each other, the test device sends out the operation control signal at the first time point, the terminal device sends out the optical signal meeting the first target condition when the application program displays the response data to the operation control signal so as to indicate that the application program finishes responding to the operation control signal, the test device detects the optical signal of the terminal device, and the second time point of the terminal device sending out the optical signal meeting the first target condition is determined. The time difference between the first time point of sending the control signal and the optical signal meeting the first target condition sent by the terminal equipment is the control delay time of the application program, and the control delay condition of the application program can be determined according to the control delay time, so that the control delay is quantized, the test result of the application program is more objective and accurate, and the test performance is improved.
And the test equipment sends the control signal to the terminal equipment at intervals of reference time length, so that multiple control delay tests are initiated to obtain multiple control delay time lengths, and the control delay condition of the application program is determined according to the multiple control delay time lengths, so that the problem that the control delay time lengths are not accurate due to one-time control delay test can be solved, and the accuracy of testing the application program is further improved.
In addition, in the process of testing the application program, the test equipment can vividly and vividly show the change conditions 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, so that the control delay condition of the application program to the control signal is intuitively reflected.
And in the first time point, the third time point for receiving at least one feedback signal and the second time point, the test equipment determines the time difference between every two adjacent time points, and the obtained multiple time differences are the time spent by multiple stages in the response process respectively, so as to determine the control delay time of each stage, and the control delay time of each stage can be analyzed subsequently, so as to determine which stages the control delay time of the application program is mainly influenced by, and then find out the reason why the control delay time of the application program is too large, so as to optimize the application program.
And the test equipment displays the control delay time so that a tester can visually check the control delay time of the application program and can conveniently know the control delay condition of the application program.
Fig. 10 is a schematic structural diagram of a testing apparatus 1000 according to an embodiment of the present application. The test apparatus 1000 may be used to perform the steps performed by the test apparatus in the application test method described above.
As shown in fig. 10, the test apparatus 1000 includes a test board 1001 and a photosensor 1002.
The test board 1001 is connected with the photosensitive sensor 1002, and the test board 1001 is also connected with the terminal device. The test board 1001 is a printed circuit board having a test function, the photosensor 1002 is a sensor having a function of detecting an optical signal, and the photosensor 1002 is disposed at the display 1051 of the terminal device so as to detect the optical signal emitted from the display 1051. The test board 1001 is configured to send an operation signal to the terminal device, and the terminal device sends an optical signal meeting a first target condition in a process of displaying response data after responding to the operation signal by an application program to obtain the response data. The photosensor 1002 is configured to detect an optical signal sent by the terminal device, convert the optical signal into an electrical signal, and send the electrical signal to the test board 1001. The test board 1001 is further configured to determine a time difference between a first time point of sending the manipulation signal and a second time point of receiving the electrical signal satisfying the second target condition as the manipulation delay duration. The second target condition is a condition that the electrical signal corresponding to the optical signal satisfying the first target condition satisfies.
Optionally, the photosensor 1002 is configured to convert the optical signal into an analog signal, and send the analog signal to the test board 1001; alternatively, the photosensor 1002 is configured to convert an optical signal into an analog signal, convert the analog signal into a digital signal, and transmit the digital signal to the test board 1001. For example, the photosensor 1002 converts an analog signal satisfying the second target condition into a digital signal having an amplitude of 1, and converts an analog signal not satisfying the second target condition into a digital signal having an amplitude of 0. Thus, the test board 1001 can determine whether the optical signal sent by the terminal device is an optical signal satisfying the first target condition according to the received digital signal, and thus determine whether the application program responds to the control signal.
Optionally, the test board 1001 is configured to send the control signal to the terminal device every reference time duration. The test board 1001 is further configured to determine, for each transmitted control signal, a time difference between a first time point at which the control signal is transmitted and a corresponding second time point as a control delay duration corresponding to the control signal. Optionally, a test button is disposed in the test board 1001, and when the test board 1001 detects a trigger operation on the test button, an operation signal is sent to the terminal device once every reference time period. Or, when the test board 1001 is in the power-on state, the control signal is sent to the terminal device once every reference time length.
In one possible implementation, the test board 1001 includes a handle simulator 1011, and the handle simulator 1011 is connected to the terminal device, and the handle simulator 1011 is configured to send a handle simulation signal to the terminal device, where the handle simulation signal is configured to simulate a signal input by the handle device.
In one possible implementation manner, the test board 1001 includes a handle simulator 1011, a control processor 1021, a communication interface 1031, and a light sensing transmission interface 1041, the handle simulator 1011 is connected to the terminal device through the communication interface 1031, and the control processor 1021 is connected to the photosensitive sensor 1002 through a light sensing reading interface.
The handle simulator 1011 is configured to send a control signal to the terminal device through the communication interface 1031, and send the control signal to the control processor 1021. The photosensitive sensor 1002 is used for sending an electrical signal to the control processor 1021 through the light sensing transmission interface 1041. The control processor 1021 is configured to receive the manipulation signal and the electrical signal, and determine a time difference between a first time point of receiving the manipulation signal and a second time point of receiving the electrical signal satisfying the second target condition as a manipulation delay time.
Optionally, the handle simulator 1011 is configured to send a first control signal to the terminal device when the target trigger operation is detected; the handle simulator 1011 is also configured to send a second manipulation signal to the terminal device in a case where the target trigger operation is not detected.
Optionally, the test board 1001 further includes a display 1051, and the display 1051 is connected to the control processor 1021. The control processor 1021 is further configured to send the manipulation delay duration to the display 1051. The display 1051 is configured to receive the manipulation delay time period and display the manipulation delay time period.
Optionally, the test board 1001 further includes a control processing interface 1061, the control processor 1021 is connected to the terminal device through the control processing interface 1061, and the control processing interface 1061 is configured to transmit the feedback signal. In the process of responding to the control signal, the terminal device sends at least one feedback signal to the testing device 1000 according to the current response progress. The control processor 1021 is further configured to receive at least one feedback signal through the control processing interface 1061, and determine a time difference between every two adjacent time points of the first time point, the at least one third time point at which the at least one feedback signal is received, and the second time point.
In another possible implementation manner, the test equipment 1000 further includes an oscilloscope 1003, the oscilloscope 1003 is connected to the test board card 1001, and the oscilloscope 1003 is further connected to the photosensitive sensor 1002. The test board 1001 is further configured to send a control signal to the oscilloscope 1003 while sending the control signal to the terminal device. The photosensor 1002 is also used for sending an electrical signal to the oscilloscope 1003. The oscilloscope 1003 is configured to receive the control signal, display a first waveform of the control signal, receive the electrical signal, and display a second waveform of the electrical signal. The oscilloscope 1003 is further configured to determine, in the first waveform, a first coordinate point switched from the second control signal to the first control signal, determine, in the second waveform, a second coordinate point corresponding to the electrical signal that satisfies the second target condition, and determine a difference between an abscissa of the first coordinate point and an abscissa of the second coordinate point as the control delay time.
Optionally, the oscilloscope 1003 comprises a first probe 1013 and a second probe 1023, the oscilloscope 1003 is connected with the test board card 1001 through the first probe 1013, and the oscilloscope 1003 is connected with the photosensitive sensor 1002 through the second probe 1023.
In another possible implementation, as shown in fig. 11, the test device 1100 is divided according to functions, and then the test device 1100 includes a handle simulation unit 1101, a control processing unit 1102, an interface unit 1103, and a display unit 1104. 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. The interface unit 1103 is connected to the handle simulation unit 1101 through the USB/BT interface subunit 1113, the interface unit 1103 is further connected to the control processing unit 1102 through the GPIO interface subunit 1123 and the optical 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.
Handle simulation unit 1101: for generating a manipulation signal, and transmitting the manipulation signal to the USB/BT interface sub-unit 1113 and the control processing unit 1102.
The interface unit 1103: the USB/BT interface subunit 1113 is configured to send a control signal to the terminal device, receive a feedback signal returned by the terminal device through the GPIO interface subunit 1123, convert an optical signal sent by the terminal device into an electrical signal through the optical sensing reading subunit 1133, and send the electrical signal to the control processing unit 1102.
The control processing unit 1102: for determining the manipulation delay time period according to the time point of receiving the manipulation signal and the electrical signal, and transmitting the manipulation delay time period to the display unit 1104.
The display unit 1104: and the display module is used for displaying the received control delay time.
Fig. 12 is a schematic structural diagram of an application testing apparatus according to an embodiment of the present application. Referring to fig. 12, the apparatus includes:
the signal sending module 1201 is configured to send a control signal to a terminal device, where the terminal device is configured to send an optical signal meeting a first target condition in a process of displaying response data after responding to the control signal through an application program to obtain the response data;
a signal detection module 1202, configured to detect an optical signal sent by a terminal device;
the delay determining module 1203 is configured to determine a time difference between a first time point of sending the manipulation signal and a second time point of detecting the optical signal meeting the first target condition as the manipulation delay duration.
Alternatively, referring to fig. 13, the first target condition is that the intensity of the optical signal is greater than the target intensity; or, the first target condition is that the variation amplitude of the optical signal is larger than the target amplitude; the first target condition is that the color of the light signal is a target color.
Optionally, referring to fig. 13, the delay determining module 1203 includes:
a signal conversion unit 1213 for converting the optical signal into an electrical signal;
the first delay determining unit 1223 is configured to determine, as the control delay duration, a time difference between a first time point at which the control signal is sent and a second time point at which the electrical signal meeting a second target condition is obtained, where the second target condition is a condition that the electrical signal corresponding to the optical signal meeting the first target condition is met.
Optionally, referring to fig. 13, the signal sending module 1201 includes:
a first signal transmitting unit 1211, configured to transmit a control signal to the terminal device every reference time duration;
delay determination module 1203, including:
the second delay determining unit 1233 is configured to, for each sent manipulation signal, determine a time difference between a first time point at which the manipulation signal is sent and a corresponding second time point as a manipulation delay duration corresponding to the manipulation signal.
Optionally, referring to fig. 13, the manipulation signal includes a first manipulation signal and a second manipulation signal, and the signal sending module 1201 includes:
the second signal sending unit 1221 is configured to send a first control signal to the terminal device when the target trigger operation is detected;
the second signal sending unit 1221, configured to send a second control signal to the terminal device when the target trigger operation is not detected;
the terminal equipment is used for responding to the first control signal through an application program to obtain response data and then sending an optical signal meeting a first target condition in the process of displaying the response data;
delay determination module 1203, including:
a third delay determining unit 1243, configured to determine a time difference between a first time point of transmitting the first manipulation signal and a second time point of detecting the optical signal satisfying the first target condition as a manipulation delay time period.
Optionally, referring to fig. 13, the apparatus further comprises:
a waveform display module 1204, configured to display a first waveform of the control signal;
the waveform display module 1204 is further configured to display a second waveform corresponding to the optical signal;
delay determination module 1203, including:
a coordinate point determination unit 1253 for determining a first coordinate point switched to the first manipulation signal by the second manipulation signal in the first waveform;
a coordinate point determination unit 1253, further configured to determine, in the second waveform, a second coordinate point corresponding to the optical signal that satisfies the first target condition;
a fourth delay determining unit 1263, configured to determine a difference between an abscissa of the first coordinate point and an abscissa of the second coordinate point as the manipulation delay time period.
Optionally, referring to fig. 13, the apparatus further comprises:
the signal receiving module 1205 is configured to receive at least one feedback signal sent by the terminal device, where the at least one feedback signal is returned by the terminal device according to a response progress in a process of responding to the control signal;
the delay determining module 1203 is further configured to determine a time difference between every two adjacent time points of the first time point, the third time point at which the at least one feedback signal is received, and the second time point.
Optionally, referring to fig. 13, the apparatus further comprises:
the delay display module 1206 is configured to display the operation delay duration.
Optionally, referring to fig. 13, the signal sending module 1201 includes:
and a third signal transmitting unit 1231, configured to transmit the handle analog signal to the terminal device through the configured handle simulator.
It should be noted that: the application testing apparatus provided in the above embodiment is only illustrated by the division of the functional modules when testing the application, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the testing device is divided into different functional modules to complete all or part of the functions described above. In addition, the application program testing device and the application program testing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The application program testing device provided by the embodiment of the application program is matched with the terminal equipment, the operation control signal is sent at the first time point, the terminal equipment sends the optical signal meeting the first target condition when the application program displays the response data to the operation control signal so as to indicate that the application program finishes responding to the operation control signal, the optical signal detection is carried out on the terminal equipment, and the second time point of the optical signal meeting the first target condition sent by the terminal equipment is determined. The time difference between the first time point of sending the control signal and the optical signal meeting the first target condition sent by the terminal equipment is the control delay time of the application program, and the control delay condition of the application program can be determined according to the control delay time, so that the control delay is quantized, the test result of the application program is more objective and accurate, and the test performance is improved.
Fig. 14 is a schematic structural diagram of another application test apparatus according to an embodiment of the present application. Referring to fig. 14, the apparatus includes:
a signal receiving module 1401, configured to receive, through an application program, a control signal sent by a testing device;
the signal response module 1402 is configured to respond to the control signal through the application program to obtain response data;
a display module 1403, configured to emit a light signal satisfying a first target condition in the process of displaying the response data; the test equipment is used for detecting an optical signal sent by the terminal equipment, and determining a time difference between a first time point of sending the control signal and a second time point of detecting the optical signal meeting the first target condition as control delay time.
Alternatively, referring to fig. 15, the first target condition is that the intensity of the optical signal is greater than the target intensity; or, the first target condition is that the variation amplitude of the optical signal is larger than the target amplitude; the first target condition is that the color of the light signal is a target color.
Alternatively, referring to fig. 15, the display module 1403 is further configured to emit the light signal not meeting the first target condition after the time length for emitting the light signal meeting the first target condition reaches the target time length in the process of displaying the response data.
Alternatively, referring to fig. 15, the application programs include a local application program and a cloud application program, and the signal response module 1402 includes:
the signal sending unit 1412 is configured to send a control signal to the application server through the local application program; the application server is used for acquiring response data corresponding to the control signal through the cloud application program and returning the response data;
a data receiving unit 1422, configured to receive response data through a local application.
Optionally, referring to fig. 15, the application server is configured to encode the response data through a cloud application program, and send the encoded response data to the terminal device; the device still includes:
the data decoding module 1404 is configured to decode the response data through the local application to obtain decoded response data.
Optionally, referring to fig. 15, the local application is a local game application, the cloud application is a cloud game application, and the application server is configured to render a game picture corresponding to the control signal through the cloud game application, obtain game picture data, and return the game picture data;
a data receiving unit 1422, configured to receive game screen data through a local game application.
Optionally, referring to fig. 15, the apparatus further comprises:
the signal sending module 1405 is configured 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.
Optionally, referring to fig. 15, the signaling module 1405, includes at least one of:
the first sending unit 1415 is configured to send a first feedback signal to the test equipment when receiving the control signal;
a second sending unit 1425, configured to send a second feedback signal to the test device when the response data is acquired;
the third sending unit 1435 is configured to decode the response data, and send a third feedback signal to the test device when the decoded response data is obtained.
Optionally, the signal response module 1402 includes:
an information obtaining unit 1432, configured to obtain, by responding to the control signal through an application program, screen display information, where the screen display information includes response data and optical signal attribute information, and the optical signal attribute information is used to indicate an optical signal that meets a first target condition;
a display module 1403, including:
a display unit 1413 for displaying in accordance with the screen display information to emit an optical signal satisfying the first target condition in the course of displaying the response data.
It should be noted that: the application testing apparatus provided in the foregoing embodiment is only illustrated by dividing the functional modules when testing the application, and in practical applications, the functions may be distributed by different functional modules according to needs, 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 program testing device and the application program testing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The application program testing device provided by the embodiment of the application program testing device is matched with the testing device, the testing device sends out the operation control signal at the first time point, the terminal device sends out the optical signal meeting the first target condition when the application program displays the response data to the operation control signal so as to indicate that the application program finishes responding to the operation control signal, the testing device detects the optical signal of the terminal device, and the second time point of the optical signal meeting the first target condition sent out by the terminal device is determined. The time difference between the first time point of sending the control signal and the optical signal meeting the first target condition sent by the terminal equipment is the control delay time of the application program, and the control delay condition of the application program can be determined according to the control delay time, so that the control delay is quantized, the test result of the application program is more objective and accurate, and the test performance is improved.
Fig. 16 shows a schematic structural diagram of a terminal device 1600 provided in an embodiment of the present application. Terminal device 1600 may be used to perform the steps performed by the terminal device in the application testing method described above.
In general, terminal device 1600 includes: a processor 1601, and a memory 1602.
Processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (field Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a 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, image Processing interactor) for rendering and drawing content required to be displayed by the display screen. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1602 is used to store at least one program code for being possessed by processor 1601 to implement the application testing methods provided by the method embodiments herein.
In some embodiments, the terminal device 1600 may further optionally include: peripheral interface 1603 and at least one peripheral. Processor 1601, memory 1602 and peripheral interface 1603 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1603 via buses, signal lines, or circuit boards. Optionally, the peripheral device comprises: at least one of radio frequency circuitry 1604, a display 1605, and a power supply 1606.
Peripheral interface 1603 can be used to connect at least one I/O (Input/Output) related peripheral to processor 1601 and memory 1602. In some embodiments, processor 1601, memory 1602, and peripheral 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 by this embodiment.
The Radio Frequency circuit 1604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1604 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 1604 converts the electrical signal into an electromagnetic signal to be transmitted, or converts a 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 subscriber identity module card, and so forth. The radio frequency circuitry 1604 may communicate with other devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1604 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 1605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1605 is a touch display screen, the display screen 1605 also has the ability to capture touch signals on or over the surface of the display screen 1605. The touch signal may be input to the processor 1601 for processing as a manipulation signal. At this point, the display 1605 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1605 may be one, and is disposed on the front panel of the terminal device 1600; in other embodiments, the number of the display screens 1605 may be at least two, and the at least two display screens are respectively disposed on different surfaces of the terminal device 1600 or are in a folding design; in other embodiments, the display 1605 may be a flexible display disposed on a curved surface or a folded surface of the terminal device 1600. Even further, the display 1605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 1605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
Power supply 1606 is used to provide power to various components within terminal device 1600. The power source 1606 may be ac, dc, disposable or rechargeable. When the power source 1606 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal device 1600 also 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.
The acceleration sensor 1608 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal device 1600. For example, the acceleration sensor 1608 may be configured to detect components of gravitational acceleration in three coordinate axes. The processor 1601 may control the display screen 1605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1608. The acceleration sensor 1608 may also be used for acquisition of motion data of the game or the user.
The pressure sensor 1609 may be disposed on a side frame of the terminal device 1600 and/or underneath the display 1605. When the pressure sensor 1609 is disposed on the side frame of the terminal device 1600, the holding signal of the user to the terminal device 1600 can be detected, and the processor 1601 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1609. When the pressure sensor 1609 is disposed at the lower layer of the display 1605, the processor 1601 is used to control the operability control on the UI interface according to the pressure operation of the user on the display 1605. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The optical sensor 1610 is used to collect the ambient light intensity. In one embodiment, the processor 1601 may control the display brightness of the display screen 1605 based on the ambient light intensity collected by the optical sensor 1610. Specifically, when the ambient light intensity is high, the display luminance of the display screen 1605 is increased; when the ambient light intensity is low, the display brightness of the display screen 1605 is adjusted down. In another embodiment, the processor 1601 can also dynamically adjust the shooting parameters of the camera assembly 1606 based on the ambient light intensity collected by the optical sensor 1610.
Those skilled in the art will appreciate that the configuration shown in fig. 16 does not constitute a limitation of terminal device 1600, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
Fig. 17 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 1700 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1701 and one or more memories 1702, where the memory 1702 stores at least one program code, and the at least one program code is loaded and executed by the processors 1701 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The server 1700 may be used to perform the steps performed by the application server in the application testing method described above.
The embodiment of the application provides a test device, which 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, so as to implement the application program test method of the embodiment.
The embodiment of the present application further provides a terminal device, where the terminal device includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor, so as to implement the application program testing method of the foregoing embodiment.
The embodiment of the present application further provides a computer-readable storage medium, where at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor, so as to implement the application program testing method of the foregoing embodiment.
The embodiments of the present application also provide a computer program product or a computer program, where the computer program product or the computer program includes computer program codes, the computer program codes are stored in a computer-readable storage medium, a processor of the computer device reads the computer program codes from the computer-readable storage medium, and the processor executes the computer program codes, so that the computer device implements the application testing method according to the above-mentioned embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only an alternative embodiment of the present application and should not be construed as limiting the present application, and any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (21)

1. An application testing method, the method comprising:
sending a control signal to a terminal device, wherein the terminal device is used for sending an optical signal meeting a first target condition in the process of displaying response data after responding to the control signal through an application program to obtain the response data;
detecting an optical signal sent by the terminal equipment;
and determining a time difference between a first time point of sending the control signal and a second time point of detecting the optical signal meeting the first target condition as a control delay time.
2. The method of claim 1, wherein the steering signal comprises a first steering signal and a second steering signal, and wherein transmitting the steering signal to the terminal device comprises:
under the condition that target trigger operation is detected, the first control signal is sent to the terminal equipment; or, the second control signal is sent to the terminal device under the condition that the target trigger operation is not detected;
the terminal device is used for responding to the first control signal through the application program to obtain response data, and then sending out an optical signal meeting the first target condition in the process of displaying the response data;
the determining, as a manipulation delay duration, a time difference between a first time point at which the manipulation signal is transmitted and a second time point at which the optical signal satisfying the first target condition is detected includes:
and determining a time difference between the first time point of sending the first control signal and a second time point of detecting the optical signal meeting the first target condition as the control delay time length.
3. The method of claim 2, further comprising:
displaying a first waveform of the manipulation signal;
displaying a second waveform corresponding to the optical signal;
the determining, as the manipulation delay duration, a time difference between the first time point at which the first manipulation signal is transmitted and a second time point at which the optical signal satisfying the first target condition is detected includes:
determining a first coordinate point switched by the second manipulation signal to the first manipulation signal in the first waveform;
determining a second coordinate point corresponding to the optical signal satisfying the first target condition in the second waveform;
determining a difference between the abscissa of the first coordinate point and the abscissa of the second coordinate point as the manipulation delay time.
4. The method of claim 1, further comprising:
receiving at least one feedback signal sent by the terminal equipment, wherein the at least one feedback signal is returned according to a response progress in the process that the terminal equipment responds to the control signal;
determining a time difference between every two adjacent time points of the first time point, the third time point at which the at least one feedback signal is received, and the second time point.
5. The method of claim 1, wherein the sending the steering signal to the terminal device comprises:
and sending a handle analog signal to the terminal equipment through the configured handle simulator, wherein the handle analog signal is used for simulating a signal input by the handle equipment.
6. An application testing method, the method comprising:
receiving a control signal sent by test equipment through an application program;
responding to the control signal through the application program to obtain response data;
emitting an optical signal satisfying a first target condition in the process of displaying the response data; the test equipment is used for detecting the optical signal sent by the terminal equipment, and determining the time difference between a first time point for sending the control signal and a second time point for detecting the optical signal meeting the first target condition as the control delay time.
7. The method of claim 6, wherein the applications include a local application and a cloud application, and wherein the obtaining response data in response to the manipulation signal by the application comprises:
sending the control signal to an application server through the local application program; the application server is used for acquiring response data corresponding to the control signal through the cloud application program and returning the response data;
receiving, by the local application, the response data.
8. The method according to claim 7, wherein the application server is configured to encode the response data through the cloud application program, and send the encoded response data to the terminal device; after receiving the response data by the native application, the method further comprises:
and decoding the response data through the local application program to obtain decoded response data.
9. The method according to claim 7, wherein the local application is a local game application, the cloud application is a cloud game application, and the application server is configured to render a game screen corresponding to the manipulation signal through the cloud game application to obtain game screen data and return the game screen data;
the receiving, by the native application, the response data includes:
receiving the game picture data through the local game application program.
10. The method of claim 6,
the first target condition is that the intensity of the optical signal is greater than a target intensity; or,
the first target condition is that the variation amplitude of the optical signal is greater than a target amplitude;
the first target condition is that the color of the light signal is a target color.
11. The method of claim 6, wherein said responding to said manipulation signal by said application program to obtain response data comprises:
responding to the control signal through the application program to obtain picture display information, wherein the picture display information comprises the response data and optical signal attribute information, and the optical signal attribute information is used for indicating an optical signal meeting the first target condition;
the emitting of the optical signal satisfying a first target condition in the process of displaying the response data includes:
and displaying according to the picture display information so as to send out an optical signal meeting the first target condition in the process of displaying the response data.
12. The method of claim 6, further comprising:
and in the process of responding to the control signal, at least one feedback signal is sent to the test equipment according to the current response progress.
13. The method of claim 12, wherein the responding to the manipulation signal comprises sending at least one feedback signal to the testing device according to a current response schedule, the at least one feedback signal comprising at least one of:
when the control signal is received, a first feedback signal is sent to the test equipment;
when the response data is acquired, sending a second feedback signal to the test equipment;
and when the response data is decoded to obtain the decoded response data, sending a third feedback signal to the test equipment.
14. The test equipment is characterized by comprising a test board card and a photosensitive sensor, wherein the test board card is connected with the photosensitive sensor and is connected with terminal equipment;
the test board card is used for sending an operation signal to the terminal equipment; the terminal equipment is used for responding to the control signal through an application program to obtain response data and then sending an optical signal meeting a first target condition in the process of displaying the response data;
the photosensitive sensor is used for detecting optical signals sent by the terminal equipment;
the photosensitive sensor is also used for converting the optical signal into an electrical signal and sending the electrical signal to the test board card;
the test board card is further configured to determine a time difference between a first time point at which the control signal is sent and a second time point at which the electrical signal satisfying a second target condition is received as a control delay time, where the second target condition is a condition that the electrical signal corresponding to the optical signal satisfying the first target condition satisfies.
15. The test equipment of claim 14, wherein the test board includes a handle simulator, the handle simulator being connected to the terminal equipment;
the handle simulator is used for sending a handle simulation signal to the terminal equipment, and the handle simulation signal is used for simulating a signal input by the handle equipment.
16. The test system is characterized by comprising test equipment and terminal equipment, wherein the test equipment is connected with the terminal equipment;
the test equipment is used for sending an operation signal to the terminal equipment;
the terminal device is used for responding to the control signal through an application program to obtain response data and then sending an optical signal meeting a first target condition in the process of displaying the response data;
the test equipment is also used for detecting an optical signal sent by the terminal equipment;
the test equipment is further configured to determine a time difference between a first time point at which the control signal is transmitted and a second time point at which the optical signal satisfying the first target condition is detected as a control delay time.
17. An application testing apparatus, the apparatus comprising:
the terminal device is used for sending an optical signal meeting a first target condition in the process of displaying response data after responding to the control signal through an application program to obtain the response data;
the signal detection module is used for detecting an optical signal sent by the terminal equipment;
and the delay determining module is used for determining the time difference between a first time point of sending the control signal and a second time point of detecting the optical signal meeting the first target condition as the control delay time.
18. An application testing apparatus, the apparatus comprising:
the signal receiving module is used for receiving the control signal sent by the testing equipment through the application program;
the signal response module is used for responding to the control signal through the application program to obtain response data;
the display module is used for sending out an optical signal meeting a first target condition in the process of displaying the response data; the test equipment is used for detecting the optical signal sent by the terminal equipment, and determining the time difference between a first time point for sending the control signal and a second time point for detecting the optical signal meeting the first target condition as the control delay time.
19. A test device comprising a processor and a memory, the memory having stored therein at least one program code, the at least one program code being loaded and executed by the processor to implement the application testing method of any of claims 1 to 5.
20. A terminal device, characterized in that it comprises a processor and a memory, in which at least one program code is stored, which is loaded and executed by the processor to implement the application testing method according to any of claims 6 to 13.
21. A computer-readable storage medium having stored therein at least one program code, which is loaded and executed by a processor, to implement the application test method of any of claims 1 to 5, or to implement the application test method of any of claims 6 to 13.
CN202010748537.1A 2020-07-30 2020-07-30 Application program testing method and device, computer equipment and storage medium Pending CN114064443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010748537.1A CN114064443A (en) 2020-07-30 2020-07-30 Application program testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010748537.1A CN114064443A (en) 2020-07-30 2020-07-30 Application program testing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114064443A true CN114064443A (en) 2022-02-18

Family

ID=80227013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010748537.1A Pending CN114064443A (en) 2020-07-30 2020-07-30 Application program testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114064443A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951370A (en) * 2017-03-17 2017-07-14 深圳普瑞赛思检测技术有限公司 The assessment method and device of virtual reality device program operation delay
CN107071396A (en) * 2015-12-23 2017-08-18 欧普菲有限公司 For the method for test video system, device and computer program product
CN107423212A (en) * 2017-03-17 2017-12-01 深圳普瑞赛思检测技术有限公司 The assessment method and device of virtual reality device screen response delay
CN111013131A (en) * 2019-10-31 2020-04-17 咪咕互动娱乐有限公司 Delayed data acquisition method, electronic device, and storage medium
CN111245680A (en) * 2020-01-10 2020-06-05 腾讯科技(深圳)有限公司 Method, device, system, terminal and server for detecting cloud game response delay
CN111367434A (en) * 2020-03-06 2020-07-03 Oppo广东移动通信有限公司 Touch delay detection method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071396A (en) * 2015-12-23 2017-08-18 欧普菲有限公司 For the method for test video system, device and computer program product
CN106951370A (en) * 2017-03-17 2017-07-14 深圳普瑞赛思检测技术有限公司 The assessment method and device of virtual reality device program operation delay
CN107423212A (en) * 2017-03-17 2017-12-01 深圳普瑞赛思检测技术有限公司 The assessment method and device of virtual reality device screen response delay
CN111013131A (en) * 2019-10-31 2020-04-17 咪咕互动娱乐有限公司 Delayed data acquisition method, electronic device, and storage medium
CN111245680A (en) * 2020-01-10 2020-06-05 腾讯科技(深圳)有限公司 Method, device, system, terminal and server for detecting cloud game response delay
CN111367434A (en) * 2020-03-06 2020-07-03 Oppo广东移动通信有限公司 Touch delay detection method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109492698B (en) Model training method, object detection method and related device
EP3754644A1 (en) Apparatus and method for driving display based on frequency operation cycle set differently according to frequency
CN105867751B (en) Operation information processing method and device
US11206393B2 (en) Display latency measurement system using available hardware
CN106776385B (en) A kind of transmission method, device and the terminal of log log information
CN109240577B (en) Screen capturing method and terminal
CN109062468B (en) Split screen display method and device, storage medium and electronic equipment
CN108958629B (en) Split screen quitting method and device, storage medium and electronic equipment
JP7236551B2 (en) CHARACTER RECOMMENDATION METHOD, CHARACTER RECOMMENDATION DEVICE, COMPUTER AND PROGRAM
CN112116690B (en) Video special effect generation method, device and terminal
CN111177013A (en) Log data acquisition method and device, computer equipment and storage medium
CN110298304A (en) A kind of skin detecting method and terminal
CN109348206A (en) Image white balancing treatment method, device, storage medium and mobile terminal
US20240078071A1 (en) Interaction method between display device and terminal device, storage medium and electronic device
CN111027406A (en) Picture identification method and device, storage medium and electronic equipment
CN110888572A (en) Message display method and terminal equipment
CN114064443A (en) Application program testing method and device, computer equipment and storage medium
CN113238708B (en) Method and device for displaying touch operation information in head-mounted display equipment
CN114780181A (en) Resource display method, device, computer equipment and medium
CN115379113A (en) Shooting processing method, device, equipment and storage medium
CN112506384B (en) Interaction method, device and equipment based on laser signals and readable storage medium
CN110209592B (en) Settlement test method and device
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium
CN113064981A (en) Group head portrait generation method, device, equipment and storage medium
US10039986B2 (en) Game apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40065467

Country of ref document: HK