CN112788332B - Smart television testing method and related device - Google Patents
Smart television testing method and related device Download PDFInfo
- Publication number
- CN112788332B CN112788332B CN202110019195.4A CN202110019195A CN112788332B CN 112788332 B CN112788332 B CN 112788332B CN 202110019195 A CN202110019195 A CN 202110019195A CN 112788332 B CN112788332 B CN 112788332B
- Authority
- CN
- China
- Prior art keywords
- memory
- audio
- data
- curve
- test
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, testing or measuring for television systems or their details for digital television systems
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The embodiment of the application discloses a smart television testing method and a related device, and relates to the technical field of smart televisions. The method of the embodiment of the application comprises the following steps: acquiring audio and video data and storing the audio and video data in the smart television; receiving a test command, wherein the test command is used for instructing the smart television to execute an audio and video playing program and recording memory data information to a log file; executing the test command to form a log file; converting the memory data information in the log file into a memory data curve; calculating the memory curve slope of the memory data curve; judging whether the slope of the memory curve is greater than a preset threshold value or not; when the slope of the memory curve is larger than a preset threshold value, outputting preset warning information; automatically searching whether the log file has abnormal keywords or not; and triggering and executing the step of outputting the preset warning information when the abnormal keywords exist in the log file. By the method, the intelligent television can be tested, and instantaneous faults of the intelligent television in the testing process can be found.
Description
Technical Field
The embodiment of the application relates to the technical field of intelligent televisions, in particular to an intelligent television testing method and a related device.
Background
At present, in order to ensure the production quality of the smart television, a user can experience the smart television stably and well, and the smart television generally needs to be subjected to pressure test for a certain time so as to know whether the smart television can be kept stable in the pressure test for the certain time.
In the prior art, a manual testing method is often used, for example, a tester turns on a smart television to play a video for a long time and observes whether the television is abnormal or not. The manual testing method has low efficiency, long time and easy leakage of abnormal phenomena, and most importantly, the manual testing method can not capture required instantaneous fault information frequently. Therefore, in order to solve the above problems, a testing method capable of monitoring the smart tv for a long time is urgently needed, which is used for testing the smart tv and finding out a transient fault in the testing process of the smart tv.
Disclosure of Invention
The embodiment of the application provides a testing method and a related device for an intelligent television, which are used for testing the intelligent television and finding out instantaneous faults of the intelligent television in the testing process.
The application provides a smart television testing method in a first aspect, which includes:
audio and video data with a proper file size are obtained and stored in the smart television;
receiving a test command input through a serial port debugging tool, wherein the test command is used for instructing the smart television to execute an audio and video playing program and recording memory data information of the smart television to a log file, and the audio and video playing program is a program for playing audio and video data;
executing the test command to form the log file;
converting the memory data information in the log file into a memory data curve;
calculating the memory curve slope of the memory data curve;
judging whether the slope of the memory curve is greater than a preset threshold value or not;
when the slope of the memory curve is larger than the preset threshold value, outputting preset warning information;
automatically searching whether the log file has abnormal keywords or not;
and triggering and executing the step of outputting preset warning information when the abnormal keywords exist in the log file.
Optionally, the memory data information is: remaining memory data information or using memory data information; the converting the memory data information in the log file into a memory data curve includes:
converting the residual memory data information in the log file into a residual memory curve;
or the like, or, alternatively,
and converting the used memory data information in the log file into a used memory curve.
Optionally, the test command is used to instruct the smart television to acquire current memory data information of the smart television every 10 seconds to 30 seconds, and update the current memory data information into the log file;
the abnormal keywords are as follows: error, failed, out of memory, and/or coredump.
Optionally, before obtaining the audio-video data with the appropriate file size, the method further includes:
selecting a section of ultra-high-definition audio and video data, and intercepting a data segment of 30-60 seconds in the ultra-high-definition audio and video data;
converting the data segments into a plurality of test data segments with different definitions;
recording the use memory data information corresponding to the test data segments played by the smart television respectively;
calculating the average memory occupancy rates corresponding to the test data segments with different definitions according to the used memory data information;
selecting a corresponding test data fragment with an average memory occupancy rate of 50% -65% as an audio and video test fragment;
and splicing the multiple sections of audio and video test fragments into audio and video data with preset duration.
Optionally, the audio-video data is online audio-video data.
Optionally, the test command includes a test duration; the executing the test command to form the log file includes:
starting a timer to start timing;
and when the timer reaches the testing time length, finishing executing the testing command and generating the log file corresponding to the testing time length.
The second aspect of the present application provides a smart tv test system, including:
the acquisition unit is used for acquiring audio and video data with proper file size and storing the audio and video data in the intelligent television;
the system comprises a receiving unit, a debugging unit and a processing unit, wherein the receiving unit is used for receiving a test command input through a serial port debugging tool, the test command is used for indicating the intelligent television to execute an audio and video playing program and recording memory data information of the intelligent television to a log file, and the audio and video playing program is a program for playing audio and video data;
the execution unit is used for executing the test command to form the log file;
the conversion unit is used for converting the memory data information in the log file into a memory data curve;
the computing unit is used for computing the memory curve slope of the memory data curve;
the judging unit is used for judging whether the slope of the memory curve is greater than a preset threshold value or not;
the output unit is used for outputting preset warning information when the slope of the memory curve is greater than the preset threshold;
the searching unit is used for automatically searching whether the log file has abnormal keywords or not;
and the triggering unit is used for triggering and executing the step of outputting the preset warning information when the abnormal key words exist in the log file.
Optionally, the memory data information is: remaining memory data information or using memory data information; when the converting unit converts the memory data information in the log file into a memory data curve, the converting unit specifically includes:
converting the residual memory data information in the log file into a residual memory curve;
or the like, or, alternatively,
and converting the used memory data information in the log file into a used memory curve.
Optionally, the test command is used to instruct the smart television to acquire current memory data information of the smart television every 10 seconds to 30 seconds, and update the current memory data information into the log file;
the abnormal keywords are as follows: error, failed, out of memory, and/or coredump.
Optionally, the system further comprises:
the system comprises a selection unit, a data acquisition unit and a data processing unit, wherein the selection unit is used for selecting a section of ultra-high-definition audio and video data and intercepting a data segment of 30-60 seconds in the ultra-high-definition audio and video data;
the conversion unit is also used for converting the data segments into a plurality of test data segments with different definitions;
the recording unit is used for recording the use memory data information corresponding to the test data segments played by the smart television respectively;
the computing unit is further used for computing the average memory occupancy rates corresponding to the test data segments with different definitions according to the used memory data information;
the selection unit is used for selecting the corresponding test data segment with the average memory occupancy rate of 50% -65% as the audio/video test segment;
and the splicing unit is used for splicing the multiple sections of audio and video test fragments into audio and video data with preset duration.
Optionally, the audio-video data is online audio-video data.
Optionally, the test command includes a test duration; when the execution unit executes the test command to form the log file, the execution unit is specifically configured to:
starting a timer to start timing;
and when the timer reaches the testing time length, finishing executing the testing command and generating the log file corresponding to the testing time length.
The third aspect of the present application provides a smart tv test device, including:
the system comprises a processor, a memory, a bus and input and output equipment;
the processor is connected with the memory and the input and output equipment;
the bus is respectively connected with the processor, the memory and the input and output equipment;
the processor performs the method of any of the preceding first aspects.
A fourth aspect of the present application provides a storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of any of the preceding first aspects.
A fifth aspect of the present application provides a computer program product which, when executed on a computer, causes the computer to perform the method of any one of the preceding first aspects.
According to the technical scheme, the embodiment of the application has the following advantages:
the method for testing the smart television comprises the steps of firstly obtaining audio and video data with proper file size, storing the audio and video data in the smart television, and then receiving a test command input through a serial port debugging tool, wherein the test command is used for instructing the smart television to execute an audio and video playing program and recording memory data information of the smart television to a log file, and the audio and video playing program is a program for playing the audio and video data; after the smart television executes the test command, a log file is formed, the log file of the smart television is read, the memory data information in the log file is converted into a memory data curve, the slope of the memory data curve is calculated, whether the memory curve slope is greater than a preset threshold value or not is judged, whether the transient fault occurs during the memory test of the smart television can be directly determined, namely whether the corresponding memory curve slope at a certain moment is greater than the preset threshold value or not is judged, the transient fault occurs in the memory of the smart television at the moment is considered, and the method for directly determining whether the transient fault occurs during the memory test of the smart television by simply judging whether the memory curve slope is greater than the preset threshold value or not is over-ideal in order to avoid the situation that the method for directly determining whether the transient fault occurs during the memory test of the smart television is over-ideal, because the recording of the memory data information is not continuous, and the transient fault also possibly occurs in a time gap when the memory data information is not recorded, according to the method, whether abnormal keywords exist in the log file or not is automatically searched, the abnormal keywords can record abnormal events into the log file when the running memory is abnormal, namely whether transient faults occur or not when the running memory of the intelligent television is tested can be determined by combining the abnormal keywords, monitoring of time gaps when the memory data information is recorded is compensated, and therefore the intelligent television testing method can test the intelligent television and can find the transient faults in the testing process of the intelligent television.
Drawings
Fig. 1 is a schematic flowchart of an embodiment of a smart television testing method according to the present application;
fig. 2 is a schematic flowchart of another embodiment of the smart television testing method according to the present application;
FIG. 3 is a schematic structural diagram of an embodiment of an intelligent television testing system according to the present application;
fig. 4 is a schematic structural diagram of another embodiment of the smart television test system of the present application;
fig. 5 is a schematic structural diagram of an embodiment of the intelligent television testing device according to the present application.
Detailed Description
The embodiment of the application provides a testing method and a related device for an intelligent television, which are used for testing the intelligent television and finding out instantaneous faults of the intelligent television in the testing process.
It should be noted that the smart television of the present application is a television with an operating system, and the operating system of the smart television may form and store a log file automatically or under the control of a specific program. A log file is a record file or collection of files used to record system operational events. The log file has important roles of processing historical data, tracing diagnostic problems, understanding the activities of the system, and the like.
Referring to fig. 1, an embodiment of a smart tv testing method according to the present application includes:
101. and audio and video data with a proper file size are obtained and stored in the intelligent television.
The intelligent television testing method is mainly based on the process of simulating daily use of the intelligent television by a user, generally speaking, the using scene of the intelligent television is to play audio and video data, so in order to test the intelligent television, the audio and video data are required to be obtained in advance and stored in the intelligent television, and the audio and video data for testing are obtained according to different hardware configurations (such as different sizes of memory storage spaces) of the intelligent television as a test object, so that the audio and video data with different file sizes are obtained to be suitable for the tested intelligent television. It is worth noting that the audio/video data in this step can be online audio/video data, that is, downloaded online through a network; or the data can be imported into the intelligent television through a hardware interface of the intelligent television.
102. And receiving a test command input by a serial port debugging tool, wherein the test command is used for instructing the intelligent television to execute an audio and video playing program and recording memory data information of the intelligent television to a log file, and the audio and video playing program is a program for playing audio and video data.
After audio and video data with a proper file size for testing exist in the smart television in step 101, a test command is input to the smart television through a serial port debugging tool in the step, so that the smart television runs the test command in subsequent steps, and the test command is used for indicating the tested smart television to execute a preset program and recording memory information of the smart television to a log file. For example: the command 'watch-n 20' sh/applications/bin/showmap.sh & cat/sys/kernel/debug/mali/gpu _ memory & free-m & cat/proc/swab '&' is input to the smart television through a serial port tool, namely the smart television detects the use condition of the self-running memory every 20s when running the command. The specific form of the test command is not limited herein.
The preset program in the general test command is an audio/video playing program, and the audio/video playing program can control the smart television to play the audio/video data, that is, the test command enables the tested smart television to execute the audio/video playing program and record the memory data information of the smart television to the corresponding log file.
103. And executing the test command to form a log file.
And executing the test command received in the step 102, and recording the memory data information of the test process according to the test command to form a log file. The log file at least comprises memory data information of the intelligent television. The memory data information at least reflects the size of the operating memory of the smart television, and the memory data information also reflects the size of instantaneous values corresponding to different moments of the operating memory of the smart television within a certain time period.
104. And converting the memory data information in the log file into a memory data curve.
After the memory data information in the log file is obtained in step 103, the memory data curve may be obtained by taking different times of the memory data information as horizontal axis data of the two-dimensional coordinate, taking instantaneous values corresponding to the different times of the memory data information as vertical axis data of the two-dimensional coordinate, and connecting the instantaneous values between adjacent two times. Of course, in the actual application process, the MATLAB plot function can also be used to directly generate the memory data curve.
105. And calculating the memory curve slope of the memory data curve.
In this step, the slope of the memory curve is calculated for the memory data curve in step 104. It can be understood that the memory curve slope of the memory data curve is a set of slopes between corresponding adjacent moments on the memory data curve, and specifically includes at least a set of slopes between instantaneous values corresponding to two adjacent different moments in the operating memory reflected by the calculated memory data information. For example, the instantaneous values corresponding to two adjacent different time instants in the two-dimensional coordinates are connected by a straight line, and the slope of the straight line is the slope between the instantaneous values corresponding to the two adjacent different time instants in the operation memory, or when the coordinates of the latter time instant are (X1, Y1) and the coordinates of the former time instant are (X2, Y2), the slope between the instantaneous values corresponding to the two adjacent different time instants in the operation memory is (Y1-Y2)/(X1-X2).
106. And judging whether the slope of the memory curve is greater than a preset threshold, and if so, executing step 107.
In this step, it is determined whether the slope of the memory curve in step 105 has a value greater than a preset threshold, where the value is a preset value, and the value of the preset threshold is not limited. By setting preset threshold values with different numerical values, the alarm sensitivity of the intelligent television testing method can be adjusted.
107. And outputting preset warning information.
When it is determined in step 106 that the slope of the memory curve is greater than the preset threshold, it means that the operating memory of the smart television at two adjacent moments in the test process suddenly changes too much, and the operating memory state is unstable. The preset warning information can be a jump-out preset warning pop-up window, a preset sound alarm and the like, and the specific form of the preset warning information is not limited.
108. And automatically searching whether the log file has abnormal keywords or not.
After the log file is formed in step 103, the embodiment of the present application may also directly determine the log file, that is, determine whether the log file has abnormal keywords, for example, the abnormal keywords include: the abnormal keywords are often in log files, the log files are just corresponding log files in the testing process, whether the abnormal keywords exist in the log files or not can be directly judged, whether fault moments exist in the testing process or not can be determined, but the abnormal keywords are often formed after all running memories of the intelligent television are occupied, and compared with an intelligent television testing method capable of setting a preset threshold value, the intelligent television testing method is lack of flexibility and is high in authenticity. For example, the log may be read by a python script, and an error log may be automatically output by a command "elif" OOM "in-line or" duplicate "in-line: print-line". By using the method for judging whether the abnormal keywords exist in the log file in the step and combining the intelligent television testing method capable of setting the preset threshold value, the intelligent television can be tested more comprehensively and accurately.
The intelligent television testing method comprises the steps of firstly obtaining audio and video data with proper file size, storing the audio and video data in the intelligent television, and then receiving a testing command input through a serial port debugging tool, wherein the testing command is used for indicating the intelligent television to execute an audio and video playing program and recording memory data information of the intelligent television to a log file, and the audio and video playing program is a program for playing the audio and video data; after the smart television executes the test command, a log file is formed, the log file of the smart television is read, the memory data information in the log file is converted into a memory data curve, the slope of the memory data curve is calculated, whether the memory curve slope is greater than a preset threshold value or not is judged, whether the transient fault occurs during the memory test of the smart television can be directly determined, namely whether the corresponding memory curve slope at a certain moment is greater than the preset threshold value or not is judged, the transient fault occurs in the memory of the smart television at the moment is considered, and the method for directly determining whether the transient fault occurs during the memory test of the smart television by simply judging whether the memory curve slope is greater than the preset threshold value or not is over-ideal in order to avoid the situation that the method for directly determining whether the transient fault occurs during the memory test of the smart television is over-ideal, because the recording of the memory data information is not continuous, and the transient fault also possibly occurs in a time gap when the memory data information is not recorded, the method is combined with automatic search for whether abnormal keywords exist in the log file or not, and the abnormal keywords can record abnormal events into the log file when the running memory is abnormal, namely, the method can be combined with the abnormal keywords to determine whether transient faults occur when the intelligent television runs a memory test or not, so that the monitoring of time gaps when memory data information is recorded is compensated, and the intelligent television test method can test the intelligent television and can find the transient faults in the test process of the intelligent television.
Referring to fig. 2, another embodiment of the smart television testing method according to the present application is described in combination with an acquisition process of audio/video data for testing by a smart television, and includes:
201. selecting a section of ultra-high-definition audio and video data, and intercepting a data segment of 30-60 seconds in the ultra-high-definition audio and video data.
In order to meet the testing requirements of smart televisions with different hardware configurations, the testing method for the smart televisions needs to select a section of ultra-high-definition audio and video data, such as an audio and video playing material with 8k image quality, wherein the audio and video playing material with 8k image quality has a certain playing time, and generally has at least one minute. In this step, a data segment of 30 seconds to 60 seconds in the ultra-high definition audio/video data is intercepted, and is generally a highlight content part in the audio/video playing material with the 8k picture quality.
202. And converting the data segments into a plurality of test data segments with different definitions.
And adjusting the resolution of the data segments intercepted in the step 201 into test data segments with different definitions. For example, a data segment with 8k image quality is copied and converted into test data segments corresponding to 4k, 2k, 1080p, 720p and other resolutions, and the converted test data segments corresponding to different resolutions are stored in association with an original data segment with 8k image quality, and at this time, the original data segment with 8k image quality also belongs to the test data segment.
203. And respectively playing the test data segments and recording the use memory data information of the intelligent television.
And trying to play the test data segments corresponding to the different resolutions in the step 202 on the smart television to be tested, and recording the used memory data information of the smart television, which of course also needs to record the total operating memory size of the smart television. It should be noted that, in this step, test data segments corresponding to different resolutions are played on the smart television to be tested in a trial mode, and are not recorded in a formal test process. It can be understood that the application scenarios of the smart televisions with different hardware configurations are different, the resolutions of the audios and videos which are frequently played are also different, and this step is used for detecting the audio and video data with the resolution which is most suitable for being played by the smart television to be tested.
204. And calculating the average memory occupancy rates corresponding to the test data segments with different definitions according to the used memory data information.
Analyzing the used memory data information recorded when the smart television plays the test data segments with different resolutions in step 203, and calculating the average memory occupancy rates corresponding to the test data segments with different definitions. For example, when a common 1080p resolution smart television plays a test data segment higher than its own resolution, the test data segment with high resolution needs to be compressed, and at this time, its operating memory will be higher; when a common 1080p resolution smart television plays a test data segment with a resolution lower than the resolution of the television, the number of processes for processing the test data segment is much smaller, and the running memory is lower at this time. However, because the sizes of the running memories of the different configured smart televisions are different, the smart televisions with larger running memories and smaller resolutions can also generally process the test fragments when running the test fragments with higher resolutions than the smart televisions with the smaller running memories. For comprehensive evaluation, the average memory occupancy rates corresponding to the test data segments with different definitions are calculated and used as the selection standard of the more suitable test data segments of the smart television.
205. And selecting the corresponding test data segment with the average memory occupancy rate of 50-65% as the audio/video test segment.
In order to simulate a playing environment facing high intensity and test the smart television to be tested within an acceptable operating intensity range, the test data segment with an average memory occupancy rate of 50% to 65% in step 204 is selected as an audio/video test segment, so as to test the playing stability of the smart television. It should be noted that, according to the needs of the test scenario, test data segments corresponding to other average memory occupancy rate value ranges may also be selected as audio/video test segments, which is not limited herein.
206. And splicing the multiple sections of audio and video test fragments into audio and video data with preset time length.
And splicing the audio and video data segments selected in the step 205 into audio and video data with preset duration, wherein the audio and video data is the audio and video data used for testing the specific smart television to be tested in the subsequent steps.
207. And audio and video data with a proper file size are obtained and stored in the intelligent television.
The execution of this step is similar to that of step 101 in the embodiment of fig. 1, and the repeated descriptions are omitted here.
208. And receiving a test command input by a serial port debugging tool, wherein the test command is used for instructing the intelligent television to execute an audio and video playing program and recording memory data information of the intelligent television to a log file, and the audio and video playing program is a program for playing audio and video data.
The execution of this step is similar to that of step 102 in the embodiment of fig. 1, and the repeated descriptions are omitted here.
209. And executing the test command to form a log file.
The execution of this step is similar to that of step 103 in the embodiment of fig. 1, and the repeated descriptions are omitted here.
It should be noted that, at the same time or before the test command is executed, the smart television test method according to the embodiment of the present application may start timing to the start timer. And when the timer reaches the testing time length, finishing executing the testing command and generating a log file corresponding to the testing time length. The memory data information of the smart television is recorded in the test command within the test time length not every moment so as to reduce the influence on the test process, for example, the test command indicates the smart television to acquire the current memory data information of the smart television every 10 seconds to 30 seconds, and the current memory data information is updated into the log file. It can be understood that the smart television testing method in the embodiment of the present application has a preset testing duration, and the testing duration may be determined according to different smart television models or usage scenarios of smart televisions, which is not limited herein. That is to say, when the timer reaches the test duration, it means that the smart television test method according to the embodiment of the present application completes one test, and should end executing the test command, and generate a log file corresponding to the test duration.
210. And converting the memory data information in the log file into a memory data curve.
The execution of this step is similar to that of step 104 in the embodiment of fig. 1, and the repeated descriptions are omitted here.
It should be noted that the memory data information in this step may be residual memory data information or used memory data information, where the residual memory data information is a numerical value that reflects the size of the corresponding free memory at different times in the operation of the smart television; the used memory data information is a numerical value reflecting the size of the used memory corresponding to different moments in the operation of the intelligent television. For example, the log file is read through a python script, and the residual memory data information is obtained through a test command of "for line in file ()" if "MemFree" in line and "kB" in line: ". The form of reading the memory data information of the smart television log file is not limited herein.
When the memory data information is the remaining memory data information, this step converts the remaining memory data information into a remaining memory curve, and the specific conversion process may refer to step 104 in the embodiment of fig. 1, which is not described herein again; when the memory data information is the used memory data, the step converts the used memory data into the remaining memory curve, and the specific conversion process may refer to step 104 in the embodiment of fig. 1, which is not described herein again.
211. And calculating the memory curve slope of the memory data curve.
The execution of this step is similar to that of step 105 in the embodiment of fig. 1, and the repeated description is omitted here. When the memory curve in step 210 is the remaining memory curve, this step calculates the remaining memory curve slope of the remaining memory data curve; when the memory curve in step 210 is the used memory curve, this step calculates the slope of the used memory curve of the used memory data curve.
212. It is determined whether the slope of the memory curve is greater than a predetermined threshold, and if the slope of the memory curve is greater than the predetermined threshold, step 213 is executed.
The preset threshold may be divided into a first preset threshold and a second preset threshold. When the slope of the remaining memory curve exists in step 211, in this step, it is determined whether the slope of the remaining memory curve is greater than a first preset threshold, and if the slope of the remaining memory curve is greater than the first preset threshold, it indicates that the operation state of the smart television has relatively large fluctuation; when the slope of the used memory curve exists in step 211, this step determines whether the slope of the used memory curve is greater than a second preset threshold, and if the slope of the used memory curve is greater than the second preset threshold, it also indicates that the operation state of the smart television has relatively large fluctuation. The first preset threshold and the second preset threshold here are preset values, and the first preset threshold and the second preset threshold may be equal or different, and the values of the first preset threshold and the second preset threshold are not limited here. By setting the first preset threshold and the second preset threshold with different values, the alarm sensitivity of the intelligent television testing method can be adjusted.
213. And outputting preset warning information.
The execution of this step is similar to that of step 107 in the embodiment of fig. 1, and the repeated descriptions are omitted here.
214. And automatically searching whether the log file has abnormal keywords or not.
The execution of this step is similar to that of step 108 in the embodiment of fig. 1, and the repeated descriptions are omitted here.
The above describes an embodiment of the smart television testing method, and the following describes the smart television testing system, with reference to fig. 3, an embodiment of the smart television testing system includes:
the acquisition unit 301 is configured to acquire audio and video data with an appropriate file size and store the audio and video data in the smart television;
a receiving unit 302, configured to receive a test command input through a serial port debugging tool, where the test command is used to instruct the smart television to execute an audio/video playing program and to record memory data information of the smart television to a log file, and the audio/video playing program is a program for playing audio/video data;
an executing unit 303, configured to execute the test command to form the log file;
a conversion unit 304, configured to convert the memory data information in the log file into a memory data curve;
a calculating unit 305, configured to calculate a memory curve slope of the memory data curve;
a determining unit 306, configured to determine whether the slope of the memory curve is greater than a preset threshold;
an output unit 307, configured to output preset warning information when the slope of the memory curve is greater than the preset threshold;
a searching unit 308, configured to automatically search whether an abnormal keyword exists in the log file;
the triggering unit 309 is configured to trigger execution of the step of outputting the preset warning information when the abnormal keyword exists in the log file.
The operations performed by the smart television testing system according to the embodiment of the present application are similar to those performed by the embodiment of fig. 1, and are not described herein again.
The intelligent television testing method comprises the steps of firstly obtaining audio and video data with proper file size and storing the audio and video data in an intelligent television, and then receiving a testing command input through a serial port debugging tool, wherein the testing command is used for instructing the intelligent television to execute an audio and video playing program and recording memory data information of the intelligent television to a log file, and the audio and video playing program is a program for playing the audio and video data; after the smart television executes the test command, a log file is formed, the log file of the smart television is read, the memory data information in the log file is converted into a memory data curve, the slope of the memory data curve is calculated, whether the memory curve slope is greater than a preset threshold value or not is judged, whether the transient fault occurs during the memory test of the smart television can be directly determined, namely whether the corresponding memory curve slope at a certain moment is greater than the preset threshold value or not is judged, the transient fault occurs in the memory of the smart television at the moment is considered, and the method for directly determining whether the transient fault occurs during the memory test of the smart television by simply judging whether the memory curve slope is greater than the preset threshold value or not is over-ideal in order to avoid the situation that the method for directly determining whether the transient fault occurs during the memory test of the smart television is over-ideal, because the recording of the memory data information is not continuous, and the transient fault also possibly occurs in a time gap when the memory data information is not recorded, according to the method, whether abnormal keywords exist in the log file or not is automatically searched, the abnormal keywords can record abnormal events into the log file when the running memory is abnormal, namely whether transient faults occur or not when the running memory of the intelligent television is tested can be determined by combining the abnormal keywords, monitoring of time gaps when the memory data information is recorded is compensated, and therefore the intelligent television testing method can test the intelligent television and can find the transient faults in the testing process of the intelligent television.
Referring to fig. 4, another embodiment of the smart tv test system of the present application includes:
the acquiring unit 401 is configured to acquire audio and video data with an appropriate file size and store the audio and video data in the smart television;
a receiving unit 402, configured to receive a test command input through a serial port debugging tool, where the test command is used to instruct the smart television to execute an audio/video playing program and to record memory data information of the smart television to a log file, and the audio/video playing program is a program for playing audio/video data;
an execution unit 403, configured to execute the test command to form the log file;
a conversion unit 404, configured to convert the memory data information in the log file into a memory data curve;
a calculating unit 405, configured to calculate a memory curve slope of the memory data curve;
a determining unit 406, configured to determine whether the slope of the memory curve is greater than a preset threshold;
an output unit 407, configured to output preset warning information when the slope of the memory curve is greater than the preset threshold;
a searching unit 408, configured to automatically search whether an abnormal keyword exists in the log file;
and a triggering unit 409, configured to trigger execution of a step of outputting preset warning information when an abnormal keyword exists in the log file.
Optionally, the memory data information is: remaining memory data information or using memory data information; when the converting unit 404 converts the memory data information in the log file into a memory data curve, the method specifically includes:
converting the residual memory data information in the log file into a residual memory curve;
or the like, or a combination thereof,
and converting the used memory data information in the log file into a used memory curve.
Optionally, the test command is used to instruct the smart television to acquire current memory data information of the smart television every 10 seconds to 30 seconds, and update the current memory data information into the log file;
the abnormal keywords are as follows: error, failed, out of memory, and/or coredump.
Optionally, the system further comprises:
the selection unit 410 is used for selecting a section of ultra-high-definition audio and video data and intercepting a data segment of 30 seconds to 60 seconds in the ultra-high-definition audio and video data;
the conversion unit 411 is further configured to convert the data segments into a plurality of test data segments with different definitions;
a recording unit 412, configured to record usage memory data information corresponding to the test data segments played by the smart television respectively;
the calculating unit 405 is further configured to calculate, according to the used memory data information, average memory occupancy rates corresponding to the test data segments with different definitions;
the selecting unit 413 is used for selecting the corresponding test data segment with the average memory occupancy rate of 50% to 65% as the audio/video test segment;
and the splicing unit 414 is configured to splice multiple sections of the audio/video test segments into audio/video data with a preset duration.
Optionally, the audio-video data is online audio-video data.
Optionally, the test command includes a test duration; when the executing unit 404 executes the test command to form the log file, it is specifically configured to:
starting a timer to start timing;
and when the timer reaches the testing time length, finishing executing the testing command and generating the log file corresponding to the testing time length.
The operations performed by the smart television testing system according to the embodiment of the present application are similar to those performed by the embodiment in fig. 2, and are not described again here.
An embodiment of the smart tv testing apparatus of the present application is described below, please refer to fig. 5, which includes:
the intelligent television testing apparatus 500 may include one or more Central Processing Units (CPUs) 501 and a memory 505, where one or more applications or data are stored in the memory 505. Memory 505 may be volatile storage or persistent storage, among others. The program stored in the memory 505 may include one or more modules, each of which may include a series of instructions operating on the smart television test device. Still further, the central processor 501 may be configured to communicate with the memory 505, and execute a series of instruction operations in the memory 505 on the intelligent television testing device 500. The smart tv test device 500 may also include one or more power supplies 502, one or more wired or wireless network interfaces 503, one or more input-output interfaces 504, and/or one or more operating systems, such as Windows Server, Mac OSX, Unix, Linux, FreeBSD, etc. The central processing unit 501 may perform the operations in the embodiments of fig. 1 or fig. 2, which are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Claims (8)
1. A smart television testing method is characterized by comprising the following steps:
audio and video data with a proper file size are obtained and stored in the smart television;
receiving a test command input through a serial port debugging tool, wherein the test command is used for indicating the intelligent television to execute an audio and video playing program and recording memory data information of the intelligent television when the intelligent television executes the audio and video playing program to a log file, and the audio and video playing program is a program for playing audio and video data;
executing the test command to form the log file;
converting the memory data information in the log file into a memory data curve, where converting the memory data information in the log file into a memory data curve specifically includes: taking different moments of the stored data information as horizontal axis data of the two-dimensional coordinate, taking instantaneous values corresponding to the different moments of the stored data information as vertical axis data of the two-dimensional coordinate, and connecting the instantaneous values of adjacent moments to obtain a stored data curve;
calculating the memory curve slope of the memory data curve, wherein the memory curve slope of the memory data curve is the slope of a connecting line between every two adjacent moments on the memory data curve;
judging whether the slope of the memory curve is greater than a preset threshold value or not;
when the slope of the memory curve is larger than the preset threshold value, outputting preset warning information;
automatically searching whether the log file has abnormal keywords or not;
triggering and outputting preset warning information when abnormal keywords exist in the log file;
the acquiring of the audio and video data with the appropriate file size specifically includes:
selecting a section of ultra-high-definition audio and video data, and intercepting a data segment of 30-60 seconds in the ultra-high-definition audio and video data;
converting the data segments into a plurality of test data segments with different definitions;
recording the use memory data information corresponding to the test data segments played by the smart television respectively;
calculating the average memory occupancy rates corresponding to the test data segments with different definitions according to the used memory data information;
selecting a corresponding test data segment with an average memory occupancy rate of 50-65% as an audio/video test segment;
and splicing the multiple sections of audio and video test fragments into audio and video data with preset duration.
2. The intelligent television testing method according to claim 1, wherein the memory data information is: remaining memory data information or using memory data information; the converting the memory data information in the log file into a memory data curve includes:
converting the residual memory data information in the log file into a residual memory curve;
or the like, or, alternatively,
and converting the used memory data information in the log file into a used memory curve.
3. The intelligent television testing method according to claim 1, wherein the test command is used for instructing the intelligent television to acquire current memory data information of the intelligent television every 10 to 30 seconds and update the current memory data information into the log file;
the abnormal keywords are as follows: error, failed, out of memory, and/or coredump.
4. The intelligent television testing method according to claim 1, wherein the audio/video data is online audio/video data.
5. The intelligent television testing method according to claim 1, wherein the test command comprises a test duration; the executing the test command to form the log file includes:
starting a timer to start timing;
and when the timer reaches the testing time length, finishing executing the testing command and generating the log file corresponding to the testing time length.
6. An intelligent television test system, comprising:
the acquisition unit is used for acquiring audio and video data with proper file size and storing the audio and video data in the intelligent television;
the device comprises a receiving unit, a debugging unit and a recording unit, wherein the receiving unit is used for receiving a test command input through a serial port debugging tool, the test command is used for indicating the smart television to execute an audio and video playing program and recording memory data information of the smart television when the smart television executes the audio and video playing program to a log file, and the audio and video playing program is a program for playing audio and video data;
the execution unit is used for executing the test command to form the log file;
the conversion unit is used for converting the memory data information in the log file into a memory data curve; wherein the converting the memory data information in the log file into a memory data curve specifically includes: taking different moments of the memory data information as horizontal axis data of the two-dimensional coordinate, taking instantaneous values corresponding to the different moments of the memory data information as vertical axis data of the two-dimensional coordinate, and connecting instantaneous values of adjacent moments to obtain a memory data curve;
a calculating unit, configured to calculate a memory curve slope of the memory data curve, where the memory curve slope of the memory data curve is a slope of a connection line between adjacent times on the memory data curve;
the judging unit is used for judging whether the slope of the memory curve is greater than a preset threshold value or not;
the output unit is used for outputting preset warning information when the slope of the memory curve is greater than the preset threshold;
the searching unit is used for automatically searching whether the log file has abnormal keywords or not;
the triggering unit is used for triggering and outputting preset warning information when the abnormal keywords exist in the log file;
the system further comprises:
the system comprises a selection unit, a data acquisition unit and a data processing unit, wherein the selection unit is used for selecting a section of ultra-high-definition audio and video data and intercepting a data segment of 30-60 seconds in the ultra-high-definition audio and video data;
the conversion unit is also used for converting the data segments into a plurality of test data segments with different definitions;
the recording unit is used for recording the use memory data information corresponding to the test data segments played by the smart television respectively;
the computing unit is further used for computing the average memory occupancy rates corresponding to the test data segments with different definitions according to the used memory data information;
the selection unit is used for selecting the corresponding test data segment with the average memory occupancy rate of 50% -65% as the audio/video test segment;
and the splicing unit is used for splicing the multiple sections of audio and video test fragments into audio and video data with preset duration.
7. An intelligent television test device, comprising:
a processor, a memory, a bus, and an input-output device;
the processor is respectively connected with the memory and the input and output equipment;
the bus is respectively connected with the processor, the memory and the input and output equipment;
the memory has stored therein instructions that, when executed on the processor, cause the processor to perform the method of any one of claims 1 to 5.
8. A storage medium having stored therein instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110019195.4A CN112788332B (en) | 2021-01-07 | 2021-01-07 | Smart television testing method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110019195.4A CN112788332B (en) | 2021-01-07 | 2021-01-07 | Smart television testing method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112788332A CN112788332A (en) | 2021-05-11 |
CN112788332B true CN112788332B (en) | 2022-08-16 |
Family
ID=75756042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110019195.4A Active CN112788332B (en) | 2021-01-07 | 2021-01-07 | Smart television testing method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112788332B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4635096A (en) * | 1983-04-08 | 1987-01-06 | Sony Corporation | Test signal generator |
WO2017032122A1 (en) * | 2015-08-24 | 2017-03-02 | 深圳Tcl新技术有限公司 | Method and apparatus for detecting digital television set |
WO2017201897A1 (en) * | 2016-05-27 | 2017-11-30 | 深圳Tcl数字技术有限公司 | Method and device for collecting fault information of smart television |
CN108156456A (en) * | 2017-12-25 | 2018-06-12 | 深圳创维-Rgb电子有限公司 | A kind of TV performance test methods, device and storage medium |
CN111131815A (en) * | 2019-12-18 | 2020-05-08 | 苏宁智能终端有限公司 | Smart television performance monitoring and abnormal process processing method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105260273B (en) * | 2015-10-13 | 2019-05-21 | 海信集团有限公司 | A kind of test method and device of intelligent electronic device |
CN110941549B (en) * | 2019-11-19 | 2021-12-07 | 北京字节跳动网络技术有限公司 | Memory leak detection method, device, medium and electronic equipment |
CN110968516A (en) * | 2019-12-04 | 2020-04-07 | 北京小米移动软件有限公司 | Application memory testing method and device and computer storage medium |
-
2021
- 2021-01-07 CN CN202110019195.4A patent/CN112788332B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4635096A (en) * | 1983-04-08 | 1987-01-06 | Sony Corporation | Test signal generator |
WO2017032122A1 (en) * | 2015-08-24 | 2017-03-02 | 深圳Tcl新技术有限公司 | Method and apparatus for detecting digital television set |
WO2017201897A1 (en) * | 2016-05-27 | 2017-11-30 | 深圳Tcl数字技术有限公司 | Method and device for collecting fault information of smart television |
CN108156456A (en) * | 2017-12-25 | 2018-06-12 | 深圳创维-Rgb电子有限公司 | A kind of TV performance test methods, device and storage medium |
CN111131815A (en) * | 2019-12-18 | 2020-05-08 | 苏宁智能终端有限公司 | Smart television performance monitoring and abnormal process processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112788332A (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107509107B (en) | Method, device and equipment for detecting video playing fault and readable medium | |
US11936931B2 (en) | Methods and apparatus to perform media device asset qualification | |
US10019058B2 (en) | Information processing device and information processing method | |
US11507488B2 (en) | Upstream fault detection | |
CN109388556B (en) | Method and device for analyzing test process | |
CN103974061B (en) | A kind of method of testing and system play | |
KR102260946B1 (en) | Techniques for detecting media playback errors | |
EP2725493A1 (en) | Automatic testing apparatus for embedded software and automatic testing method thereof | |
US9934122B2 (en) | Extracting rich performance analysis from simple time measurements | |
US20150208107A1 (en) | Consumption likelihood of linear content streams | |
CN113824987B (en) | Method, medium, device and computing equipment for determining time consumption of first frame of live broadcasting room | |
CN109032911B (en) | Frame rate detection method and device for mobile device and electronic device | |
CN112788332B (en) | Smart television testing method and related device | |
JP2015035160A (en) | Monitoring data storage device, monitoring data store method, and program | |
CN113886273A (en) | Performance test method, device, test equipment and medium of application program | |
CN113382268B (en) | Live broadcast anomaly analysis method, live broadcast anomaly analysis device, computer equipment and storage medium | |
US10352999B2 (en) | Logic analyzer for evaluating an electronic product, method of retrieving data of the same, and method of performance testing | |
CN115904883B (en) | RPA flow execution visual abnormity monitoring method, device and medium | |
CN110502416B (en) | Application clamping detection method and device, computer equipment and readable medium | |
CN116484137A (en) | Data recovery method and device, electronic equipment and storage medium | |
CN110602483A (en) | Video fault determination method, device and computer readable storage medium | |
CN110569184B (en) | Test method and terminal equipment | |
CN114071127A (en) | Live video delay testing method and device, storage medium and electronic equipment | |
JP2015046758A (en) | Information processor, information processing method, and program | |
CN104579825A (en) | Method and device for monitoring server of application in real time and computer equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |