Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Unit test script writing method and system for set top box

A unit test and set-top box technology, applied in the set-top box unit test script writing method and system field, can solve the problems of lower test accuracy and efficiency, large differences in unit test scripts, inconvenient reading and rectification, etc., to improve accuracy and test Efficiency, improved memory utilization, ease of reading and rectification effects

Inactive Publication Date: 2017-01-11
SHENZHEN JIUZHOU ELECTRIC
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, it is necessary to address the problems that the unit test scripts written by the above-mentioned testers have great differences, are too long or have chaotic logic, are not convenient for other testers to read and rectify, and greatly reduce the accuracy and efficiency of the test. Provide a set-top box unit test script writing method and system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Unit test script writing method and system for set top box
  • Unit test script writing method and system for set top box

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0028] figure 1 It is a flow chart of a method for writing a set-top box unit test script in an embodiment, and the writing method performs template design on the unit test script, specifically as figure 1 As shown, the method includes the following steps:

[0029] S10: Set the global interface parameter in the unit test script, the global interface parameter is used to return the test result obtained by testing the public interface, wherein if the public interface test passes, the global interface parameter returns the first value, if the public interface test fails If passed, the global interfa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a unit test script writing method and system for a set top box. The method includes the steps that templated design of a unit test script is carried out, global interface parameters are defined, and a test result is returned; test programs are written in advance, common interface test instructions are defined to call common interfaces and the test programs for testing, and a test result is generated and fed back to the global interface parameters; a common printing interface is set to print the test result. Thus, it is only needed to select needed instructions from the defined common interface test instructions for any tester, and differences caused by the difference of testers are avoided; the unit test script is small in length and simple in logic and can be conveniently read or modified by other testers, and thus the test accuracy and the test efficiency are greatly improved; by loading the unit test script in the set top box, the memory utilization rate of the set top box is greatly increased.

Description

technical field [0001] The invention relates to the field of digital television equipment testing, in particular to a method and system for writing set-top box unit testing scripts. Background technique [0002] The software module of the set-top box can be divided into a driver module, an intermediate interpretation module and an application module. Among them, the driver module covers hardware abstraction layer (HAL), board support package (BPS), operating system (OSAL) and drivers, etc. [0003] Now the set-top box needs to write programs during the development process. Due to the differences in the established functions and interfaces of the main chip, it is necessary to change the interface (usually the upper layer interface) when writing the program. Due to the software development kit provided by the main chip ( SDK, generated by BPS) will lead to differences in the bottom layer interface of the set-top box OSAL and HAL layer, which will lead to the disadvantage of p...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F11/36
CPCG06F8/20G06F11/36
Inventor 王华泽
Owner SHENZHEN JIUZHOU ELECTRIC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products