---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[ ] scrīpt syslogin.t - 1 error
[ ] Machine: (local)
[ ] Started: 02:33:25PM on 29-Jul-2008
[ ] Elapsed: 0:00:09
[ ] Totals: 1 error, 0 warnings
[ ]
[ ] *** DefaultBaseState is restoring Browser
[ ] *** Error: Window '[PushButton]View' was not found
[ ] Occurred in IsChecked
[ ] Called from Explorer.SetRequiredOptions at extend\explorer.inc(642)
[ ] Called from Browser.SetRequiredOptions at browser.inc(555)
[ ] Called from DefaultBaseState at defaults.inc(250)
--------------------------------------------------------------------------
以上是录制脚本,出现的错误。
在google查询,得到的结果:本地语言不正确。
After using the Workflow Toolbar to configure and record a testcase against a German version of IE 6. The recorded scrīpt fails on playback with the following error:
[ ] *** Error: Window '[PushButton]View' was not found
[ ] Occurred in IsChecked
[ ] Called from Explorer.SetRequiredOptions at explorer.inc(642)
[ ] Called from Browser.SetRequiredOptions at browser.inc(569)
[ ] Called from DefaultBaseState at defaults.inc(250)
This will probably be due to the fact that SilkTest is using the standard English versions of explorer.inc and browser.inc located in the SilkTest\Extend directory. However, SilkTest also provides support for both the German and French versions of Internet Explorer and Netscape Navigator. The following files, in ANSI format, are available in the <SilkTest Installation directory>\Locale:
...\french\browser.inc
...\french\explorer.inc
...\french\netscape.inc
...\german\browser.inc
...\german\explorer.inc
...\german\netscape.inc
To change the default English-US browser include files to one of the supported localised browsers:
- Go to <SilkTest Installation directory>\Locale. In the Locale directory locate the language of the localized browser to be tested.
- Copy the files contained in the <Language directory> directory.
- Go to <SilkTest Installation directory>\Extend and paste the files, overwriting the existing files.