51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2887|回复: 2
打印 上一主题 下一主题

求助:无法识别测试对象

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-10-27 16:21:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用Function Tester测试java的应用,该应用的界面控件是用java的SWT,当使用验证点时,Tester无法识别控件,请问用什么方法才能使Tester能够识别,谢谢
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2008-11-3 13:01:49 | 只看该作者
请问:你有没有enable被测的swt application?

再试试:
To enable an SWT application for testing, the following code should be called from the UI thread of the application. Typically this is the code that first creates the application Shell. We currently do NOT support testing multiple Displays within a single application. Should someone have a need for testing multiple Displays please ask for such support from the product management team.

Here is the code:

try
{
// Self-enable this application. The object passed to
// enableSwtUi must be an object or class whose classLoader
// has access to the SWT classes.
// enableSwtUi() must be called from the SWT UI Thread.
// If the JRE in which the application is running is enabled
// by IBM Rational Functional Tester it will then be testable.
// If the JRE is not enabled, a ClassNotFoundException will
// be caught here and the application will load as usual but
// it will not be testable.
com.rational.test.ft.bootstrap.Bootstrap.enableSwtUi(this);
}
catch (Throwable e) {}
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2008-11-5 09:13:18 | 只看该作者
多谢,我在网上找了这篇文章,解决了我的问题,供大家参考http://www.ibm.com/developerwork ... cn-rftaopswt/#list2
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-23 01:54 , Processed in 0.197996 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表