51Testing软件测试论坛

标题: jmeter测试接口时报错 [打印本页]

作者: Juventus1984    时间: 2011-12-21 16:31
标题: jmeter测试接口时报错
使用jmeter进行接口测试时,在测试结果树中报错信息为“java.lang.NoClassDefFoundError: javax/mail/MessagingException”,谁能帮帮小弟啊?
作者: archonwang    时间: 2011-12-22 13:33
自己看下。

If one sends a Webservice(SOAP) request with the default JMeter installation, an error is thrown: java.lang.NoClassDefFoundError: javax/mail/MessagingException. This error is visible both in Jmeter.log (located in the JMeter bin directory) and a result sampler like the View Results Tree.





The solution for this problem is to download and install the mail.jar and activiation.jar libraries. Download java mail from Sun and java activation from Sun. Extract respectively mail.jar and activiation.rar from the downloaded zip archives, and put them in your Jmeter lib folder. For instance: D:\machtst\My Documents\Tools\jakarta-jmeter-2.3.2\lib\



It's important to close JMeter and reopen it again, so JMeter can load the libraries. If you run your test again, the error should be gone.
作者: Juventus1984    时间: 2011-12-26 09:41
楼主太强大了,下载这两个类后问题解决,谢谢




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