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

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

Info

Publication number
CN112532966A
CN112532966A CN201910797509.6A CN201910797509A CN112532966A CN 112532966 A CN112532966 A CN 112532966A CN 201910797509 A CN201910797509 A CN 201910797509A CN 112532966 A CN112532966 A CN 112532966A
Authority
CN
China
Prior art keywords
top box
page
access
set top
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910797509.6A
Other languages
Chinese (zh)
Inventor
刘军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201910797509.6A priority Critical patent/CN112532966A/en
Priority to PCT/CN2020/103688 priority patent/WO2021036599A1/en
Publication of CN112532966A publication Critical patent/CN112532966A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4425Monitoring of client processing errors or hardware failure

Abstract

The embodiment of the invention provides a set top box testing method, a set top box testing device, a set top box and a computer readable storage medium, aiming at a set top box accessed to a network, automatically capturing each access interface on each page of the set top box, automatically performing access processing on each access interface until all the access interfaces of all the pages of the set top box are accessed to complete automatic operation testing of the set top box, and automatically performing log recording on an automatic operation testing function by combining a log recording function, so that an accurate testing result can be obtained according to the obtained log recording; the set top box testing method provided by the embodiment of the invention can realize automatic testing of the set top box without manual intervention, thereby greatly reducing the labor cost, improving the testing efficiency, avoiding the occurrence of conditions such as missing testing in the manual testing process and the like, and improving the accuracy of the testing result.

Description

Set top box testing method and device, set top box and computer readable storage medium
Technical Field
The invention relates to the field of interactive networks, in particular to a set top box testing method and device, a set top box and a computer readable storage medium.
Background
In an IPTV (Internet Protocol Television) environment, after a software version of an intelligent set-top box is manufactured, an Electronic Program Guide (EPG) server needs to be accessed for testing, and whether an EPG page displayed by the intelligent set-top box is displayed and a logical operation is normal is tested. In the related art, the test process is performed by a tester manually. The method comprises the steps that a tester tests a set of complete EPG environment of the IPTV, all pages of the set-top box need to be traversed as far as possible, corresponding different business scenes are operated on the pages to judge whether abnormity exists, and meanwhile, the abnormal scenes in the testing process need to be manually recorded by the tester. Through experiments, a tester completes the test of a complete set of EPG environment (namely a set of templates) of the IPTV of the set top box, and the input labor cost is 4 persons per day (namely 32 persons per hour). The IPTV EPG environment deployed in the commercial environment is usually N (N > ═ 2) sets, such as standard definition, high definition, and the like, and the required testing manpower is N × 4 people × day, that is, as the number of commercial templates carried in the set-top box increases, the content to be tested and the required testing manpower increase by times, which not only has the problems of long testing period and high testing manpower cost, but also has the problem of inaccurate testing result due to factors such as easy missing of testing.
Disclosure of Invention
The set top box testing method and device, the set top box and the computer readable storage medium provided by the embodiment of the invention solve the problems of high testing cycle and testing labor cost and inaccurate testing result in the related technology of manually testing the set top box by a tester.
In order to solve the technical problem, an embodiment of the present invention provides a method for testing a set top box, including an automatic operation test, and performing log recording on a process of the automatic operation test;
the automatic operation test comprises the following steps:
and automatically capturing each access interface on each page of the set top box accessed to the network, and automatically performing access processing on each access interface until all the access interfaces of all the pages are accessed.
In order to solve the above technical problem, an embodiment of the present invention further provides a set top box testing apparatus, including:
the automatic test control module is used for automatically capturing each access interface on each page of the set top box accessed to the network and automatically performing access processing on each access interface until all the access interfaces of all the pages are accessed;
and the recording module is used for recording the log of the process of the automatic operation test.
In order to solve the above technical problem, an embodiment of the present invention further provides a set top box, including a processor, a memory, and a communication bus;
the communication bus is used for connecting the processor and the memory;
the processor is configured to execute the computer program stored in the memory to implement the steps of the set-top box testing method as described above.
In order to solve the above technical problem, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and the computer program is executable by a processor to implement the steps of the set top box testing method described above.
Advantageous effects
According to the set top box testing method, the set top box testing device, the set top box and the computer readable storage medium, aiming at the set top box accessed to a network, the automatic operation test of the set top box is completed by automatically capturing each access interface on each page of the set top box and automatically performing access processing on each access interface until all the access interfaces of all the pages of the set top box are accessed, and the automatic operation test function is automatically recorded in a log recording manner by combining the log recording function, so that an accurate test result can be obtained according to the obtained log record; the set top box testing method provided by the embodiment of the invention can realize automatic testing of the set top box without manual intervention, thereby greatly reducing the labor cost, improving the testing efficiency, avoiding the occurrence of conditions such as missing testing in the manual testing process and the like, and improving the accuracy of the testing result.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic flow chart of a set top box testing method according to a first embodiment of the present invention;
FIG. 2 is a first diagram illustrating a layout of an access interface on a page according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating a layout of an access interface on a page according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a selection sequence of access interfaces on a page according to a first embodiment of the present invention;
FIG. 5 is a diagram illustrating a layout of an access interface on a page according to a first embodiment of the present invention;
fig. 6 is a schematic structural diagram of a set-top box testing device according to a second embodiment of the present invention;
fig. 7 is a schematic view of a testing process of a set-top box according to a second embodiment of the present invention;
fig. 8 is a schematic structural diagram of a set-top box according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
aiming at the problems of high test period, high test labor cost and inaccurate test result existing in the manual test of the set top box by a tester in the related technology, the embodiment provides a method for automatically realizing the test of the set top box, which comprises automatic operation test and log recording in the process of the automatic operation test; the automatic operation test mainly can automatically realize automatic switching of each page of the set top box and logic operation on each page, log recording is carried out on the automatic operation test process through logs, accurate test results can be obtained according to the log recording when needed, manual intervention is not needed in the whole test process, labor cost is greatly reduced, test efficiency is improved, conditions such as missing test in the manual test process can be avoided, and accuracy of the test results is guaranteed.
For convenience of understanding, the following description of the present embodiment is made with reference to the set-top box testing method shown in fig. 1 as an example, and please refer to fig. 1, which includes:
s101: the automatic operation test of the set-top box accessed to the network comprises the following steps: and automatically capturing each access interface on each page of the set top box accessed to the network, and automatically performing access processing on each access interface until all the access interfaces of all the pages are accessed.
It should be understood that the set-top box access network in the present embodiment includes, but is not limited to, accessing an EPG environment. The set top box testing method provided by the embodiment is not limited to be applied to a set top box accessing a network, and is also applicable to testing of a set top box which is not accessed to the network and is in an offline environment.
It should be understood that the access interface on the page in the present embodiment includes, but is not limited to, various access interfaces for implementing link access, implementing corresponding functions (e.g., downloading, setting, updating, etc.) or implementing a page link or various information links.
Certainly, in some application scenarios, when a specific function or a specific page of the set top box needs to be tested, only the specific page or the specific access interface may be obtained in S101 for performing an automatic test, and no test is performed on a page or an access interface other than the specific page or the specific access interface. In particular, the flexible configuration can be flexibly configured according to requirements, and it should be understood that the flexible test configuration is also within the coverage of the scheme.
In this embodiment, the home page that is normally displayed and stopped after the set-top box is started when accessing the network is referred to as the original home page of the set-top box.
In this embodiment, when automatically fetching each access interface on each page of the set-top box accessing the network, each access interface on the newly entered page may be fetched whenever the set-top box newly enters a page (i.e., a page that has not been entered before). That is, in this embodiment, when the set-top box enters the current page, it may be determined whether the current page is an unaccessed page, if so, the identification information of the access interfaces on the current page is captured one by one, and the captured identification information is stored in association with the page path of the current page, and the access state of the identification information is set to be unaccessed.
For example, in one example, crawling the identification information of access interfaces on the current page one by one may include, but is not limited to:
when the set top box enters the current page and determines that the current page is a page which is not entered, the access interfaces are sequentially selected one by one from the left upper corner of the current page through the analog navigation key control focus according to the sequence from left to right, and the identification information of the access interface currently selected by the focus is acquired until the identification information of all the access interfaces on the current page is acquired.
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 focus may be controlled to move on the page to select a corresponding access interface by the left and right keys and the up and down keys. The focus in this embodiment resembles the cursor of a conventional mouse. In this embodiment, the display of the access interface currently selected for the focus on the page can also be flexibly set. For example, in some examples, the access interface currently selected by the focus may be displayed in any display manner that can be distinguished from other unselected access interfaces, such as but not limited to a lighting display, a zooming display, a floating display, or a frame-and-bold display.
For example, in an application scenario, please refer to fig. 2, it is assumed that an access interface a, an access interface B, an access interface C, and an access interface D exist on a certain page of the set top box, and the current focus is to select the access interface a on the left side, and the access interface a is displayed in a magnified manner to be distinguished from the access interface B, the access interface C, and the access interface D.
For another example, in another application scenario, please refer to fig. 3, it is assumed that an access interface a, an access interface B, an access interface C, and an access interface D exist on a certain page of the set top box, the current focus is to select the access interface B, and a frame area of the access interface B is displayed in a bold manner to be distinguished from the access interface a, the access interface C, and the access interface D.
In some application scenarios of this implementation example, an OK key may also be simulated, and when one access interface is selected in focus, access to the access interface is realized by triggering the OK key.
In addition, it should be understood that the identification information of the access interface captured in this embodiment may be any identification information that can uniquely distinguish the access interface on the page from other access interfaces. For example, in an example where the identification information may include, but is not limited to, extracting an image in a 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:
and intercepting an image in a current display area of the access interface currently selected by the focus on the page as the identification information of the access interface. For example, please refer to fig. 2, at this time, an image (which may be referred to as a focus image in this embodiment) in a current display area (i.e., an enlarged display area) of the access interface a is captured as the identification information of the access interface a; for another example, please refer to fig. 3, at this time, an image in the current display area (i.e., the area displayed in bold type) of the access interface B is captured as the identification information of the access interface B.
In the application scenario shown in fig. 2, when the set-top box first enters the page shown in fig. 2, for the page, the focus is controlled by the analog navigation key from the top left corner of the current page, and the identification information of the access interface currently selected by the focus is sequentially obtained in the order from left to right, the selection process is shown in fig. 4 until the identification information of all the access interfaces on the current page is obtained, and the formed picture database includes the correspondence table shown in table 1 below.
TABLE 1
Figure BDA0002181371560000061
Of course, it should be understood that the selection order of the access interfaces on the page in the present embodiment is not limited to the order of the above examples, and can be flexibly set according to the requirement. For example, referring to fig. 5, assuming that there is an access interface A, B, C, D, E, F, G, H on the current page, when the identification information of the access interface currently selected by the focus is sequentially obtained in the order from left to right, the obtained order is access interface a → B → C → D → E → F → G → H. In other application scenarios of the embodiment, the obtaining order may also be access interface a → B → C → D → H → G → F → E. In other application scenarios, the access interfaces may be selected in a random order or other order until all access interfaces have been accessed.
In this embodiment, the manner of determining whether a certain access interface on the page is the access interface that has acquired the identification information may include, but is not limited to: acquiring identification information of the access interface, searching whether the same identification information exists in a picture database corresponding to the page, and if so, indicating that the access interface is the access interface which has acquired the identification information; otherwise, the access interface is the access interface which does not acquire the identification information on the page. In this embodiment, the image capturing and the image matching may be performed by, but not limited to, a screen capture saving module and a picture matching module. In this embodiment, the simulation of the navigation key and the OK key can be realized by, but not limited to, a key simulation function module.
In this embodiment, an exemplary manner of automatically performing access processing on each access interface until all the access interfaces of all the pages are accessed may include:
when determining that target identification information with an unaccessed access state exists in identification information stored in association with a page where the set top box is located, accessing an access interface corresponding to the target identification information, and updating the access state of the target identification information to be accessed;
when the access states of all identification information stored in association with the current page of the set top box are determined to be accessed and the current page of the set top box is not the original home page, controlling the set top box to enter the previous page of the current page, and repeating the steps;
and when the access states of all identification information stored in association with the current page of the set top box are determined to be accessed and the current page of the set top box is the original home page, indicating that all access interfaces of all pages are accessed.
S102: and logging the process of the automatic operation test.
In an example of this embodiment, the log may be performed on a selection process of an access interface performed by controlling a focus through a navigation key in the automatic operation test process, and the log may be performed on page script execution, page parsing, and the like in the access interface access process.
In an example of this embodiment, in order to improve the test pertinence and accuracy, logging the process of the automatic operation test may include:
storing error information generated in the automatic operation test process to generate an error log; the generated logs can be actively uploaded or displayed according to the requirements, or uploaded or displayed after the received call is executed, and the error logs can be uploaded or displayed in a centralized manner or preferentially during uploading or displaying; in some application scenarios, only the error log may be uploaded or displayed, and the other logs are not uploaded or displayed.
Additionally, to further aid in error localization and analysis, in some examples, the set-top box testing method may further comprise:
intercepting a corresponding display interface screenshot when an error occurs in the automatic operation test process, and storing the acquired display interface screenshot and an error log corresponding to the error in an associated manner; when the error log is uploaded or displayed, the screenshot of the display interface corresponding to the error log can be uploaded or displayed together; therefore, when error analysis is carried out, comprehensive analysis can be carried out by combining the log information and the corresponding screenshot of the display interface, and the efficiency and the accuracy of the error analysis can be improved.
Example two:
the present embodiment provides a set-top box testing apparatus, which may be disposed in a set-top box or disposed in a testing device for testing the set-top box, please refer to fig. 6, and includes:
the automatic test control module 601 is used for automatically capturing each access interface on each page of the set top box accessed to the network and automatically performing access processing on each access interface until all the access interfaces of all the pages are accessed; for a specific automatic test operation process, please refer to the above embodiments, which are not described herein.
In some examples of this embodiment, the automatic test control module 601 may include, but is not limited to:
the key simulation function module: the set-top box is accessed to an IPTV EPG environment, can trigger a browser to analyze and execute page script logic through keys to display services, and can simulate real key operation of a user through the key simulation function module;
in an embodiment, the key simulation function module may be provided with basic function outputs: a menu key, a return key, a navigation key in the up, down, left and right directions, an OK key and the like, and log saving is performed aiming at errors in the key pressing process.
A screen grabbing and saving module: the device is used for capturing and outputting the image with the size of the appointed position, and storing the image as the picture, or directly capturing the image and storing the image as the picture on the current display interface.
Matching the images with the template: and comparing whether the two pictures are the same or not, wherein the comparison comprises the comparison of factors such as the size of the picture, the data content of the picture and the like, so that whether the identification information of a certain identification interface is the accessed identification interface or the identification interface from which the identification information is extracted can be determined.
The recording module 602 is configured to perform log recording on a process of the automatic operation test, and for a specific recording process, reference is made to the foregoing embodiment, which is not described herein again.
In some examples of this embodiment, the logging module 602 may include a log output module: the method is used for storing the set top box log, recording the logs of a key pressing process, page script execution, page analysis and the like, and simultaneously recording and generating an error log aiming at errors occurring in the operation process.
Based on the set-top box testing device provided by the embodiment, a user can press a direction key of a remote controller through simulation, as long as the user presses a key, the focus can be triggered to move certainly, the coordinate position of the moved focus can be obtained in a browser, and an access interface corresponding to the coordinate position of the focus can be captured, so that each page can generate a picture database of the page, and each access interface only has one picture (called as a focus picture in the embodiment) corresponding to the access interface in the picture database of the page; the focus picture captured by pressing a key once on a page is compared in a picture database of the page to determine whether the focus picture is an access interface which has acquired identification information or an access interface which has been accessed, all access interfaces in each page can be acquired through logic judgment, and access is performed on all the access interfaces one by one, so that the whole set of templates can be traversed, and in the whole process, log capture operation is matched to complete the test of the set top box.
For convenience of understanding, in the present embodiment, a set top box test scenario of a specific application scenario is described as an example, please refer to fig. 7, which includes the following steps:
s701: and after the IPTV EPG environment is accessed from the set-top box, acquiring a normally displayed and stopped page as an original home page, marking the page as URL _ HomeEPG, and starting to perform automatic test from the page.
S702: and acquiring the current page where the set top box is located, and setting the current page as URL 1.
S703: determining whether the current page URL1 is an incoming page, if yes, proceeding to S704; otherwise, go to S705.
S704: and acquiring focus pictures of all access interfaces on the current page URL1 for associated storage.
In this example, the up, down, left and right direction keys are triggered by the key simulation function module, the focus is controlled to traverse all the access interfaces of the URL1 of the current page, the focus picture of each access interface is obtained and marked as not accessed, and a data relationship is generated: page URL 1-focus picture-visited state (not visited).
Meanwhile, when all the access interfaces of the page are traversed by the direction key, log storage is needed for the wrong log.
By pressing a key to obtain the focus picture of all access interfaces of the current page URL1, an exemplary algorithm is described as follows:
each time the direction key is pressed, focus movement and page refreshing are generated, for example, in an example, a refreshing range may be composed of two minimum rectangles, one rectangle is a rectangle corresponding to the access interface at the position where the focus is located last time, the second rectangle is a rectangle corresponding to the access interface where the focus is located after the focus is moved, a second rectangle coordinate is obtained, a screen corresponding to the rectangle coordinate is captured, and a picture of the access interface is obtained and recorded as a focus picture.
Traversing all the access interfaces of the page by pressing a key, similar to a "progressive scan", is described as follows:
A) entering a current page for the first time, moving a focus to the leftmost upper corner through a key (realized by pressing a left direction key and an up direction key, for example, firstly pressing the left direction key until new focus refreshing cannot be generated, then pressing the up direction key until new focus refreshing cannot be generated), acquiring a focus picture of an access interface selected by the focus at present, recording the corresponding relation between a page path and the focus picture, marking as not-accessed, and indicating that the focus picture only belongs to the page path; b) turning to;
B) pressing a 'right' direction key can grab a focus picture of a new access interface selected after the focus is moved to the right, and compares whether the current focus picture is stored in an image database of the page: if the focus picture is saved, the focus on the right direction key is traversed, the focus needs to be returned to the leftmost focus, the next row needs to be entered, the focus is traversed, and the next row enters C);
if the focus picture is a new picture, saving the focus picture, and turning to B);
C) pressing down a direction key to judge whether a new focus picture is grabbed, mainly judging whether the focus of the down direction key changes, and if so, judging whether the grabbed focus picture is the new focus picture: if the focus is not changed or the new focus picture is stored, the lower direction key is not focused, the progressive scanning mode is finished, and the process is finished; if the focus has variation, at the same time, the focus picture is intercepted as a new picture, the focus picture is saved, and the process is shifted to B).
S705: inquiring whether a focus picture with an unvisited access state (namely, an accessed access interface) still exists on the current page URL1, if so, going to S706; otherwise, go to S707.
S706: triggering an OK key through a key module, triggering the service logic of the inaccessible access interface, and marking the focus picture corresponding to the access interface under the page URL1 as accessed.
S707: whether page jump occurs or not, if so, turning to S702; otherwise, go to S705.
The business logic for triggering the OK button to trigger the focus can include, but is not limited to, the following two results:
the first method is that only JavaScript or null logic is executed, and page jumping does not occur;
the second triggers the page to jump to a new URL, setting the jump to the new URL 2.
For the first, still mark the focus of the page as visited, go to step S705;
for the second, the step of S702 will be performed for the new page URL 2.
S708: in the current page URL1, all of the pages corresponding to the focus of the page have been traversed. Judging whether the current page URL1 is the original home page URL _ HomeEPG or not, if so, turning to S710; otherwise, go to S709.
S709: go back to the previous page (labeled URL0) of the current page URL1 and then go to S702.
S710: all pages of the set-top box (in this example, all EPG pages) are traversed and the test is finished. Subsequent users or developers can perform processing such as problem phenomenon backtracking and positioning according to the log and the stored pictures.
It should be understood that, in this embodiment, in addition to the test flow shown in fig. 7, a step-by-step page test mode may also be adopted for testing the set top box, that is, after the access tests on all the access interfaces on each page on one step of page are performed one by one, the pages below the step of page are entered one by one for testing, and so on, until the access interfaces on each page at the lowest step are tested.
Compared with the manual testing in the related technology, the set top box testing method and device provided by the embodiment can accurately traverse all pages, achieve no omission, traverse the linked pages spliced by the JavaScript, achieve the effect of traversing all pages, do not need manual maintenance, run automatically, save testing labor, improve the automatic testing efficiency of the set top box, and the like.
Example three:
the present embodiment further provides a set-top box, which is shown in fig. 8 and includes a processor 801, a memory 802 and a communication bus 803;
the communication bus 803 is used for realizing communication connection between the processor 801 and the memory 802;
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 as in the embodiments above.
In this embodiment, since the set-top box itself may be provided with a computer program for implementing the set-top box testing method, each set-top box may directly enter the testing mode when necessary to conveniently, quickly and accurately complete the automatic testing, so that an ordinary user may also complete the detection of the set-top box when necessary, and the user experience satisfaction is further improved.
The present embodiments also provide a computer-readable storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of 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 disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
In one example, the computer readable storage medium in the present embodiment may be used for storing a computer program, which may be executed by a processor to implement the steps of the set-top box testing method in the above embodiments.
The present 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 as shown in the above embodiments; and in some cases at least one of the steps shown or described may be performed in an order different than that described in the embodiments above.
The present embodiments also provide a computer program product comprising a computer readable means on which any of the computer programs as set out above is stored. The computer readable means in this embodiment may include a computer readable storage medium as shown above.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A test method of a set top box comprises an automatic operation test and a log record of the process of the automatic operation test;
the automatic operation test comprises the following steps:
and automatically capturing each access interface on each page of the set top box accessed to the network, and automatically performing access processing on each access interface until all the access interfaces of all the pages are accessed.
2. The set-top box testing method of claim 1, wherein automatically capturing access interfaces on pages of a set-top box accessing a network comprises:
when the set top box enters a current page and the current page is determined to be a page which is not entered, the identification information of the access interfaces on the current page is captured one by one, the captured identification information and the page path of the current page are stored in an associated mode, and the access state of the identification information is set to be not accessed.
3. The set-top box testing method of claim 2, wherein said grabbing identification information of access interfaces on the current page one by one comprises:
when the set top box enters the current page and the current page is determined to be a page which is not entered, controlling a focus by an analog navigation key to select access interfaces one by one in sequence from the left upper corner of the current page according to a left-to-right sequence, and acquiring identification information of the access interface currently selected by the focus until the identification information of all the access interfaces on the current page is acquired.
4. The set-top box testing method of claim 3, wherein obtaining identification information of the access interface currently selected by the focus comprises:
and intercepting the image in the current display area of the currently selected access interface as the identification information of the access interface.
5. The set-top box testing method of any one of claims 2-4, wherein the automatically performing access processing on the access interfaces until all access interfaces of all pages are accessed comprises:
determining that target identification information with an unaccessed access state exists in identification information stored in association with a page where the set top box is located, accessing an access interface corresponding to the target identification information, and updating the access state of the target identification information to be accessed;
when the access states of all identification information stored in association with the current page of the set top box are determined to be accessed and the current page of the set top box is not the original home page, controlling the set top box to enter the upper-level page of the current page;
when the access states of all identification information stored in association with the current page of the set top box are determined to be accessed and the current page of the set top box is the original home page, determining all access interfaces of all the pages which have been accessed;
and the original home page is a home page which is normally displayed and stays after the set top box is started when the set top box is accessed to the network.
6. A set-top box testing method according to any of claims 1-5, wherein said logging the process of autorun testing comprises:
and storing the error information generated in the automatic operation test process to generate an error log.
7. The set-top box testing method of claim 6, wherein the set-top box testing method further comprises:
and intercepting a display interface screenshot when an error occurs in the automatic operation test process, and storing the acquired display interface screenshot and an error log corresponding to the error in an associated manner.
8. A set top box testing device, comprising:
the automatic test control module is used for automatically capturing each access interface on each page of the set top box accessed to the network and automatically performing access processing on each access interface until all the access interfaces of all the pages are accessed;
and the recording module is used for recording the log of the process of the automatic operation test.
9. A set top box comprising a processor, a memory and a communication bus;
the communication bus is used for connecting the processor and the memory;
the processor is adapted to execute the computer program stored in the memory to implement the steps of the set-top box testing method according to any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executable by a processor to implement the steps of the set-top box testing method according to any one of claims 1-7.
CN201910797509.6A 2019-08-27 2019-08-27 Set top box testing method and device, set top box and computer readable storage medium Pending CN112532966A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910797509.6A CN112532966A (en) 2019-08-27 2019-08-27 Set top box testing method and device, set top box and computer readable storage medium
PCT/CN2020/103688 WO2021036599A1 (en) 2019-08-27 2020-07-23 Method and apparatus for testing set top box, set top box, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910797509.6A CN112532966A (en) 2019-08-27 2019-08-27 Set top box testing method and device, set top box and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112532966A true CN112532966A (en) 2021-03-19

Family

ID=74684884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910797509.6A Pending CN112532966A (en) 2019-08-27 2019-08-27 Set top box testing method and device, set top box and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112532966A (en)
WO (1) WO2021036599A1 (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448172A (en) * 2007-11-27 2009-06-03 上海未来宽带技术及应用工程研究中心有限公司 Method for automatically testing stability of set-top box in batches
US20130185761A1 (en) * 2010-09-10 2013-07-18 S3 Research & Development Limited Set Top Box For Performing Diagnostic Functions
CN104780407A (en) * 2015-01-09 2015-07-15 康佳集团股份有限公司 Automatic testing method and automatic testing system for set top box
CN104915290A (en) * 2015-05-28 2015-09-16 小米科技有限责任公司 Application testing method and device
CN104918043A (en) * 2014-03-12 2015-09-16 北京市博汇科技股份有限公司 Program broadcast testing method and device
CN106033393A (en) * 2015-03-13 2016-10-19 展讯通信(天津)有限公司 Method and system for testing application program, and mobile terminal
CN107222739A (en) * 2017-07-10 2017-09-29 中邮科通信技术股份有限公司 A kind of IPTV service quality dial testing method based on crawler technology
CN107402877A (en) * 2016-05-19 2017-11-28 福建天晴数码有限公司 APP method of testings and system based on Android ends
CN107515821A (en) * 2016-06-17 2017-12-26 百度在线网络技术(北京)有限公司 Components testing method and apparatus
CN107622008A (en) * 2016-07-14 2018-01-23 阿里巴巴集团控股有限公司 The traversal method and device of a kind of five application page
CN108009078A (en) * 2016-11-01 2018-05-08 腾讯科技(深圳)有限公司 A kind of application interface traversal method, system and test equipment
CN109710506A (en) * 2017-10-25 2019-05-03 卓望数码技术(深圳)有限公司 A kind of terminal APP spreadability test method and device based on tree traversal
CN109739764A (en) * 2018-12-29 2019-05-10 中国联合网络通信集团有限公司 A kind of applied program testing method and device
CN109862427A (en) * 2019-01-23 2019-06-07 上海艾策通讯科技股份有限公司 Testing script automatic generation method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291595A (en) * 2011-07-08 2011-12-21 深圳创维数字技术股份有限公司 Testing method and device
CN102665093B (en) * 2012-03-13 2014-05-28 深圳市九洲电器有限公司 Test method for set top box and test system thereof
CN103997641A (en) * 2014-05-23 2014-08-20 深圳创维数字技术股份有限公司 Interface detection device and method
US9916231B2 (en) * 2015-07-17 2018-03-13 Magine Holding AB Modular plug-and-play system for continuous model driven testing
CN105718370A (en) * 2016-01-21 2016-06-29 上海斐讯数据通信技术有限公司 Android equipment test method and test device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448172A (en) * 2007-11-27 2009-06-03 上海未来宽带技术及应用工程研究中心有限公司 Method for automatically testing stability of set-top box in batches
US20130185761A1 (en) * 2010-09-10 2013-07-18 S3 Research & Development Limited Set Top Box For Performing Diagnostic Functions
CN104918043A (en) * 2014-03-12 2015-09-16 北京市博汇科技股份有限公司 Program broadcast testing method and device
CN104780407A (en) * 2015-01-09 2015-07-15 康佳集团股份有限公司 Automatic testing method and automatic testing system for set top box
CN106033393A (en) * 2015-03-13 2016-10-19 展讯通信(天津)有限公司 Method and system for testing application program, and mobile terminal
CN104915290A (en) * 2015-05-28 2015-09-16 小米科技有限责任公司 Application testing method and device
CN107402877A (en) * 2016-05-19 2017-11-28 福建天晴数码有限公司 APP method of testings and system based on Android ends
CN107515821A (en) * 2016-06-17 2017-12-26 百度在线网络技术(北京)有限公司 Components testing method and apparatus
CN107622008A (en) * 2016-07-14 2018-01-23 阿里巴巴集团控股有限公司 The traversal method and device of a kind of five application page
CN108009078A (en) * 2016-11-01 2018-05-08 腾讯科技(深圳)有限公司 A kind of application interface traversal method, system and test equipment
CN107222739A (en) * 2017-07-10 2017-09-29 中邮科通信技术股份有限公司 A kind of IPTV service quality dial testing method based on crawler technology
CN109710506A (en) * 2017-10-25 2019-05-03 卓望数码技术(深圳)有限公司 A kind of terminal APP spreadability test method and device based on tree traversal
CN109739764A (en) * 2018-12-29 2019-05-10 中国联合网络通信集团有限公司 A kind of applied program testing method and device
CN109862427A (en) * 2019-01-23 2019-06-07 上海艾策通讯科技股份有限公司 Testing script automatic generation method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张明 等: "面向安卓手机App功能测试技术的方法", 计算机工程与设计, no. 03, 16 March 2018 (2018-03-16) *
李正茂;: "基于爬虫技术的EPG自动拨测系统", 福建电脑, no. 04, 25 April 2019 (2019-04-25) *
金山;: "广电机顶盒测试管理系统之尝试与探索", 中国数字电视, no. 09, 25 September 2013 (2013-09-25) *

Also Published As

Publication number Publication date
WO2021036599A1 (en) 2021-03-04

Similar Documents

Publication Publication Date Title
WO2020233053A1 (en) Method, apparatus, device, and storage medium for making test page script
US20160034383A1 (en) Application test across platforms
CN106776319B (en) Automatic test method and device
CN110955590A (en) Interface detection method, image processing method, device, electronic equipment and storage medium
CN110837474A (en) Script recording method, device, terminal and storage medium
CN110554962A (en) Regression testing process covering method, server and computer readable storage medium
CN112069068A (en) Automatic test data processing method, device, equipment and readable storage medium
CN106959919B (en) Software testing method and device based on testing path diagram
CN110765015A (en) Method for testing application to be tested and electronic equipment
CN112559341A (en) Picture testing method, device, equipment and storage medium
CN111814086A (en) Method and system for screenshot of webpage
CN110248235B (en) Software teaching method, device, terminal equipment and medium
CN111522749B (en) Page testing method and device, readable storage medium and electronic equipment
CN112911283A (en) Smart television testing method and device
CN112256146A (en) Method, device, equipment and storage medium for testing whiteboard handwriting
CN116527879A (en) Set top box testing method, device, medium and computer device
CN112532966A (en) Set top box testing method and device, set top box and computer readable storage medium
CN114116474A (en) Software checking method and device, electronic equipment and storage medium
CN113886273A (en) Performance test method, device, test equipment and medium of application program
CN113923443A (en) Network video recorder testing method and device and computer readable storage medium
CN112188192A (en) Code stream adaptability test method, system, computer equipment and storage medium
CN113722203A (en) Program testing method and device, electronic device and computer readable storage medium
CN112036441A (en) Feedback marking method and device for machine learning object detection result and storage medium
CN113407455B (en) Automatic evaluation method and device for intelligent white electric products
CN117472738A (en) Test script generation method and device, readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination