background image
<< Porting Tests - the sPath variable | Internationalization - Testing applications with single-byte international characters >>
Supporting Internationalized Applications
<< Porting Tests - the sPath variable | Internationalization - Testing applications with single-byte international characters >>
User's Guide
281
14
C
h
a
p
t
e
r
1
4
Supporting Internationalized
Applications
This chapter covers these topics:
Built-in support for international keyboards
Changing the
keyboard layout
SilkTest provides built-in support for testing applications that use
international keyboards. If your script is testing an application that uses only
a single international keyboard, you do not need to modify your scripts. If
your script needs to switch among keyboards, then you need to set the
OPT_
KEYBOARD_LAYOUT
option from within the script. The syntax is:
Agent.SetOption (OPT_KEYBOARD_LAYOUT,
sLayoutName)
sLayoutName is a an operating system-specific name expressed as a string.
On Windows NT the name represents the code page number. On Windows
3.1, sLayoutName is an internal name. On Windows 95, sLayoutName is an
English-like string, as in:
Agent.SetOption (OPT_KEYBOARD_LAYOUT,"English (Britain)")
Check your Windows documentation to determine what string is expected.
You might also invoke the GetOption method on
OPT_KEYBOARD_LAYOUT
to determine your current layout. For example:
Print (Agent.GetOption (OPT_KEYBOARD_LAYOUT))
Topic
Page
Built-in support for international keyboards
281
Internationalizing tags
282