CN111858214A - Display abnormity detection method and device and electronic equipment - Google Patents

Display abnormity detection method and device and electronic equipment Download PDF

Info

Publication number
CN111858214A
CN111858214A CN202010701589.3A CN202010701589A CN111858214A CN 111858214 A CN111858214 A CN 111858214A CN 202010701589 A CN202010701589 A CN 202010701589A CN 111858214 A CN111858214 A CN 111858214A
Authority
CN
China
Prior art keywords
display
file
screen
time point
data
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
CN202010701589.3A
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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202010701589.3A priority Critical patent/CN111858214A/en
Publication of CN111858214A publication Critical patent/CN111858214A/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a detection method and a detection device for display abnormity and electronic equipment, wherein the detection method comprises the following steps: starting a display data recording function of the electronic equipment, continuously recording data displayed on an output screen, and storing the data into a file; when the screen display is abnormal, acquiring a target file containing a corresponding time point from the recording file according to the abnormal display time point; and identifying whether the screen display abnormality is a display screen hardware abnormality or not according to the target file. The invention can improve the positioning efficiency of displaying abnormal problems.

Description

Display abnormity detection method and device and electronic equipment
Technical Field
The present invention relates to the field of detection technologies, and in particular, to a method and an apparatus for detecting display anomalies, and an electronic device.
Background
In a development and test stage of an electronic device (e.g., a mobile terminal), various abnormal displays may appear on a display screen of the electronic device synchronously, such as a display screen with a flower, a display screen with a black screen, a display screen with a horizontal line, and the like. The display screen is a device used for displaying on the electronic equipment, and the use feeling of a user is directly affected by the quality of the display screen, so that the display problem cannot be easily solved.
Some display anomalies are due to display data anomalies (i.e. screen display anomalies are due to display data errors or defects, and screen display content is consistent with data in the display screen buffer), and some display anomalies are due to display screen hardware problems (i.e. screen display anomalies are due to display screen hardware, such as light-emitting elements, errors or defects, and screen display content is inconsistent with data in the display screen buffer). However, since the naked eye cannot distinguish the problem, if the problem occurs only in a moment, the probability is low, which increases the difficulty of solving the problem.
Disclosure of Invention
The invention aims to provide a display abnormity detection method and device and electronic equipment, which are used for identifying whether display abnormity occurs in the test process of the electronic equipment and is a display screen hardware problem or a display data problem.
The technical scheme provided by the invention is as follows:
a detection method of display abnormality, comprising: starting a display data recording function of the electronic equipment, continuously recording data displayed on an output screen, and storing the data into a file; when the screen display is abnormal, acquiring a target file containing a corresponding time point from the recording file according to the abnormal display time point; and identifying whether the screen display abnormality is a display screen hardware abnormality or not according to the target file.
Further, the continuously recording the data displayed on the output screen and storing the data into a file includes: and respectively storing the data displayed on the output screen into each file according to a preset time interval, wherein the file name of each file comprises the creation time point of the file.
Further, the acquiring the target file including the corresponding time point from the recording file according to the abnormal display time point includes: and acquiring a target file containing the corresponding time point from the recording file according to the abnormal display time point and the file name of each file in the recording file.
Further, the identifying whether the screen display abnormality is a display hardware abnormality according to the target file includes: acquiring frame data corresponding to the abnormal display time point from the target file; and when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality.
Further, the identifying whether the screen display abnormality is a display screen hardware abnormality according to the target file further includes: and when the frame data is consistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality does not belong to the display screen hardware abnormality.
Further, after the screen display abnormality occurs, the method further comprises the following steps: and acquiring a test operation flow causing the abnormal screen display according to the recording file between the abnormal display time point and the normal display time point before the abnormal display time point.
The present invention also provides a detection device for display abnormality, including: the display data recording module is used for starting the display data recording function of the electronic equipment, continuously recording the data displayed by the output screen and storing the data into a file;
the target file acquisition module is used for acquiring a target file containing a corresponding time point from the recording file according to the abnormal display time point when the screen display is abnormal;
and the display abnormity identification module is used for identifying whether the screen display abnormity is the display screen hardware abnormity according to the target file.
Further, the display data recording module is further configured to store the data displayed on the output screen into each file according to a preset time interval, where a file name of each file includes a creation time point of the file.
Further, the display abnormality identification module is further configured to acquire frame data corresponding to the abnormal display time point from the target file; and when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality.
The present invention also provides an electronic device comprising a memory for storing a computer program; and the processor is used for realizing the detection method of the display abnormity when the computer program is run.
The detection method and the device for displaying the abnormity and the electronic equipment provided by the invention can at least bring the following beneficial effects:
1. according to the invention, the display data recording function is started in the test of the electronic equipment, so that when the display abnormality occurs, whether the display abnormality is caused by the hardware abnormality of the display screen or the display data output by the system is caused by the abnormality can be rapidly distinguished according to the recorded file, and the problem positioning efficiency is improved.
2. The invention can effectively avoid occupying excessive storage space of the electronic equipment due to storing a large number of invalid files by circularly storing a plurality of display data files generated in the recording process in the storage area with fixed size.
3. The invention can trace the generation flow and the reproduction display problem of the display problem according to the recorded file, and improves the positioning efficiency of the small probability problem.
Drawings
The above features, technical features, advantages and implementations of a method and apparatus for detecting display abnormality, an electronic device, and a computer program product according to the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a flow chart of one embodiment of a method of detecting a display anomaly of the present invention;
FIG. 2 is a flow chart of another embodiment of a method of detecting a display anomaly of the present invention;
FIG. 3 is a flow chart of another embodiment of a method of detecting a display anomaly of the present invention;
FIG. 4 is a schematic structural diagram of an embodiment of a detection apparatus for displaying an abnormality according to the present invention;
FIG. 5 is a schematic structural diagram of another embodiment of a detection apparatus for displaying an abnormality according to the present invention;
fig. 6 is a schematic structural diagram of an embodiment of an electronic device of the present invention.
The reference numbers illustrate:
100. the display data recording module 200, the target file acquisition module 300, the display exception identification module 400, the operation flow backtracking module 20, the electronic device 30, the memory 40, the processor 50 and the computer program.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically depicted, or only one of them is labeled. In this document, "one" means not only "only one" but also a case of "more than one".
An embodiment of the present invention, as shown in fig. 1, is a method for detecting a display abnormality, including:
step S100 starts a display data recording function of the electronic device, continuously records data displayed on an output screen, and stores the data in a file.
Specifically, the electronic device herein refers to a device with a display screen, which can display information to a user through the display screen, such as an intelligent terminal, an instrument and meter.
The display data recording function is that the electronic equipment also stores data of a display screen cache area to other preset storage areas in real time while displaying; or the electronic equipment outputs the data to be displayed to a cache region corresponding to the display screen for display, and simultaneously stores the data to be displayed to other preset storage regions; for example in the form of a file stored on a hard disk of the electronic device.
When the test of the electronic equipment is started, the electronic equipment can automatically and synchronously start a display data recording function; and synchronously stopping the function of recording the display data when the test of the electronic equipment is stopped. Or dynamically starting or stopping the display data recording function according to the instruction of a tester in the middle of the test.
Optionally, a trigger condition is set, such as setting a key or a menu option, and the display data recording function is dynamically started or stopped. When receiving the corresponding instruction, the electronic device executes the corresponding function, namely, the function of starting/stopping the recording of the display data.
From the start of the display data recording function to the stop of recording, a file can be created; multiple files may also be created at preset time intervals.
Step S200, when the screen display is abnormal, the target file containing the corresponding time point is obtained from the recording file according to the abnormal display time point.
Specifically, in the test process of the electronic device, if display abnormality is found, the abnormal display time point is recorded, and meanwhile, an abnormal display interface can be recorded in a shooting or screen copying mode of other shooting equipment, so that the function of recording display data is stopped. And acquiring a file containing the display data of the abnormal display time point from the recorded file as a target file.
Step S300, identifying whether the screen display exception is a display screen hardware exception or not according to the target file.
Specifically, whether the display abnormality corresponding to the abnormal display time point is caused by the hardware fault of the display screen is identified according to the target file.
Optionally, obtaining frame data corresponding to the abnormal display time point from the target file; and when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality. And when the frame data is consistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality does not belong to the display screen hardware abnormality.
Each frame of data acquired from the target file is data to be displayed for each frame. The screen display content is the content actually displayed by the display screen. When the data to be displayed corresponding to the same time (for example, an abnormal display time point) is inconsistent with the content actually displayed by the display screen, it is indicated that the hardware of the display screen has a fault, so that the data to be displayed cannot be correctly displayed. When the data to be displayed corresponding to the same moment (such as an abnormal display time point) is consistent with the content actually displayed by the display screen, it is indicated that the display screen hardware has no problem, the data to be displayed is correctly displayed, but the data to be displayed has a problem, so that the tester considers that the display is abnormal (i.e. not in accordance with the expectation). The former needs to further search the specific fault point of the display screen hardware, and the latter needs to further search the reason of the data abnormality to be displayed.
According to the embodiment, the display data recording function is started during testing, so that the display data file can be conveniently and rapidly positioned according to the recorded display data file when the display is abnormal, whether the display screen hardware fault or the display data abnormality results, and the problem positioning efficiency is improved.
Another embodiment of the present invention, as shown in fig. 2, is a method for detecting a display abnormality, including:
step S110, in the process of testing the electronic device, starts a display data recording function, continuously records data displayed on an output screen, and circularly stores the data in a storage area with a fixed size in a file form.
Specifically, in the process of testing the electronic device, the function of recording the display data is started. When the test of the electronic equipment is started, the electronic equipment can automatically and synchronously start a display data recording function; and synchronously stopping the function of recording the display data when the test of the electronic equipment is stopped. Or dynamically starting or stopping the display data recording function according to the instruction of a tester in the middle of the test.
After the display data recording function is started, the electronic equipment stores the data displayed by the output screen to other preset storage areas in real time. The longer the recording time, the more data files are obtained, and the more storage space of the electronic equipment is occupied. If no display anomalies occur during the test, the large number of recorded display data files is invalid for the user. In order to avoid that such invalid files consume a large amount of storage space of the electronic device, the recorded data files are saved in a storage area with a fixed size by adopting a circular coverage mode. The circular coverage mode is that data files generated according to a time sequence are stored in a preset storage area in sequence, and when the bottom of the preset storage area is full, a new data file is written from the head of the preset storage area, so that an old data file is automatically covered. Therefore, the size of the storage area can be controlled, and the use of the detection function when display abnormity occurs is not influenced.
From the start of the display data recording function to the stop of recording, a file can be created; multiple files can also be created at preset time intervals and stored in sequence in preset storage areas.
Step S200, when the screen display is abnormal, the target file containing the corresponding time point is obtained from the recording file according to the abnormal display time point.
Specifically, in the test process of the electronic device, if display abnormality is found, the abnormal display time point is recorded, and meanwhile, an abnormal display interface is recorded in a shooting or screen copying mode of other camera devices, and the display data recording function is stopped. And acquiring a file containing the display data of the abnormal display time point from the recorded file as a target file.
Step S310 acquires frame data corresponding to the abnormal display time point from the target file.
Step S320, when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality.
Step S330, when the frame data is consistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality does not belong to a display screen hardware abnormality.
Specifically, each frame of data acquired from the target file is data to be displayed for each frame. The screen display content is the content actually displayed by the display screen. When the data to be displayed at the abnormal display time point is inconsistent with the actually displayed content of the display screen, the display screen hardware is indicated to have a fault, and the data to be displayed cannot be correctly displayed. When the data to be displayed at the abnormal display time point is consistent with the actual display content of the display screen, it is indicated that the display screen hardware has no problem, the data to be displayed is correctly displayed, but the data to be displayed has a problem, so that a tester considers that the display is abnormal (i.e. not in accordance with the expectation). The former needs to further search the specific fault point of the display screen hardware, and the latter needs to further search the reason of the data abnormality to be displayed.
According to the embodiment, the plurality of display data files generated in the recording process are circularly stored in the storage area with the fixed size, so that the situation that the electronic equipment occupies too much storage space due to the fact that a large number of invalid files are stored can be effectively avoided.
Another embodiment of the present invention, as shown in fig. 3, is a method for detecting a display abnormality, including:
step S120, in the process of testing the electronic device, starts a display data recording function, records data displayed on the output screen in real time, and circularly stores the data in a storage area with a fixed size in a file form.
The data displayed on the output screen in step S130 are respectively saved in each file at preset time intervals, and the file name of each file includes the creation time point of the file.
Specifically, when saving the data displayed on the output screen for each time period to a file, the creation time point of the file is included in the corresponding file name, which is advantageous in that the file containing the display data of the time point to be checked can be quickly found by the file name.
Step S210, when the screen display is abnormal, acquiring a target file including a corresponding time point from the recorded file according to the abnormal display time point and the file name of each file in the recorded file.
Step S310, acquiring frame data corresponding to the abnormal display time point from the target file;
step S320, when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality.
Step S330, when the frame data is consistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality does not belong to a display screen hardware abnormality.
Step S400 obtains a test operation procedure causing the screen display abnormality according to the recording file between the abnormal display time point and the normal display time point before the abnormal display time point.
Specifically, the operation method of the tester can be traced back by analyzing the recording file between the abnormal display time point and the normal display time point before the abnormal display time point, so that the analysis and display of how the problem is caused by operation and the reproduction of the display problem are facilitated.
The embodiment is applied to the research and development test of the android mobile phone:
newly creating a program bbk _ screenrecord for completing the function of recording display data:
a) the program calls a self-contained android software tool Screen record to acquire display data output to a Screen by a system, the display data are stored as files in an mp4 format and stored as a segment in 3 minutes, and the file is named in a mode of adding an index number to a time point for creating the file, such as 2019_02_15_16:09:25_1.mp4, so that the time point is conveniently searched.
b) Considering that recording a video file results in a reduction in storage space, a fixed-size storage area is set for storing the recorded video file, and a circular storage manner is adopted. Assuming that the storage area can store 100 files each having a fixed size, recorded data of 3 × 100 to 300 minutes can be stored. The index number of the file is increased from 0, the overlay storage is carried out circularly, and the index number is stored in another file, even if the machine is restarted, the previous index number can be stored continuously, namely the starting address written in the next file is found according to the previous index number. Therefore, the method can ensure relatively sufficient recording time, does not lose effective recorded data, and can control the size of the storage space.
An bbk _ screen record program is used as a system service-log service in an initialization (init) process, and particularly, bbk _ screen record service is added to init.rc under a system, and a trigger condition (such as a button event for starting/stopping a display data recording service) for starting/stopping the service is added.
When the user clicks to start recording the display data, the system starts bbk _ screen record service, and stores the data displayed on the output screen of the system. And when the screen display is abnormal, acquiring a target file containing the corresponding time point from the recorded file according to the abnormal display time point and the file name of each file in the recorded file. And identifying whether the screen display abnormality belongs to the display screen hardware abnormality or not according to the target file and the screen display content corresponding to the abnormal display time point.
Because bbk _ screen record is as a system service in operation, so its display data record function, not limited by lock screen, can always run in the background after the computer is started, even if entering dormancy/dormancy awaken state, will not stop recording, stable and reliable.
If the bbk _ screenrecord program is operated as a third-party software, when the terminal enters the sleep wake-up, the operation is stopped, and the recording function is stopped. By operating bbk _ screenrecord as a system service, the above problems are overcome, and the recording is more stable and reliable.
In the embodiment, the target file containing the abnormal display time point is conveniently searched by including the creation time point of the file in the file name of the recorded file; by analyzing the recording file between the abnormal display time point and the normal display time point before the abnormal display time point, the generation flow of the display problem can be traced, the display problem can be reproduced, and the positioning efficiency of the small probability problem is improved.
An embodiment of the present invention, as shown in fig. 4, is a detection apparatus for displaying an abnormality, including:
the display data recording module 100 is configured to start a display data recording function of the electronic device, continuously record data displayed on an output screen, and store the data in a file.
Specifically, the electronic device herein refers to a device with a display screen, which can display information to a user through the display screen, such as an intelligent terminal, an instrument and meter.
The display data recording function is that the electronic equipment also stores data of a display screen cache area to other preset storage areas in real time while displaying; or the electronic equipment outputs the data to be displayed to a cache region corresponding to the display screen for display, and simultaneously stores the data to be displayed to other preset storage regions; for example in the form of a file stored on a hard disk of the electronic device.
When the test of the electronic equipment is started, the electronic equipment can automatically and synchronously start a display data recording function; and synchronously stopping the function of recording the display data when the test of the electronic equipment is stopped. Or dynamically starting or stopping the display data recording function according to the instruction of a tester in the middle of the test.
Optionally, a trigger condition is set, such as setting a key or a menu option, and the display data recording function is dynamically started or stopped. When receiving the corresponding instruction, the electronic device executes the corresponding function, namely, the function of starting/stopping the recording of the display data.
From the start of the display data recording function to the stop of recording, a file can be created; multiple files may also be created at preset time intervals.
And the target file acquiring module 200 is configured to, when the screen display is abnormal, acquire a target file including a corresponding time point from the recording file according to the abnormal display time point.
Specifically, in the test process of the electronic device, if display abnormality is found, the abnormal display time point is recorded, and meanwhile, an abnormal display interface can be recorded in a shooting or screen copying mode of other shooting equipment, so that the function of recording display data is stopped. And acquiring a file containing the display data of the abnormal display time point from the recorded file as a target file.
And a display exception identifying module 300, configured to identify whether the screen display exception is a display screen hardware exception according to the target file.
Specifically, whether the display abnormality corresponding to the abnormal display time point is caused by the hardware fault of the display screen is identified according to the target file.
Optionally, obtaining frame data corresponding to the abnormal display time point from the target file; and when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality. And when the frame data is consistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality does not belong to the display screen hardware abnormality.
Each frame of data acquired from the target file is data to be displayed for each frame. The screen display content is the content actually displayed by the display screen. When the data to be displayed corresponding to the same time (for example, an abnormal display time point) is inconsistent with the content actually displayed by the display screen, it is indicated that the hardware of the display screen has a fault, so that the data to be displayed cannot be correctly displayed. When the data to be displayed corresponding to the same moment (such as an abnormal display time point) is consistent with the content actually displayed by the display screen, it is indicated that the display screen hardware has no problem, the data to be displayed is correctly displayed, but the data to be displayed has a problem, so that the tester considers that the display is abnormal (i.e. not in accordance with the expectation). The former needs to further search the specific fault point of the display screen hardware, and the latter needs to further search the reason of the data abnormality to be displayed.
According to the embodiment, the display data recording function is started during testing, so that the display data file can be conveniently and rapidly positioned according to the recorded display data file when the display is abnormal, whether the display screen hardware fault or the display data abnormality results, and the problem positioning efficiency is improved.
Another embodiment of the present invention, as shown in fig. 4, is a detection apparatus for displaying an abnormality, including:
The display data recording module 100 is configured to start a display data recording function during a test process of the electronic device, continuously record data displayed on an output screen, and cyclically store the data in a storage area with a fixed size in a file form.
Specifically, in the process of testing the electronic device, the function of recording the display data is started. When the test of the electronic equipment is started, the electronic equipment can automatically and synchronously start a display data recording function; and synchronously stopping the function of recording the display data when the test of the electronic equipment is stopped. Or dynamically starting or stopping the display data recording function according to the instruction of a tester in the middle of the test.
After the display data recording function is started, the electronic equipment stores the data displayed by the output screen to other preset storage areas in real time. The longer the recording time, the more data files are obtained, and the more storage space of the electronic equipment is occupied. If no display anomalies occur during the test, the large number of recorded display data files is invalid for the user. In order to avoid that such invalid files consume a large amount of storage space of the electronic device, the recorded data files are saved in a storage area with a fixed size by adopting a circular coverage mode. The circular coverage mode is that data files generated according to a time sequence are stored in a preset storage area in sequence, and when the bottom of the preset storage area is full, a new data file is written from the head of the preset storage area, so that an old data file is automatically covered. Therefore, the size of the storage area can be controlled, and the use of the detection function when display abnormity occurs is not influenced.
From the start of the display data recording function to the stop of recording, a file can be created; multiple files can also be created at preset time intervals and stored in sequence in preset storage areas.
And the target file acquiring module 200 is configured to, when the screen display is abnormal, acquire a target file including a corresponding time point from the recording file according to the abnormal display time point.
Specifically, in the test process of the electronic device, if display abnormality is found, the abnormal display time point is recorded, and meanwhile, an abnormal display interface is recorded in a shooting or screen copying mode of other camera devices, and the display data recording function is stopped. And acquiring a file containing the display data of the abnormal display time point from the recorded file as a target file.
A display anomaly identification module 300, configured to obtain frame data corresponding to an anomalous display time point from the target file; when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality; and when the frame data is consistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality does not belong to the display screen hardware abnormality.
Specifically, each frame of data acquired from the target file is data to be displayed for each frame. The screen display content is the content actually displayed by the display screen. When the data to be displayed at the abnormal display time point is inconsistent with the actually displayed content of the display screen, the display screen hardware is indicated to have a fault, and the data to be displayed cannot be correctly displayed. When the data to be displayed at the abnormal display time point is consistent with the actual display content of the display screen, it is indicated that the display screen hardware has no problem, the data to be displayed is correctly displayed, but the data to be displayed has a problem, so that a tester considers that the display is abnormal (i.e. not in accordance with the expectation). The former needs to further search the specific fault point of the display screen hardware, and the latter needs to further search the reason of the data abnormality to be displayed.
According to the embodiment, the plurality of display data files generated in the recording process are circularly stored in the storage area with the fixed size, so that the situation that the electronic equipment occupies too much storage space due to the fact that a large number of invalid files are stored can be effectively avoided.
Another embodiment of the present invention, as shown in fig. 5, is a detection apparatus for displaying an abnormality, including:
the display data recording module 100 is used for starting a display data recording function in the test process of the electronic equipment, recording data displayed on an output screen in real time, and circularly storing the data into a storage area with a fixed size in a file form; and the data displayed by the output screen are respectively stored in each file according to a preset time interval, and the file name of each file comprises the creation time point of the file.
Specifically, when saving the data displayed on the output screen for each time period to a file, the creation time point of the file is included in the corresponding file name, which is advantageous in that the file containing the display data of the time point to be checked can be quickly found by the file name.
And the target file acquiring module 200 is configured to, when the screen display is abnormal, acquire a target file including a corresponding time point from the recorded file according to the abnormal display time point and the file name of each file in the recorded file.
A display anomaly identification module 300, configured to obtain frame data corresponding to the anomalous display time point from the target file; when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality; and when the frame data is consistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality does not belong to the display screen hardware abnormality.
An operation flow backtracking module 400, configured to obtain a test operation flow causing the screen display to be abnormal according to a recording file between the abnormal display time point and a normal display time point before the abnormal display time point.
Specifically, the operation method of the tester can be traced back by analyzing the recording file between the abnormal display time point and the normal display time point before the abnormal display time point, so that the analysis and display of how the problem is caused by operation and the reproduction of the display problem are facilitated.
The embodiment is applied to the research and development test of the android mobile phone:
newly creating a program bbk _ screenrecord for completing the function of recording display data:
a) the program calls a self-contained android software tool Screen record to acquire display data output to a Screen by a system, the display data are stored as files in an mp4 format and stored as a segment in 3 minutes, and the file is named in a mode of adding an index number to a time point for creating the file, such as 2019_02_15_16:09:25_1.mp4, so that the time point is conveniently searched.
b) Considering that recording a video file results in a reduction in storage space, a fixed-size storage area is set for storing the recorded video file, and a circular storage manner is adopted. Assuming that the storage area can store 100 files each having a fixed size, recorded data of 3 × 100 to 300 minutes can be stored. The index number of the file is increased from 0, the overlay storage is carried out circularly, and the index number is stored in another file, even if the machine is restarted, the previous index number can be stored continuously, namely the starting address written in the next file is found according to the previous index number. Therefore, the method can ensure relatively sufficient recording time, does not lose effective recorded data, and can control the size of the storage space.
An bbk _ screen record program is used as a system service-log service in an initialization (init) process, and particularly, bbk _ screen record service is added to init.rc under a system, and a trigger condition (such as a button event for starting/stopping a display data recording service) for starting/stopping the service is added.
When the user clicks to start recording the display data, the system starts bbk _ screen record service, and stores the data displayed on the output screen of the system. And when the screen display is abnormal, acquiring a target file containing the corresponding time point from the recorded file according to the abnormal display time point and the file name of each file in the recorded file. And identifying whether the screen display abnormality belongs to the display screen hardware abnormality or not according to the target file and the screen display content corresponding to the abnormal display time point.
Because bbk _ screen record is as a system service in operation, so its display data record function, not limited by lock screen, can always run in the background after the computer is started, even if entering dormancy/dormancy awaken state, will not stop recording, stable and reliable.
If the bbk _ screenrecord program is operated as a third-party software, when the terminal enters the sleep wake-up, the operation is stopped, and the recording function is stopped. By operating bbk _ screenrecord as a system service, the above problems are overcome, and the recording is more stable and reliable.
In the embodiment, the target file containing the abnormal display time point is conveniently searched by including the creation time point of the file in the file name of the recorded file; by analyzing the recording file between the abnormal display time point and the normal display time point before the abnormal display time point, the generation flow of the display problem can be traced, the display problem can be reproduced, and the positioning efficiency of the small probability problem is improved.
One embodiment of the present invention, as shown in FIG. 6, an electronic device 20 includes a memory 30, a processor 40; the memory 30 for storing a computer program 50; the processor 40 is configured to implement the method for detecting a display abnormality according to any one of the foregoing embodiments when the computer program 50 is executed.
As an example, the processor 40 realizes the steps S100 to S300 according to the foregoing description when executing the computer program. Further, the processor 40 implements the functions of each module and unit in the display abnormality detection device described above when executing the computer program. As yet another example, processor 40, when executing computer programs, implements the functions of display data recording module 100, object file acquisition module 200, and display anomaly identification module 300.
Alternatively, the computer program may be divided into one or more modules/units according to the particular needs to accomplish the invention. Each module/unit may be a series of computer program instruction segments capable of performing a particular function. The computer program instruction segment is used for describing the execution process of the computer program in the display abnormity detection device. As an example, the computer program may be divided into modules/units in a virtual device, such as a display data recording module, an object file acquisition module, and a display abnormality recognition module.
The processor is configured to implement detection of a display anomaly by executing the computer program. The processor may be a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA), general purpose processor or other logic device, etc., as desired.
The memory may be any internal storage unit and/or external storage device capable of implementing data, program storage. For example, the memory may be a plug-in hard disk, a smart card (SMC), a Secure Digital (SD) card, or a flash card. The memory is used for storing computer programs, other programs of the detection device for displaying the abnormity and data.
The electronic device 20 may further include an input/output device, a display device, a network access device, a bus, and the like, as required.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for detecting display abnormality, comprising:
starting a display data recording function of the electronic equipment, continuously recording data displayed on an output screen, and storing the data into a file;
when the screen display is abnormal, acquiring a target file containing a corresponding time point from the recording file according to the abnormal display time point;
and identifying whether the screen display abnormality is a display screen hardware abnormality or not according to the target file.
2. The method for detecting display abnormality according to claim 1, wherein said continuously recording the data displayed on the output screen and storing the data in a file comprises:
and respectively storing the data displayed on the output screen into each file according to a preset time interval, wherein the file name of each file comprises the creation time point of the file.
3. The method for detecting display abnormality according to claim 2, wherein the acquiring a target file including a corresponding time point from a recorded file according to an abnormal display time point includes:
and acquiring a target file containing the corresponding time point from the recording file according to the abnormal display time point and the file name of each file in the recording file.
4. The method for detecting display abnormality according to claim 3, wherein said identifying whether said screen display abnormality is a screen hardware abnormality based on said object file includes:
acquiring frame data corresponding to the abnormal display time point from the target file;
and when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality.
5. The method for detecting display anomalies according to claim 4, wherein the identifying whether the screen display anomalies are screen hardware anomalies according to the object files further comprises:
and when the frame data is consistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality does not belong to the display screen hardware abnormality.
6. The method for detecting a display abnormality according to claim 1, further comprising, after the occurrence of a screen display abnormality:
and acquiring a test operation flow causing the abnormal screen display according to the recording file between the abnormal display time point and the normal display time point before the abnormal display time point.
7. A detection apparatus for displaying an abnormality, comprising:
The display data recording module is used for starting the display data recording function of the electronic equipment, continuously recording the data displayed by the output screen and storing the data into a file;
the target file acquisition module is used for acquiring a target file containing a corresponding time point from the recording file according to the abnormal display time point when the screen display is abnormal;
and the display abnormity identification module is used for identifying whether the screen display abnormity is the display screen hardware abnormity according to the target file.
8. The display abnormality detection apparatus according to claim 7, characterized in that:
the display data recording module is further used for respectively storing the data displayed on the output screen into each file according to a preset time interval, and the file name of each file comprises the creation time point of the file.
9. The display abnormality detection apparatus according to claim 7, characterized in that:
the display abnormity identification module is further used for acquiring frame data corresponding to the abnormal display time point from the target file; and when the frame data is inconsistent with the screen display content corresponding to the abnormal display time point, the screen display abnormality belongs to a display screen hardware abnormality.
10. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the method of detecting a display anomaly according to any one of claims 1 to 6 when running the computer program.
CN202010701589.3A 2020-07-20 2020-07-20 Display abnormity detection method and device and electronic equipment Pending CN111858214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010701589.3A CN111858214A (en) 2020-07-20 2020-07-20 Display abnormity detection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010701589.3A CN111858214A (en) 2020-07-20 2020-07-20 Display abnormity detection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111858214A true CN111858214A (en) 2020-10-30

Family

ID=73001653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010701589.3A Pending CN111858214A (en) 2020-07-20 2020-07-20 Display abnormity detection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111858214A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130158930A1 (en) * 2011-12-20 2013-06-20 Hon Hai Precision Industry Co., Ltd. Computing device and method for detecting defective hardware of image measurement machine
US9195829B1 (en) * 2013-02-23 2015-11-24 Fireeye, Inc. User interface with real-time visual playback along with synchronous textual analysis log display and event/time index for anomalous behavior detection in applications
CN106488161A (en) * 2016-10-19 2017-03-08 网易(杭州)网络有限公司 Electronic equipment screen video data obtains system, method and apparatus
CN107888912A (en) * 2017-11-22 2018-04-06 深圳创维-Rgb电子有限公司 The abnormal recognition methods of display screen display and system
CN107908492A (en) * 2017-10-31 2018-04-13 努比亚技术有限公司 Blank screen detection method, mobile terminal and computer-readable recording medium
CN108566550A (en) * 2018-07-03 2018-09-21 广州视源电子科技股份有限公司 Aging test method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130158930A1 (en) * 2011-12-20 2013-06-20 Hon Hai Precision Industry Co., Ltd. Computing device and method for detecting defective hardware of image measurement machine
US9195829B1 (en) * 2013-02-23 2015-11-24 Fireeye, Inc. User interface with real-time visual playback along with synchronous textual analysis log display and event/time index for anomalous behavior detection in applications
CN106488161A (en) * 2016-10-19 2017-03-08 网易(杭州)网络有限公司 Electronic equipment screen video data obtains system, method and apparatus
CN107908492A (en) * 2017-10-31 2018-04-13 努比亚技术有限公司 Blank screen detection method, mobile terminal and computer-readable recording medium
CN107888912A (en) * 2017-11-22 2018-04-06 深圳创维-Rgb电子有限公司 The abnormal recognition methods of display screen display and system
CN108566550A (en) * 2018-07-03 2018-09-21 广州视源电子科技股份有限公司 Aging test method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN108255729B (en) Mobile phone game automatic testing method and system based on Unity platform
US8116179B2 (en) Simultaneous viewing of multiple tool execution results
US8086904B2 (en) Event-based setting of process tracing scope
CN115145778B (en) Method and device for analyzing rendering result of display card and storage medium
CN109669798B (en) Crash analysis method, crash analysis device, electronic equipment and storage medium
CN111866577B (en) Screen recording method, electronic device and computer readable storage medium
CN112181815A (en) Python-based exception capture method and device and computer readable storage medium
CN108241560B (en) Memory test method and device and electronic equipment
US20130036330A1 (en) Execution difference identification tool
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
WO2018205392A1 (en) Control response area display control method, electronic apparatus, and storage medium
CN109800124B (en) CPU utilization monitoring method and device, electronic equipment and storage medium
CN111124774B (en) Method and related device for testing stability of server in starting process
CN111858214A (en) Display abnormity detection method and device and electronic equipment
CN116737472B (en) Method and device for testing memory time sequence training process
WO2020073200A1 (en) Program debugging method and system
CN110569184B (en) Test method and terminal equipment
CN101482841B (en) Debugging apparatus and method for embedded system
CN100501669C (en) Screen protection system and method
CN114461479A (en) Method and device for debugging multimedia processing chip, storage medium and electronic equipment
KR20220167353A (en) Methods, apparatuses, systems, media and computer devices for processing data
CN113127242A (en) Application crash processing method and processing device
CN112181744A (en) Fault detection method, system, terminal and storage medium of converter interface
CN112486785A (en) Method, system, terminal and storage medium for positioning downtime phase of server
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium

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