Set-top box testing method, device, set-top box and computer-readable storage medium

By automatically crawling and accessing all page interfaces of the set-top box and recording the test log, the problems of long test cycles, high costs and inaccurate results caused by manual traversal of the smart set-top box software version are solved, and efficient and accurate automatic testing is achieved.

CN112532966BActive Publication Date: 2025-02-18ZTE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910797509.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-27
Publication Date
2025-02-18
Estimated Expiration
2039-08-27

AI Technical Summary

Technical Problem

In the IPTV environment, the software version test of the smart set-top box requires manual traversal of all pages for logical operations, resulting in a long test cycle, high labor costs and inaccurate test results.

Method used

Provide a set-top box testing method, which automatically captures the access interface on each page of the set-top box and automatically accesses and processes until all interfaces of all pages are accessed, and logs the automatic running test process.

Benefits of technology

Automatic testing of set-top boxes is realized, which reduces labor costs, improves testing efficiency, avoids missed testing in manual testing, and improves the accuracy of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112532966B_ABST
    Figure CN112532966B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a set-top box testing method, device, set-top box and computer-readable storage medium. For a set-top box accessing a network, each access interface on each page of the set-top box is automatically captured, and each access interface is automatically accessed and processed until all access interfaces of all pages of the set-top box are accessed to complete the automatic operation test of the set-top box, and the automatic operation test function is automatically logged in combination with a log recording function, so that accurate test results can be obtained according to the obtained log records; the set-top box testing method provided by the embodiment of the present invention can realize automatic testing of the set-top box without manual intervention, thereby greatly reducing labor costs, improving test efficiency, and avoiding the occurrence of missed tests and the like during the manual testing process, thereby improving the accuracy of the test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of interactive networks, and in particular to a set-top box testing method, device, set-top box and computer-readable storage medium. Background Art

[0002] In the IPTV (Internet Protocol Television, interactive network television) environment, after the software version of the smart set-top box is produced, it is necessary to access the Electronic Program Guide (EPG) server for testing to test whether the EPG page displayed by the smart set-top box is displayed and the logical operation is normal. In the relevant technology, the test process is completed by manual testing by testers. The tester tests a complete set of IPTV EPG environment, and needs to traverse all pages of the set-top box as much as possible, operate corresponding different business scenarios on each page to determine whether there are abnormalities, and the abnormal scenarios that occur during the test process need to be manually recorded by the tester. After testing, the tester completes the test of a complete set of IPTV EPG environment (that is, a set of templates) of the set-top box, and the labor cost required is 4 people * days (that is, 32 people * hours). The IPTV EPG environment deployed in a commercial environment usually has N (N>=2) sets, such as standard definition, high definition, etc., and the required testing manpower is N*4 people*days. That is, as the number of commercial templates carried in the set-top box increases, the required test content and the required testing manpower also increase exponentially. There are problems such as long testing cycle and high testing manpower cost, and there is also the problem of inaccurate test results due to factors such as easy omissions. Summary of the invention

[0003] The embodiments of the present invention provide a set-top box testing method, device, set-top box and computer-readable storage medium, which solve the problems in the related art of manual testing of set-top boxes by testers, such as high test cycle and test labor cost, and inaccurate test results.

[0004] To solve the above technical problems, an embodiment of the present invention provides a set-top box testing method, including automatically running a test, and logging the process of the automatically running test;

[0005] The automatic running test includes:

[0006] Automatically capture each access interface on each page of the set-top box connected to the network, and automatically perform access processing on the access interfaces until all access interfaces of all pages are accessed.

[0007] In order to solve the above technical problems, an embodiment of the present invention further provides a set-top box testing device, comprising:

[0008] An automatic test control module, used for automatically capturing each access interface on each page of a set-top box connected to the network, and automatically performing access processing on each access interface until all access interfaces of all pages are accessed;

[0009] The recording module is used to log the process of the automatic running test.

[0010] To solve the above technical problems, an embodiment of the present invention further provides a set-top box, including a processor, a memory and a communication bus;

[0011] The communication bus is used to connect the processor and the memory;

[0012] The processor is used to execute the computer program stored in the memory to implement the steps of the set-top box testing method as described above.

[0013] To solve the above technical problem, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps of the set-top box testing method as described above.

[0014] Beneficial Effects

[0015] According to the set-top box testing method, device, set-top box and computer-readable storage medium provided by the embodiments of the present invention, for a set-top box accessed to a network, each access interface on each page of the set-top box is automatically captured, and each access interface is automatically accessed and processed until all access interfaces of all pages of the set-top box are accessed to complete the automatic operation test of the set-top box, and the automatic operation test function is automatically logged in combination with the log recording function, so that accurate test results can be obtained based on the obtained log records; the set-top box testing method provided by the embodiments of the present invention can realize automatic testing of the set-top box without manual intervention, thereby greatly reducing labor costs, improving test efficiency, and avoiding the occurrence of missed tests and the like during manual testing, thereby improving the accuracy of the test results.

[0016] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of a set-top box testing method according to Embodiment 1 of the present invention;

[0018] Figure 2 Schematic diagram of the access interface layout on the page of embodiment 1 of the present invention Figure 1 ;

[0019] Figure 3 Schematic diagram of the access interface layout on the page of embodiment 1 of the present invention Figure 2 ;

[0020] Figure 4 A schematic diagram of a selection sequence of access interfaces on a page in Embodiment 1 of the present invention;

[0021] Figure 5 Schematic diagram of the access interface layout on the page of embodiment 1 of the present invention Figure 3 ;

[0022] Figure 6 This is a schematic diagram of the structure of a set-top box testing device according to Embodiment 2 of the present invention;

[0023] Figure 7 This is a schematic diagram of a set-top box test process according to Embodiment 2 of the present invention;

[0024] Figure 8 This is a schematic diagram of the structure of a set-top box according to Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0026] Embodiment 1:

[0027] In view of the problems of high test cycle and high test labor cost and inaccurate test results in the manual testing of set-top boxes by testers in the related art, the present embodiment provides a method for automatically implementing set-top box testing, including automatic running test and logging the process of automatic running test; wherein the automatic running test can mainly automatically realize the automatic switching of each page of the set-top box and the logical operations on each page, and log the automatic running test process through logs, and accurate test results can be obtained according to the log records when needed, and the entire test process does not require manual intervention, which greatly reduces labor costs, improves test efficiency, and can also avoid the occurrence of missed tests during manual testing, thereby ensuring the accuracy of test results.

[0028] For ease of understanding, this embodiment is described below in conjunction with Figure 1 The set-top box test method shown is for illustration purposes only. Figure 1 As shown, including:

[0029] S101: automatically running a test on a set-top box connected to the network, including: automatically capturing each access interface on each page of the set-top box connected to the network, and automatically accessing each access interface until all access interfaces of all pages are accessed.

[0030] It should be understood that in this embodiment, the set-top box accessing the network includes but is not limited to accessing the EPG environment. And the set-top box testing method provided in this embodiment is not limited to being applied to the set-top box accessing the network, but is also applicable to the testing of the set-top box that is not accessing the network and is in an offline environment.

[0031] It should be understood that the access interface on the page in this embodiment includes but is not limited to various access interfaces for implementing link access, implementing corresponding functions (such as downloading, setting, updating, etc.) or implementing page links or various information links.

[0032] Of course, in some application scenarios, when it is necessary to test a specified function or a specified page of a set-top box, S101 may also only obtain the specified page or the specified access interface for automatic testing, and no test is performed on the pages or access interfaces other than the specified ones. The configuration may be flexible according to the requirements, and it should be understood that such flexible test configuration is also within the scope of this solution.

[0033] In this embodiment, the home page that is normally displayed and stays on after the set-top box is started up when it is connected to the network is called the original home page of the set-top box.

[0034] In this embodiment, when automatically capturing each access interface on each page of a set-top box connected to the network, each time the set-top box enters a new page (that is, a page that has not been entered before), each access interface on the newly entered page can be captured. That is, in this embodiment, when the set-top box enters the current page, it can be determined whether the current page is a page that has not been entered before. If so, the identification information of the access interface on the current page is captured one by one, and the captured identification information is associated with the page path of the current page and stored, and the access status of the identification information is set to not visited.

[0035] For example, in one example, the identification information of the access interfaces on the current page may be captured one by one, including but not limited to:

[0036] When the set-top box enters the current page and determines that the current page is a page that has not been entered before, the focus is controlled from the upper left corner of the current page by simulating the navigation key, and the access interfaces are selected one by one from left to right, and the identification information of the access interface currently selected by the focus is obtained until the identification information of all access interfaces on the current page is obtained.

[0037] The simulated navigation keys in this embodiment may include but are not limited to left and right keys and up and down keys, and the left and right keys and up and down keys may be used to control the focus to move on the page to select the corresponding access interface. The focus in this embodiment is similar to the cursor of a traditional mouse. In this embodiment, the display of the access interface currently selected by the focus on the page can also be flexibly set. For example, in some examples, the access interface currently selected by the focus can be displayed in any display mode that can be distinguished from other unselected access interfaces, such as but not limited to light display, enlarged display, floating display or bold border display.

[0038] For example, in one application scenario, see Figure 2 As shown, assuming that there are access interface A, access interface B, access interface C and access interface D on a certain page of the set-top box, the current focus is on access interface A on the left, and access interface A is displayed in an enlarged manner to distinguish it from access interface B, access interface C and access interface D.

[0039] For example, in another application scenario, see Figure 3 As shown, assuming that there are access interface A, access interface B, access interface C and access interface D on a certain page of the set-top box, the current focus is on access interface B, and the border area of ​​access interface B is displayed in bold to distinguish it from access interface A, access interface C and access interface D.

[0040] In some application scenarios of this implementation example, an OK key may also be simulated. When an access interface is selected in focus, the access to the access interface is achieved by triggering the OK key.

[0041] In addition, it should be understood that the identification information of the access interface captured in this embodiment can be any identification information that can uniquely distinguish the access interface on the page from other access interfaces. For example, in an example, the identification information can include but is not limited to extracting an image in the display area of ​​the access interface as the identification information of the access interface. In this example, obtaining the identification information of the access interface currently selected by the focus on the page includes:

[0042] Capture the image in the current display area of ​​the access interface currently selected by focus on the page as the identification information of the access interface. For example, see Figure 2 As shown, at this time, the image in the current display area (that is, the enlarged display area) of the access interface A is intercepted (in this embodiment, it can be called the focus image) as the identification information of the access interface A; for another example, see Figure 3 As shown, at this time, the image in the current display area of ​​the access interface B (that is, the area displayed in bold) is captured as the identification information of the access interface B.

[0043] exist Figure 2In the application scenario shown, when the set-top box enters Figure 2 When the page shown is displayed, for this page, the focus is controlled by simulating the navigation key from the upper left corner of the current page, and the identification information of the access interface currently selected by the focus is obtained in sequence from left to right. For the selection process, please refer to Figure 4 As shown, until the identification information of all access interfaces on the current page is obtained, the formed image database includes the corresponding relationship table shown in the following Table 1.

[0044] Table 1

[0045]

[0046] Of course, it should be understood that the order of selecting the access interface on the page in this embodiment is not limited to the order of the above examples, and can be flexibly set according to needs. Figure 5 As shown, assuming that there are access interfaces A, B, C, D, E, F, G, and H on the current page, when the identification information of the access interface currently selected by the focus is obtained in sequence from left to right, the order of obtaining is access interface A→B→C→D→E→F→G→H. In other application scenarios of this embodiment, the order of obtaining may also be access interface A→B→C→D→H→G→F→E. In other application scenarios, the access interface may also be selected in a random order or other order until all access interfaces are accessed.

[0047] In this embodiment, the method of determining whether a certain access interface on a page is an access interface for which identification information has been obtained may include but is not limited to: obtaining the identification information of the access interface, and searching in the image database corresponding to the page whether the same identification information exists. If so, it indicates that the access interface is an access interface for which identification information has been obtained; otherwise, it indicates that the access interface is an access interface for which identification information has not been obtained on the page. In this embodiment, image capture and image matching may be respectively implemented by, but not limited to, a screen capture and saving module and an image matching module. And in this embodiment, the simulation of the navigation key and the OK key may be implemented by, but not limited to, a key simulation function module.

[0048] In this embodiment, an example method of automatically performing access processing on each access interface until all access interfaces of all pages are accessed may include:

[0049] When determining that there is target identification information with an access status of not visited in the identification information associated with the page currently located by the set-top box, access the access interface corresponding to the target identification information and update the access status of the target identification information to visited;

[0050] When it is determined that the access status of all identification information stored in association with the page currently located by the set-top box is accessed, and the page currently located by the set-top box is not the original home page, the set-top box is controlled to enter the page of the previous level of the current page, and then the above steps are repeated;

[0051] When it is determined that the access status of all identification information stored in association with the page currently located by the set-top box is accessed, and the page currently located by the set-top box is the original home page, it indicates that all access interfaces of all pages have been accessed.

[0052] S102: Record the process of automatically running the test in a log.

[0053] In an example of this embodiment, the selection process of accessing the interface by controlling the focus with the navigation key during the automatic running test may be logged, and the page script execution, page parsing, etc. during the accessing of the access interface may be logged.

[0054] In an example of this embodiment, in order to improve the pertinence and accuracy of the test, logging the process of automatically running the test may include:

[0055] The error information that occurs during the automatic test is saved to generate an error log; and the generated log can be actively uploaded or displayed as needed, or uploaded or displayed after the received call is executed, and when uploading or displaying, the error log can be uploaded or displayed in a centralized or priority manner; and in some application scenarios, only the error log can be uploaded or displayed, and other logs will no longer be uploaded or displayed.

[0056] In addition, to further assist in error location and analysis, in some examples, the set-top box testing method may further include:

[0057] Capture the corresponding display interface screenshot when an error occurs during the automatic running test, and store the obtained display interface screenshot in association with the error log corresponding to the error; when uploading or displaying the error log, the display interface screenshot corresponding to the error log can be Figure 1 And upload or display; in this way, when performing error analysis, you can combine the log information and the corresponding display interface screenshots for comprehensive analysis, which can improve the efficiency and accuracy of error analysis.

[0058] Embodiment 2:

[0059] This embodiment provides a set-top box testing device, which can be set in a set-top box or in a test device for set-top box testing. Figure 6 As shown, it includes:

[0060] The automatic test control module 601 is used to automatically capture each access interface on each page of the set-top box connected to the network, and automatically access each access interface until all access interfaces of all pages are accessed; the specific automatic test running process is shown in the above embodiment and will not be repeated here.

[0061] In some examples of this embodiment, the automatic test control module 601 may include but is not limited to:

[0062] Key simulation function module: When the set-top box is connected to the IPTV EPG environment, it can trigger the browser to parse and execute the page script logic through keys to display services. The key simulation function module can be used to simulate the user's real key operation;

[0063] In an embodiment, the key simulation function module may be provided with basic function outputs: menu key, return key, up, down, left, and right direction navigation keys, OK key, etc. At the same time, logs will be saved for errors that occur during the key pressing process.

[0064] Screen capture and saving module: used to capture the image output of the specified position and size, save it as a picture, or directly take a screenshot of the current display interface and save it as a picture.

[0065] Image matching template: compares whether two images are the same, including factors such as image size and image data content, so as to determine whether the identification information of a certain identification interface is an identification interface that has been accessed or has extracted identification information.

[0066] The recording module 602 is used to log the process of the automatic running test. The specific recording process is shown in the above embodiment and will not be repeated here.

[0067] In some examples of this embodiment, the recording module 602 may include a log output module: used to save the set-top box log, which can record keystroke processes, page script execution, page parsing and other logs, and also record and generate error logs for errors that occur during the operation process.

[0068] Based on the set-top box testing device provided by the present embodiment, the focus movement can be triggered by simulating the user pressing the direction keys of the remote control. In the browser, the coordinate position of the focus after the movement can be obtained, and the access interface corresponding to the coordinate position of the focus can be screenshotted. In this way, each page will generate its own image database, and in the image database of the page, each access interface has only one image (referred to as the focus image in the present embodiment) corresponding to it; the focus image captured each time a key is pressed on the page is compared with the image database of the page to determine whether it is an access interface whose identification information has been obtained or whether it is an access interface that has been visited. Through such logical judgment, all access interfaces on each page can be obtained, and all access interfaces can be accessed one by one, so that the entire set of templates can be traversed, and in the whole process, the log capture operation is combined to complete the set-top box test.

[0069] For ease of understanding, this embodiment is described below using a set-top box test scenario of a specific application scenario as an example. Figure 7 As shown, the following steps are included:

[0070] S701: After the set-top box accesses the IPTV EPG environment, a page that is normally displayed and remains is obtained as the original home page, marked as URL_HomeEPG, and automated testing is started from this page.

[0071] S702: Get the current page where the set-top box is located, and set the current page to URL1.

[0072] S703: Determine whether the current page URL1 is a page that has been visited. If so, go to S704; otherwise, go to S705.

[0073] S704: Obtain the focus images of all access interfaces on the current page URL1 for associated storage.

[0074] In this example, the up, down, left, and right arrow keys are triggered through the key simulation function module to control the focus to traverse all access interfaces of the current page URL1, obtain the focus image of each access interface, and mark it as not visited, generating a data relationship: page URL1---focus image---access status (not visited).

[0075] At the same time, when the arrow keys traverse all access interfaces of the page, the error logs need to be saved.

[0076] Get the focus image of all access interfaces of the current page URL1 by pressing a key. An example algorithm is described as follows:

[0077] Each time you press a direction key, the focus moves and the page is refreshed. For example, in one example, the refresh range can be composed of two minimum rectangles. One rectangle is the rectangle corresponding to the access interface where the focus was last located, and the second rectangle is the rectangle corresponding to the access interface where the focus is located after it moves. The coordinates of the second rectangle are obtained, and the screen corresponding to the rectangular coordinates is captured to obtain a picture of the access interface, which is recorded as the focus picture.

[0078] Traverse all access interfaces of the page by pressing keys, similar to the "line-by-line scanning" method, as described below:

[0079] A) When entering the current page for the first time, move the focus to the upper left corner by pressing the key (using the "left" direction key and the "up" direction key, for example, first press the "left" direction key until no new focus refresh is generated, and then press the "up" direction key until no new focus refresh is generated), obtain the focus image of the access interface currently selected by the focus, and record the corresponding relationship between the page path and the focus image, and mark it as unvisited, indicating that the focus image only belongs to the page path; go to B);

[0080] B) Press the "right" arrow key to grab the focus image of the new access interface selected after the focus moves to the right, and compare whether the current focus image has been saved in the image database of the page: if the focus image has been saved, it means that the focus on the "right" arrow key has been traversed, and the focus needs to be returned to the leftmost focus. The next step is to enter the next row, perform focus traversal, and enter C);

[0081] If the focus picture is a new picture, save the focus picture and go to B);

[0082] C) Press the "down" direction key to determine whether a new focus picture is captured. It mainly determines whether the focus of the "down" direction key changes. If so, determine whether the captured focus picture is a new focus picture: if there is no focus change, or the new focus picture has been saved, it means that the "down" direction key has no focus, and the "line-by-line scanning" method is completed and ended; if the focus changes, and the captured focus picture is a new picture, save the focus picture and go to B).

[0083] S705: Check whether there is any focus image with the access status of not visited (ie, the access interface visited) on the current page URL1. If so, go to S706; otherwise, go to S707.

[0084] S706: Triggering the OK button through the button module triggers the business logic of the unvisited access interface, and at the same time marks the focus image corresponding to the access interface under the page URL1 as having been visited.

[0085] S707: Whether a page jump occurs, if so, go to S702; otherwise, go to S705.

[0086] The business logic for triggering the OK button to trigger the focus may include but is not limited to the following two results:

[0087] The first one is to execute only JavaScript or empty logic, without page jump;

[0088] The second triggers the page to jump to a new URL, and sets the new URL to jump to URL2.

[0089] For the first type, the focus of the page is still marked as visited, and the process goes to step S705;

[0090] For the second type, step S702 will be executed for the new page URL2.

[0091] S708: In the current page URL1, all pages corresponding to the focus of the page have been traversed. Determine whether the current page URL1 is the original home page URL_HomeEPG, if so, go to S710; otherwise, go to S709.

[0092] S709: Return to the previous page of the current page URL1 (marked as URL0), and then go to S702.

[0093] S710: All pages of the set-top box (all EPG pages in this example) are traversed and the test is finished. Subsequent users or developers can trace back and locate the problem phenomenon based on the logs and saved pictures.

[0094] It should be understood that in addition to using Figure 7 In addition to the test process shown, a level-by-level page test method can also be used, that is, after access testing all access interfaces on each page of a level page one by one, then enter each page under the level page one by one for testing, and so on, until all access interfaces on each page of the lowest level are tested.

[0095] Compared with manual testing in related arts, the set-top box testing method and device provided in this embodiment can accurately traverse all pages without omissions, and can traverse link pages spliced ​​by JavaScript scripts, thereby achieving the effect of traversing all pages and requiring no manual maintenance and running automatically, thus saving testing manpower and improving the efficiency of automatic testing of set-top boxes.

[0096] Embodiment three:

[0097] This embodiment also provides a set-top box. Figure 8 As shown, it includes a processor 801, a memory 802 and a communication bus 803;

[0098] The communication bus 803 is used to realize the communication connection between the processor 801 and the memory 802;

[0099] In one example, the processor 801 may be used to execute a computer program stored in the memory 802 to implement the steps of the set-top box testing method in the above embodiments.

[0100] In this embodiment, since the set-top box itself can be provided with a computer program for implementing the above-mentioned set-top box testing method, each set-top box can directly enter the test mode when needed to complete the automatic test conveniently, quickly and accurately, so that ordinary users can also complete the detection of the set-top box when needed, further improving the user experience satisfaction.

[0101] The present embodiment also provides a computer-readable storage medium, which includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer.

[0102] In an example, the computer-readable storage medium in this embodiment can be used to store a computer program, and the computer program can be executed by a processor to implement the steps of the set-top box testing method in the above embodiments.

[0103] This embodiment also provides a computer program (or computer software), which can be distributed on a computer-readable medium and executed by a computing device to implement at least one step of the set-top box testing method shown in the above embodiments; and in some cases, at least one step shown or described can be executed in an order different from that described in the above embodiments.

[0104] This embodiment further provides a computer program product, including a computer readable device, on which any computer program as shown above is stored. In this embodiment, the computer readable device may include the computer readable storage medium as shown above.

[0105] It can be seen that those skilled in the art should understand that all or some of the steps, systems, and functional modules / units in the above disclosed methods can be implemented as software (which can be implemented with computer program code executable by a computing device), firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be performed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit.

[0106] In addition, it is well known to those skilled in the art that communication media generally contain computer readable instructions, data structures, computer program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery media. Therefore, the present invention is not limited to any specific hardware and software combination.

[0107] The above contents are further detailed descriptions of the embodiments of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A set-top box testing method, comprising automatically running a test and logging the process of the automatically running test; The automatic running test includes: Automatically capture each access interface on each page of a set-top box connected to the network, compare the access interface with the image database of each page to see if it is an access interface that has been visited, and automatically perform access processing on each access interface until all access interfaces of all pages are visited, wherein the image database includes a corresponding relationship between a page path, image information of the access interface, and an access status; The logging of the process of automatically running the test includes logging the selection process of the access interface, the execution of page scripts during the access process of the access interface, and the parsing of pages during the access process of the access interface.

2. The set-top box testing method according to claim 1, characterized in that: The automatic capture of access interfaces on each page of the set-top box accessing the network includes: When the set-top box enters the current page and determines that the current page is a page that has not been entered, the identification information of the access interface on the current page is captured one by one, and the captured identification information is associated with the page path of the current page and stored, and the access status of the identification information is set to not visited.

3. The set-top box testing method according to claim 2, characterized in that: The step of fetching identification information of access interfaces on the current page one by one includes: When the set-top box enters the current page and determines that the current page is a page that has not been entered, the focus is controlled from the upper left corner of the current page by simulating the navigation key, and the access interfaces are selected one by one from left to right, and the identification information of the access interface currently selected by the focus is obtained until the identification information of all access interfaces on the current page is obtained.

4. The set-top box testing method according to claim 3, characterized in that: Obtaining identification information of the access interface currently selected by the focus includes: An image in the current display area of ​​the access interface currently selected by focus is captured as identification information of the access interface.

5. The set-top box testing method according to any one of claims 2 to 4, characterized in that: The automatically performing access processing on each access interface until all access interfaces of all pages are accessed includes: When determining that there is target identification information with an access status of not visited in the identification information associated with the page currently located by the set-top box, access the access interface corresponding to the target identification information and update the access status of the target identification information to visited; When it is determined that the access status of all identification information stored in association with the page currently located by the set-top box is accessed, and the page currently located by the set-top box is not the original home page, controlling the set-top box to enter the page of the previous level of the current page; When it is determined that the access status of all identification information stored in association with the page currently located by the set-top box is accessed, and the page currently located by the set-top box is the original home page, it is determined that all access interfaces of all pages have been accessed; The original home page is the home page that is normally displayed and stays on after the set-top box is started up when it is connected to the network.

6. The set-top box testing method according to any one of claims 1 to 4, characterized in that: The logging of the process of automatically running the test includes: The error information that occurs during the automatic running test is saved to generate an error log.

7. The set-top box testing method according to claim 6, characterized in that: The set-top box testing method also includes: A screenshot of the display interface is captured when an error occurs during the automatic running test, and the acquired screenshot of the display interface is associated with an error log corresponding to the error and stored.

8. A set-top box testing device, characterized in that: include: An automatic test control module, used to automatically capture each access interface on each page of a set-top box connected to the network, compare the access interface in the image database of each page to see if it is an access interface that has been visited, and automatically perform access processing on each access interface until all access interfaces of all pages are visited, wherein the image database includes a corresponding relationship between a page path, image information of the access interface, and an access status; A recording module, used for recording the process of the automatic running test in a log; The logging of the process of automatically running the test includes logging the selection process of the access interface, the execution of page scripts during the access process of the access interface, and the parsing of pages during the access process of the access interface.

9. A set-top box, characterized in that: including a processor, a memory and a communication bus; The communication bus is used to connect the processor and the memory; The processor is used to execute the computer program stored in the memory to implement the steps of the set-top box testing method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps of the set-top box testing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • App test method and system based on Android terminal

    CN107402877A

  • Control test method and apparatus

    CN107515821A