CN-122027782-A - Testing method and device for television, testing equipment and computer readable storage medium
Abstract
The application relates to the technical field of automatic testing, and discloses a testing method for a television, which comprises the steps of obtaining characteristic data corresponding to testing requirements before testing the television; and according to the matching condition of the current feature data and the feature data, determining the test result of the television. The method can improve the accuracy and precision of television function test. The application also discloses a testing device for the television, testing equipment and a computer readable storage medium.
Inventors
- LIN JUNWEI
- ZHANG LINJUAN
Assignees
- 青岛海尔多媒体有限公司
- 海尔智家股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241112
Claims (10)
- 1. A test method for a television, comprising: Before testing the television, obtaining characteristic data corresponding to the test requirement; executing the test case according to the test requirement, obtaining a current main interface image of the television screen and extracting current characteristic data associated with the current main interface image; And determining a test result of the television according to the matching condition of the current feature data and the feature data.
- 2. The method of claim 1, wherein obtaining the feature data corresponding to the test requirements comprises: Obtaining an expected image corresponding to the test requirement; extracting label data associated with the expected image; determining the tag data as characteristic data corresponding to the test requirement; Executing the test case according to the test requirement, obtaining the current main interface image of the television screen and extracting the current characteristic data associated with the current main interface image, wherein the method comprises the following steps: Executing the test case according to the test requirement to obtain a current main interface image of the television screen in the test stage; And determining the current characteristic data associated with the current main interface image.
- 3. The method of claim 2, wherein determining the test result of the television based on the matching of the current feature data to the feature data comprises: determining success of the television test in case the current feature data matches the tag data, or And under the condition that the current characteristic data is not matched with the tag data, determining that the television test fails.
- 4. The method of claim 1, wherein obtaining the feature data corresponding to the test requirements comprises: Performing parameter configuration on the television according to a target environment parameter value, wherein the target environment parameter value represents an environment parameter value which is associated with the television and preset according to test requirements; Determining the target environment parameter value as characteristic data corresponding to a test requirement, wherein the test requirement is used for indicating a television screen to display the target environment parameter value; Executing the test case according to the test requirement, obtaining the current main interface image of the television screen and extracting the current characteristic data associated with the current main interface image, wherein the method comprises the following steps: Responding to a voice function test instruction, and obtaining a current main interface image of a television screen; And extracting text data of the current main interface image and determining the text data as current characteristic data.
- 5. The method of claim 4, wherein determining the test result of the television based on the matching of the current feature data to the feature data comprises: Under the condition that the current characteristic data comprises a target environment parameter value or the current characteristic data comprises prompt information, determining that the television test is successful, wherein the prompt information is used for indicating abnormal connection of the television network, or And in the case that the current characteristic data does not comprise the target environment parameter value, determining that the television test fails.
- 6. The method according to any one of claims 1 to 5, further comprising: before testing a television, setting up an automatic test framework and configuring a test environment; obtaining a test script in a test environment, and determining a test case corresponding to the test script; a communication connection is established with the television.
- 7. A test apparatus for a television, comprising: the preset module is configured to obtain characteristic data corresponding to the test requirement before testing the television; The extraction module is configured to execute the test case according to the test requirement, obtain the current main interface image of the television screen and extract the current characteristic data associated with the current main interface image; and the testing module is configured to determine a testing result of the television according to the matching condition of the current characteristic data and the characteristic data.
- 8. A testing apparatus for a television comprising a processor and a memory storing program instructions, wherein the processor is configured, when executing the program instructions, to perform the testing method for a television as claimed in any one of claims 1 to 6.
- 9. A test apparatus, comprising: a testing device body; the test apparatus for a television set according to claim 7 or 8, mounted to the test device body.
- 10. A computer readable storage medium storing program instructions which, when executed, are adapted to cause a computer to carry out the test method for a television according to any one of claims 1 to 6.
Description
Testing method and device for television, testing equipment and computer readable storage medium Technical Field The present application relates to the field of automated testing technology, and for example, to a testing method and apparatus for a television, a testing device, and a computer readable storage medium. Background Currently, manual testing is commonly used when testing televisions for voice or other functions. In order to test the function of returning to the homepage of the television, a tester needs to press the Home key of the television remote controller or control the television to return to the homepage by voice so as to realize corresponding function test. In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art: whether the television end successfully returns to the homepage can only be determined by naked eye observation of a tester, so that a function test result returned to the homepage has a test error, and the accuracy of the television function test is affected. It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the application and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art. Disclosure of Invention The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows. The embodiment of the disclosure provides a testing method, a testing device, testing equipment and a computer readable storage medium for a television, so as to improve the accuracy and precision of television function testing. In some embodiments, the method comprises the steps of obtaining feature data corresponding to test requirements before testing a television, executing test cases according to the test requirements, obtaining a current main interface image of a television screen, extracting current feature data associated with the current main interface image, and determining a test result of the television according to matching conditions of the current feature data and the feature data. In some embodiments, obtaining feature data corresponding to a test requirement comprises obtaining an expected image corresponding to the test requirement, extracting tag data associated with the expected image, determining the tag data as the feature data corresponding to the test requirement, executing a test case according to the test requirement, obtaining a current main interface image of a television screen, extracting the current feature data associated with the current main interface image, including executing the test case according to the test requirement, obtaining a current main interface image of a testing stage of the television screen, and determining the current feature data associated with the current main interface image. In some embodiments, the test result of the television is determined according to the matching condition of the current feature data and the feature data, wherein the test result comprises the step of determining that the television test is successful when the current feature data is matched with the tag data or determining that the television test is failed when the current feature data is not matched with the tag data. In some embodiments, obtaining feature data corresponding to a test requirement comprises configuring parameters of a television according to a target environment parameter value, wherein the target environment parameter value represents an environment parameter value preset according to the test requirement and associated with the television, determining that the target environment parameter value is feature data corresponding to the test requirement, wherein the test requirement is used for indicating a television screen to display the target environment parameter value, executing a test case according to the test requirement, obtaining a current main interface image of the television screen and extracting current feature data associated with the current main interface image, and extracting text data of the current main interface image and determining the text data as the current feature data. In some embodiments, determining the test result of the television according to the matching condition of the current feature data and the feature data includes determining that the television test is successful if the current feature data includes a target environment parameter value or if the current feature data includes prompt information, the prompt information being used to indicate that the television network connection is abnormal, or determi