jmeter测试接口时报错
使用jmeter进行接口测试时,在测试结果树中报错信息为“java.lang.NoClassDefFoundError: javax/mail/MessagingException”,谁能帮帮小弟啊? 自己看下。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. 楼主太强大了,下载这两个类后问题解决,谢谢
页:
[1]