CN116527879A - Set top box testing method, device, medium and computer device - Google Patents

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

Info

Publication number
CN116527879A
CN116527879A CN202310496493.1A CN202310496493A CN116527879A CN 116527879 A CN116527879 A CN 116527879A CN 202310496493 A CN202310496493 A CN 202310496493A CN 116527879 A CN116527879 A CN 116527879A
Authority
CN
China
Prior art keywords
image
test
top box
instruction
type
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
CN202310496493.1A
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.)
Beijing Lianping Technology Co ltd
Original Assignee
Beijing Lianping Technology Co ltd
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 Beijing Lianping Technology Co ltd filed Critical Beijing Lianping Technology Co ltd
Priority to CN202310496493.1A priority Critical patent/CN116527879A/en
Publication of CN116527879A publication Critical patent/CN116527879A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/04Diagnosis, testing or measuring for television systems or their details for receivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • 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/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Signal Processing (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a set top box testing method, a device, a medium and a computer device, wherein the method comprises the steps of establishing an instruction library corresponding to the type of a testing step; executing the corresponding instruction in the instruction library according to the type of the test step of the set top box, and generating a test image; performing image recognition processing on the test image to generate an image processing result; and generating a type test result according to the image processing result. According to the set top box testing method, device, medium and computer device provided by the embodiment of the invention, the automatic testing type of the set top box is increased by performing image identification processing on the image generated by the instruction corresponding to the type of the executed testing step.

Description

Set top box testing method, device, medium and computer device
Technical Field
The present invention relates to the field of automated testing, and in particular, to a set top box testing method, apparatus, medium, and computer apparatus.
Background
The set top box belongs to An Zhuoduan equipment, and the technology for automatically testing An Zhuoduan is mainly tested through an appium or Airtest automatic testing framework. The appium cannot automatically test the set top box, the Airtest cannot test the condition of more page images of the set top box, the test type is few, for example, whether the program of the set top box is played or not cannot be tested, whether the recommended bit picture of the set top box is displayed normally or not cannot be judged.
How to increase the automatic test types of the set top boxes is a problem to be solved.
Disclosure of Invention
The invention aims at overcoming the defects of the prior art, and provides a set top box testing method, a device, a medium and a computer device, so as to solve the problem that the automatic testing type of the set top box is limited in the prior art.
In order to achieve the above object, a first aspect of the present invention provides a set top box testing method, the testing method comprising:
establishing an instruction library corresponding to the type of the test step;
executing the corresponding instruction in the instruction library according to the type of the test step of the set top box, and generating a test image;
performing image recognition processing on the test image to generate an image processing result;
and generating a type test result according to the image processing result.
Further, the test step types of the set top box comprise assertion of EPG recommendation bitmap real-time position, whether video is played, whether a screen is black, EPG recommendation position judgment, and checking live program playing and program list.
Further, the instructions include instruction functions and parameters of the instruction functions.
Further, the instruction functions include a control instruction function and a capture image instruction function.
Further, the step of executing the corresponding instruction in the instruction library according to the test step type of the set top box to generate a test image specifically includes:
executing an image acquisition instruction function according to the type of a test step of the set top box, generating a target screenshot, and performing position calibration on the target screenshot according to the position parameter of the image acquisition instruction function;
and intercepting the target screenshot according to the position calibration to generate a test image.
Further, if the type of the test step is whether the screen is black, the image recognition processing is performed on the test image to generate an image processing result, which specifically includes:
calculating a hash value of the test image; if the hash value of the test image is the same as that of the black image, returning an abnormal result;
or converting the test image into a gray image, and returning an abnormal result if the black pixel ratio of the converted gray image is larger than a preset threshold value.
Further, if the type of the test step is whether the video is played, the image recognition processing is performed on the test image to generate an image processing result, which specifically includes:
comparing the first test image at the first time point with the second test image at the second time point;
and if the first test image is consistent with the second test image, returning an abnormal result.
The second aspect of the present invention provides a set-top box testing device, which comprises:
the instruction library establishing module is used for establishing an instruction library corresponding to the type of the test step;
the data execution module is used for executing the corresponding instruction in the instruction library according to the type of the test step of the set top box and generating a test image;
the image processing module is used for carrying out image recognition processing on the test image to generate an image processing result;
and the test assertion module is used for generating a type test result according to the image processing result.
A third aspect of the invention provides a computer program product for, when run on a computer, causing the computer to perform the set-top box testing method according to any of the first aspects.
A fourth aspect of the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the first aspects.
A fifth aspect of the invention provides a computer apparatus comprising a memory, a processor and a computer program stored on the memory, the processor executing the computer program to carry out the steps of the method of any of the first aspects.
According to the set top box testing method, device, medium and computer device provided by the embodiment of the invention, the automatic testing type of the set top box is increased by performing image identification processing on the image generated by the instruction corresponding to the type of the executed testing step.
Drawings
Fig. 1 is a flowchart of a set-top box testing method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a set-top box testing device according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer program product according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
Example 1
The set top box is a network television set top box, and is connected with a television and An Zhuoduan equipment of an external signal source, converts compressed digital signals into television contents and displays the television contents on the television. The content received by the set-top box includes images, sound, electronic program guides (Electrical Program Guide, EPG), internet web pages, and the like.
Fig. 1 is a flowchart of a set-top box testing method according to a first embodiment of the present invention, where, as shown in fig. 1, the set-top box testing method includes:
step 110, an instruction library corresponding to the test step type is established.
The test step types of the set top box comprise input, sleep, keyboard event, waiting for picture existence, picture existence assertion, picture nonexistence assertion, EPG recommendation bitmap real-time position existence assertion, video playing, screen blacking, EPG recommendation position judgment, live program playing and program list checking and the like.
The instruction library comprises a test step type name, a test step type ID and an instruction corresponding to the test step type ID, wherein the instruction corresponding to the test step type ID comprises an instruction function and parameters of the instruction function, and the test of the test step type can be performed by calling the instruction function and according to the parameters of the instruction function. For different test items, the number and the content of the test step types of the set top box are different, the corresponding step type ID can be extracted through the instruction library, the parameters of different instruction functions are set, and then the instructions can be sequentially executed through a test framework capable of being sequentially executed.
And 120, executing the corresponding instruction in the instruction library according to the test step type of the set top box, and generating a test image.
Specifically, a test step type is selected from an instruction library according to a test item, a test case is generated, and the test case comprises a plurality of steps of the test step types which are sequentially executed. The testing device and the set top box conduct information interaction through the android debug bridge, the set top box starts the android debug bridge wireless connection service, and after the wireless connection service is connected with the android debug bridge service of the testing device, the testing device sends a trigger testing instruction to the set top box through the android debug bridge.
The command function comprises a control command function and an image acquisition command function, wherein the control command function comprises a cursor movement function and a keyboard virtual input function.
Step 120, in one possible embodiment, includes steps A1-A2,
and step A1, executing an image acquisition instruction function according to the type of the test step of the set top box, generating a target screenshot, and carrying out position calibration on the target screenshot according to the position parameter of the image acquisition instruction function.
And A2, intercepting the target screenshot according to the position calibration to generate a test image.
In a specific example, the test item includes two steps, the test step type ID is 1 and 2, and the test step type ID is executed 1 and then executed 2, where the test step type name of the test step type 1 is upward movement, the instruction function is a cursor movement function Keyevent, the execution mode of the Keyevent is Keyevent ("keyode_dpad_up"), the test step type name of the test step type 2 is to determine whether the guide window where the cursor is located normally plays a video, the instruction function is an image capturing instruction function video, and the parameter of the image capturing instruction function is (41,128,421,337). And sequentially executing the test step type 1 and the test step type 2 through a test frame unitest capable of being sequentially executed, finding a KEYCODE_DPAD_UP parameter instruction carried by a cursor movement function Keyevent for executing the android debug bridge when the test step type 1 is executed, moving a cursor upwards to a guide window, executing the test step type 2 after the test step type 1 is executed, finding a capture image instruction function video for executing a screenshot service carried by the android debug bridge, firstly carrying out target screenshot on a page of a set top box, and then carrying out accurate position screenshot at a position of a video corresponding to the target screenshot according to position parameters of the instruction function, so as to generate a test image. When the test image generated by the accurate position screenshot enters the image recognition processing of the step 130, the recognition difficulty can be reduced, and the recognition speed and accuracy are improved.
And 130, performing image recognition processing on the test image to generate an image processing result.
In one possible implementation manner, the type of the test step is whether the screen is black, and the image recognition processing is performed on the test image to generate an image processing result, which specifically includes:
calculating a hash value of the test image; if the hash value of the test image is the same as that of the black image, returning an abnormal result; if the hash value of the test image is different from the hash value of the black image, the test is passed.
Or converting the test image into a gray image, and if the black pixel ratio of the converted gray image is larger than a preset threshold value, returning an abnormal result, wherein when the black pixel ratio of the converted gray image is larger than the preset threshold value, the test image is represented to be a black screen or close to the black screen; and if the duty ratio of the black pixels of the converted gray image is not greater than the preset threshold value, the test is passed.
In another possible implementation manner, the type of the testing step is whether the video is played, and the image recognition processing is performed on the tested image to generate an image processing result, which specifically is that:
comparing the first test image at the first time point with the second test image at the second time point;
if the first test image is consistent with the second test image, an abnormal result is returned, and if the first test image is consistent with the second test image, the consistency of the images is optionally judged by judging the consistency of the hash values of the images, and when the first test image is consistent with the second test image, the abnormal result is returned; if the first test image and the second test image are inconsistent, the test is passed.
In another possible implementation manner, the type of the testing step is that waiting for the picture exists, and the image recognition processing is performed on the testing image to generate an image processing result, specifically:
comparing the test images waiting for the picture positions for a plurality of times at preset intervals in a preset time period with preset pictures, and if the comparison between the test images and the preset pictures is inconsistent, returning an abnormal result; if all the test images are consistent with the preset images, the test is passed.
In another possible implementation manner, the type of the testing step is that the real-time position of the recommended bitmap of the EPG is asserted, and the image recognition processing is performed on the testing image to generate an image processing result, specifically:
judging whether a test image of the real-time position of the EPG recommended bitmap is positioned at a solid background or not; if yes, returning an abnormal result; if not, the test passes.
In another possible implementation manner, the type of the test step is that the EPG enters a recommended bit and judges whether the subset is normal and exits, and the image recognition processing is performed on the test image to generate an image processing result, which specifically is that:
judging whether the subset list is absent or not by identifying the test image of the subset list page, and if the subset list is absent, returning an abnormal result; if not, the test passes.
And 140, generating a type test result according to the image processing result.
Specifically, if the image processing result is that the test is passed, performing a test of the next test step type; if the image processing result is an abnormal result, acquiring abnormal description content of the image processing, and summarizing and judging whether the execution is successful or not according to the abnormal description content to generate a type test result, wherein the type test result comprises a test step type ID, a test step type name, the abnormal description content and whether the abnormal description is successful or not. In one possible implementation, after all test step types of the test item are executed, the type test results are summarized and output.
In one possible implementation manner, in order to monitor the set-top box in real time, when the set-top box is tested, an interval time for executing a test item is set, for example, the set-top box is triggered every few minutes, or periodically triggered, or the corresponding time is set for triggering, and a type test result summary is output once each time the test task is triggered.
According to the set top box testing method provided by the embodiment of the invention, the instruction corresponding to the type of the testing step is executed, after the target page is subjected to screenshot, the test image is generated by performing accurate position screenshot according to the parameters of the instruction function, and the automatic testing type of the set top box is increased by performing image identification processing on the test image; by establishing an instruction library comprising a plurality of test step types, a tester can simply select the test step types for different test items to complete item test, so that the test cost of a plurality of set top box test items is reduced, and the test efficiency is improved; the test items can be set to trigger the test at fixed time to monitor the set top box in real time, so that the stability of the set top box is improved.
Example two
The second embodiment of the invention provides a set top box testing device. Fig. 2 is a schematic structural diagram of a set-top box testing device according to a second embodiment of the present invention, where the set-top box testing device 200 includes an instruction library building module 201, a data executing module 202, an image processing module 203, and a test asserting module 204.
The instruction library establishing module 201 is configured to establish an instruction library corresponding to the test step type.
The test step types of the set top box comprise input, sleep, keyboard event, waiting for picture existence, picture existence assertion, picture nonexistence assertion, EPG recommendation bitmap real-time position existence assertion, video playing, screen blacking, EPG recommendation position judgment, live program playing and program list checking and the like. The instructions include instruction functions and parameters of the instruction functions. The instruction functions include a control instruction function and a capture image instruction function
The data execution module 202 is configured to execute the corresponding instruction in the instruction library according to the type of the test step of the set top box, and generate a test image.
The method comprises the steps of executing corresponding instructions in an instruction library according to the type of a test step of a set top box to generate a test image, and specifically comprises the following steps:
executing an image acquisition instruction function according to the type of the test step of the set top box, generating a target screenshot, and performing position calibration on the target screenshot according to the position parameter of the image acquisition instruction function; intercepting the target screenshot according to the position calibration to generate a test image.
And the image processing module 203 is used for performing image recognition processing on the test image to generate an image processing result.
In one possible implementation manner, if the type of the test step is whether the screen is black, performing image recognition processing on the test image to generate an image processing result, which specifically includes: calculating a hash value of the test image; if the hash value of the test image is the same as that of the black image, returning an abnormal result;
or converting the test image into a gray image, and if the black pixel ratio of the converted gray image is larger than a preset threshold value, returning an abnormal result.
In another possible implementation manner, if the type of the test step is whether the video is played, performing image recognition processing on the test image to generate an image processing result, specifically:
comparing the first test image at the first time point with the second test image at the second time point; and if the first test image is consistent with the second test image, returning an abnormal result.
The test assertion module 204 is configured to generate a type test result according to the image processing result.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. For example, the image processing module may be a processing element that is set up separately, may be implemented in a chip of the above apparatus, or may be stored in a memory of the above apparatus in the form of program codes, and the functions of the above data processing module may be called and executed by a processing element of the above apparatus. The implementation of the other modules is similar. In addition, all or part of the modules can be integrated together or can be independently implemented. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
For example, the modules above may be one or more integrated circuits configured to implement the methods above, such as: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or one or more microprocessors (Digital Signal Processor, DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces, in whole or in part, the procedures or functions described in accordance with embodiments of the present application. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line ((Digital Subscriber Line, DSL)), or wireless (e.g., infrared, wireless, bluetooth, microwave, etc.) means, the computer-readable storage medium may be any available medium that can be accessed by the computer or a data storage device such as a server, data center, etc., that contains an integration of one or more available media, the available media may be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk, SSD), etc.
Example III
Embodiment three provides a computer program product comprising instructions which, as shown in fig. 3, when run on a computer, cause the computer to perform any of the set-top box testing methods as provided in embodiment one.
Example IV
A fourth embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the set-top box testing methods as provided in the first embodiment.
Example five
The fifth embodiment of the present invention provides a computer device, and fig. 4 is a schematic structural diagram of the computer device provided by the fifth embodiment of the present invention. As shown in fig. 4, the system includes a memory 300, a processor 400 and a computer program stored on the memory, and the processor executes the computer program to implement any of the set-top box testing methods provided in the first embodiment.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A set top box testing method, the testing method comprising:
establishing an instruction library corresponding to the type of the test step;
executing the corresponding instruction in the instruction library according to the type of the test step of the set top box, and generating a test image;
performing image recognition processing on the test image to generate an image processing result;
and generating a type test result according to the image processing result.
2. The method according to claim 1, wherein the test step types of the set top box include EPG recommendation bitmap real-time position presence assertion, video play, screen blackout, EPG recommendation bit judgment, checking live program play and program listings.
3. The set-top box testing method of claim 1, wherein the instructions comprise instruction functions and parameters of the instruction functions.
4. A set top box testing method according to claim 3 wherein the instruction functions include a control instruction function and a capture image instruction function.
5. The method for testing a set top box according to claim 4, wherein the executing the corresponding instruction in the instruction library according to the type of the test step of the set top box generates the test image, and specifically includes:
executing an image acquisition instruction function according to the type of a test step of the set top box, generating a target screenshot, and performing position calibration on the target screenshot according to the position parameter of the image acquisition instruction function;
and intercepting the target screenshot according to the position calibration to generate a test image.
6. The method for testing a set-top box according to claim 1, wherein if the type of the testing step is whether a screen is black, the performing image recognition processing on the test image generates an image processing result, specifically:
calculating a hash value of the test image; if the hash value of the test image is the same as that of the black image, returning an abnormal result;
or converting the test image into a gray image, and returning an abnormal result if the black pixel ratio of the converted gray image is larger than a preset threshold value.
7. The method for testing a set-top box according to claim 1, wherein if the type of the testing step is whether a video is played, the performing the image recognition processing on the test image generates an image processing result, specifically:
comparing the first test image at the first time point with the second test image at the second time point;
and if the first test image is consistent with the second test image, returning an abnormal result.
8. A set top box testing device, the testing device comprising:
the instruction library establishing module is used for establishing an instruction library corresponding to the type of the test step;
the data execution module is used for executing the corresponding instruction in the instruction library according to the type of the test step of the set top box and generating a test image;
the image processing module is used for carrying out image recognition processing on the test image to generate an image processing result;
and the test assertion module is used for generating a type test result according to the image processing result.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method according to claims 1-7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to carry out the steps of the method according to claims 1-7.
CN202310496493.1A 2023-05-05 2023-05-05 Set top box testing method, device, medium and computer device Pending CN116527879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310496493.1A CN116527879A (en) 2023-05-05 2023-05-05 Set top box testing method, device, medium and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310496493.1A CN116527879A (en) 2023-05-05 2023-05-05 Set top box testing method, device, medium and computer device

Publications (1)

Publication Number Publication Date
CN116527879A true CN116527879A (en) 2023-08-01

Family

ID=87389940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310496493.1A Pending CN116527879A (en) 2023-05-05 2023-05-05 Set top box testing method, device, medium and computer device

Country Status (1)

Country Link
CN (1) CN116527879A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116778130A (en) * 2023-08-25 2023-09-19 江苏盖睿健康科技有限公司 Intelligent recognition method and system for test result based on image processing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116778130A (en) * 2023-08-25 2023-09-19 江苏盖睿健康科技有限公司 Intelligent recognition method and system for test result based on image processing
CN116778130B (en) * 2023-08-25 2023-12-05 江苏盖睿健康科技有限公司 Intelligent recognition method and system for test result based on image processing

Similar Documents

Publication Publication Date Title
CN107509107B (en) Method, device and equipment for detecting video playing fault and readable medium
CN116527879A (en) Set top box testing method, device, medium and computer device
CN112203150B (en) Time-consuming acquisition method, device, equipment and computer-readable storage medium
CN112559341A (en) Picture testing method, device, equipment and storage medium
CN111028222A (en) Video detection method and device, computer storage medium and related equipment
CN109657475A (en) Code vulnerabilities check method, apparatus, equipment and storage medium
CN110581988B (en) Signal quality detection method and device, electronic equipment and storage medium
CN115269359A (en) Terminal interface testing method and device
CN113138916A (en) Automatic testing method and system for picture structuring algorithm based on labeled sample
KR101460860B1 (en) GUI Test apparatus using test scenario model based on states and the method thereof
CN110113630B (en) Video detection method and device, electronic equipment and storage medium
CN110992299B (en) Method and device for detecting browser compatibility
CN116166536A (en) Test method, test device, electronic equipment and storage medium
US20220201362A1 (en) Artificial intelligence and machine learning evaluation of elements in rendered video
US20050034031A1 (en) Apparatus and method for detecting defective elements produced upon playing moving picture
CN116993654A (en) Camera module defect detection method, device, equipment, storage medium and product
CN113886273A (en) Performance test method, device, test equipment and medium of application program
US11508143B2 (en) Automated salience assessment of pixel anomalies
CN113923443A (en) Network video recorder testing method and device and computer readable storage medium
CN111064952A (en) Automatic testing method, device and system
CN110032624B (en) Sample screening method and device
CN110572641B (en) Display equipment testing method and device and computer readable storage medium
CN112788356A (en) Live broadcast auditing method, device, server and storage medium
CN112286753B (en) Method, device, server and storage medium for testing image processing accuracy
CN113923450A (en) Automatic image detection method, device, equipment and storage medium

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