CN105872534B - terminal test method and device - Google Patents

terminal test method and device Download PDF

Info

Publication number
CN105872534B
CN105872534B CN201610211184.5A CN201610211184A CN105872534B CN 105872534 B CN105872534 B CN 105872534B CN 201610211184 A CN201610211184 A CN 201610211184A CN 105872534 B CN105872534 B CN 105872534B
Authority
CN
China
Prior art keywords
terminal
test
key assignments
coordinate value
preset
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.)
Active
Application number
CN201610211184.5A
Other languages
Chinese (zh)
Other versions
CN105872534A (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.)
TCL Overseas Electronics Huizhou Ltd
Original Assignee
TCL Overseas Electronics Huizhou 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 TCL Overseas Electronics Huizhou Ltd filed Critical TCL Overseas Electronics Huizhou Ltd
Priority to CN201610211184.5A priority Critical patent/CN105872534B/en
Publication of CN105872534A publication Critical patent/CN105872534A/en
Application granted granted Critical
Publication of CN105872534B publication Critical patent/CN105872534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Abstract

The invention discloses a kind of terminal test methods, including step:When each key assignments sent according to the test terminal received executes corresponding response operation, judge whether the response operation is completed according to system cursor change in location;When every secondary response operates completion, response message is sent to the test terminal, so that the test terminal when receiving the response message every time, next key assignments is sent to the measured terminal according to preset order, until preset each key assignments is sent to the measured terminal.The invention also discloses a kind of terminal test devices.The present invention improves testing efficiency.

Description

Terminal test method and device
Technical field
The present invention relates to terminal control technical field more particularly to a kind of terminal test method and devices.
Background technology
In the prior art, test terminal to measured terminal when carrying out pressure test, such as by redhat tools to TV When carrying out pressure test, the corresponding key assignments of test instruction is typically sent to measured terminal every preset time from test terminal (test instructs the key assignment combination by multiple arranged in sequence), measured terminal only handles accordingly according to the key assignments received every time, But no normal direction test terminal makes feedback, namely test terminal can not know the disposition of measured terminal during the test, Even if measured terminal will be waited for after preset time if completing test terminal to the response of some key assignments processing just to measured terminal The next key assignments for sending test instruction causes time waste, relatively low so as to cause testing efficiency.
Invention content
It is a primary object of the present invention to propose a kind of terminal test method and device, it is intended to solve in the prior art right Testing efficiency relatively low technical problem when measured terminal is tested.
To achieve the above object, the present invention provides a kind of terminal test method, is applied to measured terminal, the terminal test Method includes the following steps:
When each key assignments sent according to the test terminal received executes corresponding response operation, according to system cursor Change in location judges whether the response operation is completed;And
When every secondary response operates completion, response message is sent to the test terminal, so that the test terminal is every It is secondary when receiving the response message, next key assignments is sent to the measured terminal, until will be preset according to preset order Each key assignments is sent to the measured terminal.
Preferably, described to judge that the step of whether the response operation is completed includes according to system cursor change in location:
Measured terminal described in timing acquisition executes the coordinate value of the cursor generated when the response operation and preservation;
When the coordinate value for the cursor that any time obtains and the inconsistent last coordinate value preserved, by coordinate value continuous phase Same number is reset, and when subsequently there is coordinate value consistent with the upper coordinate value once preserved, adds up the coordinate value continuous phase Same number;
Judge whether the consecutive identical number of the coordinate value reaches preset times, wherein
When the consecutive identical number of the coordinate value reaches the preset times, judge that the response operation is completed;
When the consecutive identical number of the coordinate value is not up to the preset times, judge that the response operation is not complete At.
Preferably, described when every secondary response operates completion, response message is sent to the test terminal, for the survey Terminal is tried when receiving the response message every time, next key assignments is sent to the step of the measured terminal according to preset order Suddenly include:
When every secondary response operates completion, preset characters string is sent to the test terminal, so that the test terminal exists When detecting that the preset characters string received is consistent with the character string that prestores, next key assignments is sent to institute according to the preset order State measured terminal.
In addition, to achieve the above object, the present invention also proposes a kind of terminal test method, it is applied to test terminal, it is described Terminal test method includes the following steps:
After sending key assignments to measured terminal every time, the response message of the measured terminal feedback is received in preset duration When, next key assignments is sent to the measured terminal according to preset order, until preset each key assignments is sent to the quilt Survey terminal;And
When not receiving the response message of the measured terminal feedback in preset duration, alarm is sent out to remind test to use Family.
Preferably, when the response message for receiving the measured terminal feedback in preset duration, according to default suitable Sequence sends next key assignments to the step of measured terminal and includes:
When receiving the response message of the measured terminal feedback in preset duration, verifies the response received and disappear Whether breath is consistent with preset response message;
When the response message received is consistent with preset response message, sent according to the preset order next A key assignments is to the measured terminal.
In addition, to achieve the above object, the present invention also proposes a kind of terminal test device, it is set to measured terminal side, institute Stating terminal test device includes:
Monitoring modular, for executing corresponding response operation in each key assignments sent according to the test terminal received When, judge whether the response operation is completed according to system cursor change in location;
Sending module, for when every secondary response operates completion, sending response message to the test terminal, for described Terminal is tested when receiving the response message every time, next key assignments is sent to the measured terminal according to preset order, Until preset each key assignments is sent to the measured terminal.
Preferably, the monitoring modular includes:
Acquiring unit executes the coordinate value of the cursor generated when the response operation for measured terminal described in timing acquisition And it preserves;
When processing unit, the coordinate value of the cursor for being obtained when any time and the inconsistent last coordinate value preserved, The consecutive identical number of coordinate value is reset, and when subsequently there is coordinate value consistent with the upper coordinate value once preserved, adds up institute State the consecutive identical number of coordinate value;
Judging unit, for judging whether the consecutive identical number of the coordinate value reaches preset times, wherein when described When the consecutive identical number of coordinate value reaches the preset times, judge that the response operation is completed;When the coordinate value is continuous When identical number is not up to the preset times, judge that the response operation does not complete.
Preferably, the sending module is used for:
When every secondary response operates completion, preset characters string is sent to the test terminal, so that the test terminal exists When detecting that the preset characters string received is consistent with the character string that prestores, next key assignments is sent to institute according to the preset order State measured terminal.
Terminal test method proposed by the present invention and device, when the key that measured terminal is sent according to the test terminal received When value executes response operation, when monitoring that response operation is completed, sends response message and received to terminal, test terminal is tested To just sending next key assignments to measured terminal according to preset order when response message, without wait for preset one it is specific Next key assignments is retransmited after time improves testing efficiency to measured terminal to save the testing time.
Description of the drawings
Fig. 1 is the flow diagram of terminal test method first embodiment of the present invention;
Fig. 2 is the refinement flow for monitoring the response operation in terminal test method second embodiment of the present invention and whether completing Schematic diagram;
Fig. 3 is the flow diagram of terminal test method 3rd embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of terminal test device first embodiment of the present invention;
Fig. 5 is the refinement high-level schematic functional block diagram of monitoring modular in terminal test device second embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of terminal test method, and referring to Fig.1, Fig. 1 is terminal test method first embodiment of the present invention Flow diagram.
In the present embodiment, which is applied to measured terminal, includes the following steps:
Step S10, when each key assignments sent according to the test terminal received executes corresponding response operation, foundation System cursor change in location judges whether the response operation is completed;
Step S20 sends response message to the test terminal, for the test when every secondary response operates completion Terminal sends next key assignments to the measured terminal when receiving the response message every time, according to preset order, until Preset each key assignments is sent to the measured terminal.
Measured terminal establishes wireless communication connection with test terminal in the present invention.For example, test terminal has USB interface, Redrat equipment can be connected by USB interface, wherein redrat equipment has infrared emission head, can be with simulating infrared remote-controller The instruction sent out is to control the various equipment with infrared receiver function.Measured terminal is that the terminal with infrared receiver function is set It is standby, including but not limited to television set, smart mobile phone etc..Test terminal include but not limited to PC (personal computer, it is a People's computer), the terminal devices such as laptop.After testing terminal connection redrat equipment, test terminal passes through redrat The transmittable test of equipment is instructed to measured terminal.
In general, a test instruction includes the key assignments that several are combined by particular order, for example, the test of switching information source refers to Enable includes just three key assignments:The key assignments of the key assignments of information source key, the key assignments of direction down Arrow and OK keys, and according to the key of information source key The sequence of the key assignments of the key assignments-OK keys of value-direction down Arrow combines.
In the present embodiment, measured terminal includes a terminal test device, or connects the terminal by external mode and survey Trial assembly is set.When test terminal will be to a certain item functional test of measured terminal progress, after test terminal opens test pattern, test Terminal can send corresponding test instruction to measured terminal by redrat equipment.Wherein, test instruction includes multiple by pre- If the key assignments of sequence combination.Specifically, test terminal sends first key assignments of test instruction to measured terminal first.Work as quilt When survey terminal receives first key assignments of test instruction, corresponding response is executed according to first key assignments received and is grasped Make, terminal test device monitors whether response operation is completed in real time according to system cursor change in location.It is operated when monitoring to respond When completion, corresponding response message is sent to testing terminal.
When test terminal receives response message, namely test terminal knows that measured terminal has completed response operation, At this point, test terminal sends next key assignments namely second key of test instruction according to the preset order that the test instructs It is worth to measured terminal.When measured terminal receives second key assignments of the test instruction that test terminal is sent, according to this Two key assignments execute corresponding response operation, and terminal test device monitors response operation in real time according to system cursor change in location is No completion.When monitoring that response operation is completed, corresponding response message is sent to testing terminal.
When test terminal receives response message, test terminal sends next according to the preset order that the test instructs Key assignments namely the third key assignments of test instruction are to measured terminal.When measured terminal receives the survey that test terminal is sent When trying the third key assignments of instruction, corresponding response operation is executed according to the third key assignments, terminal test device is according to system Whether the cursor position variation operation of monitoring response in real time is completed.When monitoring that response operation is completed, sends corresponding response and disappear Breath extremely test terminal.
Method according to this, measured terminal when receiving the key assignments for the test instruction that test terminal is sent every time, according to key Value executes corresponding response operation, and whether terminal test device is completed according to the monitoring response operation of system cursor change in location.? When operation is completed per secondary response, corresponding response message is sent to terminal is tested, when test terminal receives response message every time When, test terminal sends next key assignments to measured terminal according to preset order, until each key assignments that the test is instructed is equal It is sent to measured terminal.
Further, in the present embodiment, when test terminal sends some key according to the preset order that the test instructs After value, if not receiving the response message of feedback, at this point, test terminal judges that exception occurs in test, test terminal terminates test, Alarm is sent out to prompt test user, or test terminal sends first key assignments of test instruction to measured terminal again, Restart to test.
Therefore, in the present embodiment, test terminal is after each key assignments for sending test instruction, as long as receiving sound Answer message that next key assignments of test instruction can be transmitted, without retransmiting test instruction after waiting for preset time Next key assignments improves testing efficiency to save the testing time.Also, when test terminal is sent in test instruction When not receiving response message after some key assignments, it is abnormal that test terminal judges that test occurs, at this point, test terminal is terminated and surveyed Examination, or restart to test, execute nothing so as to avoid the key assignments that subsequent supervention send test to instruct is not responded in measured terminal The test operation of effect, further improves testing efficiency.
Below by taking PC and television set as an example, the information source handoff functionality of television set is tested by PC, to terminal test of the present invention Method is described in detail.
PC sends first key assignments of the test instruction of switching information source to television set first, namely sends the key assignments of information source key To television set.When television set receives the key assignments of information source key, corresponding response operation, terminal are executed according to the key assignments of information source key Test device monitors whether response operation is completed in real time according to system cursor change in location.When monitoring that response operation is completed, Corresponding response message is sent to PC.
When PC receives response message, PC sends next key according to the preset order of the test instruction of switching information source The key assignments of value namely direction down Arrow is to television set.When television set receives the key assignments of the direction down Arrow of PC transmissions, according to The key assignments of direction down Arrow executes corresponding response operation, and terminal test device monitors sound in real time according to system cursor change in location It should operate and whether complete.When monitoring that response operation is completed, corresponding response message is sent to PC.
When PC receives response message again, PC sends next according to the preset order of the test instruction of switching information source The key assignments of key assignments namely OK keys is to television set.When television set receives the key assignments of OK keys, executed according to the key assignments of OK keys corresponding Response operation, terminal test device according to system cursor change in location monitor in real time response operate whether complete.When monitoring When response operation is completed, corresponding response message is sent to PC.When PC receives the response message of television set feedback again, due to Each key assignments of the test instruction of switching information source is sent to television set, and the information source handoff functionality of PC test television sets is tested At.
Scheme provided in this embodiment, when one of the test instruction that measured terminal is sent according to the test terminal received Key assignments executes response operation, when terminal test device monitors that response operation is completed, sends response message to terminal is tested, surveys Examination terminal just sends next key assignments of test instruction when receiving response message to measured terminal, without waiting in advance If retransmiting next key assignments of test instruction after the time to measured terminal, to save the testing time, test is improved Efficiency.
Further, as shown in Fig. 2, proposing terminal test method second embodiment of the present invention based on first embodiment.? In the present embodiment, the step S10 includes:
Step S11, measured terminal described in timing acquisition execute the coordinate value of the cursor generated when the response operation and guarantor It deposits;
Step S12, when the coordinate value for the cursor that any time obtains and the inconsistent last coordinate value preserved, by coordinate It is worth consecutive identical number to reset, and when subsequently there is coordinate value consistent with the upper coordinate value once preserved, adds up the coordinate It is worth consecutive identical number;
Step S13, judges whether the consecutive identical number of the coordinate value reaches preset times, wherein
When the consecutive identical number of the coordinate value reaches the preset times, judge that the response operation is completed;
When the consecutive identical number of the coordinate value is not up to the preset times, judge that the response operation is not complete At.
In the present embodiment, it is produced when the key assignments that measured terminal is sent according to the test terminal received executes response operation A raw cursor, the coordinate value of the terminal test device timing acquisition cursor, and the coordinate value got is preserved.Specifically, A preset time T is pre-set in the present embodiment, terminal test device obtains the coordinate value of a cursor every the preset time T And it preserves.For example, it is 100ms that the preset time T, which is arranged, then the coordinate value of a cursor and preservation are obtained every 100ms.Working as When the coordinate value of preceding preservation is consistent with the coordinate value that the last time preserves, then the consecutive identical number of coordinate value is updated, by coordinate value Consecutive identical number increases by 1.When the coordinate value currently preserved is inconsistent with the upper coordinate value once preserved, then by coordinate value Consecutive identical number is reset, and when subsequently there is coordinate value consistent with the upper coordinate value once preserved, then adds up the coordinate value Consecutive identical number.A preset times N is also pre-set in the present embodiment, for example, it is 5 that preset times N, which is arranged,.Terminal is surveyed Trial assembly, which is set, judges whether the consecutive identical number of coordinate value reaches the preset times N, when the consecutive identical number of coordinate value reaches When to the preset times N, judge that the response operation is completed;Conversely, when the consecutive identical number of coordinate value is not up to described When preset times N, judge that the response operation does not complete also.It will be appreciated by persons skilled in the art that the preset time T with And the concrete numerical value of preset times N is not limited to the numerical value in above-mentioned illustrative example, according to circumstances can flexibly be configured, herein not It is restricted.
Further, in order to save memory space, in another embodiment, when measured terminal is according to the survey received It tries to generate a cursor, the coordinate of the terminal test device timing acquisition cursor when key assignments that terminal is sent executes response operation Value.Specifically, the coordinate value of a cursor is obtained every preset time T.When getting the coordinate value of the cursor for the first time, protect Deposit the coordinate value got for the first time.When being spaced the coordinate value for obtaining cursor after preset time T for the second time, it will obtain for second To the coordinate value that is got with the first time of preservation of coordinate value be compared, judge the coordinate value got for the second time and preservation The coordinate value that gets of first time it is whether consistent, when the seat that the first time of the coordinate value and preservation that get for the second time gets When scale value is inconsistent, with the coordinate value that the first time of the coordinate value update preservation got for the second time gets, namely preserve Coordinate value is the coordinate value got for the second time, and the consecutive identical number of coordinate value is reset.When what is got for the second time When coordinate value is consistent with the coordinate value that the first time of preservation gets, then the coordinate value of preservation is not updated, to coordinate value continuous phase Same number is updated, and the consecutive identical number of coordinate value is increased by 1.Cursor is obtained for the third time after being spaced preset time T Coordinate value.
Method according to this, when getting the coordinate value of cursor each time, by the coordinate value of the coordinate value got and preservation It is compared, when the coordinate value of the coordinate value and preservation that get is inconsistent, with the seat of the coordinate value update preservation got Scale value, and the consecutive identical number of coordinate value is reset.When the coordinate value got is consistent with the coordinate value of preservation, to coordinate It is worth consecutive identical number to be updated.Terminal test device judges whether the consecutive identical number of coordinate value reaches preset times N judges that the response operation is completed when the consecutive identical number of coordinate value reaches the preset times N;Conversely, working as coordinate When being worth consecutive identical number and being not up to the preset times N, judge that the response operation does not complete also.
When the response for judging that measured terminal executes operates completion, corresponding response message is sent to terminal is tested, is tested Terminal sends next key assignments of test instruction to measured terminal when receiving response message.Judging measured terminal execution Response operation when not completing, do not send corresponding response message to terminal is tested, test terminal is not receiving response message When, next key assignments of test instruction is not sent to measured terminal, therefore avoid when measured terminal does not respond, test terminal The key assignments for continuing to send test instruction executes invalid test operation.
Further, in the present embodiment, the step S20 includes:
When every secondary response operates completion, preset characters string is sent to the test terminal, so that the test terminal exists When detecting that the preset characters string received is consistent with the character string that prestores, next key assignments is sent to institute according to the preset order State measured terminal.
In the present embodiment, it pre-sets the corresponding preset characters string of each key assignments of test instruction and stores as prestoring Character string.When the response that monitoring measured terminal executes every time, which operates, to be completed, the key-value pair that measured terminal is currently received is sent The preset characters string answered is to testing terminal.Terminal is tested when receiving preset characters string, detects the preset characters string received Whether preset characters string corresponding with currently transmitted key assignments is consistent.When the preset characters string that receives of detection with it is currently transmitted When the corresponding preset characters string of key assignments is consistent, then next key assignments is sent extremely according to the preset order of each key assignments of test instruction Measured terminal.When the preset characters string preset characters string corresponding with currently transmitted key assignments that detection receives is inconsistent, then Next key assignments of test instruction is not sent to measured terminal.
It will be appreciated by persons skilled in the art that unique string can also be pre-set and stored as the character that prestores String, the mark which completes as the corresponding response operation of each key assignments.Monitor that measured terminal executes when each Response operation when completing, send the unique string to testing terminal.Test terminal is receiving the unique string every time When, just next key assignments is sent to measured terminal according to the preset order of each key assignments of test instruction.
Scheme provided in this embodiment, terminal test device timing acquisition measured terminal execute the light generated when response operation Target coordinate value simultaneously preserves, and when the coordinate value that there are the preset times continuously preserved is consistent, then judges that response operation is completed, this When, corresponding response message is sent to terminal, test terminal is tested, and the next of test instruction is sent when receiving response message A key assignments does not send next key assignments of test instruction then when not receiving response message to measured terminal to measured terminal, Therefore it avoiding when measured terminal does not respond, the key assignments that test terminal sends test instruction executes invalid test operation, from And further improve testing efficiency.
The present invention further provides a kind of terminal test method, as shown in figure 3, Fig. 3 is terminal test method of the present invention the The flow diagram of three embodiments.
In the present embodiment, which is applied to test terminal, includes the following steps:
Step S30 after sending key assignments to measured terminal every time, receives the measured terminal feedback in preset duration When response message, next key assignments is sent to the measured terminal according to preset order, until preset each key assignments is sent To the measured terminal;
Step S40 sends out alarm to carry when not receiving the response message of the measured terminal feedback in preset duration Wake up test user.
Specifically, test terminal sends first key assignments for testing instruction to measured terminal first, and is sending the key assignments After start timing.Under normal circumstances, when measured terminal receives first key assignments of test instruction, according to what is received First key assignments executes corresponding response operation, and when response operation is completed, and feeds back corresponding response message to testing terminal.
In the present embodiment, it is previously provided with a preset duration, when the transmission which is separated by between each key assignments It is long.When the duration of timing is not up to preset duration when testing terminal and receiving response message, namely received in preset duration When to response message, preset order that test terminal instruct according to the test sends next key assignments namely the test instructs Second key assignments starts timing to measured terminal after sending second key assignments.When the duration of timing has reached default It is long, and test terminal and do not receive response message also, at this point, test terminal sends out warning information, to remind test user.
Method according to this, test terminal start timing, in preset duration after each key assignments for sending test instruction When not receiving the response message of measured terminal feedback, alarm is sent out to remind test user.Received in preset duration by When surveying the response message of terminal feedback, next key assignments is sent to measured terminal, until the test is instructed according to preset order Each key assignments, i.e., preset each key assignments is sent to measured terminal.
Further, in this embodiment the step S40 includes:
Step d, when receiving the response message of measured terminal feedback in preset duration, verify receive it is described Whether response message is consistent with preset response message;
Step e is sent out when the response message received is consistent with preset response message according to the preset order Send next key assignments to the measured terminal.
When test terminal receives the response message of measured terminal feedback every time, the sound that terminal will receive first is tested It answers message to be compared with preset response message, judges whether the response message received is consistent with preset response message. When the response message received is consistent with preset response message, then next key assignments is sent to tested end according to preset order End.Method according to this, until each key assignments that the test instructs is sent to measured terminal.Specifically, in the present embodiment, judge Whether the response message received unanimously can refer to the description of embodiment two in the present invention with preset response message, by advance The corresponding preset characters string of each key assignments of test instruction is set or to pre-set unique string corresponding as each key assignments The mark that response operation is completed is realized.
Scheme provided in this embodiment, test terminal start timing after each key assignments for sending test instruction, When not up to preset duration receives the response message of measured terminal feedback, next key assignments of test instruction is sent to tested Terminal, because without all waiting for one section of preset time to retransmit next key assignments of test instruction after sending key assignments every time To measured terminal testing efficiency is improved to save the testing time.
The present invention further provides a kind of terminal test device, as shown in figure 4, Fig. 4 is terminal test device of the present invention the The high-level schematic functional block diagram of one embodiment.
In the present embodiment, which is set to measured terminal side, including:
Monitoring modular 10, for executing corresponding response operation in each key assignments sent according to the test terminal received When, judge whether the response operation is completed according to system cursor change in location;
Sending module 20, for when every secondary response operates completion, sending response message to the test terminal, for institute Test terminal is stated when receiving the response message every time, next key assignments is sent to the tested end according to preset order End, until preset each key assignments is sent to the measured terminal.
Measured terminal establishes wireless communication connection with test terminal in the present invention.For example, test terminal has USB interface, Redrat equipment can be connected by USB interface, wherein redrat equipment has infrared emission head, can be with simulating infrared remote-controller The instruction sent out is to control the various equipment with infrared receiver function.Measured terminal is that the terminal with infrared receiver function is set It is standby, including but not limited to television set, smart mobile phone etc..Test terminal include but not limited to PC (personal computer, it is a People's computer), the terminal devices such as laptop.After testing terminal connection redrat equipment, test terminal passes through redrat The transmittable test of equipment is instructed to measured terminal.
In general, a test instruction includes the key assignments that several are combined by particular order, for example, the test of switching information source refers to Enable includes just three key assignments:The key assignments of the key assignments of information source key, the key assignments of direction down Arrow and OK keys, and according to the key of information source key The sequence of the key assignments of the key assignments-OK keys of value-direction down Arrow combines.
In the present embodiment, measured terminal includes a terminal test device, or connects the terminal by external mode and survey Trial assembly is set.When test terminal will be to a certain item functional test of measured terminal progress, after test terminal opens test pattern, test Terminal can send corresponding test instruction to measured terminal by redrat equipment.Wherein, test instruction includes multiple by pre- If the key assignments of sequence combination.Specifically, test terminal sends first key assignments of test instruction to measured terminal first.Work as quilt When survey terminal receives first key assignments of test instruction, corresponding response is executed according to first key assignments received and is grasped Make.The monitoring modular 10 of terminal test device monitors whether response operation is completed according to system cursor change in location in real time.Work as prison When surveying module 10 and monitoring that response operation is completed, sending module 20 sends corresponding response message to testing terminal.
When test terminal receives the response message of the transmission of sending module 20, test terminal instructs pre- according to the test If sequence sends second key assignments of next key assignments namely test instruction to measured terminal.When measured terminal receives survey When trying second key assignments of the test instruction that terminal is sent, corresponding response operation, monitoring are executed according to second key assignments Module 10 monitors whether response operation is completed according to system cursor change in location in real time.When monitoring modular 10 monitors response operation When completion, sending module 20 sends corresponding response message to testing terminal.
When test terminal receives the response message of the transmission of sending module 20, test terminal instructs pre- according to the test If sequence sends the third key assignments of next key assignments namely test instruction to measured terminal.When measured terminal receives survey When trying the third key assignments for the test instruction that terminal is sent, corresponding response operation, monitoring are executed according to the third key assignments Module 10 monitors whether response operation is completed according to system cursor change in location in real time.When monitoring modular 10 monitors response operation When completion, sending module 20 sends corresponding response message to testing terminal.
Method according to this, measured terminal when receiving the key assignments for the test instruction that test terminal is sent every time, according to key Value executes corresponding response operation, and monitoring modular 10 monitors whether response operation is completed according to system cursor change in location.Every When the monitoring response operation of secondary monitoring modular 10 is completed, sending module 20 sends corresponding response message to terminal is tested, and works as test When terminal receives the response message of the transmission of sending module 20 every time, test terminal sends next key assignments extremely according to preset order Measured terminal, until each key assignments that the test instructs is sent to measured terminal.
Further, in the present embodiment, when test terminal sends some key according to the preset order that the test instructs After value, if not receiving the response message of the transmission of sending module 20, at this point, test terminal judges that test appearance is abnormal, test is eventually End terminates test, sends out alarm to prompt test user, or test terminal to send first key assignments of test instruction again To measured terminal, restart to test.
Therefore, in the present embodiment, test terminal is after each key assignments for sending test instruction, as long as receiving hair Send module 20 send response message i.e. can be transmitted the test instruction next key assignments, without waiting preset time after again The next key assignments for sending test instruction improves testing efficiency to save the testing time.Also, when test terminal When not receiving the response message of the transmission of sending module 20 after some key assignments in transmission test instruction, test terminal judgement is surveyed Existing exception is tried out, at this point, test terminal terminates test, or restarts to test, not responded so as to avoid in measured terminal The key assignments that subsequent supervention send test to instruct executes invalid test operation, further improves testing efficiency.
Below by taking PC and television set as an example, which is set in television set, the letter of television set is tested by PC Terminal test device of the present invention is described in detail in source handoff functionality.
PC sends first key assignments of the test instruction of switching information source to television set first, namely sends the key assignments of information source key To television set.When television set receives the key assignments of information source key, corresponding response operation, monitoring are executed according to the key assignments of information source key Module 10 monitors whether response operation is completed according to system cursor change in location in real time.When monitoring modular 10 monitors response operation When completion, sending module 20 sends corresponding response message to PC.
When PC receives the response message of the transmission of sending module 20, PC instructs default suitable according to the test of switching information source Sequence sends the key assignments of next key assignments namely direction down Arrow to television set.When the direction that television set receives PC transmissions is downward When the key assignments of key, corresponding response operation is executed according to the key assignments of direction down Arrow, monitoring modular 10 is according to system cursor position Whether the variation operation of monitoring response in real time is completed.When monitoring that response operation is completed, sending module 20 sends corresponding response Message is to PC.
When PC receives the response message of television set feedback again, PC instructs default suitable according to the test of switching information source Sequence sends the key assignments of next key assignments namely OK keys to television set.When television set receives the key assignments of OK keys, according to OK keys Key assignments executes corresponding response operation, and whether monitoring modular 10 monitors response operation according to system cursor change in location in real time complete At.When monitoring modular 10 monitors that response operation is completed, sending module 20 sends corresponding response message to PC.When PC connects again When receiving the response message of television set feedback, since each key assignments of the test instruction of switching information source is sent to television set, PC The test for testing the information source handoff functionality of television set is completed.
Scheme provided in this embodiment, when one of the test instruction that measured terminal is sent according to the test terminal received When key assignments executes response operation, whether the monitoring response operation of monitoring modular 10 is completed, when response operation is completed, sending module 20 It sends response message and sends next key assignments of test instruction when receiving response message extremely to terminal, test terminal is tested Measured terminal, without wait for preset time after retransmit the test instruction next key assignments to measured terminal, to save The testing time has been saved, testing efficiency is improved.
Further, as shown in figure 5, proposing terminal test device second embodiment of the present invention based on first embodiment.? In the present embodiment, the monitoring modular 10 includes:
Acquiring unit 11 executes the coordinate of the cursor generated when the response operation for measured terminal described in timing acquisition It is worth and preserves;
Processing unit 12, the coordinate value that coordinate value and the last time of the cursor for being obtained when any time preserve are inconsistent When, the consecutive identical number of coordinate value is reset, and when subsequently there is coordinate value consistent with the upper coordinate value once preserved, is added up The consecutive identical number of the coordinate value;
Judging unit 13, for judging whether the consecutive identical number of the coordinate value reaches preset times, wherein work as institute When stating the consecutive identical number of coordinate value and reaching the preset times, judge that the response operation is completed;When the coordinate value connects When continuous identical number is not up to the preset times, judge that the response operation does not complete.
In the present embodiment, it is produced when the key assignments that measured terminal is sent according to the test terminal received executes response operation A raw cursor, the coordinate value of the 11 timing acquisition cursor of acquiring unit, and the coordinate value got is preserved.Specifically, originally A preset time T is pre-set in embodiment, acquiring unit 11 obtains the coordinate value of a cursor and guarantor every the preset time T It deposits.For example, it is 100ms that the preset time T, which is arranged, then acquiring unit 11 obtains the coordinate value of a cursor and guarantor every 100ms It deposits.When the coordinate value currently preserved is consistent with the upper coordinate value once preserved, then processing unit 12 updates coordinate value continuous phase The consecutive identical number of coordinate value is increased by 1 by same number.The coordinate value that currently preserves with the upper coordinate value once preserved not When consistent, then processing unit 12 resets the consecutive identical number of coordinate value, is subsequently there is coordinate value and the upper seat once preserved When scale value is consistent, then add up the consecutive identical number of the coordinate value.A preset times N, example are also pre-set in the present embodiment Such as, it is 5 that preset times N, which is arranged,.Judging unit 13 judges whether the consecutive identical number of coordinate value reaches the preset times N, when the consecutive identical number of coordinate value reaches the preset times N, judging unit 13 judges that the response operation is completed;Instead It, when the consecutive identical number of coordinate value is not up to the preset times N, judging unit 13 judges the response operation also not It completes.It will be appreciated by persons skilled in the art that the preset time T and the concrete numerical value of preset times N be not limited to it is above-mentioned Numerical value in illustrative example according to circumstances can be flexibly configured, and this is not restricted.
Further, in order to save memory space, in another embodiment, when measured terminal is according to the survey received It tries to generate a cursor, the coordinate value of the 11 timing acquisition cursor of acquiring unit when the key assignments that terminal is sent executes response operation. Specifically, acquiring unit 11 obtains the coordinate value of a cursor every preset time T.This is got when 11 first time of acquiring unit When the coordinate value of cursor, processing unit 12 preserves the coordinate value got for the first time.After acquiring unit 11 is spaced preset time T When the coordinate value of second of acquisition cursor, processing unit 12 gets the first time of the coordinate value got for the second time and preservation Coordinate value be compared, judge coordinate value that the first time of coordinate value and preservation got for the second time gets whether one Cause, when the coordinate value that the first time of the coordinate value and preservation that get for the second time gets is inconsistent, then processing unit 12 with The coordinate value that the first time that the coordinate value update got for the second time preserves gets, namely the coordinate value preserved is to obtain for the second time The coordinate value got, and the number clearing that coordinate value is consecutive identical.When the coordinate value got for the second time and the first of preservation When the secondary coordinate value got is consistent, then processing unit 12 does not update the coordinate value of preservation, the number consecutive identical to coordinate value It is updated, the consecutive identical number of coordinate value is increased by 1.Acquiring unit third time obtains cursor after being spaced preset time T Coordinate value.
Method according to this, when acquiring unit 11 gets the coordinate value of cursor each time, processing unit 12 will be got Coordinate value is compared with the coordinate value of preservation, when the coordinate value of the coordinate value and preservation that get is inconsistent, processing unit 12 coordinate values preserved with the coordinate value update got, and the consecutive identical number of coordinate value is reset.When the seat got When scale value is consistent with the coordinate value of preservation, the number consecutive identical to coordinate value of processing unit 12 is updated.Judging unit 13 Judge whether the consecutive identical number of coordinate value reaches preset times N, when the consecutive identical number of coordinate value reaches described default When times N, judging unit 13 judges that the response operation is completed;Conversely, when the consecutive identical number of coordinate value is not up to described When preset times N, judging unit 13 judges that the response operation does not complete also
When judging unit 13 judges that response operation is completed, sending module 20 sends corresponding response message to testing end Terminal is tested when receiving response message in end, next key assignments that transmission test instructs to measured terminal.In judging unit 13 When judging that response operation does not complete, sending module 20 does not send corresponding response message and is not being connect to terminal, test terminal is tested When receiving response message, next key assignments of test instruction is not sent to measured terminal, therefore avoid and do not rung in measured terminal At once, test terminal continue send test instruction key assignments execute invalid test operation.
Further, in the present embodiment, the sending module 20 is used for:
When every secondary response operates completion, preset characters string is sent to the test terminal, so that the test terminal exists When detecting that the preset characters string received is consistent with the character string that prestores, next key assignments is sent to institute according to the preset order State measured terminal.
In the present embodiment, it pre-sets the corresponding preset characters string of each key assignments of test instruction and stores as prestoring Character string.When each monitoring modular 10, which monitors the response that measured terminal executes, operates completion, the transmission of sending module 20 is tested eventually Hold the corresponding preset characters string of key assignments that is currently received to testing terminal.Terminal is tested when receiving preset characters string, inspection Whether consistent survey the preset characters string preset characters string corresponding with currently transmitted key assignments received.When detection receive it is pre- If character string preset characters string corresponding with currently transmitted key assignments is consistent, then according to the default of each key assignments of test instruction Sequence sends next key assignments to measured terminal.When the preset characters string that detection receives is corresponding with currently transmitted key assignments pre- If character string is consistent, then next key assignments of test instruction is not sent to measured terminal.
It will be appreciated by persons skilled in the art that unique string can also be pre-set and stored as the character that prestores String, the mark which completes as the corresponding response operation of each key assignments.It monitors to be tested when surveying module 10 every time When the response operation that terminal executes is completed, sending module 20 sends the unique string to testing terminal.Terminal is tested each When receiving the unique string, next key assignments just is sent to tested end according to the preset order of each key assignments of test instruction End.
Scheme provided in this embodiment, 11 timing acquisition of acquiring unit execute the coordinate value of the cursor generated when response operation And preserve, when the coordinate value that there are the preset times continuously preserved is consistent, then judging unit 13 judges that response operation is completed, Sending module 20 sends corresponding response message and is receiving response message to terminal, test terminal is tested when response operation is completed When send test instruction next key assignments to measured terminal, when not receiving response message then do not send test instruction under One key assignments is avoided to measured terminal when measured terminal does not respond, and the key assignments that test terminal sends test instruction is held The invalid test operation of row, to further improve testing efficiency.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (7)

1. a kind of terminal test method is applied to measured terminal, which is characterized in that the terminal test method includes following step Suddenly:
When each key assignments sent according to the test terminal received executes corresponding response operation, according to system cursor position Variation judges whether the response operation is completed;
It is described to judge that the step of whether the response operation is completed includes according to system cursor change in location:
Measured terminal described in timing acquisition executes the coordinate value of the cursor generated when the response operation and preservation;
It is when the coordinate value for the cursor that any time obtains and the inconsistent last coordinate value preserved, coordinate value is consecutive identical Number is reset, and when subsequently there is coordinate value consistent with the upper coordinate value once preserved, and it is consecutive identical to add up the coordinate value Number;
Judge whether the consecutive identical number of the coordinate value reaches preset times, wherein when the coordinate value is consecutive identical When number reaches the preset times, judges that the response operation is completed, when every secondary response operates completion, send response message It is sent down to the test terminal according to preset order so that the test terminal when receiving the response message every time One key assignments is to the measured terminal, until preset each key assignments is sent to the measured terminal.
2. terminal test method as described in claim 1, which is characterized in that described to judge institute according to system cursor change in location State that the step of whether response operation is completed includes:
When the consecutive identical number of the coordinate value is not up to the preset times, judge that the response operation does not complete.
3. terminal test method as claimed in claim 1 or 2, which is characterized in that described when every secondary response operates completion, hair Send response message to the test terminal, so that the test terminal when receiving the response message every time, according to default Sequence sends next key assignments to the step of measured terminal and includes:
When every secondary response operates completion, preset characters string is sent to the test terminal, so that the test terminal is detecting When consistent with the character string that prestores to the preset characters string received, next key assignments is sent to the quilt according to the preset order Survey terminal.
4. a kind of terminal test method is applied to test terminal, which is characterized in that the terminal test method includes following step Suddenly:
After sending key assignments to measured terminal every time, when receiving the response message of the measured terminal feedback in preset duration, Next key assignments is sent to the measured terminal according to preset order, until preset each key assignments is sent to the tested end End;And
When not receiving the response message of the measured terminal feedback in preset duration, alarm is sent out to remind test user.
5. terminal test method as claimed in claim 4, which is characterized in that described to receive described be tested in preset duration When the response message of terminal feedback, include according to the next key assignments of preset order transmission to the step of measured terminal:
When receiving the response message of measured terminal feedback in preset duration, verify the response message that receives with Whether preset response message is consistent;
When the response message received is consistent with preset response message, next key is sent according to the preset order It is worth to the measured terminal.
6. a kind of terminal test device is set to measured terminal side, which is characterized in that the terminal test device includes:
Monitoring modular, when the corresponding response of key assignments execution that the test terminal for being received in each basis is sent operates, according to Judge whether the response operation is completed according to system cursor change in location;
Acquiring unit executes coordinate value and the guarantor of the cursor generated when the response operation for measured terminal described in timing acquisition It deposits;
When processing unit, the coordinate value of the cursor for being obtained when any time and the inconsistent last coordinate value preserved, it will sit The consecutive identical number of scale value is reset, and when subsequently there is coordinate value consistent with the upper coordinate value once preserved, adds up the seat The consecutive identical number of scale value;
Judging unit, for judging whether the consecutive identical number of the coordinate value reaches preset times, wherein when the coordinate When being worth consecutive identical number and reaching the preset times, judge that the response operation is completed;When the coordinate value is consecutive identical Number when being not up to the preset times, judge that the response operation does not complete;
Sending module, for when every secondary response operates completion, sending response message to the test terminal, for the test Terminal sends next key assignments to the measured terminal when receiving the response message every time, according to preset order, until Preset each key assignments is sent to the measured terminal.
7. terminal test device as claimed in claim 6, which is characterized in that the sending module is used for:
When every secondary response operates completion, preset characters string is sent to the test terminal, so that the test terminal is detecting When consistent with the character string that prestores to the preset characters string received, next key assignments is sent to the quilt according to the preset order Survey terminal.
CN201610211184.5A 2016-04-05 2016-04-05 terminal test method and device Active CN105872534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610211184.5A CN105872534B (en) 2016-04-05 2016-04-05 terminal test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610211184.5A CN105872534B (en) 2016-04-05 2016-04-05 terminal test method and device

Publications (2)

Publication Number Publication Date
CN105872534A CN105872534A (en) 2016-08-17
CN105872534B true CN105872534B (en) 2018-11-02

Family

ID=56636409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610211184.5A Active CN105872534B (en) 2016-04-05 2016-04-05 terminal test method and device

Country Status (1)

Country Link
CN (1) CN105872534B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329400A (en) * 2017-06-02 2017-11-07 青岛海信电器股份有限公司 A kind of adaptive method of button value, apparatus and system
CN111464387B (en) * 2020-03-31 2022-02-25 南方电网科学研究院有限责任公司 Method, device, system and equipment for detecting security of SSL/TLS configuration of terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316212A (en) * 2010-07-06 2012-01-11 上海闻泰电子科技有限公司 Method for implementing automatic test of mobile phone
KR101262539B1 (en) * 2011-09-23 2013-05-08 알서포트 주식회사 Method for controlling usb terminal and apparatus for performing the same
CN103455403B (en) * 2013-08-26 2016-03-30 百度在线网络技术(北京)有限公司 Method of testing and device
CN103577290B (en) * 2013-11-01 2017-04-19 广东欧珀移动通信有限公司 Test script playback rhythm control method and system

Also Published As

Publication number Publication date
CN105872534A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN110944352B (en) Link failure detection method and terminal for sidelink
CN105678123B (en) A kind of equipment unlocking method and device
CN105915527B (en) It is a kind of to control the method and apparatus of mobile terminal, mobile terminal
WO2019137424A1 (en) Measurement method for reference signal, and user terminal
CN105549858B (en) A kind of display methods and user terminal
CN109803275B (en) Method, device and system for sending and receiving beam failure recovery request
CN104200644B (en) Equipment remote-control method, function terminal and intelligent terminal
CN104853020B (en) A kind of interactive testing method and its terminal
CN106790523B (en) A kind of information push method and server
CN108259277B (en) Mobile terminal communication information sharing method and system based on intelligent household equipment
US8504928B2 (en) Communication terminal, display control method, and computer-readable medium storing display control program
US20150365541A1 (en) Operation Method and Apparatus of Mobile Terminal
CN105872534B (en) terminal test method and device
CN106530887A (en) Simulated fire scene escape method and device
CN111065088B (en) Position acquisition method and device, storage medium and electronic equipment
CN110062462B (en) Beam failure recovery method and terminal
CN106331302B (en) A kind of method and apparatus adding contact person
KR101543236B1 (en) Method and apparatus for question displaying using mobile device
WO2016019695A1 (en) Voice interaction method and terminal
CN108538041A (en) Electronic equipment matching method and apply its electronic equipment
JP2012247825A (en) Information processor, information processing method, program, and information processing system
CN114089935B (en) Screen projection processing method, device, equipment and storage medium
CN110621079A (en) Random access resource selection method and terminal equipment
JP2010081021A (en) Information exchange system, processing allocation apparatus, information exchange method and program for information exchange
CN105578122A (en) Monitoring prompt method based on router, apparatus and electronic equipment thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant