CN101236523B - Input method test method and device - Google Patents

Input method test method and device Download PDF

Info

Publication number
CN101236523B
CN101236523B CN2008100076058A CN200810007605A CN101236523B CN 101236523 B CN101236523 B CN 101236523B CN 2008100076058 A CN2008100076058 A CN 2008100076058A CN 200810007605 A CN200810007605 A CN 200810007605A CN 101236523 B CN101236523 B CN 101236523B
Authority
CN
China
Prior art keywords
input method
word message
standard information
proving installation
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008100076058A
Other languages
Chinese (zh)
Other versions
CN101236523A (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN2008100076058A priority Critical patent/CN101236523B/en
Publication of CN101236523A publication Critical patent/CN101236523A/en
Application granted granted Critical
Publication of CN101236523B publication Critical patent/CN101236523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Machine Translation (AREA)

Abstract

The present invention discloses a testing method and a device of input method, which relate to software test and is invented in order to solve the problem that manual input method detection is low in efficiency and easy to produce errors. The technical proposal of the present invention is that: the input method testing method comprises the steps that: text information generated by a terminal according to an input method is transferred to a testing device; the testing device searches standard information corresponding to the text information in a pre-established input method model; the text information and the standard information are compared for consistency to obtain a comparison result; a testing result is output according to the comparison result. The input method testing method and the device provided by the embodiment of the present invention can be used to test the input methods of mobile phones as well as other terminals.

Description

The method of testing of input method and device
Technical field
The present invention relates to software test, particularly a kind of method of testing of input method and device.
Background technology
Because the Chinese character coding input method character library is huge, Chinese characters in common use have 2500, inferior Chinese characters in common use have 1000, and various types of input methods emerge in an endless stream, comprise spelling input method and five-stroke input method, wherein spelling input method and five-stroke input method comprise a variety ofly again, so at present, the input method test is the difficult problem in the mobile phone test.
The existing method that detects input method: the tester is manual to the mobile phone key input information; Mobile phone is handled described input information according to input method, obtains Word message, and in five-stroke input method, described Word message is a Chinese character, and in spelling input method, described Word message is the Chinese character of phonetic and this phonetic correspondence; Mobile phone shows described Word message on screen; Whether tester's subjective judgement mobile phone is correctly complete according to the Word message that input method obtains.
In realizing process of the present invention, the inventor finds that there is following problem at least in the method for prior art detection input method: low by tester's manual detection input method efficient, human input is big; Test not comprehensively, and be easy to make mistakes, test mass can't guarantee.
Summary of the invention
Embodiments of the invention provide a kind of method of testing and device of input method, and it is low to solve manual inspection input method efficient, the problem of makeing mistakes easily.
The embodiment that the present invention solves the problems of the technologies described above is: the method for testing of input method comprises: send terminal to proving installation according to the Word message that input method generates; Proving installation is searched the standard information corresponding with described Word message in the input method model of setting up in advance; Whether more described Word message is consistent with standard information, obtains comparative result; According to described comparative result, output test result.
Another embodiment that the present invention solves the problems of the technologies described above is: the proving installation of input method comprises:
Receiving element is used for the Word message that receiving terminal generates according to input method;
The input method model is used to preserve standard information;
Search the unit, be used for searching the standard information corresponding with described Word message at the input method model;
Test cell, whether with standard information consistent, obtain comparative result if being used for more described Word message;
Output unit as a result is used for the comparative result that obtains according to described test cell, outputs test result.
The method of testing of the input method that the embodiment of the invention provides and device, set in advance an input method model, by the Word message that terminal is generated according to input method, compare with the standard information of preserving in the described input method model, judge the correctness of described Word message, reached the purpose that the terminal input method is detected.Whether owing to set in advance the input method model, it is correct when complete to have solved Word message that prior art produces according to input method by testing staff's subjective judgement terminal, and the problem of makeing mistakes easily makes the detection of input method more accurate complete; The method of testing of the input method that the embodiment of the invention provides and device, the input method to terminal detects automatically, has solved the problem that manual detection input method efficient is low, human input is big, has improved the detection efficiency of input method.
Description of drawings
The method of testing process flow diagram of the input method that Fig. 1 provides for the embodiment of the invention;
The proving installation structural representation of the input method that Fig. 2 provides for the embodiment of the invention.
Embodiment
Low in order to solve manual inspection input method efficient, the problem of makeing mistakes easily, embodiments of the invention provide a kind of method of testing of input method.Below in conjunction with drawings and Examples the present invention is elaborated:
Present embodiment is that example describes with the spelling input method test to mobile phone:
Described spelling input method to mobile phone is tested and is comprised: phonetic and Chinese character that this spelling input method generates are tested.
The method of testing of the input method that the embodiment of the invention provides is set up a spelling input method model in advance, and this spelling input method model comprises: input method name field, key information field and standard information field; In the present embodiment, described input method name field is set to spelling input method;
In the time need testing to the Chinese character that described spelling input method generates, the key information field is preserved whole phonetics and the pinyin combinations that described spelling input method can produce, the standard information field preserve with the key information field in phonetic and the corresponding Chinese character of pinyin combinations, as follows, be the spelling input method model 1 of present embodiment employing xml file description:
<?xml?version=″1.0″encoding=″UTF-8″?>
<input method name=" spelling input method " 〉
<phonetic pinyin=" a " Chinese character=" Ah eh breathes out Sha actinium a word used for translation and salts down "/〉
<!--other phonetic--〉
</input method 〉
In the time need testing to the phonetic that described spelling input method generates, the key information field is preserved every kind of possible key combination on the mobile phone, the standard information field is preserved the pinyin combinations corresponding with this key combination, as follows, be the spelling input method model 2 of present embodiment employing xml file description:
<?xml?version=″1.0″encoding=″UTF-8″?>
<input method name=" spelling input method " 〉
<button key=" 98 " pinyin=" yu, wu, zu, xu "/〉
<!--other buttons--〉
</input method 〉
As shown in Figure 1, the method for testing of the input method that the embodiment of the invention provides comprises the steps:
Step 101, proving installation issues analogue-key information from the trend mobile phone, in the present embodiment, described proving installation is a computer, this computer expert crosses the serial ports that is provided with on the mobile phone and sends analogue-key information to it, in the application of reality, this computer can also send analogue-key information to mobile phone by the control mechanical arm;
Step 102, proving installation receive the Word message of the spelling input method of mobile phone according to described analogue-key information generation, and in the present embodiment, described Word message comprises: the Chinese character of phonetic and phonetic correspondence;
Step 103, proving installation is searched the standard information corresponding with described Word message in the input method model, its concrete grammar is: described proving installation is according to its phonetic that receives, in spelling input method model 1, search the Chinese character corresponding with described phonetic, for example: when the phonetic that proving installation receives was " a ", this proving installation searched from spelling input method model 1 whether the Chinese character corresponding with " a " is arranged; Described proving installation is according to the key information of its input, in spelling input method model 2, search the phonetic corresponding with this key information, for example: when proving installation issues analogue-key " 98 " to mobile phone, search in spelling input method model 2 whether the phonetic corresponding with " 98 " is arranged;
Step 104, whether more described Word message is consistent with standard information, obtains comparative result; For example: the Word message that receives the mobile phone transmission when described proving installation is phonetic " a " and " a " corresponding Chinese character " Ah eh breathes out not ", relatively whether " Ah eh breathes out not " be consistent with " Ah eh breathes out Sha actinium a word used for translation and salt down " in spelling input method model 1, discovery lacks " Sha actinium a word used for translation salts down ", and " no " incorrect, obtain the inconsistent comparative result of Word message and standard information; For another example: the analogue-key that issues to mobile phone when described proving installation is during for " 98 ", the Word message that this proving installation receives is " zu; xu ", and relatively whether " zu, xu " be consistent with " yu; wu; zu, xu " in spelling input method model 2, finds to lack " yu; wu ", obtains the inconsistent comparative result of Word message and standard information;
Step 105, the comparative result according to step 104 outputs test result.When step 104 is judged described Word message and standard information when inconsistent, output input method error result when relatively judging described Word message by step 104 when consistent with standard information, is exported the correct result of input method.
In the present embodiment, described Word message is consistent with standard information is meant that described Word message is the same with standard information complete, correct.
Described step 105 can only be exported the correct result of input method, perhaps input method error result according to actual needs when the output comparative result.
In order to make the method for testing of the input method that the embodiment of the invention provides, can more fully test the integrality of described input method, described step 101 proving installation to the concrete grammar that mobile phone sends analogue-key information is:
Proving installation is searched key information in described spelling input method model;
Proving installation sends to mobile phone with the whole key informations in the described spelling input method model in order.
The method of testing of the input method that the embodiment of the invention provides, set in advance an input method model, by the Word message that mobile phone is generated according to input method, compare with the standard information of preserving in the described input method model, judge the correctness of described Word message, reached the purpose that cellphone inputting method is detected.Whether owing to set in advance the input method model, it is correct when complete to have solved Word message that prior art produces according to input method by testing staff's subjective judgement terminal, and the problem of makeing mistakes easily makes the detection of input method more accurate complete; The detection method of the input method that the embodiment of the invention provides, the input method to mobile phone detects automatically, has solved the problem that manual detection input method efficient is low, human input is big, has improved the detection efficiency of input method.
Low in order to solve manual inspection input method efficient, the problem of makeing mistakes easily, embodiments of the invention provide a kind of proving installation of input method.Below in conjunction with drawings and Examples the present invention is elaborated:
It is that example describes that present embodiment detects with the spelling input method to mobile phone:
Described spelling input method to mobile phone is tested and is comprised: phonetic and Chinese character that this spelling input method generates are tested.
As shown in Figure 2, the proving installation of the input method that the embodiment of the invention provides comprises:
The input method model is used to preserve standard information, referring to spelling input method model 1 in the method for testing of input method and spelling input method model 2, repeats no more herein;
Transmitting element is used for sending analogue-key information to mobile phone, and its concrete sending method can repeat no more referring to step 101 as shown in Figure 1 herein;
Receiving element is used to receive the Word message of the spelling input method of mobile phone according to described analogue-key information generation, and in the present embodiment, described Word message comprises: the Chinese character of phonetic and phonetic correspondence;
Search the unit, be used for searching the standard information corresponding with described Word message at the input method model, its concrete lookup method can repeat no more referring to as the step 103 among Fig. 1 herein;
Test cell, whether with standard information consistent, obtain comparative result if being used for more described Word message;
Output unit as a result is used for the comparative result that obtains according to described test cell, outputs test result.
In order to make the proving installation of the input method that the embodiment of the invention provides, can more fully detect the integrality of described input method, the described unit of searching is used for searching key information at the spelling input method model; Described transmitting element is used in order whole key informations of described spelling input method model are sent to mobile phone.
The proving installation of the input method that the embodiment of the invention provides, set in advance an input method model, by the Word message that mobile phone is generated according to input method, compare with the standard information of preserving in the described input method model, judge the correctness of described Word message, reached the purpose that cellphone inputting method is detected.Whether owing to set in advance the input method model, it is correct when complete to have solved Word message that prior art produces according to input method by testing staff's subjective judgement terminal, and the problem of makeing mistakes easily makes the detection of input method more accurate complete; The proving installation of the input method that the embodiment of the invention provides, the input method to terminal detects automatically, has solved the problem that manual detection input method efficient is low, human input is big, has improved the detection efficiency of input method.
The method of testing of the input method that the embodiment of the invention provides and device, not only can be used for spelling input method is tested, can also be used for other input methods, for example: five-stroke input method etc., test, the method of testing of the input method that the embodiment of the invention provides and device both can be used for the input method of mobile phone is tested, and the input method that also can be used for other-end is tested.
The above; it only is the embodiment of the embodiment of the invention; but the protection domain of the embodiment of the invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, the protection domain of the embodiment of the invention should be as the criterion with the protection domain of claim.

Claims (8)

1. the method for testing of an input method is characterized in that, comprising:
Proving installation receives the Word message of the input method of described terminal according to described analogue-key information generation to terminal input analogue-key information;
Proving installation is searched the standard information corresponding with described Word message in the input method model of setting up in advance;
Whether more described Word message is consistent with standard information, obtains comparative result;
According to described comparative result, output test result.
2. the method for testing of input method according to claim 1 is characterized in that,
Described Word message is a Chinese character at five-stroke character input method; In spelling input method phonetic or Chinese character;
Described input method model comprises input method name field, key information field and standard information; This standard information is a Chinese character in the five-stroke character input method model; This standard information is pinyin combinations, perhaps Chinese character in the spelling input method model.
3. the method for testing of input method according to claim 1 is characterized in that, whether described Word message and standard information consistent comprising: whether more described Word message is the same complete, correct with standard information.
4. the method for testing of input method according to claim 1 is characterized in that, described proving installation comprises to the step of terminal input analogue-key information:
Proving installation is searched analogue-key information in described input method model;
Proving installation is imported described analogue-key information to terminal.
5. the proving installation of an input method is characterized in that, comprising:
Transmitting element is used for sending analogue-key information to terminal;
Receiving element is used for the Word message of the input method of receiving terminal according to described analogue-key information generation;
The input method model is used to preserve standard information;
Search the unit, be used for searching the standard information corresponding with described Word message at the input method model;
Test cell, whether with standard information consistent, obtain comparative result if being used for more described Word message;
Output unit as a result is used for the comparative result that obtains according to described test cell, outputs test result.
6. the proving installation of input method according to claim 5 is characterized in that,
The described unit of searching is used for searching analogue-key information at the input method model.
7. the proving installation of input method according to claim 5 is characterized in that,
Described Word message is a Chinese character at five-stroke character input method; In spelling input method phonetic or Chinese character;
Described input method model comprises input method name field, key information field and standard information; This standard information is a Chinese character in the five-stroke character input method model; This standard information is pinyin combinations, perhaps Chinese character in the spelling input method model.
8. the proving installation of input method according to claim 5 is characterized in that, whether described Word message and standard information consistent comprising: whether more described Word message is the same complete, correct with standard information.
CN2008100076058A 2008-02-29 2008-02-29 Input method test method and device Active CN101236523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100076058A CN101236523B (en) 2008-02-29 2008-02-29 Input method test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100076058A CN101236523B (en) 2008-02-29 2008-02-29 Input method test method and device

Publications (2)

Publication Number Publication Date
CN101236523A CN101236523A (en) 2008-08-06
CN101236523B true CN101236523B (en) 2011-03-16

Family

ID=39920157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100076058A Active CN101236523B (en) 2008-02-29 2008-02-29 Input method test method and device

Country Status (1)

Country Link
CN (1) CN101236523B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547145B (en) * 2010-12-16 2015-09-23 新奥特(北京)视频技术有限公司 A kind of automatic test approach of caption function and system
CN102164248B (en) * 2011-02-15 2014-12-10 Tcl集团股份有限公司 Automatic caption testing method and system
CN103019924B (en) * 2011-09-23 2016-03-16 腾讯科技(深圳)有限公司 The intelligent evaluating system of input method and method
CN103631387B (en) * 2012-08-27 2018-07-13 百度国际科技(深圳)有限公司 Acquisition methods, input method test method and the device of candidate word display time
CN102981938B (en) * 2012-11-15 2017-10-31 百度国际科技(深圳)有限公司 Input method method of testing, the method and electronic installation for generating test case
CN102981954B (en) * 2012-11-28 2018-03-02 百度国际科技(深圳)有限公司 The compatibility test method and electronic installation of a kind of input method
CN103853342B (en) * 2012-12-07 2018-04-03 百度国际科技(深圳)有限公司 Method, input method method of testing and the electronic installation of analog subscriber input
CN103970647B (en) * 2013-01-29 2017-02-08 百度国际科技(深圳)有限公司 Input method non-activated window test method, device and terminal
CN103514093B (en) * 2013-09-23 2016-02-03 福建联迪商用设备有限公司 Embedded system character library method of testing and device
CN105653056B (en) * 2015-12-17 2019-05-28 北京奇虎科技有限公司 The test method and device of input method
CN108664984B (en) * 2017-03-28 2024-04-09 深圳市凯立德科技股份有限公司 Data checking method and device
CN107766238B (en) * 2017-09-27 2021-04-09 北京金山安全软件有限公司 Software testing method, device, equipment and computer readable storage medium
CN108305055B (en) * 2017-10-20 2021-03-12 掌合天下(北京)信息技术有限公司 Payment testing method and device
CN109710081A (en) * 2019-02-20 2019-05-03 杭州老板电器股份有限公司 Gesture induction test device and method

Also Published As

Publication number Publication date
CN101236523A (en) 2008-08-06

Similar Documents

Publication Publication Date Title
CN101236523B (en) Input method test method and device
CN106502883B (en) The database synchronization method and system of client and server-side when automatic test
AU2012315749B2 (en) Selective feedback for text recognition systems
CN111339758B (en) Text error correction method and system based on deep learning model
CN104461903B (en) The method and apparatus of test client based on browser
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
CN102467442A (en) Software testing method, system and equipment
CN104320793B (en) A kind of Automated testing method of cell phone short messages and system
CN103077110A (en) Test method and device
KR20140106857A (en) Protocol conformity verification method, apparatus performing the same and systme performing the same
CN105260082A (en) Display method for test data and development terminal
CN105279067B (en) A kind of method and device of information reporting
US20080222463A1 (en) Apparatus, method and product for testing communications components
CN101420483B (en) Wrongly-written characters detection method and mobile terminal
CN104809054A (en) Method and system for realizing program testing
CN108845955B (en) Chinese input method test method and device and electronic equipment
CN104484370A (en) Answer information sending method, receiving method, device and system based on question and answer
CN114328908A (en) Question and answer sentence quality inspection method and device and related products
CN107707629B (en) GNSS message conversion verification method
CN111930625B (en) Log acquisition method, device and system based on cloud service platform
CN105430678B (en) The method and device of PTN device interface testing
CN117499287A (en) Web testing method, device, storage medium and proxy server
CN106776277A (en) A kind of method of striding course test, device and electronic equipment
CN109656550A (en) Json data analysis method, device, equipment and readable storage medium storing program for executing
CN109672482A (en) Radio frequency module testing method, device, equipment and storage medium

Legal Events

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

Effective date of registration: 20171107

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: Huawei Device Co., Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI terminal (Dongguan) Co., Ltd.