51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 3764|回复: 1
打印 上一主题 下一主题

[Robot] Quantify测试servlet应用程序时出现的问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-8-21 09:17:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我使用Quantify测试java servlet应用程序,服务器是resin。按照51里的一篇《使用Rational PurifyPlus 测试J2EE应用程序》配置好了环境。测试的时候如果选择function级别,可以正常运行,但是选择line级别的时候报错,错误如下:
java.lang.NoClassDefFoundError: Rational/QProfJ

at org.xml.sax.HandlerBase.<init>(HandlerBase.java)


at com.caucho.util.Registry$SaxHandler.<init>(Registry.java:366


at com.caucho.util.Registry.parse(Registry.java:195)


at com.caucho.util.Registry.parse(Registry.java:173)


at com.caucho.server.http.ResinServer.init(ResinServer.java:276


at com.caucho.server.http.ResinServer.main(ResinServer.java:110


at com.caucho.server.http.HttpServer.main(HttpServer.java:103)

我找了相关的资料,说要过滤掉相关的包,我在Profile.ini文件里把org.xml.和com.caucho.都过滤了,但是方法级运行的时候还是会把这些包的数据采集进去。我估计可能是过滤没有起作用。想请教一下现在该怎么办sdlkfj7
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2007-8-21 16:40:46 | 只看该作者
问题解决了
version2003.06.00版本以level运行时不支持eclipse编译的class文件。只能在function级别运行
原文如下:
PurifyPlus does not work with the Eclipse class loader when attempting to collect profiling information at the line level. The error message that will be seen at run time is the following:

java.lang.NoClassDefFoundError: Rational/QProfJ

To circumvent this problem, you must collect profiling information at the function level. This can be done as follows:
For Purify: In Settings>Executable Settings>Power Check, set the Default Profile Level to function.
For PureCoverage: In Settings>Executable Settings>Power Check, set the Default Coverage Level to function.
For Quantify: In Settings>Executable Settings>Power Check, set the Default Measurement Level to function.


晕死了~~~~我要换JB试试~~~

评分

参与人数 1综合技术指数 +5 收起 理由
fishy + 5

查看全部评分

回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-5 09:54 , Processed in 0.089406 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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