[ Legal Information ]

Double Byte Character Set

Suite Description

The DBCS test suite tests the Chinese DBCS in Linux.

Execution Frequency

This suite should be executed on the first and last drops during each beta cycle; the suite should be executed more frequently if problems are discovered in the first drop. The suite should be executed on at least two systems for each drop tested to eliminate hardware related issues.

The test suite should be executed twice, once for simplified Chinese and once for traditional Chinese.

Execution Dependencies

1) Tester can read Chinese.

2). Distro has support for Chinese language.

Suite Overview

This suite contains the following cases:

No.   Case Name   Blocking
Case
  Estimated
Execution
  Abandon
After
 
1   Installation   no   20 min   60 min
2   Basic functions test   no   30 min   N/A
3   Internet test   Internet is down   20 min   N/A
4   Java application test   IBM JDK is not available   20 min   20 min

Revision History

Version   Effective Date   Author/Editor   Summary of Changes
1.0     Airong Zhang   Original Suite



Installation

This case tests installing a system with a version of Chinese (traditional or simplified).

Note: The version (traditional or simplified) selected for installation will be the version tested for the remaining cases in this suite.


Environment Prerequisites

Preferred architecture: any i386
System installed? N/A
Network configured? N/A
Interface: N/A
Logged in as: N/A

Steps

1
Purpose Install the Linux operating system with Chinese.
Commands 1) Boot off the CD.
2) Enter the graphical installation sequence.
3) Choose a version of Chinese for the system language.
4) Follow the prompts (should be in Chinese) until you reach partitioning.
5) Create the following three partitions:

boot partition (mount point: /boot)
root partition (mount point: / (root) )
swap partition

6) Follow the prompts to install the operating system.
Expected Results The prompts should be in Chinese after the tester has selected a version of Chinese for the system language. The system should be rebooted after installation.
Comments and Tips Different distributions may have different requirements for partitioning. Just follow their prompts.
 

Results

System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         



Basic Functions Test

This test case tests input and display of Chinese characters. Also tests the input mode switch between Chinese and English.

Environment Prerequisites

Preferred architecture: any i386
System installed? yes
Network configured? yes
Interface: GUI
Logged in as: tester

Steps

1
Purpose Switch the system language between Chinese and English.
Commands 1) startx (you do not need to do so if Xwindows is already started).
2) Open an rxvt terminal.
3) Press Ctrl + [space] to activate the Chinese input mode.
Expected Results Two small windows will appear:
The short one indicates the system is now in Chinese input mode.
The long one indicates some features of the Chinese input.
Comments and Tips Sometimes rxvt is the default terminal; sometimes it is hidden in the system. It can be found by searching the system menu (click on the big foot if the desktop is GNOME, or click on the big K in KDE)
 
2
Purpose Switch the input mode from DBCS to ASCII.
Commands Press Ctrl + [space]
Expected Results The two windows displayed in step 1 should be gone, indicating the system is in ASCII input mode.
Comments and Tips The input mode can be switched between Chinese and English by pressing Ctrl + [space].
 
3
Purpose Create a file with both ASCII and Chinese contents.
Commands 1) Put the system in ASCII input mode.
2) vi testfile1
3) Press i to enter insert mode.
4) Type "This sentense is English."
5) Press Ctrl + [space] to switch the input mode to DBCS.
6) Press character a (or any one other character); some candidate Chinese characters are displayed.
7) Press the number that represents the Chinese character you wish to input.
8) Repeat step 6 and 7 several times to input some more Chinese characters.
9) Save testfile1 and exit (press Ctrl + [space] to switch the input mode to ASCII, press Esc to quit the insert mode, then press :wq to save and exit vi).
Expected Results The file contains both English and Chinese characters.
Comments and Tips
 
4
Purpose Display the contents of a file with both ASCII and Chinese characters.
Commands 1) cat testfile1
Expected Results The contents of testfile1 (both English and Chinese characters) will be displayed on the screen.
Comments and Tips
 
5
Purpose Change an ASCII file name to a Chinese file name.
Commands 1) mv testfile1
2) Press Ctrl + [space] to switch the input mode to Chinese.
3) Input several different Chinese characters. Refer to Note1.
4) Press Ctrl + [space] to switch the input mode to ASCII, then press enter.
5) ls
Expected Results The list should show the Chinese filename instead of the English filename.
Comments and Tips None
 

Results

System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         



Internet Test

This test case is used to test if the web browser installed in the system can correctly display a web in Chinese.

Environment Prerequisites

Preferred architecture: any i386
System installed? yes
Network configured? yes
Interface: GUI
Logged in as: tester

Steps

1
Purpose View a Chinese websites.
Commands 1) In your preferred brawser, enter http://www.sohu.com
Expected Results A webside will be opened in Chinese.
Comments and Tips
 
2
Purpose Verify that links work.
Commands In the website opened in the previous step, click any one link in it.
Expected Results Another browser window is opened to display the new page in Chinese.
Comments and Tips
 

Results

System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         



Java Application Test

This test case checks whether or not a Java application program can be built and run in the Chinese environment. The test focuses on if Chinese characters can be input in the Java application, and if the input mode can be switched between DBCS and ASCII.

Environment Prerequisites

Preferred architecture: any i386
System installed? yes
Network configured? yes
Interface: GUI
Logged in as: root

Steps

Results

1
Purpose Download and install IBM JDK1.3 or later version of it.
Commands 1) Open any web browser. Go to the following URL:
http://www-106.ibm.com/developerworks/java/jdk/linux130/devkit-info.html
2) Click on download on the browser window.
The package name is: IBMJava2-SDK-x.x-xx.x.i386.rpm
You may need to sign up to download the tool.
3) su (become root)
4) In the directory where the package is stored, run the following command to install the package:
rpm -i IBMJava2-SDK-x.x-xx.x.i386.rpm
5) updatedb
6) locate javac
Expected Results The JDK package should be installed on the system. Many lines are displayed after executing the locate command. The following line should be among them:
/opt/IBMJaba2-13/bin/javac
Comments and Tips 1) If you have a earlier version of the JDK, use rpm -U IBMJava2-SDK-x.x-xx.x.i386.rpm to upgrade the package.
2) You may need to sigh up to download the tool.
 
2
Purpose Change the /root/.bashrc file to add Java to the PATH.
Commands 1) cd /root
2) vi .bashrc
3) add the following line at the bottom of the file:
PATH=/opt/IBMJava2-1.3.10/jre/bin:$PATH
4) Save the file and exit vi.
5) Run the file by typing . ./.bashrc
6) type java
Expected Results "java is /opt/IBMjJava2-13/jre/bin/java" is displayed as the output of the type command.
Comments and Tips
 
3
Purpose Get the Java test program via ftp.
Commands 1) mkdir -p /home/javatest/test/imffvt/CompMaker
2) cd /home/javatest/test/imffvt/CompMaker
3) ftp 9.185.2.96
id/pw: javatest/javatest
4) cd /home/javatest/test/imffvt/CompMaker
5) Get every file in that directory to the local test system by using get or mget command.
6) exit ftp by giving command bye
7) ls
Expected Results The test program files are present on the local system.
Comments and Tips
 
4
Purpose Build and run the Java test program.
Commands 1) javac *.java
2) Open an rxvt terminal.
3) Press Ctrl + [space] to make sure the Chinese input mode can be activated.
4) java CompMaker
Expected Results A small Java application window should be present on the screen.
Comments and Tips If javac does not work, try the whole path:
/opt/IBMJava2-13/bin/javac
 
5
Purpose Verify that users can activate and deactivate Chinese input mode in this Java application.
Commands 1) In the Java application window opened in the previous step, click JFC, then select JTextArea, another Java application window will appear for recording the inputs.
2) Press Ctrl + [space] to activate DBCS input mode.
3) Input some Chinese characters (Refer to Basic Function test step 3).
4) Press Ctrl + [space] again to switch the input mode to ASCII and input some English characters.
Expected Results 1) Tester should be able to activate Chinese input mode and input Chinese characters.
2) Tester should also be able to deactivate Chinese input mode and input English characters.
Comments and Tips
 
System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         

 


 

Legal Information

The information included in this test instruction document is provided AS IS without warranty of any kind. IBM EXPRESSLY DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IBM does not warrant any results or performance measurements obtained. Any information concerning IBM products was written for IBM products offered in the U.S.A. IBM may not offer the products, services or features discussed in this document in other countries, and the information is subject to change without notice. The information in this document relating to Linux is provided as a convenience to Linux users, and IBM makes no warranty or representation, express or implied, with respect to the accuracy and completeness of the information, and assumes no responsibility for any errors, which may appear in the document. Any performance or test data contained herein was determined in a controlled test environment. Therefore, the results obtained in other operating environments may vary. No license, express or implied, to any intellectual property is granted by this document. IBM may make improvements and/or changes in product(s) and/or programs described in this publication at any time without notice.

Linux is a trademark of Linus Torvalds.

[ top ]

1