Automatic testing method and system for EPG pages and programs of smart set-top boxes
Through orchestration of tasks and adb connections, combined with log analysis and feature library, automated testing of intelligent set-top box EPG pages and programs is realized, solving the problems of equipment interference and complex page logic processing, and realizing the IPTV EPG pages, programs and channels Automated testing.
Patent Information
- Application Number
- CN202111626625.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2041-12-28
AI Technical Summary
Existing automated testing systems are prone to mutual interference when multiple devices are tested simultaneously, and it is difficult to deal with complex page logic, such as the waterfall page and order page branch logic of HTML5 and CSS3, especially for the EPG page and program playback of smart set-top boxes. Testing lacks mature approaches.
Adopt basic operation instructions and task strategies for orchestrating tasks, connect to the intelligent set-top box through adb, collect logs in real time and analyze them in combination with feature libraries, automatically make decisions and execute operation instructions, and support page traversal of non-fixed instruction sets, including fixed and non-fixed entry columns judgment and handling.
Avoid interference between infrared devices, realizes automated testing of complex EPG pages and programs, and can automatically complete page traversal of non-fixed instruction sets. It is suitable for the automation testing of the new generation of IPTV EPG pages, programs and channels of 4K smart set-top boxes. .
Smart Images

Figure CN114374836B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automation technology, and in particular to an automated testing method and system for EPG pages and programs of an intelligent set-top box, and electronic equipment. Background Art
[0002] In the interactive Internet TV (IPTV) service, EPG (Electronic Program Guide) is the TV page, including the homepage EPG, each column EPG, channel program list, etc. Users use the remote control to operate the EPG to select channels or programs to play. With the development of IPTV services, the programs operated are very rich, the pages are numerous, the update frequency is high, and the user groups are many. It is no longer possible to detect page errors and program playback errors in time by manual inspection. Therefore, in recent years, the IPTV service automatic testing service has emerged to perform traversal testing and error detection on EPG pages and programs.
[0003] Some existing automated testing systems send infrared commands through specific hardware to simulate the infrared control buttons of the set-top box remote control to achieve remote and automatic operation control of the set-top box. On the one hand, this infrared remote control automatic testing method is prone to mutual interference between set-top boxes and affect the test results when multiple devices are tested simultaneously. On the other hand, infrared remote control automatic testing has difficulties in complex page logic judgment, such as the new generation of HTML5 and CSS3 waterfall flow pages, ordering page branch logic, etc.
[0004] Another automated testing method is to use adb (Android Debug Bridge, which plays the role of a debugging bridge) for automatic testing. Since smart set-top boxes use the Android operating system, they also support adb automatic testing. However, the current adb testing of set-top boxes mainly focuses on fatigue testing of devices and automated testing with relatively fixed script instruction sets. There is still a lack of mature applications for large-scale EPG page and program playback automatic testing with non-fixed instruction sets. Summary of the invention
[0005] The embodiment of the present invention provides an automatic testing method and system for EPG pages and programs of an intelligent set-top box, an electronic device, and a computer-readable storage and a computer program product for implementing the method, so as to solve the problems in the background technology.
[0006] An automatic testing method for an EPG page and a program of a smart set-top box provided by an embodiment of the present invention comprises:
[0007] Arrange basic operation instructions and task strategies for tasks;
[0008] Sending corresponding operation instructions to the set-top box, and the set-top box automatically accesses IPTV EPG pages, programs, and channels according to the operation instructions;
[0009] Perform task result analysis on each step of the operation instruction and output the analysis result;
[0010] Perform task decision-making based on the output analysis results and the task strategy, provide instructions for the next task execution or output task feedback information;
[0011] Execute the corresponding task operation according to the instruction of the next task execution.
[0012] In some embodiments, the basic operation instructions and task strategies for arranging tasks specifically include:
[0013] The operation instruction set of the fixed entry column of the scheduling task, the operation instruction set and judgment method of the non-fixed entry column, the ordering task strategy instruction set and the fault error strategy instruction set.
[0014] In some embodiments, for the non-fixed entry column of the task, the correctness of the non-fixed entry column is judged by combining the fixed instruction set of the upper parent column and the non-fixed entry column URL features during the same-layer traversal.
[0015] In some embodiments, the task result analysis of each step of the operation instruction specifically includes:
[0016] Collect adb logs in real time and analyze task results in combination with EPG URL feature library, task strategy library, and log feature library.
[0017] In some embodiments, the task result analysis specifically includes:
[0018] KeyEvent log analysis, http url log analysis, fault code log analysis, player log analysis and channel join and leave log analysis.
[0019] In some embodiments, performing task decision-making based on the output analysis results and the task strategy specifically includes:
[0020] Correctness judgment of the fixed entry column entrance, task decision of the non-fixed entry column, lower-level entry traversal, lower-level loop traversal, waterfall flow EPG judgment, remote control up, down, left, and right boundary judgment, multi-page page turning judgment, ordering task branch decision, fault error branch decision.
[0021] An automatic testing system for EPG pages and programs of a smart set-top box provided by an embodiment of the present invention includes:
[0022] A task scheduling module, which is used to schedule basic operation instructions and task strategies of tasks;
[0023] A remote control instruction sending module, the remote control instruction sending module is used to send corresponding operation instructions to the set-top box, and the set-top box automatically accesses IPTV EPG pages, programs, and channels according to the operation instructions;
[0024] A task result analysis module, which is used to analyze the task results of each step of the operation instruction and output the analysis results;
[0025] A task decision module, the task decision module is used to make a task decision based on the output analysis result and the task strategy, so as to provide instructions for the next task execution or output task feedback information;
[0026] A task execution module, wherein the task execution module is used to execute corresponding task operations according to the instructions for the next step of task execution.
[0027] In some embodiments, the task scheduling module is specifically used to schedule a fixed entry column operation instruction set, a non-fixed entry column operation instruction set and judgment method, a task ordering strategy instruction set, and a fault error strategy instruction set.
[0028] In some embodiments, for the non-fixed entry column of the task, when the task is executed, the task scheduling module is specifically used to combine the fixed instruction set of the upper parent column and the non-fixed entry column URL characteristics during the same-layer traversal to determine the correctness of the non-fixed entry column.
[0029] In some embodiments, it also includes an adb log collection module, which is used to collect adb logs in real time, and the task result analysis module is used to perform task result analysis in combination with the EPG URL feature library, the task policy library, and the log feature library.
[0030] In some embodiments, the task result analysis module is specifically used for KeyEvent log analysis, http url log analysis, fault code log analysis, player log analysis and channel join and leave log analysis.
[0031] In some embodiments, the task decision module is specifically used for: judging the correctness of the fixed entry column entry, deciding the task of the non-fixed entry column, traversing the lower-level entry, traversing the lower-level loop, judging the waterfall EPG, judging the up, down, left, and right boundaries of the remote control, judging the turning of multiple pages, deciding the branching of the ordering task, and making the branching decision on the fault error.
[0032] An electronic device provided by an embodiment of the present invention includes:
[0033] one or more processors;
[0034] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the automatic testing method for EPG pages and programs of the smart set-top box provided in an embodiment of the present invention.
[0035] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the automatic testing method for EPG pages and programs of a smart set-top box provided by the embodiment of the present invention is implemented.
[0036] A computer program product provided by an embodiment of the present invention includes a computer program. When the computer program is executed by a processor, the automatic testing method for EPG pages and programs of a smart set-top box provided by an embodiment of the present invention is implemented.
[0037] The embodiments of the present invention provide an automated testing method and system for EPG pages and programs of an intelligent set-top box, an electronic device, a computer-readable storage medium, and a computer program product. The analysis method can, on the one hand, avoid interference between infrared devices, and on the other hand, propose a set-top box automated testing method suitable for a non-fixed instruction set, which can automatically implement complex page traversal, thereby completing automated testing tasks for IPTV EPG pages, programs, and channels. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flowchart of an automated testing method for EPG pages and programs of a smart set-top box provided in an embodiment of the present application;
[0040] Figure 2A A schematic diagram of an automated testing system for EPG pages and programs of a smart set-top box provided in an embodiment of the present application;
[0041] Figure 2B A schematic diagram of another automated testing system for EPG pages and programs of a smart set-top box provided in an embodiment of the present application;
[0042] Figure 2C A specific schematic diagram of an automated testing system for EPG pages and programs of a smart set-top box and a smart set-top box provided in an embodiment of the present application;
[0043] Figure 3 A task arrangement and task execution flow diagram of an automated testing method for EPG pages and programs of a smart set-top box provided in an embodiment of the present application;
[0044] Figure 4 A task result analysis flow diagram of an automated testing method for EPG pages and programs of a smart set-top box provided in an embodiment of the present application;
[0045] Figure 5 A task decision flow diagram of an automated testing method for EPG pages and programs of a smart set-top box provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more comprehensive and complete and will fully convey the concept of the example embodiments to those skilled in the art.
[0048] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.
[0049] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0050] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0051] The embodiment of the present invention provides an automatic testing method for EPG pages and programs of a smart set-top box, such as Figure 1As shown, including:
[0052] S101, basic operation instructions and task strategies for arranging tasks;
[0053] S102, sending corresponding operation instructions to the set-top box, and the set-top box automatically accesses the IPTV EPG page, program, and channel according to the operation instructions;
[0054] S103, performing task result analysis on the operation instructions of each step, and outputting the analysis result;
[0055] S104, making task decisions based on the output analysis results and task strategies, providing instructions for the next task execution or outputting task feedback information;
[0056] S105: Execute corresponding task operations according to the instructions for executing the next task.
[0057] The automatic testing method for EPG pages and programs of an intelligent set-top box provided by an embodiment of the present invention can avoid interference between infrared devices on the one hand, and on the other hand, proposes a set-top box automatic testing method suitable for a non-fixed instruction set, which can automatically realize complex page traversal, thereby completing the automatic testing tasks of IPTV EPG pages, programs and channels.
[0058] Specifically, Figure 2A-2C As shown, Figure 2A and Figure 2B This is a schematic diagram of the structure of the automated test system. Figure 2C The structure diagram of the automatic test system and the intelligent set-top box is shown in FIG. The intelligent set-top box EPG page and program automatic test software run on the automatic test system. The automatic test system includes an adb server and an EPG page and program automatic test software. The EPG page and program automatic test software communicate with the Daemon (adbd) of the intelligent set-top box through the adb server. The EPG page and program automatic test software include a task scheduling module 101, a task execution module 105, a remote controller instruction sending module 102, an adb log collection module 106, a task result analysis module 103, a task decision module 104, a task feedback module 107, a basic data maintenance module 108, and basic data such as an EPG URL feature library, a task strategy library, and a log feature library. The automatic test system uses an adb server to connect to the intelligent set-top box, sends a remote controller instruction set through an adb shell, and traverses and accesses EPG pages, programs, and channels.
[0059] In some embodiments, step S101 arranges basic operation instructions and task strategies of the task, specifically including:
[0060] The operation instruction set of the fixed entry column of the scheduling task, the operation instruction set and judgment method of the non-fixed entry column, the ordering task strategy instruction set and the fault error strategy instruction set.
[0061] Specifically, Figure 3 As shown, Figure 3 The figure is a diagram of task arrangement and task execution flow. Task arrangement involves two types of automatic test tasks: fixed entry columns and non-fixed entry columns. Fixed entry columns refer to column entrances that can be reached through a fixed remote control instruction set (steps), such as the home page, the main column of the home page, etc.; non-fixed entry columns refer to column entrances where the remote control instruction steps are variable. For example, the relative position of the recommended column may change, resulting in non-fixed remote control instruction steps. The task setting of the non-fixed entry column is to combine the upper parent column entrance and the same level traversal, and judge the correctness of the entrance according to the URL characteristics of the non-fixed entry column.
[0062] During the automatic execution of tasks, you may encounter ordering pages and fault error pages, and the corresponding remote control instruction sets are not fixed. Therefore, the task arrangement also provides the URL judgment method and order processing instruction set for order processing, as well as the fault error code judgment method and fault processing instruction set.
[0063] The corresponding instruction set is a combination of remote control commands. Through the task execution module, it is executed on the set-top box terminal in adb shell mode. Each step of the fixed entry column is fixed. For the non-fixed entry column of the task, when the task is executed, the correctness of the non-fixed entry column is judged by combining the fixed instruction set of the upper parent column and the non-fixed entry column URL features during the same-layer traversal.
[0064] The execution method of a single remote control command is: adb shell input keyevent digital key value
[0065] Some of the main key values are as follows:
[0066] Home 181;
[0067] Interaction / menu:82 (Exit IPTV APK);
[0068] Returns: 4;
[0069] Confirmed: 23;
[0070] Desktop: 3 (launcher);
[0071] Left 21:;
[0072] 19 on;
[0073] Next page 93;
[0074] Right 22;
[0075] Next 20;
[0076] Previous page 92;
[0077] Play / Pause: 85;
[0078] Channel plus 166
[0079] Channel minus 167.
[0080] In some embodiments, step S103 performs task result analysis on the operation instruction of each step, specifically including:
[0081] like Figure 4 As shown, Figure 4 This is a schematic diagram of the task result analysis process. The adb log is collected in real time, and the task result analysis is performed in combination with the EPG URL feature library, task strategy library, and log feature library.
[0082] Specifically, Figure 4 As shown in the figure, the task result analysis includes:
[0083] KeyEvent log analysis, http url log analysis, fault code log analysis, player log analysis and channel join and leave log analysis.
[0084] Among them, KeyEvent log analysis: for each remote control command adb shellinput keyevent number issued during task execution, the set-top box will generate a corresponding keyevent log. The purpose of KeyEvent log analysis is to compare with the instructions executed by the task to determine the validity of the instructions, the execution time of the instructions, and the time matching of the subsequent execution results.
[0085] http url log analysis: Based on the collected http url access logs, combined with the EPG URL feature library, a comparison analysis is performed. Based on the return code of the http url, the correctness of the column access return can be determined.
[0086] Fault code log analysis: Extract fault codes based on the fault error information in the log and match them with the fault code library in the log feature library.
[0087] Player log analysis, channel join and leave log analysis: extract information from player and channel join and leave behavior logs, match them with the log feature library, and obtain the player status and channel join and leave status results.
[0088] In some embodiments, Figure 5 As shown, Figure 5 The following is a diagram of the task decision process. The task decision is made based on the output analysis results and task strategy, including:
[0089] Correctness judgment of the fixed entry column entrance, task decision of the non-fixed entry column, lower-level entry traversal, lower-level loop traversal, waterfall flow EPG judgment, remote control up, down, left, and right boundary judgment, multi-page page turning judgment, ordering task branch decision, fault error branch decision.
[0090] Specifically, Figure 5 As shown, according to the output results of the task result analysis, task decision judgment is made, instructions for the next task execution are provided, or task feedback information is output.
[0091] Task decision-making requires multiple judgments and the arrangement of the next task (not a fixed set of instructions). It includes:
[0092] (1) Judgment on correctness of fixed entry column entry: Although the fixed entry column has a fixed remote control command set, when confirming the entry, it is further confirmed based on the EPG URL features and http log return status that the entry of the fixed entry column is correct and the link is accessible.
[0093] (2) Task decision for non-fixed entry columns: Non-fixed entry columns must first enter the parent column entrance, and then send remote control commands to traverse and access the focus of the same level. This is a process of continuous remote control movement, determination, and return to achieve same-level traversal. During the same-level traversal process, it is determined whether the non-fixed entry column has been reached based on the EPG URL characteristics.
[0094] (3) Traversal of lower-level entrances: After the entrance of the overall task is determined, it is necessary to perform the traversal of the lower-level entrances and provide feedback on whether the lower-level entrances are accessed correctly.
[0095] (4) Subsequent lower-level loop traversal: For the lower-level entry, it is necessary to arrange for the subsequent lower-level loop traversal and provide feedback on whether the subsequent lower-level access is correct.
[0096] (5) Waterfall EPG judgment: Generally speaking, the clickable focus on a page is fixed, but the waterfall EPG is not fixed. When the focus moves to the boundary, a new image is dynamically loaded and a new focus appears. Waterfall is a common technology used in the new generation of EPG. When traversing the same level of focus on each page, a waterfall judgment must be performed. The judgment rule is whether there is a new http load after the remote control moves up, down, left, and right. If so, it is a waterfall loading, which means that the traversal has not yet ended and a new movement command task needs to be arranged in the same direction.
[0097] (6) Determine whether the remote control has reached the boundary in the up, down, left, or right direction: For each page, when there is no waterfall or the waterfall ends, it is also necessary to determine whether the remote control has reached the boundary in this direction and will not move further. (The human eye can easily determine this, but in automatic testing, the machine needs to make automatic determinations.) The determination method is that if the focus is moved in the same direction and the http url clicked is the same as the url clicked in the previous focus, it is considered that the remote control has reached the boundary in this direction. Otherwise, continue to arrange movement instructions and click confirmation instructions in the same direction.
[0098] (7) Judgment of multi-page page turning: Since some pages have multi-page turning, in order to traverse multiple pages, after the same-level traversal of this page is completed, the remote control page turning command is arranged to see if there is a new http url access record.
[0099] (8) Order task branch decision: When the remote control determines that the command has been issued, if an http URL matches the order task, the order task branch is executed according to the order task strategy.
[0100] (9) Fault error branch decision: When the task result analysis issues a fault error code, feedback is recorded according to the fault handling task strategy, and a return or home key is issued, or a set-top box restart command is issued to continue execution.
[0101] Specifically, a stand-alone system for automatic testing of EPG pages and programs: a stand-alone automatic testing system is designed to control one or more set-top boxes to perform page and program traversal testing and output a test report.
[0102] Specifically, EPG page and program automatic testing network system: design a networked automatic testing system to control multiple set-top boxes to perform page and program traversal testing, and summarize the output results into a reporting system.
[0103] In summary, this solution uses a standard adb connection to design a set of automated testing methods for EPG pages and programs. The advantages of this solution are that on the one hand, it avoids interference between infrared devices, and on the other hand, it can obtain more abundant information (such as fault codes, player information, channel joining and leaving information) from adb log, which is more conducive to judging the effect of set-top box execution. In addition, the present invention proposes an automated test of EPG pages and programs for smart set-top boxes, which uses adb to connect to smart set-top boxes, sends remote control instruction sets through adb shell, and traverses and accesses EPG pages, programs and channels. For complex IPTV EPG pages, rich programs and channel content, the present invention proposes a set of task execution, task result analysis, and task decision methods that support non-fixed instruction sets, automatically making waterfall EPG judgments, remote control up and down, left and right to boundary judgments, multi-page page turning judgments, ordering task branch decisions, and fault error branch decisions, so that very complex non-fixed instruction set page traversal can be automatically completed. It is suitable for the automated testing of the new generation of IPTV EPG pages, programs, and channels of 4K smart set-top boxes.
[0104] Based on the same inventive concept, the embodiment of the present invention also provides an automatic testing system for EPG pages and programs of a smart set-top box, such as Figure 2A As shown, including:
[0105] Task scheduling module 101, task scheduling module 101 is used to schedule basic operation instructions and task strategies of tasks;
[0106] The remote control command sending module 102 is used to send corresponding operation instructions to the set-top box, and the set-top box automatically accesses the IPTV EPG page, program, and channel according to the operation instructions;
[0107] The task result analysis module 103 is used to analyze the task result of each step of the operation instruction and output the analysis result;
[0108] The task decision module 104 is used to make a task decision based on the output analysis results and task strategy to provide instructions for the next task execution or output task feedback information;
[0109] The task execution module 105 is used to execute the corresponding task operation according to the instruction of the next task execution.
[0110] Specifically, Figure 2A-2C As shown, Figure 2A and Figure 2B This is a schematic diagram of the structure of the automated test system. Figure 2CThe structure diagram of the automatic test system and the intelligent set-top box is shown in FIG. The intelligent set-top box EPG page and program automatic test software run on the automatic test system. The automatic test system includes an adb server and an EPG page and program automatic test software. The EPG page and program automatic test software communicate with the Daemon (adbd) of the intelligent set-top box through the adb server. The EPG page and program automatic test software include a task scheduling module 101, a task execution module 105, a remote controller instruction sending module 102, an adb log collection module 106, a task result analysis module 103, a task decision module 104, a task feedback module 107, a basic data maintenance module 108, and basic data such as an EPG URL feature library, a task strategy library, and a log feature library. The automatic test system uses an adb server to connect to the intelligent set-top box, sends a remote controller instruction set through an adb shell, and traverses and accesses EPG pages, programs, and channels.
[0111] The intelligent set-top box EPG page and program automatic testing system provided by the embodiment of the present invention can avoid interference between infrared devices on the one hand, and on the other hand, proposes a set-top box automatic testing method suitable for a non-fixed instruction set, which can automatically realize complex page traversal, thereby completing the automatic testing tasks of IPTV EPG pages, programs and channels.
[0112] In some embodiments, Figure 2A As shown, the task scheduling module 101 is specifically used for scheduling the fixed entry column operation instruction set of the task, the non-fixed entry column operation instruction set and the judgment method, the ordering task strategy instruction set and the fault error strategy instruction set.
[0113] Specifically, Figure 3 As shown, Figure 3 The figure is a flowchart of the work of the task scheduling module 101 and the task execution module. Task scheduling involves two types of automatic test tasks: fixed entry columns and non-fixed entry columns. Fixed entry columns refer to column entrances that can be reached through a fixed remote control instruction set (steps), such as the home page, the main column of the home page, etc.; non-fixed entry columns refer to column entrances where the remote control instruction steps are variable. For example, the relative position of the recommendation column may change, resulting in non-fixed remote control instruction steps. The task setting of the non-fixed entry column is to combine the upper parent column entrance and the same level traversal, and judge the correctness of the entrance according to the non-fixed entry column URL characteristics.
[0114] During the automatic execution of tasks, you may encounter ordering pages and fault error pages, and the corresponding remote control instruction sets are not fixed. Therefore, the task arrangement also provides the URL judgment method and order processing instruction set for order processing, as well as the fault error code judgment method and fault processing instruction set.
[0115] The corresponding instruction set is a combination of remote control commands. Through the task execution module, it is executed in the set-top box terminal in adb shell mode. Each step of the fixed entry column is fixed. For the non-fixed entry column of the task, the automated test system, when executing the task, the task scheduling module 101 is specifically used to combine the fixed instruction set of the upper parent column and the non-fixed entry column URL features during the same-layer traversal to determine the correctness of the non-fixed entry column.
[0116] The execution method of a single remote control command is: adb shell input keyevent digital key value
[0117] Some of the main key values are as follows:
[0118] Home 181
[0119] Interaction / menu:82(Exit IPTV APK)
[0120] Returns: 4
[0121] Confirmed: 23
[0122] Desktop: 3 (launcher)
[0123] Left 21:
[0124] Previous 19
[0125] Next page 93
[0126] Right 22
[0127] Next 20
[0128] Previous page 92
[0129] Play / Pause: 85
[0130] Channel plus 166
[0131] Channel minus 167.
[0132] In some embodiments, Figure 2B and Figure 4 As shown, Figure 4 It is a flowchart of the work of the task result analysis module. The automated testing system for the EPG page and program of the smart set-top box also includes an adb log collection module 106. The adb log collection module 106 is used to collect adb logs (adb logs) in real time. The task result analysis module 103 is used to perform task result analysis in combination with the EPG URL feature library, the task strategy library, and the log feature library.
[0133] Specifically, Figure 2B and Figure 4 As shown, the task result analysis module 103 is specifically used for KeyEvent log analysis, http url log analysis, fault code log analysis, player log analysis and channel join and leave log analysis.
[0134] Among them, KeyEvent log analysis: for each remote control command adb shellinput keyevent number issued during task execution, the set-top box will generate a corresponding keyevent log. The purpose of KeyEvent log analysis is to compare with the instructions executed by the task to determine the validity of the instructions, the execution time of the instructions, and the time matching of the subsequent execution results.
[0135] http url log analysis: Based on the collected http url access logs, combined with the EPG URL feature library, a comparison analysis is performed. Based on the return code of the http url, the correctness of the column access return can be determined.
[0136] Fault code log analysis: Extract fault codes based on the fault error information in the log and match them with the fault code library in the log feature library.
[0137] Player log analysis, channel join and leave log analysis: extract information from player and channel join and leave behavior logs, match them with the log feature library, and obtain the player status and channel join and leave status results.
[0138] In some embodiments, Figure 2B and Figure 5 As shown, Figure 5 The task decision module 104 is a flowchart of the task decision module 104. The task decision module 104 is specifically used for:
[0139] Correctness judgment of the fixed entry column entrance, task decision of the non-fixed entry column, lower-level entry traversal, lower-level loop traversal, waterfall flow EPG judgment, remote control up, down, left, and right boundary judgment, multi-page page turning judgment, ordering task branch decision, fault error branch decision.
[0140] Specifically, Figure 5 As shown, according to the output results of the task result analysis and the task strategy, the task decision is judged, and the instructions for the next task execution are provided, or the task feedback information is output.
[0141] Task decision-making requires multiple judgments and the arrangement of the next task (not a fixed set of instructions). It includes:
[0142] (1) Judgment on correctness of fixed entry column entry: Although the fixed entry column has a fixed remote control command set, when confirming the entry, it is further confirmed based on the EPG URL features and http log return status that the entry of the fixed entry column is correct and the link is accessible.
[0143] (2) Task decision for non-fixed entry columns: Non-fixed entry columns must first enter the parent column entrance, and then send remote control commands to traverse and access the focus of the same level. This is a process of continuous remote control movement, determination, and return to achieve same-level traversal. During the same-level traversal process, it is determined whether the non-fixed entry column has been reached based on the EPG URL characteristics.
[0144] (3) Traversal of lower-level entrances: After the entrance of the overall task is determined, it is necessary to perform the traversal of the lower-level entrances and provide feedback on whether the lower-level entrances are accessed correctly.
[0145] (4) Subsequent lower-level loop traversal: For the lower-level entry, it is necessary to arrange for the subsequent lower-level loop traversal and provide feedback on whether the subsequent lower-level access is correct.
[0146] (5) Waterfall EPG judgment: Generally speaking, the clickable focus on a page is fixed, but the waterfall EPG is not fixed. When the focus moves to the boundary, a new image is dynamically loaded and a new focus appears. Waterfall is a common technology used in the new generation of EPG. When traversing the same level of focus on each page, a waterfall judgment must be performed. The judgment rule is whether there is a new http load after the remote control moves up, down, left, and right. If so, it is a waterfall loading, which means that the traversal has not yet ended and a new movement command task needs to be arranged in the same direction.
[0147] (6) Determine whether the remote control has reached the boundary in the up, down, left, or right direction: For each page, when there is no waterfall or the waterfall ends, it is also necessary to determine whether the remote control has reached the boundary in this direction and will not move further. (The human eye can easily determine this, but in automatic testing, the machine needs to make automatic determinations.) The determination method is that if the focus is moved in the same direction and the http url clicked is the same as the url clicked in the previous focus, it is considered that the remote control has reached the boundary in this direction. Otherwise, continue to arrange movement instructions and click confirmation instructions in the same direction.
[0148] (7) Judgment of multi-page page turning: Since some pages have multi-page turning, in order to traverse multiple pages, after the same-level traversal of this page is completed, the remote control page turning command is arranged to see if there is a new http url access record.
[0149] (8) Order task branch decision: When the remote control determines that the command has been issued, if an http URL matches the order task, the order task branch is executed according to the order task strategy.
[0150] (9) Fault error branch decision: When the task result analysis issues a fault error code, feedback is recorded according to the fault handling task strategy, and a return or home key is issued, or a set-top box restart command is issued to continue execution.
[0151] Specifically, a stand-alone system for automatic testing of EPG pages and programs: a stand-alone automatic testing system is designed to control one or more set-top boxes to perform page and program traversal testing and output a test report.
[0152] Specifically, EPG page and program automatic testing network system: design a networked automatic testing system to control multiple set-top boxes to perform page and program traversal testing, and summarize the output results into a reporting system.
[0153] In summary, this solution uses a standard adb connection to design a system for automatic testing of EPG pages and programs. The advantages of this solution are that on the one hand, it avoids interference between infrared devices, and on the other hand, it can obtain more abundant information (such as fault codes, player information, channel joining and leaving information) from adb log, which is more conducive to judging the effect of set-top box execution. In addition, in addition, a kind of intelligent set-top box EPG page and program automatic testing proposed by the present invention uses adb to connect the intelligent set-top box, sends the remote control instruction set through adb shell, and traverses and accesses EPG pages, programs and channels. For complex IPTV EPG pages, rich programs and channel content, the present invention proposes a set of task execution, task result analysis, and task decision methods that support non-fixed instruction sets, automatically making waterfall EPG judgments, remote control up and down, left and right to boundary judgments, multi-page page turning judgments, ordering task branch decisions, and fault error branch decisions, so that very complex non-fixed instruction set page traversal can be automatically completed. It is suitable for the automatic testing of the new generation of IPTV EPG pages, programs, and channels of 4K smart set-top boxes.
[0154] Based on the same inventive concept, an embodiment of the present application further provides an electronic device, including:
[0155] one or more processors;
[0156] A storage device is used to store one or more programs. When the one or more programs are executed by one or more processors, the one or more processors implement the automated testing method for the EPG page and program of the smart set-top box provided in the embodiment of the present application.
[0157] The electronic device may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), a server, etc. In some embodiments, the storage device is, for example, a memory, such as Figure 6 As shown, the electronic device may include a processor 201 and a memory 202 .
[0158] The processor 201 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and may implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0159] The memory 202 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 202 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0160] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; the above computer storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to: mobile storage devices, random access memory (RAM, Random Access Memory), magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)) and other media that can store program codes.
[0161] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: a mobile storage device, a random access memory (RAM, Random Access Memory), a magnetic storage (such as a floppy disk, a hard disk, a magnetic tape, a magneto-optical disk (MO), etc.), an optical storage (such as CD, DVD, BD, HVD, etc.), and a semiconductor memory (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), a solid-state drive (SSD)) and other various media that can store program codes.
[0162] In some possible implementations, various aspects of the method provided by the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps in the method according to various exemplary embodiments of the present disclosure described above in this specification. For example, the electronic device may execute the automated testing method for EPG pages and programs of a smart set-top box recorded in an embodiment of the present disclosure. The program product may adopt any combination of one or more readable media.
[0163] In summary, the automatic testing method and system of the EPG page and program of the smart set-top box provided by the embodiment of the present invention, the electronic device, the computer-readable storage medium, and the computer program product, the analysis method, on the one hand, can avoid interference between infrared devices, and on the other hand, a set-top box automatic testing method suitable for a non-fixed instruction set is proposed, which can automatically realize complex page traversal, thereby completing the automatic testing tasks of IPTV EPG pages, programs and channels. In addition, the automatic testing method of the EPG page and program of a smart set-top box proposed by the present invention uses adb to connect the smart set-top box, sends the remote control instruction set through adb shell, and traverses and accesses EPG pages, programs and channels. For complex IPTV EPG pages, rich programs and channel content, the present invention proposes a set of task execution, task result analysis, and task decision methods that support non-fixed instruction sets, automatically making waterfall EPG judgments, remote control up and down, left and right to boundary judgments, multi-page page turning judgments, ordering task branch decisions, and fault error branch decisions, thereby automatically completing very complex non-fixed instruction set page traversal. Suitable for the automatic testing of the new generation of IPTV EPG pages, programs, and channels of 4K smart set-top boxes.
[0164] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0168] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0169] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An automated testing method for EPG pages and programs of a smart set-top box, It is characterized in that include: Arrange basic operation instructions and task strategies for tasks; Sending corresponding operation instructions to the set-top box, and the set-top box automatically accesses IPTV EPG pages, programs, and channels according to the operation instructions; Perform task result analysis on each step of the operation instruction and output the analysis result; Correctness judgment of fixed entry column entry, task decision of non-fixed entry column, lower-level entry traversal, lower-level loop traversal, waterfall EPG judgment, remote control up, down, left, right, boundary judgment, multi-page page turning judgment, ordering task branch decision, fault error branch decision, provide instructions for the next task execution or output task feedback information; Execute the corresponding task operation according to the instruction of the next step task execution.
2. The automated testing method for EPG pages and programs of a smart set-top box as claimed in claim 1, It is characterized in that The basic operation instructions and task strategies of the orchestration task specifically include: The operation instruction set of the fixed entry column of the scheduling task, the operation instruction set and judgment method of the non-fixed entry column, the ordering task strategy instruction set and the fault error strategy instruction set.
3. The automatic testing method for EPG pages and programs of the smart set-top box according to claim 2, It is characterized in that For the non-fixed entry column of the task, the correctness of the non-fixed entry column is judged by combining the fixed instruction set of the upper parent column and the URL features of the non-fixed entry column during the same-layer traversal.
4. The automated testing method for EPG pages and programs of a smart set-top box as claimed in claim 1, It is characterized in that The task result analysis for each step of the operation instruction specifically includes: Collect adb logs in real time and analyze task results in combination with EPG URL feature library, task strategy library, and log feature library.
5. The automated testing method for EPG pages and programs of the smart set-top box according to claim 4, It is characterized in that The task result analysis specifically includes: KeyEvent log analysis, http url log analysis, fault code log analysis, player log analysis and channel join and leave log analysis.
6. An automated testing system for EPG pages and programs of smart set-top boxes, It is characterized in that include: A task scheduling module, which is used to schedule basic operation instructions and task strategies of tasks; A remote control instruction sending module, the remote control instruction sending module is used to send corresponding operation instructions to the set-top box, and the set-top box automatically accesses IPTV EPG pages, programs, and channels according to the operation instructions; A task result analysis module, which is used to analyze the task results of each step of the operation instruction and output the analysis results; Task decision module, the task decision module is used for judging the correctness of fixed entry column entry, task decision of non-fixed entry column, lower-level entry traversal, lower-level loop traversal, waterfall flow EPG judgment, remote control up and down, left and right to boundary judgment, multi-page page turning judgment, ordering task branch decision, fault error branch decision, so as to provide instructions for the next task execution or output task feedback information; A task execution module, wherein the task execution module is used to execute corresponding task operations according to the instructions for the next step of task execution.
7. The automatic testing system for EPG pages and programs of the smart set-top box according to claim 6, It is characterized in that The task scheduling module is specifically used for scheduling the fixed entry column operation instruction set of tasks, the non-fixed entry column operation instruction set and judgment method, the ordering task strategy instruction set and the fault error strategy instruction set.
8. The automatic testing system for EPG pages and programs of the smart set-top box as claimed in claim 7, It is characterized in that For the non-fixed entry column of the task, when the task is executed, the task scheduling module is specifically used to determine the correctness of the non-fixed entry column by combining the fixed instruction set of the upper parent column and the non-fixed entry column URL features during the same-layer traversal.
9. The automatic testing system for EPG pages and programs of the smart set-top box according to claim 6, It is characterized in that It also includes an adb log collection module, which is used to collect adb logs in real time. The task result analysis module is used to perform task result analysis in combination with the EPG URL feature library, the task strategy library, and the log feature library.
10. The automatic testing system for EPG pages and programs of the smart set-top box according to claim 9, It is characterized in that The task result analysis module is specifically used for KeyEvent log analysis, http url log analysis, fault code log analysis, player log analysis and channel join and leave log analysis.
11. An electronic device, It is characterized in that include: one or more processors; A storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the automated testing method for EPG pages and programs of the smart set-top box as described in any one of claims 1 to 5.
12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the automatic testing method for EPG pages and programs of the smart set-top box as claimed in any one of claims 1 to 5 is implemented.
13. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the automatic testing method for EPG pages and programs of a smart set-top box as claimed in any one of claims 1 to 5 is implemented.
