Smart television product testing method and system
By using serial port commands to automate the testing of smart TV products, the problem of low efficiency in traditional manual testing has been solved. This enables efficient and accurate test data management and meets the high-standard testing requirements of smart TV products.
Patent Information
- Application Number
- CN202511125210.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-12
- Publication Date
- 2025-11-14
AI Technical Summary
Traditional methods of manually testing smart TV products are inefficient, have a high false positive rate, cannot meet the high standards required by modern manufacturing, and cannot achieve intelligent management of test data.
By connecting the host computer to the hardware under test via a serial port, and utilizing the serial port command protocol table, serial port commands are automatically sent and received, test reports are generated and saved to the database, reducing human intervention.
It improves testing efficiency, reduces false positive rates, enables real-time uploading and management of test data, supports multi-dimensional data retrieval, and meets the high-standard testing requirements of smart TV product manufacturing.
Smart Images

Figure CN120956877A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home appliances, and in particular to a testing method and system for smart TV products. Background Technology
[0002] With the rapid development of smart TV (TeleVision, TV) technology, the functions of TV products (i.e., TV system software) are becoming increasingly complex, market competition is intensifying, and manufacturers have higher and higher requirements for product testing efficiency, reliability, and cost control.
[0003] Traditional manual testing relies on manually operating remote controls or physical buttons to check TV product functions one by one (such as signal input, color display, sound effects, network connection, etc.), which has a high false positive rate, resulting in extended testing time and the inability to form intelligent management of test data, thus failing to meet the high standards required for modern TV product manufacturing. Summary of the Invention
[0004] This application provides a testing method and system for smart TV products, with the aim of improving the testing efficiency of smart TV products.
[0005] To achieve the above objectives, this application provides the following technical solution:
[0006] A testing method for smart TV products, applicable to a testing system comprising a hardware under test (DUT) with a smart TV product installed, a host computer, and a server, wherein the host computer and the DUT are connected via a preset serial port debugging tool, and the host computer and the server are connected via Ethernet. The method includes:
[0007] The host computer determines the corresponding list of system functions to be tested based on the product parameters of the smart TV product; the list of system functions to be tested includes multiple system functions to be tested and their corresponding test order.
[0008] The host computer obtains the serial port commands for each function of the system under test according to the preset serial port command protocol table.
[0009] For each serial port instruction, the host computer sends the serial port instruction to the hardware under test when the triggering condition of the serial port instruction is met; the triggering condition is: if the test order of the corresponding system under test function is the first, then it responds to the test instruction input by the user for the hardware under test; if the test order of the corresponding system under test function is not the first, then it responds to the test data of the previous system under test function.
[0010] The hardware under test triggers the smart TV product to run the function of the system under test corresponding to the serial port command according to the preset serial port command protocol table, and obtains the corresponding test data.
[0011] The hardware under test sends the test data to the host computer.
[0012] The host computer determines the corresponding test result based on the test data;
[0013] The host computer sends the test results to the server;
[0014] Based on the test results of each of the systems under test, the server generates a product test report for the hardware under test and saves the product test report to the database.
[0015] Optionally, the host computer determines the corresponding test result based on the test data, including:
[0016] If the test data includes a screen image and the corresponding function of the system under test is related to the display function, the host computer obtains a reference image corresponding to the display function from the local database, and generates the corresponding test result based on the comparison result between the screen image and the reference image.
[0017] Optionally, the host computer determines the corresponding test result based on the test data, including:
[0018] If the test data contains observations of multiple parameters, the host computer obtains the corresponding indicators for the multiple parameters from the local database, and generates the corresponding test results based on the comparison results of each observation and the corresponding indicator.
[0019] Optionally, the method further includes:
[0020] After any serial port command is sent, the host computer records the waiting time for the corresponding test data;
[0021] When the waiting time expires, the host computer sends a serial port self-test command to the serial port debugging tool to obtain the communication status between the host computer and the hardware under test.
[0022] If the communication status is abnormal, the host computer restarts the serial port debugging tool, and after the serial port debugging tool reports that the communication status has returned to normal, it resends any serial port command to the hardware under test.
[0023] Optionally, the host computer obtains the serial port commands for each function of the system under test according to a preset serial port command protocol table, including:
[0024] The host computer retrieves the serial port instruction protocol table corresponding to the operating system type of the hardware under test from the local database, and queries the serial port instruction protocol table to obtain the serial port instructions for each function of the system under test; the serial port instruction protocol table includes multiple system functions and their corresponding serial port instructions.
[0025] A smart TV product testing system, comprising:
[0026] The device under test (DUT), host computer, and server are equipped with a smart TV product. The host computer and the DUT are connected via a preset serial port debugging tool, and the host computer and the server are connected via Ethernet.
[0027] The host computer is used to: determine a list of system functions to be tested based on the product parameters of the smart TV product; the list of system functions to be tested includes multiple system functions to be tested and their corresponding test order; obtain serial port commands for each system function to be tested according to a preset serial port command protocol table; for each serial port command, when the triggering condition of the serial port command is met, send the serial port command to the hardware under test; the triggering condition is: if the test order of the corresponding system function to be tested is the first one, then it responds to the test command input by the user to the hardware under test; if the test order of the corresponding system function to be tested is not the first one, then it responds to the test data of the previous system function to be tested.
[0028] The hardware under test is used to: trigger the smart TV product to run the function of the system under test corresponding to the serial port command according to the preset serial port command protocol table, and obtain the corresponding test data; and send the test data to the host computer.
[0029] The host computer is also used to: determine the corresponding test result based on the test data; and send the test result to the server.
[0030] The server is used to: generate a product test report for the hardware under test based on the test results of each of the functions of the system under test, and save the product test report to the database.
[0031] Optionally, the host computer is specifically used for:
[0032] If the test data includes screen images and the corresponding system function under test is related to the display function, a reference image corresponding to the display function is obtained from the local database, and a corresponding test result is generated based on the comparison result between the screen image and the reference image.
[0033] Optionally, the host computer is specifically used for:
[0034] If the test data contains observations of multiple parameters, the corresponding indicators for the multiple parameters are obtained from the local database, and the corresponding test results are generated based on the comparison results of each observation and the corresponding indicator.
[0035] Optionally, the host computer is also used for:
[0036] After any serial port command is sent, record the waiting time for the corresponding test data;
[0037] When the waiting time expires, a serial port self-test command is sent to the serial port debugging tool to obtain the communication status between the host computer and the hardware under test.
[0038] If the communication status is abnormal, restart the serial port debugging tool, and after the serial port debugging tool reports that the communication status has returned to normal, resend any serial port command to the hardware under test.
[0039] Optionally, the host computer is specifically used for:
[0040] The host computer retrieves the serial port instruction protocol table corresponding to the operating system type of the hardware under test from the local database, and queries the serial port instruction protocol table to obtain the serial port instructions for each function of the system under test; the serial port instruction protocol table includes multiple system functions and their corresponding serial port instructions.
[0041] The technical solution provided in this application involves a host computer determining a list of system-under-test (SUTT) functions based on the product parameters of a smart TV. The host computer then obtains the serial port commands for each SUTT function according to a serial port command protocol table. For each serial port command, the host computer sends the command to the hardware under test (DUT) when the triggering condition is met. The DUT, according to the serial port command protocol table, triggers the smart TV to execute the corresponding SUTT function, obtaining test data. The DUT then sends the test data back to the host computer, which determines the test results and sends them to a server. The server generates a product test report for the DUT based on the test results and saves the report to a database. This application improves the testing efficiency of smart TV products by triggering tests of corresponding SUTT functions via serial port commands. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 A flowchart illustrating a testing method for a smart TV product provided in an embodiment of this application;
[0044] Figure 2 A flowchart illustrating another smart TV product testing method provided in this application embodiment;
[0045] Figure 3 A schematic diagram of the architecture of a smart TV product testing system provided in this application embodiment;
[0046] Figure 4 This is a logical diagram illustrating a functional testing process for a system under test, as provided in an embodiment of this application. Detailed Implementation
[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] In this application, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0049] like Figure 1 The diagram shown is a flowchart of a smart TV product testing method provided in an embodiment of this application. This method is applicable to a testing system that includes a smart TV product installed on the hardware under test, a host computer, and a server. The host computer and the hardware under test are connected through a preset serial port debugging tool, and the host computer and the server are connected through Ethernet. The method includes the following steps.
[0050] S101: The host computer determines the corresponding list of system functions to be tested based on the product parameters of the smart TV.
[0051] The list of system functions to be tested includes multiple system functions to be tested and their corresponding test order.
[0052] In some examples, different models of smart TVs have different product parameters, and the system functions of different models of smart TVs will also be different. Therefore, it is necessary to determine the corresponding list of system functions to be tested based on the product parameters of the smart TV.
[0053] In a possible implementation, after the host computer establishes a connection with the hardware under test through a serial port debugging tool, the host computer can directly read the product parameters of the smart TV product from the hardware under test. The product parameters include, but are not limited to, the product serial number, product model, chip model, installation date, etc.
[0054] In some examples, the host computer includes, but is not limited to, computing devices such as computers and industrial control computers. The hardware under test includes, but is not limited to, display devices such as smart TVs and smart displays.
[0055] In some examples, the serial debugging tool includes a debug board and connecting cables. The host computer and the hardware under test are connected to the debug board via connecting cables. For example, the host computer can be connected to the debug board via a USB A and B connecting cable, and the hardware under test (if it has an HDMI serial port) can be connected to the debug board via an HDMI connecting cable. Alternatively, both the host computer and the hardware under test can be connected to the debug board via an RS-232 connecting cable.
[0056] In some examples, the system functions to be tested in a smart TV product include, but are not limited to, far-field voice function, signal input function, screen display function, audio output function, and other system functions.
[0057] It should be noted that the host computer pre-stores the system function list corresponding to different product parameters. After the host computer establishes a connection with the hardware under test, it can directly obtain the corresponding system function list from the local database. Generally speaking, the system function list corresponding to different product parameters can be pre-configured in the host computer by technicians.
[0058] In a possible implementation, the host computer can also support simultaneous testing of multiple hardware under test. Specifically, this can be achieved by adding a serial port hub or expanding multiple serial ports in the serial port debugging tool. After establishing a connection with multiple hardware under test, the host computer can concurrently determine the system function list corresponding to the multiple hardware under test and synchronously execute system function tests of the multiple hardware under test. It is understood that the system function lists of different hardware under test can be the same or different.
[0059] S102: The host computer obtains the serial port commands for each function of the system under test according to the preset serial port command protocol table.
[0060] The serial port instruction protocol table includes a set of serial port instructions that conform to the specified serial port instruction protocol. This set of serial port instructions includes serial port instructions corresponding to multiple functions of the system under test.
[0061] In some examples, the serial port command protocol is a custom set of data format rules, including a header, data bits, and a parity bit. The function implemented by each serial port command is determined by the header and data bits, and these are unique.
[0062] It is important to note that since there are various types of operating systems that support the operation of smart TV products on the hardware under test, and different operating systems cannot recognize the same serial port commands, it is necessary to select the appropriate serial port command protocol table according to the type of operating system of the hardware under test so that the hardware under test can effectively recognize the serial port command set.
[0063] Optionally, the host computer can obtain the implementation process of the serial port commands for each function of the system under test according to the preset serial port command protocol table. This can be done by the host computer retrieving the serial port command protocol table corresponding to the operating system type of the hardware under test from the local database, and querying the serial port command protocol table to obtain the serial port commands for each function of the system under test. The serial port command protocol table includes multiple system functions and their corresponding serial port commands.
[0064] S103: For each serial port instruction, the host computer sends the serial port instruction to the hardware under test when the triggering condition of the serial port instruction is met.
[0065] The triggering conditions are as follows: if the test order of the corresponding system function under test is the first, then it responds to the test command input by the user for the hardware under test; if the test order of the corresponding system function under test is not the first, then it responds to the test data of the previous system function under test.
[0066] In some examples, after obtaining the serial port instruction set corresponding to the list of functions of the system under test (SUT), the host computer reads the test order of each SUT function shown in the list. After receiving the test instruction input by the user, the host computer sends the first serial port instruction corresponding to the SUT function with the first test order to the SUT. After confirming that the test data fed back by the first SUT based on the first serial port instruction has been obtained, the host computer then sends the second serial port instruction corresponding to the SUT function with the second test order to the SUT, and so on, until all serial port instruction sets have been sent and the corresponding test data has been obtained.
[0067] S104: The hardware under test triggers the smart TV product to run the serial port command corresponding to the function of the system under test according to the preset serial port command protocol table, and obtains the corresponding test data.
[0068] The hardware under test (DUT) also pre-stores a serial port command protocol table, or a threshold serial port command protocol table for smart TV products. Upon receiving a serial port command, the DUT queries the serial port command protocol table to determine the corresponding function of the system under test, and then sends the corresponding serial port command to the smart TV product to execute the system under test function, thus obtaining the corresponding test data.
[0069] S105: The hardware under test sends the test data to the host computer.
[0070] After obtaining the test data, the hardware under test terminates the operation of the system under test and sends the test data to the host computer.
[0071] S106: The host computer determines the corresponding test result based on the test data.
[0072] After obtaining the test data of the nth function of the system under test in the list of functions under test, the host computer will send the serial port command of the (n+1)th function of the system under test in the list of functions under test to the hardware under test.
[0073] Optionally, the process by which the host computer determines the corresponding test result based on the test data includes: if the test data contains a screen image and the corresponding function of the system under test is related to the display function, the host computer obtains the reference image corresponding to the display function from the local database, and generates the corresponding test result based on the comparison result between the screen image and the reference image.
[0074] Understandably, for the functions of a system under test related to display functionality, the quality of the system under test can be evaluated by comparing the screen image shown in the test data with the reference image, thereby determining the corresponding test results and improving the accuracy of the test results.
[0075] Optionally, the process by which the host computer determines the corresponding test results based on the test data includes: if the test data contains observations of multiple parameters, the host computer retrieves the indicators corresponding to the multiple parameters from the local database, and generates the corresponding test results based on the comparison results between each observation and the corresponding indicator.
[0076] Understandably, by comparing the observed values of parameters with the results of the indicators, it is possible to intuitively determine whether the parameters meet the standards and improve the accuracy of the test results.
[0077] S107: The host computer sends the test results to the server.
[0078] After obtaining the test results, the host computer can directly upload the test results to the server to realize real-time recording of the test process.
[0079] In some examples, the server includes, but is not limited to, an MES server, a cloud platform server, etc. After the test results are sent to the server, users can query the test results through the server.
[0080] In some examples, the test results include at least the test data, the corresponding test date, work order number, and product serial number, so that users can export the test results for querying and tracing.
[0081] S108: Based on the test results of each system under test, the server generates a product test report for the hardware under test and saves the product test report to the database.
[0082] The server is mainly used to implement functions such as receiving, storing, exporting, and querying test data.
[0083] In some examples, product test reports can be presented as Excel spreadsheets to support retrieval of multi-dimensional data such as test date, work order number, product serial number, etc.
[0084] In addition, to ensure that smart TV products can complete the entire testing process, corresponding technical measures need to be added to the host computer to handle certain abnormal situations. Optionally, the process for handling abnormal situations by the host computer can be found in [link to documentation]. Figure 2 The steps shown are accompanied by corresponding explanations.
[0085] In some examples, the test system shown in this application implements the process of functional testing of the system under test. In application scenarios involving PCs, TVs, and MES servers, please refer to... Figure 4 As shown, the specific implementation logic can be as follows: the PC sends serial port commands to the TV; the TV receives the serial port commands sent by the PC, parses the PC's serial port commands, responds to system functions, and returns data to the PC; the PC receives the data from the TV, determines the test results, and uploads the test data to the MES server; the MES server receives the test data sent by the PC, saves it to the database, queries the data, and exports a table (i.e., the product test report).
[0086] In some examples, taking the testing of the far-field voice function of a smart TV product as an example, the specific implementation process of the smart TV product testing method shown in this application can be summarized as follows: (1) The test host (i.e., the host computer) and the smart TV (i.e., the hardware under test) are connected through a serial port debugging tool, and the test host and the server are connected through Ethernet; (2) The host computer sends a far-field voice test command to the smart TV; (3) The smart TV displays the microphone test UI and starts a period of self-play and self-recording detection. After the test, the far-field voice test data is returned to the test host through a serial port command so that the test host can obtain the remote voice test results; (4) The test host sends a remote voice test end command to the smart TV; (5) The smart TV turns off the microphone test UI and returns the result of turning off the microphone test UI to the test host through a serial port; (6) The test host uploads the remote voice test results and the result of turning off the microphone test UI to the server through Ethernet.
[0087] Based on the background technology, traditional testing methods have the following limitations: (1) Low operation efficiency: Relying on manual remote control operation, complex functions require multiple button combinations (such as "menu key + number key" combination), and a single misoperation requires a full process reset, with an average operation delay of 15-20 seconds / instruction; (2) Unreliable information verification: Basic information such as software version needs to be manually visually compared, and in the scenario of mass production (single work order ≥ 500 units), the misjudgment rate caused by visual fatigue is as high as 5-8%; (3) Lack of data management: Test results are recorded on paper, which cannot achieve digital traceability and analysis.
[0088] Compared with traditional testing methods, the method shown in the embodiments of this application can achieve the following technical breakthroughs: (1) the TV function is directly driven by serial port commands, and the command response time is ≤3s; (2) a single compound command can replace 6-8 traditional button operations, improving testing efficiency by 15 times; (3) test data is uploaded to the MES server in real time via HTTP protocol; (4) multi-dimensional data retrieval (date / work order number / SN code) and Excel export function are supported. In summary, the method shown in the embodiments of this application realizes unmanned operation, standardized process, and digital management of the testing process.
[0089] In some examples, the method shown in the embodiments of this application has achieved significant improvements in testing efficiency, data accuracy, and automation compared to traditional testing methods. The specific technical effects are as follows: (1) Test efficiency is greatly improved: The instruction response speed is fast. Traditional remote control operation takes 20 seconds per instruction, while this system uses serial port instruction control. The execution time of a single instruction is ≤500ms. Composite instructions (such as "open factory menu → check software version") can be completed within 1 second, while manual operation takes 10~15 seconds. The test time of a single unit is shortened. Traditional manual testing of a single unit takes 15~20 minutes. The fully automated testing of this invention takes only 1-2 minutes, improving efficiency by more than 85%, and supports simultaneous testing of multiple TVs (extended through serial port hubs), further improving production line throughput; (2) The testing accuracy is significantly improved: Traditional manual verification of software version, serial number, etc. is prone to errors (false judgment rate of 5%~8%). This invention automatically reads and verifies through serial port commands to ensure zero error, standardizes the testing process, avoids individual differences caused by manual operation, all test items are executed according to preset logic, the results are consistent, and the data is uploaded in real time to avoid omissions. Traditional paper records are easy to lose, and the test data of this invention is more accurate. Real-time storage to MES ensures complete traceability; (3) High degree of automation and reduced manual intervention: The entire process is unmanned. From test start-up, data collection to result judgment and MES upload, no manual intervention is required. Intelligent error handling, automatic detection of communication abnormalities (such as serial port disconnection), support for command retransmission (up to 3 times), reducing test interruptions caused by occasional failures, automatic generation of test reports, MES system supports filtering data by work order, date, and SN code, and exporting product test reports for easy quality analysis; (4) Intelligent data management: The MES system is deeply integrated, and test data is seamlessly connected with the production management system. All test records (including pass / fail details) are stored for a long time, which is convenient for after-sales problem investigation and quality improvement. It supports big data analysis. By analyzing historical test data, the test process can be optimized (such as early detection of high-frequency failure items), further improving efficiency; (5) Compatibility and scalability: Supports multiple platform TVs. By configuring different serial port instruction sets, it can be adapted to different operating systems such as Android TV, WebOS, and Tizen. Test items can be flexibly expanded. Adding test functions only requires updating the instruction protocol in the PC software and TV software, without hardware modification.
[0090] In possible implementations, the method shown in the embodiments of this application can be applied to full-function testing scenarios before smart TV products leave the factory, such as automated verification of signal input, display performance (color uniformity, dead pixel detection), audio output (frequency response curve, distortion rate), etc., or aging test scenarios, such as supporting 72-hour continuous stress testing, executing high-load tasks (such as 4K video playback, multi-task switching) in a loop through serial port commands to monitor system stability and heat dissipation performance, or modular test scenarios, such as conducting phased tests on key components such as motherboards, power boards, and display modules to achieve accurate fault location.
[0091] The processes shown in S101-S108 above utilize a host computer to send serial port commands to the hardware under test (DUT), enabling the DUT to respond to the corresponding DUT system functions. This avoids human intervention in the testing process, supports simultaneous testing of multiple DUT devices, significantly improves the testing efficiency of smart TV products, reduces the misjudgment rate caused by human factors, and allows querying of corresponding product test reports through a server, thereby meeting the high-standard testing requirements of smart TV product manufacturing.
[0092] like Figure 2 The diagram shown is a flowchart illustrating another smart TV product testing method provided in this application embodiment, including the following steps.
[0093] S201: After any serial port command is sent, the host computer records the waiting time for the corresponding test data.
[0094] The host computer can use a preset timer to record the waiting time for the corresponding test data after any serial port command is sent.
[0095] S202: When the waiting time expires, the host computer sends a serial port self-test command to the serial port debugging tool to obtain the communication status between the host computer and the hardware under test.
[0096] The serial port debugging tool responds to the serial port self-test command, identifies the status of the connection ports of the host computer and the hardware under test, and determines the communication status between the host computer and the hardware under test.
[0097] In some examples, if the status of either the host computer or the hardware under test's connection port is abnormal, then the communication status between the host computer and the hardware under test is abnormal.
[0098] S203: If the communication status is abnormal, the host computer restarts the serial port debugging tool, and after the serial port debugging tool reports that the communication status has returned to normal, it resends any serial port command to the hardware under test.
[0099] After the serial port debugging tool restarts, it will re-identify the status of the connection ports of the host computer and the hardware under test to determine the communication status between the host computer and the hardware under test, and then feed back the communication status identified after the restart to the host computer.
[0100] The processes shown in S201-S203 above can realize the communication self-test between the host computer and the hardware under test, ensuring that the system function test performed between the host computer and the hardware under test can be carried out smoothly.
[0101] like Figure 3 The diagram shown is an architectural schematic of a smart TV product testing system provided in an embodiment of this application. It includes a hardware under test 100 with a smart TV product installed, a host computer 200, and a server 300. The host computer 200 and the hardware under test 100 are connected through a preset serial port debugging tool, and the host computer 200 and the server 300 are connected through Ethernet.
[0102] The host computer is used to: determine the corresponding list of system functions under test (SDT) based on the product parameters of the smart TV; the list of SDT functions includes multiple SDT functions and their corresponding test order; obtain the serial port commands for each SDT function according to the preset serial port command protocol table; for each serial port command, send the serial port command to the hardware under test when the trigger condition of the serial port command is met; the trigger condition is: if the corresponding SDT function is the first in the test order, it responds to the test command input by the user for the hardware under test; if the corresponding SDT function is not the first in the test order, it responds to the test data of the previous SDT function.
[0103] Optionally, the host computer is specifically used to: obtain the serial port instruction protocol table corresponding to the operating system type of the hardware under test from the local database, and query the serial port instruction protocol table to obtain the serial port instructions for each function of the system under test; the serial port instruction protocol table includes multiple system functions and their corresponding serial port instructions.
[0104] The hardware under test (UDT) is used to: trigger the smart TV product to run the corresponding serial port command function of the UDT system according to the preset serial port command protocol table, obtain the corresponding test data, and send the test data to the host computer.
[0105] The host computer is also used to: determine the corresponding test results based on the test data; and send the test results to the server.
[0106] Optionally, the host computer is specifically used for: if the test data includes screen images and the corresponding function of the system under test is related to the display function, obtaining the reference image corresponding to the display function from the local database, and generating the corresponding test results based on the comparison results between the screen images and the reference images.
[0107] Optionally, the host computer is specifically used for: if the test data contains observations of multiple parameters, retrieving the indicators corresponding to the multiple parameters from the local database, and generating the corresponding test results based on the comparison results of each observation and the corresponding indicator.
[0108] The server is used to generate product test reports for the hardware under test based on the test results of each system under test, and to save the product test reports to the database.
[0109] Optionally, the host computer is also used to: record the waiting time of the corresponding test data after any serial port command is sent; when the waiting time expires, send a serial port self-test command to the serial port debugging tool to obtain the communication status between the host computer and the hardware under test; if the communication status is abnormal, restart the serial port debugging tool, and after the serial port debugging tool reports that the communication status has returned to normal, resend any serial port command to the hardware under test.
[0110] Each of the units described above uses a host computer to send serial port commands to the hardware under test (DUT), enabling the DUT to respond to the corresponding DUT function. This avoids human intervention in the testing process and supports simultaneous testing of multiple DUTs, significantly improving the testing efficiency of smart TV products and reducing the misjudgment rate caused by human factors. It also supports querying the corresponding product test report through the server, thereby meeting the high-standard testing requirements of smart TV product manufacturing.
[0111] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of this application. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0112] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A testing method for smart TV products, characterized in that, A test system applicable to devices under test (DUTs) including a smart TV product, a host computer, and a server, wherein the host computer and the DUTs are connected via a preset serial port debugging tool, and the host computer and the server are connected via Ethernet. The method includes: The host computer determines the corresponding list of system functions to be tested based on the product parameters of the smart TV product; the list of system functions to be tested includes multiple system functions to be tested and their corresponding test order. The host computer obtains the serial port commands for each function of the system under test according to the preset serial port command protocol table. For each serial port instruction, the host computer sends the serial port instruction to the hardware under test when the triggering condition of the serial port instruction is met; the triggering condition is: if the test order of the corresponding system under test function is the first, then it responds to the test instruction input by the user for the hardware under test; if the test order of the corresponding system under test function is not the first, then it responds to the test data of the previous system under test function. The hardware under test triggers the smart TV product to run the function of the system under test corresponding to the serial port command according to the preset serial port command protocol table, and obtains the corresponding test data. The hardware under test sends the test data to the host computer. The host computer determines the corresponding test result based on the test data; The host computer sends the test results to the server; Based on the test results of each of the systems under test, the server generates a product test report for the hardware under test and saves the product test report to the database.
2. The method according to claim 1, characterized in that, The host computer determines the corresponding test results based on the test data, including: If the test data includes a screen image and the corresponding function of the system under test is related to the display function, the host computer obtains a reference image corresponding to the display function from the local database, and generates the corresponding test result based on the comparison result between the screen image and the reference image.
3. The method according to claim 1, characterized in that, The host computer determines the corresponding test results based on the test data, including: If the test data contains observations of multiple parameters, the host computer obtains the corresponding indicators for the multiple parameters from the local database, and generates the corresponding test results based on the comparison results of each observation and the corresponding indicator.
4. The method according to claim 1, characterized in that, The method further includes: After any serial port command is sent, the host computer records the waiting time for the corresponding test data; When the waiting time expires, the host computer sends a serial port self-test command to the serial port debugging tool to obtain the communication status between the host computer and the hardware under test. If the communication status is abnormal, the host computer restarts the serial port debugging tool, and after the serial port debugging tool reports that the communication status has returned to normal, it resends any serial port command to the hardware under test.
5. The method according to claim 1, characterized in that, The host computer obtains the serial port commands for each function of the system under test according to a preset serial port command protocol table, including: The host computer retrieves the serial port instruction protocol table corresponding to the operating system type of the hardware under test from the local database, and queries the serial port instruction protocol table to obtain the serial port instructions for each function of the system under test; the serial port instruction protocol table includes multiple system functions and their corresponding serial port instructions.
6. A smart TV product testing system, characterized in that, include: The device under test (DUT), host computer, and server are equipped with a smart TV product. The host computer and the DUT are connected via a preset serial port debugging tool, and the host computer and the server are connected via Ethernet. The host computer is used to: determine a list of system functions to be tested based on the product parameters of the smart TV product; the list of system functions to be tested includes multiple system functions to be tested and their corresponding test order; obtain serial port commands for each system function to be tested according to a preset serial port command protocol table; for each serial port command, when the triggering condition of the serial port command is met, send the serial port command to the hardware under test; the triggering condition is: if the test order of the corresponding system function to be tested is the first one, then it responds to the test command input by the user to the hardware under test; if the test order of the corresponding system function to be tested is not the first one, then it responds to the test data of the previous system function to be tested. The hardware under test is used to: trigger the smart TV product to run the function of the system under test corresponding to the serial port command according to the preset serial port command protocol table, and obtain the corresponding test data; and send the test data to the host computer. The host computer is also used to: determine the corresponding test result based on the test data; and send the test result to the server. The server is used to: generate a product test report for the hardware under test based on the test results of each of the functions of the system under test, and save the product test report to the database.
7. The system according to claim 6, characterized in that, The host computer is specifically used for: If the test data includes screen images and the corresponding system function under test is related to the display function, a reference image corresponding to the display function is obtained from the local database, and a corresponding test result is generated based on the comparison result between the screen image and the reference image.
8. The system according to claim 6, characterized in that, The host computer is specifically used for: If the test data contains observations of multiple parameters, the corresponding indicators for the multiple parameters are obtained from the local database, and the corresponding test results are generated based on the comparison results of each observation and the corresponding indicator.
9. The system according to claim 6, characterized in that, The host computer is also used for: After any serial port command is sent, record the waiting time for the corresponding test data; When the waiting time expires, a serial port self-test command is sent to the serial port debugging tool to obtain the communication status between the host computer and the hardware under test. If the communication status is abnormal, restart the serial port debugging tool, and after the serial port debugging tool reports that the communication status has returned to normal, resend any serial port command to the hardware under test.
10. The system according to claim 6, characterized in that, The host computer is specifically used for: The host computer retrieves the serial port instruction protocol table corresponding to the operating system type of the hardware under test from the local database, and queries the serial port instruction protocol table to obtain the serial port instructions for each function of the system under test. The serial port instruction protocol table includes multiple system functions and their corresponding serial port instructions.