CN103853342A - Method of simulating user input, method of testing input method and electronic device - Google Patents
Method of simulating user input, method of testing input method and electronic device Download PDFInfo
- Publication number
- CN103853342A CN103853342A CN201210523658.1A CN201210523658A CN103853342A CN 103853342 A CN103853342 A CN 103853342A CN 201210523658 A CN201210523658 A CN 201210523658A CN 103853342 A CN103853342 A CN 103853342A
- Authority
- CN
- China
- Prior art keywords
- character
- input method
- input
- sending
- period
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention discloses a method of simulating a user input, a method of testing an input method and an electronic device. The method of simulating the user input comprises the steps of transmitting a first character to the input method, so as to receive the first character as an input character through the input method; after the first character is transmitted to the input method, transmitting a second character to the input method according to preset waiting time, so as to receive the second character as an input character through the input method, wherein the preset waiting time is obtained by key-press time interval data actually input by a training user; after the second character is transmitted to the input method, judging whether a character is needed to transmit, if the character is needed to transmit, repeating the step of transmitting the character to the input method according to the preset waiting time, otherwise, finishing transmitting the character. The method can more accurately test the performance of the input method by the above way.
Description
Technical field
The present invention relates to input method field, particularly relate to method, input method method of testing and the electronic installation of analog subscriber input.
Background technology
Input method refers to the coding method adopting for various symbols are inputted to computing machines or other equipment (as mobile phone).The performance of input method is by the input efficiency directly affecting on computing machine or other equipment.Therefore, need to test and think that constantly improving input method provides foundation input method performance.
And in input method test process, need analog subscriber input.The basic place of input method test when reasonably analog subscriber is inputted.At present in input method method of testing, all to send message by sendwait method (sending given key in the processed mode that waits for the arrival of news to program) to input method mostly, but the actual input of this method and user differs far away, more slowly or faster input speed, all cannot accurately simulate actual user's input environment, thereby cannot realize accurately input method performance test.
Summary of the invention
The technical matters that the present invention mainly solves is to provide method, input method method of testing and the electronic installation of analog subscriber input, can realize more exactly input method performance test.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of method of analog subscriber input is provided, comprises: send the first character to input method, so that described input method receives described the first character as input character; Sending after the first character to described input method, send the second character to described input method according to the default stand-by period, so that described input method receives described the second character as input character, the described default stand-by period is to obtain by the button time interval data of the actual input of training user; Sending after the second character to described input method, judging whether that character needs to send in addition; If also have character to need to send, repeat the described step that sends character according to the default stand-by period to described input method, otherwise, finish to send character.
Wherein, the described default stand-by period is any one in 15-200ms.
Wherein, described method also comprises: set in advance any one value between 60-100ms using as the described stand-by period.
Wherein, the described step that sends the first character to input method comprises: utilize the interface (sendkey method) of the analogue-key that script provides to send the first character to described input method.
Wherein, described each repetition sends the stand-by period of character to described input method, be a value of obtaining at random from 15-200ms.
For solving the problems of the technologies described above, another technical solution used in the present invention is: a kind of input method method of testing is provided, comprises: send the first character to input method, described input method is received described the first character as input character; Sending after the first character to described input method, send the second character to input method according to the default stand-by period, described input method is received described the second character as input character, when the described default stand-by period, obtain by the button time interval data of the actual input of training user; After described input method sends the second character, judge whether that character needs to send in addition; If also have character to need to send, repeat the described step that sends character according to the default stand-by period to described input method, otherwise, finish to send character; After sending described the first character, obtain the relevant test data of described input method to described the first character, and after sending described the second character, obtain the relevant test data of described input method to described the second character; According to the relevant test data of described the first character and described second character, obtain the test result of described input method.
Wherein, described after sending the first character, obtain the relevant test data of described input method to described the first character, and after sending the second character, the step of obtaining the relevant test data of described the second character comprises: after sending described the first character, obtain the response time of described input method to described the first character, and after sending the second character, obtain the response time of described input method to described the second character; Described according to the relevant test data of the first character and described the second character, the step that obtains the test result of described input method comprises: the response time to described the first character and described the second character sues for peace and averages, and obtains the response time of described input method.
Wherein, described after sending the first character, obtain the response time of described input method to described the first character, and after sending the second character, the step of obtaining the response time of described input method to described the second character comprises: by described input method procedure record label or by described input method procedure interface hook, after sending the first character, obtain the response time of described input method to described the first character, and after sending the second character, obtain the response time of described input method to described the second character.
Wherein, the described default stand-by period is any one in 15-200ms.
Wherein, described method also comprises: set in advance any one value between 60-100ms using as the described stand-by period.
Wherein, described each repetition sends the stand-by period of character to described input method, be a value of obtaining at random from 15-200ms.
For solving the problems of the technologies described above, the invention provides a kind of electronic installation, comprise the first sending module, the second sending module and judge module, wherein: described the first sending module is for sending the first character to input method, so that described input method receives described the first character as input character; Described the second sending module is for sending the second character according to the default stand-by period to described input method, so that described input method receives described the second character as input character, the described default stand-by period is to obtain by the time interval data of the actual input of training user; Described judge module is used for after described input method sends the second character, judge whether that character needs to send in addition, in the time also having character to send, notify described the second sending module to repeat the described step that sends character according to the default stand-by period to described input method, otherwise, notify described the second sending module to stop sending character.
Wherein, the described default stand-by period is any one in 15-200ms.
Wherein, described device also comprises module is set, for setting in advance the described stand-by period and preserving.
For solving the problems of the technologies described above, of the present invention also have a technical scheme to be: the first sending module, the second sending module, judge module, the first acquisition module and the second acquisition module, wherein: described the first sending module is for sending the first character to input method, so that described input method receives described the first character as input character; Described the second sending module is for sending the second character according to the default stand-by period to described input method, and the described default stand-by period is to obtain by the time interval data of the actual input of training user; Described judge module is used for after described input method sends the second character, judge whether that character needs to send in addition, in the time also having character to send, notify described the second sending module to repeat the described step that sends character according to the default stand-by period to described input method, otherwise, notify described the second sending module to stop sending character; Described the first acquisition module is for obtaining the relevant test data of described input method to described the first character and described the second character; Described the second acquisition module, for according to the relevant test data of described the first character and described second character, obtains the response time of described input method.
Wherein, described device also comprises module is set, for setting in advance the described stand-by period and preserving.
The invention has the beneficial effects as follows: be different from the situation of prior art, the present invention is that interval sends character to input method respectively according to the default stand-by period.And the default stand-by period is should obtain by the button time interval of the actual input of training user, therefore very approaching with the actual input of user interval, analog subscriber input more accurately, and the method do not wait for that input method procedure returns and input, make the analog subscriber input process actual input environment of being more close to the users.
On the other hand, in conjunction with the method for analog subscriber input of the present invention, the invention provides a kind of input method method of testing, in analog subscriber input process, constantly obtain the relevant test data of input method to each character, and then process the response time that obtains current input method this mode performance of test input method more accurately.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of an embodiment of method of analog subscriber input of the present invention;
Fig. 2 is the process flow diagram of an embodiment of input method method of testing of the present invention;
Fig. 3 is the structural representation of an embodiment of electronic installation of the present invention;
Fig. 4 is the structural representation of another embodiment of electronic installation of the present invention.
Embodiment
Consult Fig. 1, embodiment of method of analog subscriber input of the present invention comprises:
Step S101: send the first character to input method;
When needing analog subscriber input, open an application that can utilize input method to input, such as notepad or code editor (Notepad) or web browser (IE) etc.Prepare to need the character of input, such as alphabetical a, b, c, d, e, f etc., numeral 1,2,3,4,5 etc., or a string roman character I, II, III, IV etc.These characters can be kept in selected corpus in advance.Send the first character to input method, so that input method receives the first character as input character.Here when the first character of definition refers to analog subscriber input, the character sending to input method at first.When common analog input, what send to input method at first is the initial character of character string.
In practical application, the interface of the analogue-key that can provide by script (sendkey method) sends character to input method.Sendkey is a programmed statements in Visual Basic, and it can send to active window by one or more press key messages, just as inputted with keyboard.By by script autohotkey, call the interface transmission character of sendkey, thereby realize analog subscriber to input method input character.
Step S102: send the second character to input method according to the default stand-by period;
After input method sends the first character, send the second character to input method according to the default stand-by period.Here the default stand-by period is to obtain by the button time interval of the actual input of training user.The second character can be any one character that does not also send to input method in all characters of preparing to send to input method.But when analog subscriber input, be all successively to send character to input method successively according to putting in order of character in character string under normal circumstances.That is to say, if the character string sending is " 1,2,3,4 ", what send so at first (being the first above-mentioned character) is generally initial character " 1 ", and then the second character sending is " 2 ", the second character that repeats for the first time to send is " 3 ", the second character that repeats for the second time to send is " 4 ", the like.
In actual application, can obtain by statistical method training the button time interval scope of the actual input of user.Such as by the mode of normal distribution, collect the button time interval data that user utilizes input method to input, the button time interval scope of knowing the actual input of user by statistics is 15-200ms, further processes by normal distyribution function the button time interval scope that obtains the actual input of 95% above user and drops between 60-100ms.In the time that analog subscriber is inputted, take button time interval of the actual input of user that obtained as reference, setting the time interval that sends character is the described stand-by period.
Embodiment of the present invention, the button time interval that obtains the actual input of user by above method training is between 15-200ms.
Under normal circumstances, before analog subscriber input, set in advance the stand-by period of each transmission character and preserve.In the time arranging, the stand-by period that all transmission characters can be set is all a same value from randomly drawing between 15-200ms, is all 80ms, or is all 150ms etc. such as the stand-by period of all transmission characters is set.The stand-by period that each transmission character also can be set is all the value from randomly drawing between 15-200ms respectively.When arranging, transmission first character is randomly drawed a value with the stand-by period of second character and is preset, such as being 50ms, send the 3rd character and randomly draw again a value and preset with sending stand-by period of second character, such as being 180ms ... arrange by that analogy.
In concrete enforcement, because sendkey is a mode that wait is returned, character late will be pressed and must wait until that a character is handled just and can be carried out above.But this mode is run counter to the process of the actual input of user, therefore can not wait for and return and directly send the second character by realization is set, such as realizing in the following way the transmission of the second character:
Presetting the stand-by period is t, obtains the response time t of input method
1; More default stand-by period t and the response time t of input method
1size; If t
1<t, hangs up and waits for until default stand-by period t sends the second character to input method again; If t
1>=t, directly sends the second character in the default stand-by period to input method.Like this, do not wait for input method response and carry out analog subscriber input with regard to realization.
Step S103: judge whether that character needs to send in addition;
After completing above-mentioned S102 step, judge and need the character sending whether to be all sent completely, if also have character to need to send, return to step S102 and continue to send, otherwise, carry out step S104.So repeat, need the character sending to be all sent until all.
Step S104: finish to send character;
When judged result is for not having character to need to send, finish to send character.
By the elaboration of above-mentioned embodiment, be appreciated that the present invention is that interval sends character to input method respectively according to the default stand-by period.And the default stand-by period is should obtain by the button time interval of the actual input of training user, therefore very approaching with the actual input of user interval, thereby analog subscriber input more accurately, and the method do not wait for that input method procedure returns and input, can make the analog subscriber input process actual input environment of being more close to the users.
Refer to Fig. 2, embodiment of test mode of input method of the present invention comprises:
Step S201: send the first character to input method;
When input method test need to be carried out, open an application that can utilize input method to input, such as Word document or search engine etc.Prepare to need the character of input, need the character of input from input method testing material, to get, testing material can be the manual testing material of collecting or the testing material of robotization mobile phone.Such as language material is word " I will go to have had a meal ", needing the character of input can be the character string of " woyaoquchifanle ", or language material is English word " English ", needs so the character of input to be " English " character string etc.
First character here refers to any one character in all characters that need to input to input method, when the first character of definition mainly refers to input method test here, and the character sending to input method at first.Conventionally in the time of analog input, needing the character string initial character sending is the character sending to input method at first, and such as the character string " woyaoquchifanle " of needs input, the first character refers to " w ".
In practical application, can send character to input method by sendkey method.Sendkey is a programmed statements in Visual Basic, and it can send to active window by just one or more press key messages, just as inputted with keyboard.By by script autohotkey, call the interface transmission character of sendkey, thereby realize analog subscriber to input method input character.
Step S202: send the second character to input method according to the default stand-by period;
After input method sends the first character, send the second character to input method according to the default stand-by period.Here the default stand-by period is to obtain by the button time interval of the actual input of training user.The second character is to prepare to send but any one character in the character that also do not send to input method.But be all to send successively according to the sequencing of character string under normal circumstances.Such as the character string " woyaoquchifanle " that needs send, send the first character " w ", the second character sending so is for the first time " o " in " oyaoquchifanle ", the second character sending is for the second time " y ", the like.
In actual application, can obtain by statistical method training the button time interval scope of the actual input of user.Such as by the mode of normal distribution, collect the button time interval data that user utilizes input method to input, process the button time interval scope that obtains the actual input of user by normal distyribution function.In the time that analog subscriber is inputted, send the time interval of character take button time interval of the actual input of user that obtained as reference settings.
Embodiment of the present invention, the button time interval that obtains the actual input of user by above method training is between 15-200ms.
Under normal circumstances, before analog subscriber input, set in advance the stand-by period of each transmission character and preserve.In the time arranging, the stand-by period that all transmission characters can be set is all a same value from randomly drawing between 15-200ms, is all 60ms, or is all 120ms etc. such as the stand-by period of all transmission characters is set.The stand-by period that each transmission character also can be set is all a value from randomly drawing between 15-200ms respectively.When arranging, transmission first character is randomly drawed a value with the stand-by period of second character and is preset, such as being 100ms, send the 3rd character and randomly draw again a value and preset with sending stand-by period of second character, such as being 70ms ... arrange by that analogy.
In input method test process, adopt fixing same value to carry out analog input as the stand-by period, can obtain more high-precision test effect; And the stand-by period that sends character is all to carry out analog input from a value of randomly drawing between 15-200ms respectively at every turn, can obtain more stable test result.
In concrete enforcement, because sendkey is a mode that wait is returned, character late will be pressed and must wait until that a character is handled just and can be carried out above.But this mode is run counter to the process of the actual input of user, therefore not wait routine can be set and return and directly send the second character, such as sending in the following way the second character:
Presetting the stand-by period is t, obtains the response time t of input method
1; More default stand-by period t and the response time t of input method
1size; If t
1<t, hangs up and waits for until default stand-by period t sends the second character to input method again; If t
1>=t, directly sends the second character in the default stand-by period to input method.Like this, do not wait for input method response and carry out analog subscriber input with regard to realization.
Step S203: judge whether that character needs to send in addition;
After completing above-mentioned S202 step, judge and need the character sending whether to be sent completely, if also have character to need to send, return to step S202 and continue to send, otherwise, carry out step S204.Continue to repeat to send the process of character, conventionally be also to carry out according to the sequencing of character string, such as character string " woyaoquchifanle ", send the first character " w ", send for the first time the second character " o ", while repetition for the first time, send the second character " y ", while repetition for the second time, send the second character " a ", by that analogy, until all need send character be all sent.
Step S204: finish to send character;
When judged result is for not having character to need to send, finish to send character.
Step S205: obtain the relevant test data of input method to the first character and the second character;
In input process, constantly obtain the relevant test data of input method to each character, such as being the time point that input method responds each character, can be also the time that input method responds each character.In practical application, can recording label (at the inner log that beats of input method procedure) or by input method procedure interface hook, obtaining the response time of input method to each character by input method procedure.
Obtaining input method can be after each character sends to input method, just to obtain respectively to the relevant test data of each character, can be also to obtain after a string character string being ready for sending is all sent completely again.If obtain again after a string character being ready for sending is all sent completely, need the test data to obtaining long according to character string, separately process according to the relevant test data of single character.
Step S206: according to the relevant test data of the first character and second character, obtain the test result of input method;
Relevant test data by statistics input method to each character, and the test result of acquisition input method.Such as respond the time point of each character according to input method, obtain by calculating the difference that input method responds the time point of former and later two characters and be the response time of input method to previous character, so analogize and can obtain the response time of input method to each character, input method is got to average to the response time summation of each character, can obtain the average response time of input method.The average response time of this input method can be used as the reference of the response performance of evaluating input method.Certainly, also can directly from input method procedure, obtain the response time of input method to each character, and then input method is obtained to the average response time of input method to the sue for peace mode of averaging of the response time of each character.
By the elaboration of above-mentioned embodiment, input method method of testing of the present invention, in analog subscriber input process, constantly obtain the relevant test data of input method to each character, and then process the response time that obtains current input method this mode response performance of test input method more accurately.
Refer to Fig. 3, embodiment of electronic installation of the present invention comprises the first sending module 11, the second sending module 12 and judge module 13, wherein:
The first sending module 11 is for sending the first character, so that input method receives the first character as input character to input method;
When needing analog subscriber input, open an application that can utilize input method to input, such as notepad or code editor (Notepad) or web browser (IE) etc.Prepare to need the character of input, such as alphabetical h, k, h, d, d, s, h, h, k, s etc., symbol@, #, $, %, & etc., or a string roman character I, II, III, IV etc.These characters can be to obtain the corpus from preserving in advance, can be also the characters of random definition.The first sending module 11 sends the first character to input method, so that input method receives the first character as input character.First character here refers to any one character in all characters that need to input to input method.Here when the first character of definition mainly refers to analog input, the character sending to input method at first.Analog subscriber when input, the character string conventionally sending as required put in order first after send to input method, the character sending at first normally needs the initial character of the character string sending.
In practical application, can send character to input method by sendkey method.Sendkey is a programmed statements in Visual Basic, and it can send to active window by just one or more press key messages, just as inputted with keyboard.By by script autohotkey, call the interface transmission character of sendkey, send character thereby realize analog subscriber to input method.
The second sending module 12 sends the second character for the stand-by period according to default to input method, and the default stand-by period is to obtain by the time interval data of the actual input of training user;
The first sending module 11 is after input method sends the first character, and the second sending module 12 sends the second character according to the default stand-by period to input method.Here the default stand-by period is to obtain by the button time interval of the actual input of training user.The second character can be to prepare to send but any one character in the character that also do not send to input method.But under normal circumstances, according to sending character to input method after the elder generation that puts in order of character string.Here the second character is a definition, and in fact, except above-mentioned the first character having sent, the character that remaining needs send is all the second character.That is to say, the second sending module 12 sends except the first character that the first sending module 11 has sent, remaining all characters that need transmission, but be successively to send according to putting in order of character string successively.
In actual application, can obtain by statistical method training the button time interval scope of the actual input of user.Such as by the mode of normal distribution, collect the button time interval data that user utilizes input method to input, process the button time interval scope that obtains the actual input of user by normal distyribution function.In the time that analog subscriber is inputted, send the time interval of character take button time interval of the actual input of user that obtained as reference settings.
Embodiment of the present invention, the button time interval that obtains the actual input of user by above method training is between 15-200ms.
In concrete enforcement, because sendkey is a mode that wait is returned, character late will be pressed and must wait until that a character is handled just and can be carried out above.But this mode is run counter to the process of the actual input of user, therefore the second sending module 12 can send the second character in the following way:
Presetting the stand-by period is t, obtains the response time t of input method
1; More default stand-by period t and the response time t of input method
1size; If t
1<t, hangs up and waits for until default stand-by period t sends the second character to input method again; If t
1>=t, directly sends the second character in the default stand-by period to input method.Like this, do not wait for input method response and carry out analog subscriber input with regard to realization.
Please continue to refer to Fig. 3, in another embodiment of electronic installation of the present invention, also comprise module 14 is set, for setting in advance the stand-by period and preserving.
Under normal circumstances, before analog subscriber input, set in advance the stand-by period of each transmission the second character and preserve by module 14 is set.
In the time that analog subscriber is inputted, arrange module 14 take above-mentioned gained to button time interval of the actual input of user send time interval of character as reference settings.
In another embodiment, above-mentioned the first sending module 11 and the second sending module 12 can integrated same module on, for sending all characters that need to send to input method.
Refer to Fig. 4, in another embodiment of electronic installation of the present invention, comprise the first sending module 21, the second sending module 22, judge module 23, the first acquisition module 24 and the second acquisition module 25, wherein:
The first sending module 21 is for sending the first character, so that input method receives the first character as input character to input method;
When input method test need to be carried out, open an application that can utilize input method to input, such as Word document or search engine etc.Prepare to need the character of input, need the character of input from input method testing material, to get, testing material can be the manual testing material of collecting or the testing material of robotization mobile phone.Such as language material is word " I will go to have had a meal ", need the character of input to be the character string of " woyaoquchifanle ", or language material is English word " English ", need so the character of input to be " English " character string etc.First character here refers to the character sending to input method at first.Under normal circumstances, be all to send character according to the sequencing of character string to input method, such as character string " woyaoquchifanle ", that send to input method at first is " w ".
In practical application, can send character to input method by sendkey method.Sendkey is a programmed statements in Visual Basic, and it can send to active window by just one or more press key messages, just as inputted with keyboard.By by script autohotkey, call the interface transmission character of sendkey, send character to realize analog subscriber to input method.
The second sending module 22 sends the second character for the stand-by period according to default to input method, and the default stand-by period is to obtain by the time interval data of the actual input of training user;
The first sending module 21 is after input method sends the first character, and the second sending module 22 sends the second character according to the default stand-by period to input method.Here the default stand-by period is to obtain by the button time interval of the actual input of training user.The second character is to prepare to input method transmission but the character also not sending.Except the first character that the first sending module 21 sends, remaining all characters that need to send to input method all complete transmission by the second sending module 22.
Under normal circumstances, the second sending module 22 is through repeatedly repeating, and distributes successively and to send and need to send but the character that also do not send to input method according to the sequencing of character string according to default stand-by period.Such as the character string " woyaoquchifanle " of needs transmission, send the first character " w ", the second sending module 22 sends " o " in the second character " oyaoquchifanle " for the first time so, sends for the second time the second character " y ", sends for the third time " a " ... the like.
In actual application, can obtain by statistical method training the button time interval scope of the actual input of user.Such as by the mode of normal distribution, collect the button time interval data that user utilizes input method to input, process the button time interval scope that obtains the actual input of user by normal distyribution function.In the time that analog subscriber is inputted, send the time interval of character take button time interval of the actual input of user that obtained as reference settings.
Embodiment of the present invention, the button time interval that obtains the actual input of user by above method training is between 15-200ms.
In input method test process, adopt fixing same value to carry out analog input as the stand-by period, can obtain more high-precision measurement effect; And the stand-by period that sends character is all to carry out analog input from a value of randomly drawing between 15-200ms respectively at every turn, can obtain more stable test result.
In concrete enforcement, because sendkey is a mode that wait is returned, character late will be pressed and must wait until that a character is handled just and can be carried out above.But this mode is run counter to the process of the actual input of user, therefore the second sending module 22 can send the second character in the following way:
Presetting the stand-by period is t, obtains the response time t of input method
1; More default stand-by period t and the response time t of input method
1size; If t
1<t, hangs up and waits for until default stand-by period t sends the second character to input method again; If t
1>=t, directly sends the second character in the default stand-by period to input method.Like this, do not wait for input method response and carry out analog subscriber input with regard to realization.
Judge module 23 is for judging whether that character needs to send in addition, in the time also having character to send, the step of notifying the second sending module 22 to repeat to send to input method according to the default stand-by period the second character, otherwise, notify the second sending module 22 to stop sending character;
The first acquisition module 24 is for obtaining the relevant test data of input method to the first character and the second character;
In input process, the first acquisition module 24 constantly obtains the relevant test data of input method to each character, such as being the time point that input method responds each character, can be also the time that input method responds each character.In practical application, the first acquisition module 24 can recording label (at the inner log that beats of input method procedure) or by input method procedure interface hook, obtaining the response time of input method to each character by input method procedure.
It can be after each character sends to input method, just to obtain respectively to the relevant test data of each character that the first acquisition module 24 obtains input method, can be also to obtain after a string character string being ready for sending is all sent completely again.If obtain again after a string character being ready for sending is all sent completely, need the test data to obtaining long according to character string, separately process according to the relevant test data of single character.
The second acquisition module 25, for according to the relevant test data of the first character and second character, obtains the response time of input method.
The second acquisition module 25 is the relevant test data to each character by statistics input method, and obtains the response time of input method.Such as respond the time point of each character according to input method, the difference of obtaining the time point of every adjacent two characters of input method response by calculating is the response time of input method to two characters, so analogize and can obtain the response time of input method to each character, input method is got to average to the response time summation of each character, can obtain the average response time of an input method.The average response time of this input method can be for the reference of the response performance of evaluation input method.Certainly, also can directly from input method procedure, obtain the response time of input method to each character the second acquisition module 25 and then by input method is obtained to the average response time of input method to the sue for peace mode of averaging of the response time of each character.
Please continue to refer to Fig. 4, in another embodiment of electronic installation of the present invention, can also comprise module 26 is set, for setting in advance the stand-by period and preserving.
Under normal circumstances, before input method is tested, set in advance the stand-by period of each transmission character and preserve by module 26 is set.In input method test, arrange module 26 take above-mentioned gained to button time interval of the actual input of user as time interval of reference settings transmission character.
Module 26 is set in the time arranging, the stand-by period that all transmission characters can be set is all a same value from randomly drawing between 15-200ms, is all 120ms, or is all 160ms etc. such as the stand-by period of all transmission characters is set.The stand-by period that each transmission character also can be set is all a value from randomly drawing between 15-200ms respectively.When arranging, transmission first character is randomly drawed a value with the stand-by period of second character and is preset, such as being 50ms, send the 3rd character and randomly draw again a value and preset with sending stand-by period of second character, such as being 200ms ... arrange by that analogy.
By the elaboration of above-mentioned embodiment, be appreciated that the present invention is that interval sends character to input method respectively according to the default stand-by period.And the default stand-by period is should obtain by the button time interval of the actual input of training user, therefore very approaching with the actual input of user interval, analog subscriber input more accurately, and the method does not wait for that input method procedure returns and input, the actual input environment of being more close to the users.
On the other hand, in conjunction with the method for analog subscriber input of the present invention, the invention provides a kind of input method method of testing, in analog subscriber input process, constantly obtain the relevant test data of input method to each character, and then process the response time that obtains current input method this mode response performance of test input method more accurately.
In several embodiments provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiments described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The foregoing is only embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (16)
1. a method for analog subscriber input, is characterized in that, comprising:
Send the first character to input method, so that described input method receives described the first character as input character;
Sending after the first character to described input method, send the second character to described input method according to the default stand-by period, so that described input method receives described the second character as input character, the described default stand-by period is to obtain by the button time interval data of the actual input of training user;
Sending after the second character to described input method, judging whether that character needs to send in addition;
If also have character to need to send, repeat the described step that sends character according to the default stand-by period to described input method, otherwise, finish to send character.
2. method according to claim 1, is characterized in that, the described default stand-by period is any one in 15-200ms.
3. method according to claim 2, is characterized in that, described method also comprises: set in advance any one value between 60-100ms using as the described stand-by period.
4. method according to claim 1, is characterized in that, the described step that sends the first character to input method comprises: utilize the interface of the analogue-key that script provides to send the first character to described input method.
5. method according to claim 1, is characterized in that, described each repetition sends the stand-by period of character to described input method, be a value of obtaining at random from 15-200ms.
6. an input method method of testing, is characterized in that, comprising:
Send the first character to input method, described input method is received described the first character as input character;
Sending after the first character to described input method, send the second character to input method according to the default stand-by period, described input method is received described the second character as input character, when the described default stand-by period, obtain by the button time interval data of the actual input of training user;
After described input method sends the second character, judge whether that character needs to send in addition;
If also have character to need to send, repeat the described step that sends character according to the default stand-by period to described input method, otherwise, finish to send character;
After sending described the first character, obtain the relevant test data of described input method to described the first character, and after sending described the second character, obtain the relevant test data of described input method to described the second character;
According to the relevant test data of described the first character and described second character, obtain the test result of described input method.
7. method according to claim 6, is characterized in that,
Described after sending the first character, obtain the relevant test data of described input method to described the first character, and after sending the second character, the step of obtaining the relevant test data of described the second character comprises: after sending described the first character, obtain the response time of described input method to described the first character, and after sending the second character, obtain the response time of described input method to described the second character;
Described according to the relevant test data of the first character and described the second character, the step that obtains the test result of described input method comprises: the response time to described the first character and described the second character sues for peace and averages, and obtains the response time of described input method.
8. method according to claim 7, it is characterized in that, described after sending the first character, obtain the response time of described input method to described the first character, and after sending the second character, the step of obtaining the response time of described input method to described the second character comprises: by described input method procedure record label or by described input method procedure interface hook, after sending the first character, obtain the response time of described input method to described the first character, and after sending the second character, obtain the response time of described input method to described the second character.
9. method according to claim 6, is characterized in that, the described default stand-by period is any one in 15-200ms.
10. method according to claim 9, is characterized in that, described method also comprises: set in advance any one value between 60-100ms using as the described stand-by period.
11. methods according to claim 6, is characterized in that, described each repetition sends the stand-by period of character to described input method, be a value of obtaining at random from 15-200ms.
12. 1 kinds of electronic installations, is characterized in that, comprise the first sending module, the second sending module and judge module, wherein:
Described the first sending module is for sending the first character to input method, so that described input method receives described the first character as input character;
Described the second sending module is for sending the second character according to the default stand-by period to described input method, so that described input method receives described the second character as input character, the described default stand-by period is to obtain by the time interval data of the actual input of training user;
Described judge module is used for after described input method sends the second character, judge whether that character needs to send in addition, in the time also having character to send, notify described the second sending module to repeat the described step that sends character according to the default stand-by period to described input method, otherwise, notify described the second sending module to stop sending character.
13. devices according to claim 12, is characterized in that, the described default stand-by period is any one in 15-200ms.
14. devices according to claim 12, is characterized in that, described device also comprises module is set, for setting in advance the described stand-by period and preserving.
15. 1 kinds of electronic installations, is characterized in that, comprise, and the first sending module, the second sending module, judge module, the first acquisition module and the second acquisition module, wherein:
Described the first sending module is for sending the first character to input method, so that described input method receives described the first character as input character;
Described the second sending module is for sending the second character according to the default stand-by period to described input method, and the described default stand-by period is to obtain by the time interval data of the actual input of training user;
Described judge module is used for after described input method sends the second character, judge whether that character needs to send in addition, in the time also having character to send, notify described the second sending module to repeat the described step that sends character according to the default stand-by period to described input method, otherwise, notify described the second sending module to stop sending character;
Described the first acquisition module is for obtaining the relevant test data of described input method to described the first character and described the second character;
Described the second acquisition module, for according to the relevant test data of described the first character and described second character, obtains the response time of described input method.
16. devices according to claim 15, is characterized in that, described device also comprises module is set, for setting in advance the described stand-by period and preserving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210523658.1A CN103853342B (en) | 2012-12-07 | 2012-12-07 | Method, input method method of testing and the electronic installation of analog subscriber input |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210523658.1A CN103853342B (en) | 2012-12-07 | 2012-12-07 | Method, input method method of testing and the electronic installation of analog subscriber input |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103853342A true CN103853342A (en) | 2014-06-11 |
CN103853342B CN103853342B (en) | 2018-04-03 |
Family
ID=50861102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210523658.1A Active CN103853342B (en) | 2012-12-07 | 2012-12-07 | Method, input method method of testing and the electronic installation of analog subscriber input |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103853342B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107943319A (en) * | 2017-11-28 | 2018-04-20 | 科大讯飞股份有限公司 | A kind of method and device of analog input method operation |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369781A (en) * | 2001-02-12 | 2002-09-18 | 英业达股份有限公司 | Method for autoamtically testing characters inpt from keyboard |
CN101236523A (en) * | 2008-02-29 | 2008-08-06 | 深圳华为通信技术有限公司 | Input method test method and device |
CN101414242A (en) * | 2008-11-19 | 2009-04-22 | 北京飞天诚信科技有限公司 | Soft keyboard input device and method of multiple-input focus |
US20100328109A1 (en) * | 2008-01-31 | 2010-12-30 | Nobumitsu Taniguchi | Analog input device, analog input method, analog input program and computer readable recording medium recording the program |
CN102193644A (en) * | 2010-03-16 | 2011-09-21 | 鸿富锦精密工业(深圳)有限公司 | Computer system and method for simulating input of keyboard |
-
2012
- 2012-12-07 CN CN201210523658.1A patent/CN103853342B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369781A (en) * | 2001-02-12 | 2002-09-18 | 英业达股份有限公司 | Method for autoamtically testing characters inpt from keyboard |
US20100328109A1 (en) * | 2008-01-31 | 2010-12-30 | Nobumitsu Taniguchi | Analog input device, analog input method, analog input program and computer readable recording medium recording the program |
CN101236523A (en) * | 2008-02-29 | 2008-08-06 | 深圳华为通信技术有限公司 | Input method test method and device |
CN101414242A (en) * | 2008-11-19 | 2009-04-22 | 北京飞天诚信科技有限公司 | Soft keyboard input device and method of multiple-input focus |
CN102193644A (en) * | 2010-03-16 | 2011-09-21 | 鸿富锦精密工业(深圳)有限公司 | Computer system and method for simulating input of keyboard |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107943319A (en) * | 2017-11-28 | 2018-04-20 | 科大讯飞股份有限公司 | A kind of method and device of analog input method operation |
CN107943319B (en) * | 2017-11-28 | 2021-12-03 | 科大讯飞股份有限公司 | Method and device for simulating input method operation |
Also Published As
Publication number | Publication date |
---|---|
CN103853342B (en) | 2018-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106598868B (en) | Method and system a little are buried to the application program of client dynamic | |
CN101236523B (en) | Input method test method and device | |
CN101963844B (en) | Method and device for inputting form | |
CN104426944B (en) | Information feedback method, device and terminal | |
CN106899445A (en) | The method and system of page interface automatic test | |
CN105426511A (en) | Recitation assistance method and apparatus | |
CN103546877A (en) | Method and system for obtaining and inputting content code and mobile terminal | |
CN108039193A (en) | A kind of method and device for automatically generating physical examination report | |
CN103714115A (en) | Method and device for loading web page content | |
CN105740122A (en) | Method and system for monitoring mobile phone memory leak | |
CN104750663B (en) | The recognition methods of text messy code and device in the page | |
CN103581987B (en) | The test method and device of the page download speed of mobile terminal device | |
CN105183275B (en) | A kind of terminal icon aligning method and device | |
CN105630454A (en) | Information display method and terminal equipment | |
CN105100343A (en) | Mobile phone and instrument control method and system using such method | |
CN108491326A (en) | Behavioral test recombination method, device and storage medium | |
CN107894945A (en) | Bury an adding method, mobile terminal and computer-readable recording medium | |
CN103399766A (en) | Method and device for updating input method system | |
CN106778278A (en) | A kind of malice document detection method and device | |
CN104035935B (en) | A kind of the web page contents method for pushing and system of browser bookmark URL | |
CN101894021A (en) | Method and system for realizing interface of embedded system | |
CN105095289A (en) | Webpage access method and device | |
CN103853342A (en) | Method of simulating user input, method of testing input method and electronic device | |
US8922491B2 (en) | Method and apparatus enabling keystroke acceleration | |
CN103761096A (en) | Automatic input method and device achieved based on IBinder mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |