CN102291595A - Testing method and device - Google Patents

Testing method and device Download PDF

Info

Publication number
CN102291595A
CN102291595A CN2011101908778A CN201110190877A CN102291595A CN 102291595 A CN102291595 A CN 102291595A CN 2011101908778 A CN2011101908778 A CN 2011101908778A CN 201110190877 A CN201110190877 A CN 201110190877A CN 102291595 A CN102291595 A CN 102291595A
Authority
CN
China
Prior art keywords
top box
test
testing
described set
interface
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
CN2011101908778A
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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN2011101908778A priority Critical patent/CN102291595A/en
Publication of CN102291595A publication Critical patent/CN102291595A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention discloses a testing method, which comprises the steps of generating a testing command according to the set top box testing request of a user; transmitting the testing command to a set top box, controlling the set top box to execute corresponding operation and obtaining an operating interface when the set top box executes the operation; and comparing the obtained operating interface of the set top box with a preset reference interface and determining the testing result of the set top box according to a comparison result. The embodiment of the invention additionally discloses a testing device. The testing method and the testing device disclosed by the invention have the advantages that the testing of the set top box can be completed intelligently and flexibly, accurate testing results can be obtained and the testing efficiency of the set top box can be improved.

Description

A kind of method of testing and device
Technical field
The present invention relates to the set top box testing technical field, relate in particular to a kind of method of testing and device.
Background technology
Along with the development of set-top box technique, set-top box functionality from strength to strength.In the production process of set-top box, each function of set-top box all needs to test.
At present, set-top box is substantially by manually testing, such as: if want the CVBS(Composite Video Broadcast Signal of test machine top box, the composite video broadcast singal) function, at first need manually to use set-top box remote controller with set box remote control to the CVBS output mode, and then use TV remote controller, the TV remote-control that set-top box is connected is to the CVBS output mode, whether the CVBS function of last artificial judgment set-top box is normal, if normally then test successfully, otherwise test crash.For another example: if want CVBS function, the HDMI(High Definition Multimedia Interface of test machine top box simultaneously, HDMI (High Definition Multimedia Interface)) and YPbPr(color difference components interface) function, need artificial set-top box remote controller and the TV remote controller used, carry out the switching of three kinds of output modes successively, whether each function of artificial judgment tests normally; Perhaps three functional interfaces of set-top box are connected three television sets simultaneously, manually use the remote controller of three television sets to test control.
The inventor finds that existing set top box testing scheme is by manually testing, and testing efficiency is lower, thereby influences the production efficiency of set-top box; In addition, because the general remote controller with television set of the remote controller of set-top box is not general, and the remote controller between the different television set is not general yet, thereby makes that the test process of set-top box is too loaded down with trivial details and easily make mistakes, and has influenced the accuracy of testing.
Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of method of testing and device are provided, and can finish the test of set-top box intelligent, neatly, obtains test result accurately, improves the testing efficiency of set-top box.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of method of testing, comprising:
According to user's set top box testing request, generate test instruction;
Send described test instruction to described set-top box, control described set-top box and carry out corresponding operation, and the operation interface when obtaining described set-top box and carrying out described operation;
With operation interface of described set-top box that obtains and comparing of presetting, determine the test result of described set-top box according to comparative result with reference to the interface.
Wherein, described set top box testing request according to the user generates before the test instruction, also comprises:
The time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of the various tests of memory machine top box in advance answered;
Wherein, each key-value pair time parameter of answering is: set-top box is to the response time of each key assignments.
Wherein, described set top box testing request according to the user generates test instruction, comprising:
According to user's set top box testing request, obtain the time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of test of being asked answered;
The time parameter that each key assignments, each key assignments corresponding codes and each key-value pair that obtain are answered encapsulates, and forms the test instruction of the test correspondence of being asked.
Wherein, describedly send described test instruction, control described set-top box and carry out corresponding operation to described set-top box, and the operation interface when obtaining described set-top box and carrying out described operation, comprising:
Send described test instruction to described set-top box, control described set-top box and carry out corresponding operation;
Obtain described set-top box and carry out the operation interface of each step of described operation.
Wherein, the operation interface of the described described set-top box that will obtain and comparing of presetting with reference to the interface, determine to comprise the test result of described set-top box according to comparative result:
Described set-top box is carried out the operation interface of each step and comparing one by one of presetting of described operation with reference to the interface;
If described set-top box carry out described operation each step operation interface all with described being complementary of presetting with reference to the interface, determine that described set top box testing is successfully; Otherwise, determine described set top box testing failure.
Wherein, after the described test result of determining described set-top box according to comparative result, also comprise: the test result of exporting described set-top box.
Correspondingly, the embodiment of the invention discloses a kind of testing apparatus, comprising:
The instruction generation module is used for the set top box testing request according to the user, generates test instruction;
Test module is used for sending the test instruction that described instruction generation module generates to described set-top box, and control described set-top box and carry out corresponding operation, and the operation interface when obtaining described set-top box and carrying out described operation;
Determination module is used for operation interface of described set-top box that described test module is obtained and comparing with reference to the interface of presetting, and determines the test result of described set-top box according to comparative result.
Wherein, described device also comprises:
Memory module is used for the time parameter that each required key assignments of the various tests of memory machine top box in advance, each key assignments corresponding codes and each key-value pair are answered;
Wherein, each key-value pair time parameter of answering is: set-top box is to the response time of each key assignments.
Wherein, described instruction generation module comprises:
First acquiring unit is used for the set top box testing request according to the user, obtains the time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of test of being asked answered;
Encapsulation unit, the time parameter that each key assignments, each key assignments corresponding codes and each key-value pair that is used for that described first acquiring unit is obtained answered encapsulates, and forms the test instruction of the test correspondence of being asked.
Wherein, described test module comprises:
Control unit is used for sending described test instruction to described set-top box, controls described set-top box and carries out corresponding operation;
Second acquisition unit is used to obtain the operation interface that described set-top box is carried out each step of described operation.
Wherein, described determination module comprises:
Comparing unit is used for described set-top box is carried out the operation interface of each step of described operation and comparing one by one with reference to the interface of presetting;
Determining unit, be used for when described comparing unit relatively obtain described set-top box carry out described operation each step operation interface all with described being complementary of presetting with reference to the interface, determine that described set top box testing is successfully; Otherwise, determine described set top box testing failure.
Wherein, described device also comprises: output module is used to export the test result of the described set-top box that described determination module determines.
Implement the embodiment of the invention, have following beneficial effect:
The embodiment of the invention is by the set top box testing request of testing apparatus according to the user, automatically generate test instruction, the controller top box is carried out corresponding operating and is responded this test instruction, operation interface when obtaining the set-top box executable operations is simultaneously determined the test result of described set-top box according to what preset with reference to the interface.Because whole test process is finished the influence of having avoided the manual testing to bring by testing apparatus; By sending the test that set-top box is finished in test instruction to set-top box, its test process intelligence, flexible, and acquisition test result accuracy height; In addition, the test of set-top box is directly finished by the test instruction control that generates, be need not to carry out loaded down with trivial details remote controller key combination operation, improved test accuracy, improved testing efficiency simultaneously.
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 structural representation of first embodiment of testing apparatus of the present invention;
Fig. 2 is the structural representation of second embodiment of testing apparatus of the present invention;
Fig. 3 is the structural representation of embodiment of the instruction generation module of testing apparatus of the present invention;
Fig. 4 is the structural representation of embodiment of the test module of testing apparatus of the present invention;
Fig. 5 is the testing apparatus of the present invention structural representation of the embodiment of cover half piece really;
Fig. 6 is the flow chart of first embodiment of method of testing of the present invention;
Fig. 7 is the flow chart of second embodiment of method of testing of the present 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 the every other embodiment that is obtained under the creative work prerequisite.
See also Fig. 1, be the structural representation of first embodiment of testing apparatus of the present invention; Described testing apparatus comprises:
Instruction generation module 10 is used for the set top box testing request according to the user, generates test instruction.
The described testing apparatus of the embodiment of the invention can be remote controller, described testing apparatus comprises parameter pattern is set, be provided with under the pattern in this parameter, the user can send the set top box testing request, described instruction generation module 10 generates corresponding test instruction after receiving user's set top box testing request; Such as: according to " reading USB flash disk " test request of user, described instruction generation module 10 generates the test instruction of " reading USB flash disk "; " test HDMI " test request according to the user generates " test HDMI " test instruction; During according to the test request of user " test HDMI+ factory reset ", generate the test instruction of " test HDMI-factory reset ", or the like.
Test module 20 is used for sending the test instruction that described instruction generation module 10 generates to described set-top box, and control described set-top box and carry out corresponding operation, and the operation interface when obtaining described set-top box and carrying out described operation.
In the specific implementation, such as: after described instruction generation module 10 generates " reading USB flash disk " test instruction, described test module 20 sends described test instruction to described set-top box, after described set-top box receives this test instruction, under the control of this test instruction its USB flash disk that is connected is carried out read operation, described test module 20 obtains the operation interface that described set-top box is carried out each step of USB flash disk read operation in real time.Be understandable that, described test module 20 also can obtain the operation interface that described set-top box is carried out each step of corresponding operation, but obtain any of this operation or the operation interface of a plurality of step correspondences, but similar analysis is not in such cases given unnecessary details at this.
Determination module 30 is used for operation interface of described set-top box that described test module 20 is obtained and comparing with reference to the interface of presetting, and determines the test result of described set-top box according to comparative result.
Described testing apparatus in advance the memory machine top box carry out various operations each step with reference to the interface, this is the standard operation interface of each step of the various operations of described set-top box correct execution with reference to the interface.Operation interface and comparing of presetting when the described set-top box that described determination module 30 obtains described test module 20 is carried out described operation with reference to the interface, if with being complementary (identical) of presetting, then determine this functional test success of described set-top box with reference to the interface; Otherwise, determine this functional test failure of described set-top box.Such as: described test module 20 gets access to the operation interface that described set-top box is carried out each step of USB flash disk read operation, described determination module 30 compares with reference to the interface each step of the operation interface of described each step and the USB flash disk read operation that presets, if the operation interface of described each operating procedure all with described being complementary of presetting with reference to the interface, then determine the functional test success of described set-top box " reading USB flash disk ", otherwise, the functional test failure of described set-top box " reading USB flash disk ".
See also Fig. 2, be the structural representation of second embodiment of testing apparatus of the present invention; Identical with a last embodiment, described testing apparatus comprises: instruction generation module 10, test module 20 and determination module 30.In the present embodiment, described testing apparatus further comprises:
Memory module 40 is used for the time parameter that each required key assignments of the various tests of memory machine top box in advance, each key assignments corresponding codes and each key-value pair are answered.
Wherein, each key-value pair time parameter of answering is: set-top box is to the response time of each key assignments or effective recognition time.In the specific implementation, described testing apparatus comprises the key mode of learning, under the key mode of learning, agreement, key assignments, key assignments corresponding codes and the time parameter of the remote controller that the various tests of described testing apparatus learning machine top box need be used (as: set-top box remote controller, TV remote-control, sound equipment power amplifier remote controller etc.), and be kept at automatically in the described memory module 40, the learning process of described testing apparatus under the key mode of learning is same as the prior art, does not give unnecessary details at this.
Output module 50 is used to export the test result of the described set-top box that described determination module 30 determines.
After described determination module 30 is determined the test result of described set-top box, the described test result of described output module 50 outputs, the way of output of described output module 50 can be determined according to actual needs, such as: can adopt voice mode output, or on television interface, adopt the mode of text prompt to export or the like.Be understandable that, when described determination module 30 determines that described set top box testing is failed, described output module 50 can also be exported the corresponding steps that causes described set top box testing failure, promptly output with described preset with reference to the corresponding operating procedure of the unmatched operation interface in interface, this kind situation can be carried out similar analysis, does not give unnecessary details at this.
50 pairs of test results of described output module are exported, and make the user need not to pay close attention to whole test process always and can know test result; When test crash, can also make the user can locate the operating procedure that causes test crash apace, improved testing efficiency, saved the human cost of test simultaneously.
The embodiment of the invention is finished test process, the influence of having avoided the manual testing to bring automatically by the set top box testing request of testing apparatus according to the user; By sending the test that set-top box is finished in test instruction to set-top box, its test process intelligence, flexible, and acquisition test result accuracy height; In addition, the test of set-top box is directly finished by the test instruction control that generates, be need not to carry out loaded down with trivial details remote controller key combination operation, improved test accuracy, improved testing efficiency simultaneously.
In order to be illustrated more clearly in the present invention, will each module in the testing apparatus of the present invention be described in detail below.
See also Fig. 3, be the structural representation of the embodiment of the instruction generation module of testing apparatus of the present invention; Described instruction generation module 10 comprises:
First acquiring unit 101 is used for the set top box testing request according to the user, obtains the time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of test of being asked answered.
In the specific implementation, such as: if user's set top box testing request is " reading USB flash disk " test request, according to traditional test mode, test at first needs to use the TV remote controller television set to be set to the USB flash disk pattern " to read USB flash disk ", this key assignments sequence is: " A4-A2-A3 ", the corresponding codes sequence is " K1-K2-K3 ", and the time corresponding parameter is: " T1-T2-T3 "; And then use set-top box remote controller to enter " USB flash disk interface ", the key assignments sequence is: " B1-B2-B3 ", the corresponding codes sequence is: " K4-K5-K6 ", the time corresponding parameter is: " T4-T5-T6 ".Because each key assignments, each key assignments corresponding codes and time parameter that " reading USB flash disk " test need be used are stored in the described memory module 40 after the described testing apparatus study, described first acquiring unit 101 calls corresponding key assignments, key assignments corresponding codes and time parameter successively according to the test of being asked from described memory module 40.
Encapsulation unit 102, the time parameter that each key assignments, each key assignments corresponding codes and each key-value pair that is used for that described first acquiring unit 101 is obtained answered encapsulates, and forms the test instruction of the test correspondence of being asked.
The time parameter that each key assignments, each key assignments corresponding codes and each key-value pair that 102 pairs of described first acquiring units 101 of described encapsulation unit call answered encapsulates, form test instruction, its form is: " K1+T1 "-" K2+T2 "-" K3+T3 "-" K3+ T3 "-" K4+T4 "-" K5+T5 ".Be understandable that only for giving an example, described test instruction can also be adopted extended formatting to above-mentioned form, but similar analysis under other situations is not given unnecessary details at this.
Need to prove, described memory module 40 also is used to store described encapsulation unit 102 formed each bar test instruction, when the user carries out same test once more, described instruction generation module 10 can directly extract corresponding test instruction from described memory module 40, need not to regenerate again, can further improve testing efficiency.In addition, described testing apparatus comprises query pattern, and under query pattern, the user can inquire the information such as key assignments, key assignments corresponding codes and time parameter that every test instruction comprises from described memory module 40.
See also Fig. 4, be the structural representation of the embodiment of the test module of testing apparatus of the present invention; Described test module 20 comprises:
Control unit 201 is used for sending described test instruction to described set-top box, controls described set-top box and carries out corresponding operation.
Described control unit 201 is sent to described set-top box with the test instruction that described instruction generation module 10 generates, and this test instruction is controlled described set-top box and carried out corresponding operation.Such as: described instruction generation module 10 generates the test instruction of " reading USB flash disk ", after described control unit 201 is sent to described set-top box with the test instruction of described " reading USB flash disk ", described set-top box is carried out the operation of " reading USB flash disk " under the control of this test instruction.
Second acquisition unit 202 is used to obtain the operation interface that obtains when described set-top box is carried out each operating procedure.
When described set-top box is carried out the operation of the test instruction correspondence that described control unit 201 sends, the operation interface that described second acquisition unit 202 obtains described set-top box when carrying out each step of described operation.Particularly, described second acquisition unit 202 can adopt the mode of shooting to obtain the operation interface of described set-top box, such as: when described set-top box is carried out the operation of " reading USB flash disk ", when described second acquisition unit 202 is carried out described set-top box each step of operation of " reading USB flash disk " on television set picture displayed all be filmed.Be understandable that described second acquisition unit 202 can also adopt other modes to obtain the operation interface of described set-top box, but when adopting other modes similar analysis, do not give unnecessary details at this.
Need to prove, the control of set-top box is at present carried out based on the infrared remote control mode, therefore described testing apparatus is followed infrared protocol to the test instruction that described set-top box sends, but be understandable that, the wi-fi(Wireless Fidelity), other wireless protocols such as bluetooth according to the difference of set-top box control mode, the agreement that the test instruction that described testing apparatus sends described set-top box is followed includes but not limited to:.
See also Fig. 5, be the testing apparatus of the present invention structural representation of the embodiment of cover half piece really; Described determination module 30 comprises:
Comparing unit 301, operation interface when being used for that described set-top box carried out each operating procedure and comparing one by one of presetting with reference to the interface.
It is described that what preset is the standard operation interface of each step of the various operations of described set-top box correct execution with reference to the interface, described can being stored in the described memory module 40 of presetting with reference to the interface, get access to the operation interface of each step of described set-top box executable operations when described test module 20 after, described comparing unit 301 directly extracts comparing one by one with reference to the interface of respective phases of operation correspondence from described memory module 40.
Determining unit 302, be used for when described comparing unit 301 relatively obtains described set-top box and carries out each operating procedure operation interface all with described being complementary of presetting with reference to the interface, determine described set top box testing success; Otherwise, determine described set top box testing failure.
When described comparing unit 301 relatively obtain described set-top box carry out described operation each step operation interface all with described being complementary of presetting with reference to the interface, described determining unit 302 is determined this functional test success of described set-top box; Otherwise, determine this functional test failure of described set-top box.Such as: described test module 20 gets access to the operation interface that described set-top box is carried out each step of USB flash disk read operation, described determining unit 302 compares with reference to the interface one by one with each step of the operation interface of described each step and the USB flash disk read operation that presets, if the operation interface of described each step all with described being complementary of presetting with reference to the interface, then determine the functional test success of described set-top box " reading USB flash disk ", otherwise, the functional test failure of described set-top box " reading USB flash disk ".
The embodiment of the invention is finished test process, the influence of having avoided the manual testing to bring automatically by the set top box testing request of testing apparatus according to the user; By sending the test that set-top box is finished in test instruction to set-top box, its test process intelligence, flexible, and acquisition test result accuracy height; In addition, the test of set-top box is directly finished by the test instruction control that generates, be need not to carry out loaded down with trivial details remote controller key combination operation, improved test accuracy, improved testing efficiency simultaneously.
In order to be illustrated more clearly in the present invention, will describe in detail to the performed method of testing of testing apparatus of the present invention below.
See also Fig. 6, be the flow chart of first embodiment of method of testing of the present invention; Described method comprises:
S101 according to user's set top box testing request, generates test instruction.
The described testing apparatus of the embodiment of the invention can be remote controller, and described testing apparatus comprises parameter pattern is set, and is provided with under the pattern in this parameter, and the user can send the set top box testing request.Among the step S101, receive user's set top box testing request after, described testing apparatus generates corresponding test instruction; Such as: according to " reading USB flash disk " test request of user, generate the test instruction of " reading USB flash disk "; " test HDMI " test request according to the user generates " test HDMI " test instruction; During according to the test request of user " test HDMI+ factory reset ", generate the test instruction of " test HDMI-factory reset ", or the like.
S102 sends described test instruction to described set-top box, and control described set-top box and carry out corresponding operation, and the operation interface when obtaining described set-top box and carrying out described operation.
In the specific implementation, such as: after step S101 generates " reading USB flash disk " test instruction, step S102 sends described test instruction to described set-top box, after described set-top box receives this test instruction, under the control of this test instruction its USB flash disk that is connected is carried out read operation, step S102 obtains the operation interface that described set-top box is carried out each step of USB flash disk read operation in real time.Be understandable that, step S102 also can obtain the operation interface that described set-top box is carried out each step of corresponding operation, but obtain any of this operation or the operation interface of a plurality of step correspondences, but similar analysis is not in such cases given unnecessary details at this.
S103 with operation interface of described set-top box that obtains and comparing with reference to the interface of presetting, determines the test result of described set-top box according to comparative result.
Described testing apparatus in advance the memory machine top box carry out various operations each step with reference to the interface, this is the standard operation interface of each step of the various operations of described set-top box correct execution with reference to the interface.Operation interface and comparing of presetting when the described set-top box that step S103 obtains step S102 is carried out described operation with reference to the interface, if with being complementary (identical) of presetting with reference to the interface, this functional test of then determining described set-top box is successfully; Otherwise, determine this functional test failure of described set-top box.Such as: step S102 gets access to the operation interface that described set-top box is carried out each step of USB flash disk read operation, step S103 compares with reference to the interface each step of the operation interface of described each step and the USB flash disk read operation that presets, if the operation interface of described each operating procedure all with described being complementary of presetting with reference to the interface, then determine the functional test success of described set-top box " reading USB flash disk ", otherwise, the functional test failure of described set-top box " reading USB flash disk ".
See also Fig. 7, be the flow chart of second embodiment of method of testing of the present invention; Described method comprises:
S201, the time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of the various tests of memory machine top box in advance answered.
Wherein, each key-value pair time parameter of answering is: set-top box is to the response time of each key assignments or effective recognition time.In the specific implementation, described testing apparatus comprises the key mode of learning, under the key mode of learning, remote controller (as: the set-top box remote controller that the various tests of described testing apparatus learning machine top box need be used, TV remote-control, sound equipment power amplifier remote controller etc.) agreement, key assignments, key assignments corresponding codes and time parameter, afterwards, described testing apparatus execution in step S201, automatically preserve each required key assignments of the various tests of set-top box that study obtains, the time parameter that each key assignments corresponding codes and each key-value pair are answered, the learning process of described testing apparatus under the key mode of learning is same as the prior art, does not give unnecessary details at this.
S202 according to user's set top box testing request, obtains the time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of test of being asked answered.
In the specific implementation, such as: if user's set top box testing request is " reading USB flash disk " test request, according to traditional test mode, test at first needs to use the TV remote controller television set to be set to the USB flash disk pattern " to read USB flash disk ", this key assignments sequence is: " A4-A2-A3 ", the corresponding codes sequence is " K1-K2-K3 ", and the time corresponding parameter is: " T1-T2-T3 "; And then use set-top box remote controller to enter " USB flash disk interface ", the key assignments sequence is: " B1-B2-B3 ", the corresponding codes sequence is: " K4-K5-K6 ", the time corresponding parameter is: " T4-T5-T6 ".Because each key assignments, each key assignments corresponding codes and time parameter that " reading USB flash disk " test need be used have been stored in the described testing apparatus, step S202 calls corresponding key assignments, key assignments corresponding codes and time parameter successively according to the test of being asked.
S203, the time parameter that each key assignments, each key assignments corresponding codes and each key-value pair that obtain are answered encapsulates, and forms the test instruction of the test correspondence of being asked.
The time parameter that each key assignments that step S203 calls step S202, each key assignments corresponding codes and each key-value pair are answered encapsulates, form test instruction, its form is: " K1+T1 "-" K2+T2 "-" K3+T3 "-" K3+ T3 "-" K4+T4 "-" K5+T5 ".Be understandable that only for giving an example, described test instruction can also be adopted extended formatting to above-mentioned form, but similar analysis under other situations is not given unnecessary details at this.
Need to prove, the test instruction that step S203 obtains can be stored in the described testing apparatus, when the user carries out same test once more, can directly extract corresponding test instruction from described testing apparatus, need not to re-execute again above-mentioned steps and generate, further improved testing efficiency.In addition, described testing apparatus comprises query pattern, and under query pattern, the user can inquire the information such as key assignments, key assignments corresponding codes and time parameter that every test instruction comprises.
In the present embodiment, step S202-step S203 is the concrete refinement flow process of the step S101 among the last embodiment.
S204 sends described test instruction to described set-top box, controls described set-top box and carries out corresponding operation.
Step S204 is sent to described set-top box with the test instruction that step S203 generates, and this test instruction is controlled described set-top box and carried out corresponding operation.Generate the test instruction of " reading USB flash disk " such as: step S203, after step S204 was sent to described set-top box with the test instruction of described " reading USB flash disk ", described set-top box was carried out the operation of " reading USB flash disk " under the control of this test instruction.
Need to prove, the control of set-top box is at present carried out based on the infrared remote control mode, therefore described testing apparatus is followed infrared protocol to the test instruction that described set-top box sends, but be understandable that, according to the difference of set-top box control mode, the agreement that the test instruction that described testing apparatus sends described set-top box is followed includes but not limited to: other wireless protocols such as wi-fi, bluetooth.
S205 obtains the operation interface that described set-top box is carried out each step of described operation.
During the operation of the test instruction correspondence that sends as described set-top box execution in step S204, the operation interface that step S205 obtains described set-top box when carrying out each step of described operation.Particularly, among the step S205, described testing apparatus can adopt the mode of shooting to obtain the operation interface of described set-top box, such as: when described set-top box is carried out the operation of " reading USB flash disk ", when described set-top box being carried out each step of operation of " reading USB flash disk " on television set picture displayed all be filmed.Be understandable that described testing apparatus can also adopt other modes to obtain the operation interface of described set-top box, but when adopting other modes similar analysis, do not give unnecessary details at this.
In the present embodiment, step S204-step S205 is the concrete refinement flow process of the step S102 among the last embodiment.
S206 carries out described set-top box the operation interface of each step of described operation and comparing one by one with reference to the interface of presetting.
It is described that what preset is the standard operation interface of each step of the various operations of described set-top box correct execution with reference to the interface, described can being stored in the described testing apparatus of presetting with reference to the interface, get access to the operation interface of each step of described set-top box executable operations as step S205 after, step S206 extracts comparing one by one with reference to the interface of respective phases of operation correspondence.
S207, judge described set-top box carry out described operation each step operation interface whether all with described being complementary of presetting with reference to the interface, if judged result is for being to change step S208 over to; Otherwise, change step S209 over to.
S208 determines described set top box testing success; Afterwards, change step S210 over to.
When step S207 judged result when being, show described set-top box carry out described operation each step operation interface all with described being complementary of presetting with reference to the interface, step S208 determines this functional test success of described set-top box; Such as: step S207 judge described set-top box carry out the USB flash disk read operation each step operation interface all with being complementary of each step of the USB flash disk read operation that presets with reference to the interface, step S208 determine described set-top box " reading USB flash disk " functional test successfully.
S209 determines described set top box testing failure.
When step S207 judged result for not the time, show when described set-top box is carried out described operation, occurred with described preset with reference to the unmatched operation interface in interface, step S209 then determines this functional test success of described set-top box, according to above-mentioned example, step S207 judged result is not for the time, and step S209 determines the functional test failure of described set-top box " reading USB flash disk ".
S210 exports the test result of described set-top box.
The test result of step S210 output step S208 or step S209, its way of output can determine according to actual needs, such as: can adopt voice mode output, or on television interface, adopt the mode of text prompt to export or the like.Be understandable that, when described determination module 30 determines that described set top box testing is failed, among the step S210, can also export the corresponding steps that causes described set top box testing failure, promptly output with described preset with reference to the corresponding operating procedure of the unmatched operation interface in interface, this kind situation can be carried out similar analysis, does not give unnecessary details at this.
The embodiment of the invention is finished test process, the influence of having avoided the manual testing to bring automatically by the set top box testing request of testing apparatus according to the user; By sending the test that set-top box is finished in test instruction to set-top box, its test process intelligence, flexible, and acquisition test result accuracy height; In addition, the test of set-top box is directly finished by the test instruction control that generates, be need not to carry out loaded down with trivial details remote controller key combination operation, improved test accuracy, improved testing efficiency simultaneously.The embodiment of the invention is exported test result, makes the user need not to pay close attention to whole test process always and can know test result; When test crash, can also make the user can locate the operating procedure that causes test crash apace, further improved testing efficiency, saved the human cost of test simultaneously.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed only is preferred embodiment of the present invention, certainly can not limit the present invention's interest field with this, one of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description, and, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.

Claims (12)

1. a method of testing is characterized in that, comprising:
According to user's set top box testing request, generate test instruction;
Send described test instruction to described set-top box, control described set-top box and carry out corresponding operation, and the operation interface when obtaining described set-top box and carrying out described operation;
With operation interface of described set-top box that obtains and comparing of presetting, determine the test result of described set-top box according to comparative result with reference to the interface.
2. method of testing as claimed in claim 1 is characterized in that, described set top box testing request according to the user generates before the test instruction, also comprises:
The time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of the various tests of memory machine top box in advance answered;
Wherein, each key-value pair time parameter of answering is: set-top box is to the response time of each key assignments.
3. method of testing as claimed in claim 2 is characterized in that, described set top box testing request according to the user generates test instruction, comprising:
According to user's set top box testing request, obtain the time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of test of being asked answered;
The time parameter that each key assignments, each key assignments corresponding codes and each key-value pair that obtain are answered encapsulates, and forms the test instruction of the test correspondence of being asked.
4. method of testing as claimed in claim 1 is characterized in that, describedly sends described test instruction to described set-top box, control described set-top box and carry out corresponding operation, and the operation interface when obtaining described set-top box and carrying out described operation, comprising:
Send described test instruction to described set-top box, control described set-top box and carry out corresponding operation;
Obtain described set-top box and carry out the operation interface of each step of described operation.
5. method of testing as claimed in claim 4 is characterized in that, the operation interface of the described described set-top box that will obtain and comparing with reference to the interface of presetting are determined to comprise the test result of described set-top box according to comparative result:
Described set-top box is carried out the operation interface of each step and comparing one by one of presetting of described operation with reference to the interface;
If described set-top box carry out described operation each step operation interface all with described being complementary of presetting with reference to the interface, determine that described set top box testing is successfully; Otherwise, determine described set top box testing failure.
6. as each described method of testing of claim 1-5, it is characterized in that, after the described test result of determining described set-top box according to comparative result, also comprise:
Export the test result of described set-top box.
7. a testing apparatus is characterized in that, comprising:
The instruction generation module is used for the set top box testing request according to the user, generates test instruction;
Test module is used for sending the test instruction that described instruction generation module generates to described set-top box, and control described set-top box and carry out corresponding operation, and the operation interface when obtaining described set-top box and carrying out described operation;
Determination module is used for operation interface of described set-top box that described test module is obtained and comparing with reference to the interface of presetting, and determines the test result of described set-top box according to comparative result.
8. testing apparatus as claimed in claim 7 is characterized in that, also comprises:
Memory module is used for the time parameter that each required key assignments of the various tests of memory machine top box in advance, each key assignments corresponding codes and each key-value pair are answered;
Wherein, each key-value pair time parameter of answering is: set-top box is to the response time of each key assignments.
9. testing apparatus as claimed in claim 8 is characterized in that, described instruction generation module comprises:
First acquiring unit is used for the set top box testing request according to the user, obtains the time parameter that required each key assignments, each key assignments corresponding codes and each key-value pair of test of being asked answered;
Encapsulation unit, the time parameter that each key assignments, each key assignments corresponding codes and each key-value pair that is used for that described first acquiring unit is obtained answered encapsulates, and forms the test instruction of the test correspondence of being asked.
10. testing apparatus as claimed in claim 7 is characterized in that, described test module comprises:
Control unit is used for sending described test instruction to described set-top box, controls described set-top box and carries out corresponding operation;
Second acquisition unit is used to obtain the operation interface that described set-top box is carried out each step of described operation.
11. testing apparatus as claimed in claim 10 is characterized in that, described determination module comprises:
Comparing unit is used for described set-top box is carried out the operation interface of each step of described operation and comparing one by one with reference to the interface of presetting;
Determining unit, be used for when described comparing unit relatively obtain described set-top box carry out described operation each step operation interface all with described being complementary of presetting with reference to the interface, determine that described set top box testing is successfully; Otherwise, determine described set top box testing failure.
12. as each described testing apparatus of claim 7-11, it is characterized in that, also comprise:
Output module is used to export the test result of the described set-top box that described determination module determines.
CN2011101908778A 2011-07-08 2011-07-08 Testing method and device Pending CN102291595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101908778A CN102291595A (en) 2011-07-08 2011-07-08 Testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101908778A CN102291595A (en) 2011-07-08 2011-07-08 Testing method and device

Publications (1)

Publication Number Publication Date
CN102291595A true CN102291595A (en) 2011-12-21

Family

ID=45337663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101908778A Pending CN102291595A (en) 2011-07-08 2011-07-08 Testing method and device

Country Status (1)

Country Link
CN (1) CN102291595A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833577A (en) * 2012-08-15 2012-12-19 深圳Tcl新技术有限公司 Method and device for automatically testing function of television
CN103596000A (en) * 2013-11-22 2014-02-19 乐视致新电子科技(天津)有限公司 Method and system for multi-interface switching test of smart television
CN103957405A (en) * 2014-04-24 2014-07-30 深圳创维数字技术股份有限公司 Set top box test method, device and system
CN103997641A (en) * 2014-05-23 2014-08-20 深圳创维数字技术股份有限公司 Interface detection device and method
CN104216823A (en) * 2013-06-03 2014-12-17 联想(北京)有限公司 Automatic testing method and master control device
CN104780407A (en) * 2015-01-09 2015-07-15 康佳集团股份有限公司 Automatic testing method and automatic testing system for set top box
CN105025292A (en) * 2015-07-06 2015-11-04 深圳Tcl数字技术有限公司 Television set and system and method for factory debugging
CN105100796A (en) * 2015-08-26 2015-11-25 深圳创维-Rgb电子有限公司 Television test method, device and system
CN105120259A (en) * 2015-08-24 2015-12-02 深圳Tcl新技术有限公司 Detection method and apparatus for digital television
CN105635730A (en) * 2015-12-24 2016-06-01 深圳创维数字技术有限公司 Set-top box testing method and user terminal
CN105635758A (en) * 2015-12-30 2016-06-01 深圳创维数字技术有限公司 Background management method for smart television desktop and server
CN105872777A (en) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 System performance obtaining method and device
CN106131544A (en) * 2016-08-29 2016-11-16 深圳创维数字技术有限公司 A kind of cec analog detection method and test system
CN106205604A (en) * 2016-07-05 2016-12-07 惠州市德赛西威汽车电子股份有限公司 A kind of application end speech recognition evaluating system and evaluating method
CN107390671A (en) * 2017-07-06 2017-11-24 四川九州电子科技股份有限公司 By the Auto-Test System and method of remote control device
CN108259895A (en) * 2017-12-18 2018-07-06 深圳市双翼科技股份有限公司 set-top box test method, system and terminal device
CN110071744A (en) * 2019-04-23 2019-07-30 深圳创维数字技术有限公司 Bluetooth equipment test method, device and storage medium
WO2021036599A1 (en) * 2019-08-27 2021-03-04 南京中兴新软件有限责任公司 Method and apparatus for testing set top box, set top box, and computer-readable storage medium
CN112929724A (en) * 2020-12-31 2021-06-08 海信视像科技股份有限公司 Display device, set top box and far-field pickup awakening control method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959710A (en) * 2005-11-04 2007-05-09 鸿富锦精密工业(深圳)有限公司 Automatic test system and method
GB2433666A (en) * 2005-12-21 2007-06-27 Ntl Group Ltd Set top box testing system
CN101106730A (en) * 2006-07-11 2008-01-16 百一电子股份有限公司 Signal testing method for video/audio receiving device
CN101282494A (en) * 2007-04-04 2008-10-08 中兴通讯股份有限公司 Method for testing receiving performance of digital television receiving terminal
TW200906172A (en) * 2007-07-25 2009-02-01 Top Victory Invest Ltd Testing system for display device and method thereof
CN101478696A (en) * 2008-12-31 2009-07-08 深圳市同洲电子股份有限公司 Automatic test method, system and multimedia device for test cases
CN101635864A (en) * 2009-08-21 2010-01-27 深圳创维数字技术股份有限公司 Method and system for remotely testing electronic device
CN101778307A (en) * 2010-02-05 2010-07-14 广东九联科技股份有限公司 Device for testing functions of set top box
CN101945303A (en) * 2010-07-21 2011-01-12 深圳创维数字技术股份有限公司 Intelligent test remote controller and using method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959710A (en) * 2005-11-04 2007-05-09 鸿富锦精密工业(深圳)有限公司 Automatic test system and method
GB2433666A (en) * 2005-12-21 2007-06-27 Ntl Group Ltd Set top box testing system
CN101106730A (en) * 2006-07-11 2008-01-16 百一电子股份有限公司 Signal testing method for video/audio receiving device
CN101282494A (en) * 2007-04-04 2008-10-08 中兴通讯股份有限公司 Method for testing receiving performance of digital television receiving terminal
TW200906172A (en) * 2007-07-25 2009-02-01 Top Victory Invest Ltd Testing system for display device and method thereof
CN101478696A (en) * 2008-12-31 2009-07-08 深圳市同洲电子股份有限公司 Automatic test method, system and multimedia device for test cases
CN101635864A (en) * 2009-08-21 2010-01-27 深圳创维数字技术股份有限公司 Method and system for remotely testing electronic device
CN101778307A (en) * 2010-02-05 2010-07-14 广东九联科技股份有限公司 Device for testing functions of set top box
CN101945303A (en) * 2010-07-21 2011-01-12 深圳创维数字技术股份有限公司 Intelligent test remote controller and using method thereof

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833577A (en) * 2012-08-15 2012-12-19 深圳Tcl新技术有限公司 Method and device for automatically testing function of television
CN104216823B (en) * 2013-06-03 2017-12-29 联想(北京)有限公司 A kind of automated testing method and master control set
CN104216823A (en) * 2013-06-03 2014-12-17 联想(北京)有限公司 Automatic testing method and master control device
CN103596000B (en) * 2013-11-22 2016-03-16 乐视致新电子科技(天津)有限公司 Intelligent television multiple solutions handoff testing method and system
CN103596000A (en) * 2013-11-22 2014-02-19 乐视致新电子科技(天津)有限公司 Method and system for multi-interface switching test of smart television
CN103957405A (en) * 2014-04-24 2014-07-30 深圳创维数字技术股份有限公司 Set top box test method, device and system
CN103957405B (en) * 2014-04-24 2016-04-27 深圳创维数字技术有限公司 A kind of set-top box test method, Apparatus and system
CN103997641A (en) * 2014-05-23 2014-08-20 深圳创维数字技术股份有限公司 Interface detection device and method
CN104780407A (en) * 2015-01-09 2015-07-15 康佳集团股份有限公司 Automatic testing method and automatic testing system for set top box
CN105025292A (en) * 2015-07-06 2015-11-04 深圳Tcl数字技术有限公司 Television set and system and method for factory debugging
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
CN105100796A (en) * 2015-08-26 2015-11-25 深圳创维-Rgb电子有限公司 Television test method, device and system
CN105635730B (en) * 2015-12-24 2018-07-03 深圳创维数字技术有限公司 A kind of set-top box test method and user terminal
CN105635730A (en) * 2015-12-24 2016-06-01 深圳创维数字技术有限公司 Set-top box testing method and user terminal
CN105635758A (en) * 2015-12-30 2016-06-01 深圳创维数字技术有限公司 Background management method for smart television desktop and server
CN105635758B (en) * 2015-12-30 2019-02-12 深圳创维数字技术有限公司 A kind of smart television desktop back-stage management method and server
CN105872777A (en) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 System performance obtaining method and device
CN106205604A (en) * 2016-07-05 2016-12-07 惠州市德赛西威汽车电子股份有限公司 A kind of application end speech recognition evaluating system and evaluating method
CN106205604B (en) * 2016-07-05 2020-07-07 惠州市德赛西威汽车电子股份有限公司 Application-side voice recognition evaluation system and method
CN106131544A (en) * 2016-08-29 2016-11-16 深圳创维数字技术有限公司 A kind of cec analog detection method and test system
WO2018041034A1 (en) * 2016-08-29 2018-03-08 深圳创维数字技术有限公司 Cec analogue test method and test system
CN106131544B (en) * 2016-08-29 2018-06-12 深圳创维数字技术有限公司 A kind of cec analog detection methods and test system
CN107390671A (en) * 2017-07-06 2017-11-24 四川九州电子科技股份有限公司 By the Auto-Test System and method of remote control device
CN108259895A (en) * 2017-12-18 2018-07-06 深圳市双翼科技股份有限公司 set-top box test method, system and terminal device
CN108259895B (en) * 2017-12-18 2020-05-19 深圳市双翼科技股份有限公司 Set top box testing method and system and terminal equipment
CN110071744A (en) * 2019-04-23 2019-07-30 深圳创维数字技术有限公司 Bluetooth equipment test method, device and storage medium
WO2021036599A1 (en) * 2019-08-27 2021-03-04 南京中兴新软件有限责任公司 Method and apparatus for testing set top box, set top box, and computer-readable storage medium
CN112929724A (en) * 2020-12-31 2021-06-08 海信视像科技股份有限公司 Display device, set top box and far-field pickup awakening control method

Similar Documents

Publication Publication Date Title
CN102291595A (en) Testing method and device
CN104978957A (en) Voice control method and system based on voiceprint identification
CN104486747A (en) Method and device for cross-terminal account login
CN104360736A (en) Gesture-based terminal control method and system
CN104918109A (en) Intelligent playing method and device
US10749704B2 (en) Intelligent terminal remote controller-based internet-of-things control system and control method
CN106920384A (en) The method and apparatus that intelligent electronic device is adapted to remote control
CN110687815B (en) Equipment control method, device, terminal equipment and storage medium
CN104978964A (en) Voice control instruction error correction method and system
CN103596000A (en) Method and system for multi-interface switching test of smart television
CN105024997A (en) Method and device for associating control terminal with controlled terminal
CN105554295A (en) Application program starting method and device
CN103139597A (en) Test method and digital television terminal
CN110931005B (en) Voice self-defining method and device for electrical equipment, storage medium and electrical equipment
CN105654710A (en) Addition method for infrared control of household appliances
CN105223851A (en) Based on intelligent socket system and the control method of accent recognition
CN104580705A (en) Terminal
CN109451095B (en) Remote controller detection method and device, storage medium and terminal
US10347120B2 (en) Display device, and integrated remote controller setting method and system for same
CN1964452A (en) A method for TV set identifying automatically extended function module
CN102833611B (en) The method of Set Top Box and control economize on electricity thereof
CN104333792A (en) Key-value pair judging method and television
CN101365085A (en) Method for television signal source detection and television set
CN103813194A (en) Information processing method and electronic device
CN105282604A (en) Television and intelligent information source selection method for television

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: 20111221