CN101951529A - Method and system for testing functions of set top box - Google Patents

Method and system for testing functions of set top box Download PDF

Info

Publication number
CN101951529A
CN101951529A CN2010102686898A CN201010268689A CN101951529A CN 101951529 A CN101951529 A CN 101951529A CN 2010102686898 A CN2010102686898 A CN 2010102686898A CN 201010268689 A CN201010268689 A CN 201010268689A CN 101951529 A CN101951529 A CN 101951529A
Authority
CN
China
Prior art keywords
button
sequence
key
module
virtual key
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
CN2010102686898A
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.)
Sun Yat Sen University
Original Assignee
Sun Yat Sen University
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 Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN2010102686898A priority Critical patent/CN101951529A/en
Publication of CN101951529A publication Critical patent/CN101951529A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a method for testing functions of a set top box. The method comprises the following steps of: writing an operating command script; generating virtual keys according to an operating key sequence library; and transmitting the virtual keys to an application program to test the functions of the set top box. The embodiment of the invention also discloses a system for automatically testing the functions of the set top box. The system comprises an operating command script writing module, an operating key sequence library generating module, an operating command analyzing module, a virtual key synthesis module and a virtual key transmitting module, wherein the operating command script writing module is used for writing the functions to be tested into the script; the operating key sequence library generating module is used for maintaining the corresponding relationship between an operating command and a key value sequence; the operating command analyzing module is used for converting the operating command and a target into the key value sequence to generate a key value sequence file; the virtual key synthesis module is used for converting the key value of the key file into a key message; and the virtual key transmitting module is used for transmitting the synthetic virtual key to the application program to test the functions of the set top box. The method and the system have the advantages of effectively improving the working efficiency of a tester and saving labor cost.

Description

A kind of testing functions of set top box method and system
Technical field
The present invention relates to the digital television techniques field, be specifically related to a kind of testing functions of set top box method and system.
Background technology
Raising along with national economy and scientific and technological level, the particularly fast development of computer technology, the communication technology, network technology, control technology, information technology and raising, for family realizes the life modernization, comfortableization of living environment, safe have been created condition.Based on the intelligent home network platform, be that its typical case one of uses as the multifunctional digital set top box of home server.
The translation epoch have higher requirement to set-top box scenario after the Digital Television.From the function of set-top box, it must support PVR (video recording) and advertisement, recreation, multimedia, supports value-added services such as data broadband, high definition.Therefore, different with the plain edition set-top box scenario, the set-top box scenario in back translation epoch will possess high performance CPU (central processing unit), possesses the image enhancement processing ability.From software view, it should have open operating system, has unified software platform.In general, the set-top box scenario in back translation epoch will have higher integrated level, better cost performance, better energy conservation characteristic, higher maturity and stability are easy to transplant and expansion, in future, set-top box should become the digital home's media center that has network termination function concurrently.Also just particularly important for the set top box testing of feature richness so, because feature richness, get up very loaded down with trivial details and complicated of manual test can't be improved the efficient of test, and be needed the very big human cost of waste.
Summary of the invention
Based on problem of the present invention, the embodiment of the invention provides a kind of testing functions of set top box method and system, can improve the efficient of testing functions of set top box.
The embodiment of the invention provides a kind of testing functions of set top box method, comprising:
The compilation operation command script, and according to operation push-button sequence library generation virtual key;
Described virtual key is sent to the functional test that application program is carried out set-top box.
Described compilation operation command script, and generate virtual key according to the operation push-button sequence library and comprise:
Resolve to the button value sequence by operational order, again the button value sequence that obtains is modeled to the virtual key sequence.
Described compilation operation command script comprises: the target and the operational motion of test are write in the file, resolve to operation push-button key assignments sequence again.
Described operational order comprises operational motion and operand, the corresponding key assignments sequence of operational order.
Describedly generate virtual key according to the operation push-button sequence library and comprise: button value is modeled to virtual key realizes press key message.
Accordingly, the embodiment of the invention also provides a kind of set-top box functionality automatization test system, comprising:
Compilation operation command script module, the function that is used for testing writes script, and each entry comprises operational order and operand;
Operation push-button sequence library generation module is used for the corresponding relation of attended operation order and button value sequence, and the parsing of script depends on the operation push-button sequence library;
The operational order parsing module is used for operational order and target are changed into button value sequence generation button value sequential file;
The virtual key synthesis module is used for the key assignments by keyed file is converted into press key message;
Send the virtual key module, be used for synthetic virtual key is sent to the functional test that application program is carried out set-top box.
The parsing of script need be based on the operation push-button sequence library in the described operation push-button sequence library generation module, and the operation push-button sequence library comprises operational motion, operand and keystroke sequence.
Send the virtual key module and also be used to need before sending virtual key the button redundant information is checked, can not send press key message for redundant information.
Described operational order parsing module also is used for script is once all resolved to keystroke sequence, will resolve with execution and separate.
The embodiment of the invention, script by editor, script changes into keystroke sequence from newly resolving again, synthetic then virtual key sends it to tested set-top box application program, by utilizing set-top box to have button not have this characteristic of mouse to find a kind of automatic test approach to replace manual test, thereby effectively improve tester's operating efficiency, save human cost.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the testing functions of set top box method flow diagram in the embodiment of the invention;
Fig. 2 is the set-top box functionality automatization test system structural representation in the embodiment of the invention;
Fig. 3 is another flow chart of realization set-top box functionality method of testing in the embodiment of the invention;
Fig. 4 is the script process of analysis figure of the realization testing functions of set top box method in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
Fig. 1 shows the testing functions of set top box method flow diagram in the embodiment of the invention, comprising:
S101: the compilation operation command script, and according to operation push-button sequence library generation virtual key;
Here the concrete operational order of passing through resolves to the button value sequence, again the button value sequence that obtains is modeled to the virtual key sequence.
This compilation operation command script comprises: the target and the operational motion of test are write in the file, resolve to operation push-button key assignments sequence again.This operational order comprises operational motion and operand, the corresponding key assignments sequence of operational order.
This generates virtual key according to the operation push-button sequence library and comprises: button value is modeled to virtual key realizes press key message.
S102: described virtual key is sent to the functional test that corresponding program carries out set-top box.
Accordingly, Fig. 2 shows the set-top box functionality automatization test system structural representation in the embodiment of the invention, comprising:
Compilation operation command script module 201, the function that is used for testing writes script, and each entry comprises operational order and operand; For example: add one in channel central authorities.Wherein adding channel is operational order, and one in central authorities are operand.Adopt this method can allow common user just know and how to test, can realize the random test function items in addition.
Operation push-button sequence library generation module 202 is used for the corresponding relation of attended operation order and button value sequence, and the parsing of script depends on the operation push-button sequence library;
The parsing of script need be based on the operation push-button sequence library in the operation push-button sequence library generation module 202 here, and the operation push-button sequence library comprises operational motion, operand and keystroke sequence.
Operational order parsing module 203 is used for operational order and target are changed into button value sequence generation button value sequential file;
The operational order parsing module 203 here also is used for script is once all resolved to keystroke sequence, will resolve with execution and separate.This module is responsible for that operational order and target are changed into the button value sequence and is generated the button value sequential file, and operational motion may need several times button just can finish, thereby an operational motion is corresponding with a button value sequence.
Virtual key synthesis module 204 is used for the key assignments by keyed file is converted into press key message; Since button value sequential file record is key assignments, be press key message and tested application program receives, thereby the button value sequence of button value sequential file log file must be changed into the press key message sequence.
Send virtual key module 205, be used for synthetic virtual key is sent to the functional test that application program is carried out set-top box.
The transmission virtual key module 204 here also is used to need before sending virtual key the button redundant information is checked, can send press key message for redundant information.Promptly before sending, also should judge context environmental, if the function items of test and a last function to being in same level, do not have to omit together from beginning to the press key message with layer so.
Concrete, Fig. 3 shows the invention process and realizes another flow chart of set-top box functionality method of testing, comprises as follows:
Beginning;
Step S301, operational order editor.Comprise operational motion and operand, an operational order file can comprise many operational orders.
Step S302 resolves to the button value sequence with operational order, and an order can resolve to a plurality of actuation of keys, thereby an order correspondence is a button value sequence.
Step S303 judges whether order can resolve to the key assignments sequence, if change S304, otherwise changes S301.
Step S304 moves tested application program.All resolve when finishing when the whole operation order, just can begin test.
Step S305 reads the button value sequence from file, begin synthetic virtual key.
Step S306, analogue-key.Because what read is key assignments, thereby need be converted into press key message by synthetic virtual key,
Step S307 sends virtual key, check the redundant information of button.The part of redundancy is not sent, directly omit.
Step S308, whether keystroke sequence finishes, if then explain, otherwise changes S305.
Finish.
Referring to Fig. 4, this figure is the script process of analysis figure that the invention process realizes the testing functions of set top box method, and concrete step is as follows:
Beginning;
Step S401, the read operation order is read in to picture operational motion and operation as a data item.
Whether step S402 judges to order to read to finish, if then finish to resolve, otherwise changes S403
Step S403, the search operation order and the corresponding sequence of operation in the operation push-button sequence library, the parsing of operational order is based on the operation push-button sequence library, and main information has operational motion, operand, button value sequence in the storehouse.
Step S404, whether judgement searches successful, is then to change S205, otherwise finishes.
Step S405 parses corresponding key assignments sequence.Change S401.
Finish.
To sum up, the embodiment of the invention, script by editor, script changes into keystroke sequence from newly resolving again, synthetic then virtual key sends it to tested set-top box application program, by utilizing set-top box to have button not have this characteristic of mouse to find a kind of automatic test approach to replace manual test, thereby effectively improve tester's operating efficiency, save human cost.
More than the embodiment of the invention is described in detail, used specific case herein principle of the present invention and execution mode set forth, the explanation of above embodiment just is used for help understanding method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (9)

1. a testing functions of set top box method is characterized in that, comprising:
The compilation operation command script, and according to operation push-button sequence library generation virtual key;
Described virtual key is sent to the functional test that application program is carried out set-top box.
2. the method for claim 1 is characterized in that, described compilation operation command script, and generate virtual key according to the operation push-button sequence library and comprise:
Resolve to the button value sequence by operational order, again the button value sequence that obtains is modeled to the virtual key sequence.
3. the method for claim 1 is characterized in that, described compilation operation command script comprises: the target and the operational motion of test are write in the file, resolve to operation push-button key assignments sequence again.
4. method as claimed in claim 3 is characterized in that described operational order comprises operational motion and operand, the corresponding key assignments sequence of operational order.
5. as each described method of claim 1 to 4, it is characterized in that, describedly generate virtual key according to the operation push-button sequence library and comprise: button value is modeled to virtual key realizes press key message.
6. a set-top box functionality automatization test system is characterized in that, comprising:
Compilation operation command script module, the function that is used for testing writes script, and each entry comprises operational order and operand;
Operation push-button sequence library generation module is used for the corresponding relation of attended operation order and button value sequence, and the parsing of script depends on the operation push-button sequence library;
The operational order parsing module is used for operational order and target are changed into button value sequence generation button value sequential file;
The virtual key synthesis module is used for the key assignments by keyed file is converted into press key message;
Send the virtual key module, be used for synthetic virtual key is sent to the functional test that application program is carried out set-top box.
7. system as claimed in claim 6 is characterized in that, the parsing of script need be based on the operation push-button sequence library in the described operation push-button sequence library generation module, and the operation push-button sequence library comprises operational motion, operand and keystroke sequence.
8. system as claimed in claim 6 is characterized in that, sends the virtual key module and also is used to need before sending virtual key the button redundant information is checked, can not send press key message for redundant information.
9. system as claimed in claim 6 is characterized in that, described operational order parsing module also is used for script is once all resolved to keystroke sequence, will resolve with execution and separate.
CN2010102686898A 2010-08-31 2010-08-31 Method and system for testing functions of set top box Pending CN101951529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102686898A CN101951529A (en) 2010-08-31 2010-08-31 Method and system for testing functions of set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102686898A CN101951529A (en) 2010-08-31 2010-08-31 Method and system for testing functions of set top box

Publications (1)

Publication Number Publication Date
CN101951529A true CN101951529A (en) 2011-01-19

Family

ID=43454864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102686898A Pending CN101951529A (en) 2010-08-31 2010-08-31 Method and system for testing functions of set top box

Country Status (1)

Country Link
CN (1) CN101951529A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300117A (en) * 2011-08-31 2011-12-28 四川长虹电器股份有限公司 Automatic testing system and testing method for set-top box
CN102340687A (en) * 2011-10-17 2012-02-01 四川长虹电器股份有限公司 Set-top box testing system and method
CN102355602A (en) * 2011-11-02 2012-02-15 四川长虹电器股份有限公司 Processing method for simulative keying of set-top box
CN102665092A (en) * 2012-03-06 2012-09-12 四川金网通电子科技有限公司 Test method for hardware of set top box
CN105095063A (en) * 2014-05-12 2015-11-25 腾讯科技(深圳)有限公司 Application program testing method, apparatus and system
CN105120259A (en) * 2015-08-24 2015-12-02 深圳Tcl新技术有限公司 Detection method and apparatus for digital television
CN106294103A (en) * 2015-05-21 2017-01-04 Tcl集团股份有限公司 The automated testing method of a kind of Android system analogue-key transmission and device
WO2017000734A1 (en) * 2015-06-30 2017-01-05 深圳市九洲电器有限公司 Set top box and automatic key code table transmission test method thereof
CN107105328A (en) * 2017-05-04 2017-08-29 山东浪潮商用系统有限公司 A kind of control method of set top box, device and system
CN109240913A (en) * 2018-08-14 2019-01-18 中国平安人寿保险股份有限公司 A kind of webpage function verification method, computer readable storage medium and terminal device
CN110827532A (en) * 2019-10-24 2020-02-21 深圳康佳电子科技有限公司 Control method, terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859581A (en) * 2005-12-02 2006-11-08 华为技术有限公司 Detecting system for IP set-top tox and realizing method
CN1953564A (en) * 2006-11-22 2007-04-25 Ut斯达康通讯有限公司 A test system and method for set top box

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859581A (en) * 2005-12-02 2006-11-08 华为技术有限公司 Detecting system for IP set-top tox and realizing method
CN1953564A (en) * 2006-11-22 2007-04-25 Ut斯达康通讯有限公司 A test system and method for set top box

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300117A (en) * 2011-08-31 2011-12-28 四川长虹电器股份有限公司 Automatic testing system and testing method for set-top box
CN102340687A (en) * 2011-10-17 2012-02-01 四川长虹电器股份有限公司 Set-top box testing system and method
CN102355602A (en) * 2011-11-02 2012-02-15 四川长虹电器股份有限公司 Processing method for simulative keying of set-top box
CN102665092A (en) * 2012-03-06 2012-09-12 四川金网通电子科技有限公司 Test method for hardware of set top box
CN105095063A (en) * 2014-05-12 2015-11-25 腾讯科技(深圳)有限公司 Application program testing method, apparatus and system
CN106294103A (en) * 2015-05-21 2017-01-04 Tcl集团股份有限公司 The automated testing method of a kind of Android system analogue-key transmission and device
WO2017000734A1 (en) * 2015-06-30 2017-01-05 深圳市九洲电器有限公司 Set top box and automatic key code table transmission test method thereof
CN105120259A (en) * 2015-08-24 2015-12-02 深圳Tcl新技术有限公司 Detection method and apparatus for digital television
CN105120259B (en) * 2015-08-24 2017-12-12 深圳Tcl新技术有限公司 Digital television detection method and device
CN107105328A (en) * 2017-05-04 2017-08-29 山东浪潮商用系统有限公司 A kind of control method of set top box, device and system
CN109240913A (en) * 2018-08-14 2019-01-18 中国平安人寿保险股份有限公司 A kind of webpage function verification method, computer readable storage medium and terminal device
CN110827532A (en) * 2019-10-24 2020-02-21 深圳康佳电子科技有限公司 Control method, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN101951529A (en) Method and system for testing functions of set top box
CN107615239B (en) Infrastructure for hosting and publishing software packages
US8789015B2 (en) Integrated application localization
CN104484273A (en) Test method for application program, device and system
CN102129364A (en) Method for embedding widget toolbar in application program and rapid widget accessing method
CN101641690A (en) Be used to generate the method and the middleware platform engine thereof of cross platform program
CN102279765A (en) Pre-compiling hosted managed code
CN103455381A (en) Method and system for de-serializing source object of source software into target software component
CN102830959B (en) A kind of built-in browser interface dynamic expansion method and system
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN100507871C (en) Method and system for testing embedded file system
US20110197172A1 (en) Design verification apparatus and design verification program
CN103488706A (en) Processing method and device for mass data base
CN102663003A (en) Page switching method and system for application of mobile terminal in environment with multiple web pages
CN102118281A (en) Method, device and network equipment for automatic testing
CN102385527A (en) Device and method for improving execution efficiency of service scripts
CN116450107B (en) Method and device for secondary development of software by low-code platform and electronic equipment
CN101477485B (en) MySQL database remote backup and reduction method based on ASP.net
CN109933381A (en) A kind of loading method and device of kernel
CN110347673A (en) Data file loading method, device, computer equipment and storage medium
CN103945284A (en) Information processing method and information processing device
KR20080039080A (en) Terminal having an interfacing function of the heterogeneity language compile library, api calling method and compile function generating method
CN107526679A (en) Automated test frame, the automated testing method based on thereon, storage medium and computer equipment
CN115774552A (en) Configurated algorithm design method and device, electronic equipment and readable storage medium
CN113778897B (en) Automatic test method, device and equipment for interface and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110119