CN102915272A - Software testing method, software testing system and television terminal - Google Patents

Software testing method, software testing system and television terminal Download PDF

Info

Publication number
CN102915272A
CN102915272A CN2012104596823A CN201210459682A CN102915272A CN 102915272 A CN102915272 A CN 102915272A CN 2012104596823 A CN2012104596823 A CN 2012104596823A CN 201210459682 A CN201210459682 A CN 201210459682A CN 102915272 A CN102915272 A CN 102915272A
Authority
CN
China
Prior art keywords
debugging
software
debugging message
control instruction
testing
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.)
Granted
Application number
CN2012104596823A
Other languages
Chinese (zh)
Other versions
CN102915272B (en
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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201210459682.3A priority Critical patent/CN102915272B/en
Publication of CN102915272A publication Critical patent/CN102915272A/en
Application granted granted Critical
Publication of CN102915272B publication Critical patent/CN102915272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a software testing method, a software testing system and a television terminal. The software testing method comprises the following steps of: setting a debugging information output program in software; receiving an externally input debugging control instruction; and selecting to run the debugging information output program according to the debugging control instruction, and after the program runs, outputting the corresponding debugging information. Through the application of the method and system disclosed by the invention, the flexibility and testing speed of software testing are improved.

Description

Method for testing software, test macro and television terminal
Technical field
The invention belongs to the software testing technology field, specifically, relate to method for testing software, test macro and have the television terminal of this test macro.
Background technology
The television terminal such as televisor, set-top box product need to comprehensively be tested software wherein before dispatching from the factory, to guarantee the normal operation of software in product.General, software from write first, programming to product, need to through test, debugging repeatedly, finally improve into satisfactory form and be fixed up.In the process of software test and debugging, find that in time wrong and definite errors present is the foundation of revising software, also be the key that shortens debugging cycle, improves testing efficiency.
Because the software program in the existing television terminal product is more, and generally is modular design, if each software all moves the Debugging message written-out program and exports Debugging message, can cause system running speed to reduce.For this reason, prior art adopts dual mode to test usually: one arranges less Debugging message written-out program as far as possible; Its two, when software test goes wrong, for the software of mistake is set up the Debugging message written-out program.
For first kind of way, although the reduction that less Debugging message written-out program can be avoided system running speed as far as possible is set, and after having moved software, namely obtain corresponding Debugging message, be convenient in time to find wrong and the location mistake.But, can't find not arrange the mistake of the software section of Debugging message written-out program, cause software performance to be difficult to guarantee.
For the second way, when finding that software goes wrong, set up again the Debugging message written-out program and come the detection and diagnosing mistake, although accurate positioning, but not only use is inconvenient, debugging speed is slow, and might destroy the software runtime environment that originally went wrong, increase complicacy and the inaccuracy of location of mistake.
Summary of the invention
The above-mentioned shortcoming that exists when the present invention is directed to software test procedure in the prior art and a kind of method for testing software and test macro are provided has improved dirigibility and the test speed of software test.
For achieving the above object, method of testing provided by the invention adopts following technical proposals to be achieved:
A kind of method for testing software comprises the steps:
A, the Debugging message written-out program is set in software;
The debugging control instruction of b, the outside input of reception;
C, according to debugging control Instruction Selection operation Debugging message written-out program, and after this program of operation the corresponding Debugging message of output.
Aforesaid method of testing, for conveniently obtaining Debugging message, described debugging control instruction comprises Debugging message appointment outgoing position, in described step c, exports Debugging message to Debugging message and specifies outgoing position.
And it is at least a in serial ports, ethernet port and the display screen that described Debugging message is specified outgoing position.
Aforesaid method of testing, in described step c, the debugging control instruction update software test mode table of at first inputting according to the outside; Then, select operation Debugging message written-out program according to the software test state table.
Aforesaid method of testing, described debugging control instruction is by serial ports or the input of socket port, to realize the convenient input of complicated order; Perhaps, for inputting fast simple steering order, described debugging control instruction can also be by telepilot or panel button input.
For realizing aforementioned goal of the invention, test macro provided by the invention adopts following technical proposals to be achieved:
A kind of software testing system, this system comprises:
Master routine operation unit is for the master routine of operating software;
Debugging control instruction input block is used for the instruction of input debugging control;
Debugging control command reception unit is used for receiving the debugging control instruction;
Debugging message written-out program operation unit is connected with debugging control command reception unit, is used for operation Debugging message written-out program when receiving the debugging control instruction of outside input;
The Debugging message output unit is connected with Debugging message written-out program operation unit and master routine operation unit, is used for the output Debugging message.
Aforesaid test macro, for ease of test, simultaneously for to make things convenient for obtaining of Debugging message, described system also comprises:
The software test state storage unit is for the test mode information of storing software; And
The Debugging message receiving element is connected with the Debugging message output unit, is used for receiving Debugging message.
Aforesaid test macro, described Debugging message receiving element are at least a in serial ports, ethernet port and the display screen.
Aforesaid test macro, described debugging control instruction input block are any in serial ports, socket port, telepilot or the panel button.
In addition, the present invention also provides a kind of television terminal with above-mentioned test macro.
Compared with prior art, advantage of the present invention and good effect are: whether the present invention sets in advance the Debugging message written-out program in software, control this program by the debugging control instruction of outside input moves, can control separately as required software and whether move the Debugging message written-out program, control is flexible, not only can improve the overall operation speed of software test, and be convenient to accurately, in time find software error and location errors present, improved the software test performance.
After reading the specific embodiment of the present invention by reference to the accompanying drawings, other characteristics of the present invention and advantage will become clearer.
Description of drawings
Fig. 1 is the process flow diagram of an embodiment of method for testing software of the present invention;
Fig. 2 is the structured flowchart of an embodiment of software testing system of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments technical scheme of the present invention is described in further detail.
Please refer to Fig. 1, this Fig. 1 shows the process flow diagram of an embodiment of method for testing software of the present invention.The software test of this embodiment in the TV set-top box illustrates calling and operational process the debugging information output program in software test procedure as example.
As shown in Figure 1, this embodiment idiographic flow that a software module is carried out software test is as follows:
Step 11: flow process begins.
Step 12: the Debugging message written-out program is set in software.
The Debugging message written-out program is used for exporting middle Debugging message and the final Debugging message of main software program operation as the part of software program.According to Debugging message, can find whether master routine exists mistake, and the location errors present.When program burn writing is in the set-top box, to carry out once to get final product as this step 1, if programming software again not needn't be carried out this step.For the ease of the control to all software programs, this embodiment all arranges the Debugging message written-out program for each software module.And this program is inserted into the correct position of software module as required, generally is to carry out the position of finishing in the key operation program, in order to export crucial execution result.
Certainly, if necessary, also can insert respectively the Debugging message written-out program in a plurality of positions of a software module, specifically can arrange according to actual needs.
Step 13: before operating software, at first judge whether to exist the debugging control instruction of outside input.If there is execution in step 14; If there is no, go to step 17.
As required by the external unit input, in this embodiment, external unit is preferably serial ports or socket port by the tester in the debugging control instruction, to realize the convenient input of complicated order.In addition, if steering order is comparatively simple, for improving the instruction input speed, can also adopt set-top box remote controller or panel button to input.
In this embodiment, the debugging control instruction does not only contain the Debugging message written-out program in the operating software, the instruction of output Debugging message, also include Debugging message and specify the instruction of outgoing position, so that the control object information outputs to the user desired position, make things convenient for the user to check and use.
Step 14: if having the debugging control instruction of outside input, update software test mode table.
Each testing software all disposes the software test state table, carries out the test of corresponding software according to the state setting of this table.If have the debugging control instruction, then revise the software test state table, can move the Debugging message written-out program during with the assurance test, and export corresponding debug results information.
Step 15: according to the test of software test state table executive software, and operation Debugging message written-out program.
Step 16: the Debugging message of exporting current testing software.Then, execution in step 18.
Software test for operation Debugging message written-out program export corresponding Debugging message according to the program operation result, and Debugging message will output to the appointment outgoing position according to the debugging control instruction.In this embodiment, for ease of the user as required multipath obtain Debugging message so that follow-uply check and use, it is at least a in serial ports, ethernet port and the display screen that Debugging message is specified outgoing position.
If do not specify outgoing position in the debugging control instruction, give tacit consent to that then Debugging message is outputed in the display screen, in time check to make things convenient for the user.
Step 17: the if there is no debugging control instruction of outside input, then according to default software test state table operation testing software.Then, execution in step 18.
Step 18: software test finishes.
Above-mentioned steps 13 has only been described the process that a software module is carried out software test to step 18, after the test of having carried out this software module, and can also be according to step 13 to the next software module of 18 flow testing.
Please refer to Fig. 2, this Fig. 2 shows the structured flowchart of an embodiment of software testing system of the present invention.
As shown in Figure 2, in the software testing system of this embodiment each assembly of elements and annexation and function details are as follows:
Debugging control instruction input block 21 is used for the instruction of input debugging control.If the test macro of this embodiment is applied in the television terminals such as televisor, set-top box, debugging control instruction input block 21 can be in serial ports, socket port, telepilot or the panel button any.
Debugging control command reception unit 22 is connected with debugging control instruction input block 21, is used for receiving the debugging control instruction.
Debugging message written-out program operation unit 23 is connected with debugging control command reception unit 22, is used for operation Debugging message written-out program when receiving the debugging control instruction of outside input.
Master routine operation unit 25 is for the master routine of operating software.
The test macro of this embodiment also includes software test state storage unit 24, be connected with debugging control command reception unit 22, the test mode information that is used for storing software, and the instruction refresh test state that receives according to debugging control command reception unit 22.
For the test macro that is provided with software test state storage unit 24, Debugging message written-out program operation unit 23 also is connected with this software test state storage unit 24 respectively with master routine operation unit 25, moves corresponding program according to test mode wherein.
Debugging message output unit 26 is connected with Debugging message written-out program operation unit 26 and master routine operation unit 25, is used for the Debugging message of output master routine.
Debugging message receiving element 27 is connected with Debugging message output unit 26, is used for receiving Debugging message.For the test macro that is applied in the television terminals such as televisor, set-top box, this Debugging message receiving element 27 can be in serial ports, ethernet port and the display screen at least a, select as required different reception approach to receive Debugging message to make things convenient for the user.
The test macro of said structure can be according to the flow performing software test of Fig. 1 method for testing software embodiment.
Above embodiment is only in order to illustrating technical scheme of the present invention, but not limits it; Although with reference to previous embodiment the present invention is had been described in detail, for the person of ordinary skill of the art, still can make amendment to the technical scheme that previous embodiment is put down in writing, perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of the present invention's technical scheme required for protection.

Claims (10)

1. a method for testing software is characterized in that, described method comprises the steps:
A, the Debugging message written-out program is set in software;
The debugging control instruction of b, the outside input of reception;
C, according to debugging control Instruction Selection operation Debugging message written-out program, and after this program of operation the corresponding Debugging message of output.
2. method of testing according to claim 1 is characterized in that, described debugging control instruction comprises Debugging message appointment outgoing position, in described step c, exports Debugging message to Debugging message and specifies outgoing position.
3. method of testing according to claim 2 is characterized in that, it is at least a in serial ports, ethernet port and the display screen that described Debugging message is specified outgoing position.
4. each described method of testing in 3 according to claim 1 is characterized in that, in described step c, at first according to the debugging control instruction update software test mode table of outside input; Then, select operation Debugging message written-out program according to the software test state table.
5. method of testing according to claim 1 is characterized in that, described debugging control instruction is by any input in serial ports, socket port, telepilot or the panel button.
6. a software testing system is characterized in that, this system comprises:
Master routine operation unit is for the master routine of operating software;
Debugging control instruction input block is used for the instruction of input debugging control;
Debugging control command reception unit is used for receiving the debugging control instruction;
Debugging message written-out program operation unit is connected with debugging control command reception unit, is used for operation Debugging message written-out program when receiving the debugging control instruction of outside input;
The Debugging message output unit is connected with Debugging message written-out program operation unit and master routine operation unit, is used for the output Debugging message.
7. test macro according to claim 6 is characterized in that, described system also comprises:
The software test state storage unit is for the test mode information of storing software; And
The Debugging message receiving element is connected with the Debugging message output unit, is used for receiving Debugging message.
8. test macro according to claim 7 is characterized in that, described Debugging message receiving element is at least a in serial ports, ethernet port and the display screen.
9. each described test macro in 8 according to claim 6 is characterized in that, described debugging control instruction input block is any in serial ports, socket port, telepilot or the panel button.
10. a television terminal is characterized in that, is provided with each described software testing system in the claims 6 to 8 in the described television terminal.
CN201210459682.3A 2012-11-15 2012-11-15 Method for testing software, test macro and television terminal Active CN102915272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210459682.3A CN102915272B (en) 2012-11-15 2012-11-15 Method for testing software, test macro and television terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210459682.3A CN102915272B (en) 2012-11-15 2012-11-15 Method for testing software, test macro and television terminal

Publications (2)

Publication Number Publication Date
CN102915272A true CN102915272A (en) 2013-02-06
CN102915272B CN102915272B (en) 2016-04-20

Family

ID=47613645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210459682.3A Active CN102915272B (en) 2012-11-15 2012-11-15 Method for testing software, test macro and television terminal

Country Status (1)

Country Link
CN (1) CN102915272B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281557A (en) * 2013-05-21 2013-09-04 四川长虹电器股份有限公司 3D (three-dimensional) parameter real-time adjusting method for 3D television as well as device and 3D television
CN105187822A (en) * 2015-09-11 2015-12-23 深圳市九洲电器有限公司 Set-top box debugging method and system
CN105808434A (en) * 2016-03-07 2016-07-27 成都亿信标准认证集团有限公司 Software reliability test system
CN106033378A (en) * 2015-03-20 2016-10-19 昆达电脑科技(昆山)有限公司 Debug information storage method
WO2017080373A1 (en) * 2015-11-12 2017-05-18 丰唐物联技术(深圳)有限公司 Smart household appliance test method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753507A (en) * 2005-08-25 2006-03-29 深圳创维-Rgb电子有限公司 Adjusting and testing method of embedded type set top box
CN101174233A (en) * 2006-11-01 2008-05-07 凌阳科技股份有限公司 Test approach and system of embedded system
CN101478696A (en) * 2008-12-31 2009-07-08 深圳市同洲电子股份有限公司 Automatic test method, system and multimedia device for test cases
CN101646100A (en) * 2009-08-21 2010-02-10 深圳创维数字技术股份有限公司 Method and system for testing machine top box based on serial port communication
CN102123322A (en) * 2010-12-14 2011-07-13 中山大学 Home appliance test system and method
WO2012088107A1 (en) * 2010-12-23 2012-06-28 The Directv Group, Inc. System and method for performing an automated set top box test
CN102665094A (en) * 2012-03-27 2012-09-12 深圳市九洲电器有限公司 Test method of set-top box and test system thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753507A (en) * 2005-08-25 2006-03-29 深圳创维-Rgb电子有限公司 Adjusting and testing method of embedded type set top box
CN101174233A (en) * 2006-11-01 2008-05-07 凌阳科技股份有限公司 Test approach and system of embedded system
CN101478696A (en) * 2008-12-31 2009-07-08 深圳市同洲电子股份有限公司 Automatic test method, system and multimedia device for test cases
CN101646100A (en) * 2009-08-21 2010-02-10 深圳创维数字技术股份有限公司 Method and system for testing machine top box based on serial port communication
CN102123322A (en) * 2010-12-14 2011-07-13 中山大学 Home appliance test system and method
WO2012088107A1 (en) * 2010-12-23 2012-06-28 The Directv Group, Inc. System and method for performing an automated set top box test
CN102665094A (en) * 2012-03-27 2012-09-12 深圳市九洲电器有限公司 Test method of set-top box and test system thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281557A (en) * 2013-05-21 2013-09-04 四川长虹电器股份有限公司 3D (three-dimensional) parameter real-time adjusting method for 3D television as well as device and 3D television
CN106033378A (en) * 2015-03-20 2016-10-19 昆达电脑科技(昆山)有限公司 Debug information storage method
CN105187822A (en) * 2015-09-11 2015-12-23 深圳市九洲电器有限公司 Set-top box debugging method and system
CN105187822B (en) * 2015-09-11 2017-10-17 深圳市九洲电器有限公司 Set top box adjustment method and system
WO2017080373A1 (en) * 2015-11-12 2017-05-18 丰唐物联技术(深圳)有限公司 Smart household appliance test method and system
CN105808434A (en) * 2016-03-07 2016-07-27 成都亿信标准认证集团有限公司 Software reliability test system

Also Published As

Publication number Publication date
CN102915272B (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN102636704B (en) Testing method, device and system for electronic product
CN102597964B (en) A computing device for enabling concurrent testing
CN102915272B (en) Method for testing software, test macro and television terminal
CN104155972A (en) Mechanical engineering electronic controller parameter debugging method
CN102855188B (en) Based on the system pressure method of testing of Android
CN103823698A (en) Method and device for programming and starting FPGA target program and DSP target program
CN102665094A (en) Test method of set-top box and test system thereof
US11074157B2 (en) Splicing screen debugging method, splicing screen and splicing wall
TW201312340A (en) Handheld electronic device testing system and method
CN101566943A (en) Method, terminal and system for controlling terminal software functions
US20160147638A1 (en) Engineering tool, program editing device, and program editing system
CN111782513B (en) Satellite ground universal automatic test method based on DLL
CN105786695A (en) Data test method and system
CN102024504A (en) Logic test method and device suitable for reactor protection system
CN107665167B (en) Program debugging method and device and program development equipment
CN104008041A (en) Terminal application test method and device
CN104156305A (en) Application program testing method and device
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN104780360A (en) Set top box debugging method and set top box debugging system
CN104216823A (en) Automatic testing method and master control device
CN102880549A (en) Method and device for production test
CN103049374A (en) Automatic testing method and device
CN110737985A (en) Running data verification method and device, computer equipment and readable storage medium
JP2013181833A (en) Test device and test module
JP2013181834A (en) Test device and test module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant