From Fedora Project Wiki

No edit summary
No edit summary
Line 2: Line 2:
|description=This test case tests input works correctly for your ibus input method.
|description=This test case tests input works correctly for your ibus input method.
|actions=
|actions=
# You want to prepare some phrases, and sentences to input preferably mixed with some ASCII text with punctuation marks.
# You may want to prepare some test sentences and/or phrases to input preferably mixed with some ASCII (eg English) text including punctuation.
# Basic test: input test sentences into various applications you use.
# Basic test: input test sentences into various applications you use often.
# Rest is only for Chinese, Japanese and Korean users (who are testing hanja input):
# Switch off/on: try turning the input-method off, input some ASCII, turn on the input-method again and continue to input with the input method.
## Candidate selection test [[#Remark+|+]]: Modify a few characters in test sentences by invoking the candidate selection dialog.
# Focus out/in: move focus to another window (eg with Alt+Tab), input some text there, return to original window and continue your input
## Incomplete character handling test [[#Remark*|*]]: Just type a part of character, then perform following sub-tests:
# Candidate selection tests for Chinese, Japanese and Korean users (who are testing hanja input):
## Modify a few characters in your test sentences invoking candidate selection.
## Incomplete character handling test: just type part of a character, then perform following sub-tests:
### switch on/off:
### switch on/off:
#### switch on IM, type an incomplete words, then switch off IM.
#### switch on IM, type an incomplete words, then switch off IM.
#### Type a few English keys.
#### Type a few English keys.
#### switch on IM, then type an different characters
#### switch on IM, then type an different characters
# focus in/out: Similar to on/off sub-test, but click on other window to focus out, type a few English word, then focus in by click back on the application.
### focus in/out: Similar to on/off sub-test, but click on other window to focus out, type a few English word, then focus in by click back on the application.
# Pre-edit buffer test [[#Remark$|$]]:Type a few complete characters and an incomplete character in pre-edit buffer. Then perform following sub-tests:
# Pre-edit buffer test [[#Remark$|$]]:Type a few complete characters and an incomplete character in pre-edit buffer. Then perform following sub-tests:
## switch on/off: Similar to the counterpart in Incomplete character test.
## focus in/out: Similar to the counterpart in Incomplete character test.
 
<ul>
  <li id="Remark+">+: Required if IM offers the choice among matching candidates.</li>
  <li id="Remark*">*: Required if IM needs more than one key to form a complete-character. For example, Chinese IMs require more than one key to form a Chinese character.</li>
  <li id="Remark$">$: Required if IM use pre-edit buffer to store phrases. ibus-pinyin and ibus-chewing are examples of IM that need to perform this test.</li>
</ul>
|results=
|results=
# Basic test: Committed string should be exactly same as test sentences.
# Basic test: Committed string should be expected text from your test sentences.
# Candidate selection test: Committed string should reflect the modified characters.
# Candidate selection test: Committed string should reflect the modified characters: the expected behaviour may vary somewhat depending on the language being tested.  
# Incomplete character handling test: Incomplete character should not appear in committed string, while other input should be shown as normal.
# Incomplete character handling test: Incomplete characters should not appear in the committed string, while other input should be shown as normal.
# Pre-edit buffer test: Incomplete characters should not appear, while complete characters should be in the committed string.
# Pre-edit buffer test: Incomplete characters should not appear, while complete characters should be in the committed string.
}}
}}


[[Category:IBus_Test_Cases]]
[[Category:IBus_Test_Cases]]

Revision as of 13:57, 13 May 2009

Description

This test case tests input works correctly for your ibus input method.


How to test

  1. You may want to prepare some test sentences and/or phrases to input preferably mixed with some ASCII (eg English) text including punctuation.
  2. Basic test: input test sentences into various applications you use often.
  3. Switch off/on: try turning the input-method off, input some ASCII, turn on the input-method again and continue to input with the input method.
  4. Focus out/in: move focus to another window (eg with Alt+Tab), input some text there, return to original window and continue your input
  5. Candidate selection tests for Chinese, Japanese and Korean users (who are testing hanja input):
    1. Modify a few characters in your test sentences invoking candidate selection.
    2. Incomplete character handling test: just type part of a character, then perform following sub-tests:
      1. switch on/off:
        1. switch on IM, type an incomplete words, then switch off IM.
        2. Type a few English keys.
        3. switch on IM, then type an different characters
      2. focus in/out: Similar to on/off sub-test, but click on other window to focus out, type a few English word, then focus in by click back on the application.
  6. Pre-edit buffer test $:Type a few complete characters and an incomplete character in pre-edit buffer. Then perform following sub-tests:

Expected Results

  1. Basic test: Committed string should be expected text from your test sentences.
  2. Candidate selection test: Committed string should reflect the modified characters: the expected behaviour may vary somewhat depending on the language being tested.
  3. Incomplete character handling test: Incomplete characters should not appear in the committed string, while other input should be shown as normal.
  4. Pre-edit buffer test: Incomplete characters should not appear, while complete characters should be in the committed string.