# US 2009/0276759 A1 · Testing internationalized software using test resource file and test font

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2009/0276759 A1
- Document ID: US20090276759A1
- Status: Published application
- Kind: A1
- Application number: 12/504,517
- Filed: 2009-07-16
- Published: 2009-11-05
- Earliest claimed: 2006-09-11
- Assignees: International Business Machines Corporation
- Inventors: Nozomu Aoyama; Toshimichi Arima; Takaharu Itoh; Yuko Ito
- Web page: https://patentgrep.com/patent/US20090276759A1

## CPC

- G06F 11/3672: {Test management}
- G06F 9/454: {Multi-language systems; Localisation; Internationalisation}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3692: {for test results analysis}
- G06F 40/58: Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An efficient testing method is provided for internationalized software executed in a plurality of language environments. The method includes mock-translating an externalized resource file written in a first language of the internationalized software by converting characters of the first language to characters of a second language based on a conversion table; and displaying output information from the internationalized software that performs processing by referring to the mock-translated test resource file using one of a plurality of fonts prepared for respective test categories.

## Claims

### Claim 1

An apparatus for testing internationalization software that conducts processing with reference to an externalized resource file, comprising:
a first storage unit for storing a conversion table where the externalized resource file written in a first language and the characters in the first language relate one for one to the characters in the second language;
a generation means for generating a test resource file written in the second language from the externalized resource file by converting the characters in the first language into the characters in the second language with reference to the conversion table;
a second storage unit for storing the generated test resource file;
a means for executing the internationalization software; and
a display screen preparation unit for preparing a display screen [for displaying] output information to be outputted from the internationalization software for processing for a display screen preparation as a result of the processing with reference to the test resource file as the externalized resource file, on a screen with reference to one of a plurality of fonts prepared per test category of the internationalization software, in response to a switching operation of fonts; wherein
character codes included in the output information can be classified into any of three groups of: a first group composed of a plurality of character codes corresponding to a plurality of characters in the first language, which are not supposed to be included in the output information; a second group composed of a plurality of character codes corresponding to the characters in the second language included in the conversion table, which are supposed to be included in the output information; and a third group composed of a plurality of character codes not corresponding to any of a plurality of characters in the first language and a plurality of characters in the second languages included in the conversion table, which are not supposed to be included in the output information;
the test categories include a character string confirmation for confirming character strings included in the externalized resource file written in the first language, and the fonts used for said character string confirmation relate character shapes of the characters in the first language where the characters in the second language corresponding to character codes are regarded as the characters after conversion on the occasion of generating the test resource file, to a plurality of said character codes included in the second group, respectively, and, relate character shapes of the characters in the first language corresponding to character codes to a plurality of said character codes included in the first group without modification; and
the plurality of fonts except for fonts used for the character string confirmation relate the same character shape or a plurality of different character shapes to the character codes included any one group of the first to the third groups, which are test objects in the corresponding test items, respectively, and, relate a same character shape, which is different from said same character shape to character codes included any remaining two groups of the first to the third groups, respectively, and the character code that is a test object and the other character codes are distinguishable on the display of the output information using the fonts.

### Claim 2 (depends on 1)

The apparatus according to claim 1, wherein the test categories include detection of character strings that may be hard-coded character strings, and the fonts used for the detection of the hard-coded character strings regard the first group as a group of the test object, and relates a plurality of character codes in the first group to the character shapes of the characters in the first language corresponding to said character codes without modification, respectively.

### Claim 3 (depends on 1)

The apparatus according to claim 1, wherein the test categories include determination of validity of a sorting result of character strings in accordance with the order of characters defined in the second language, and the fonts used for the determination of validity of the sorting result regards the second group as the test object group, and relate character shapes indicating the order defined for the characters in the second language corresponding to said character codes to the plurality of character codes in the second group, respectively.

### Claim 4 (depends on 1)

The apparatus according to claim 1, wherein the test categories include a determination of displayability of characters specific to the second language, and in the font used for the determination of displayability, the third group corresponds to the group of the test objects, and the character codes of the third group are each associated with a same character shape.

### Claim 5

A program for testing internationalization software that conducts processing with reference to an externalized resource file, causing a computer to execute the steps of:
reading data from the externalized resource file written in a first language;
generating a test resource file written in a second language from the externalized resource file written in the first language by converting characters of the first language contained in the data into the characters of the second language with reference to a conversion table where the characters of the first language are associated one for one with the characters of the second language;
displaying output information to be outputted from the internationalization software for processing for a display screen preparation as a result of the processing with reference to the test resource file as the externalized resource file, on a screen with reference to one of a plurality of fonts prepared per test category of the internationalization software, in response to a switching operation of fonts; wherein
character codes included in the output information can be classified into any of three groups of: a first group composed of a plurality of character codes corresponding to a plurality of characters in the first language, which are not supposed to be included in the output information; a second group composed of a plurality of character codes corresponding to the characters in the second language included in the conversion table, which are supposed to be included in the output information; and a third group composed of a plurality of character codes not corresponding to any of a plurality of characters in the first language and a plurality of characters in the second languages included in the conversion table, which are not supposed to be included in the output information;
the test categories include a character string confirmation for confirming character strings included in the externalized resource file written in the first language, and the fonts used for said character string confirmation relate character shapes of the characters in the first language where the characters in the second language corresponding to character codes are regarded as the characters after conversion on the occasion of generating the test resource file, to a plurality of said character codes included in the second group, respectively, and, relate character shapes of the characters in the first language corresponding to character codes to a plurality of said character codes included in the first group without modification; and
the plurality of fonts except for fonts used for the character string confirmation relate the same character shape or a plurality of different character shapes to the character codes included any one group of the first to the third groups, which are test objects in the corresponding test items, respectively, and, relate a same character shape, which is different from said same character shape to character codes included any remaining two groups of the first to the third groups, respectively, and the character code that is a test object and the other character codes are distinguishable on the display of the output information using the fonts.

### Claim 6 (depends on 5)

The program according to claim 5, wherein the test categories include detection of character strings that may be hard-coded character strings, and the fonts used for the detection of the hard-coded character strings regard the first group as a group of the test object, and relates a plurality of character codes in the first group to the character shapes of the characters in the first language corresponding to said character codes without modification, respectively.

### Claim 7 (depends on 5)

The program according to claim 5, wherein the test categories include determination of validity of a sorting result of character strings in accordance with the order of characters defined in the second language, and the fonts used for the determination of validity of the sorting result regards the second group as the test object group, and relate character shapes indicating the order defined for the characters in the second language corresponding to said character codes to the plurality of character codes in the second group, respectively.

### Claim 8 (depends on 5)

The program according to claim 5, wherein the test categories include a determination of displayability of characters specific to the second language, and in the font used for the determination of displayability, the third group corresponds to the group of the test objects, and the character codes of the third group are each associated with a same character shape.
