51Testing软件测试论坛

标题: Quantify测试servlet应用程序时出现的问题 [打印本页]

作者: ireneyao    时间: 2007-8-21 09:17
标题: Quantify测试servlet应用程序时出现的问题
我使用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
作者: ireneyao    时间: 2007-8-21 16:40
问题解决了
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试试~~~




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2