2

I'm using jmeter 3.2, I want run a SMTP Sampler in Jmeter where I have done the necessary configuration by adding the javamail file in the lib folder of Jmeter and adding necessary credentials in the mail setting, though when executed I am getting an error of IOException.

Am I missing any step?

IOExecption

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
Richa Yadav
  • 49
  • 10
  • put the file in bin directory and try again. – Masud Jahan Jun 11 '17 at 17:11
  • @Jahan : thank,i got it but there is one issue where it displays an IO Expection error in the response message. Screenshot is also attached – Richa Yadav Jun 12 '17 at 10:44
  • Do you use jmeter 3.2? if so there maybe a bug see https://stackoverflow.com/questions/45188612/jmeter-3-2-smtp-smapler-failed , check if Jmeter 3.1 reproduce the issue – Ori Marko Jul 25 '17 at 13:29
  • @user7294900 : yes i m currently using this version. sure i will recheck this with 3.1 and provide an update on it – Richa Yadav Jul 25 '17 at 13:36

2 Answers2

2

There was a change in SMTP Sampler in jmeter 3.2 which created several bugs.

You open a bug to jmeter with a sample if it's a different scenario.

If you can downgrade to Jmeter 3.1 if it can work.

EDIT

You can download a fix to the issue in jmeter-3.3

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
0

If you are trying to send a file as an attachment you have 2 options:

  1. If you are using relative path (just filename) make sure you put the file into JMeter's "bin" folder. So JMeter could find it. Check out jmeter.log file to know where JMeter is expecting the file to be.

    JMeter SMTP Log file

  2. Use full path (like c:\somefolder\someotherfolder\somefile.eml)

In case if you still experience the problem update your question with your email server configuration and jmeter.log file contents. In the meantime check out Load Testing Your Email Server: How to Send and Receive E-mails with JMeter article

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Thanks I have gone through the article and verified the same in my example for the issue i have updated the same above. – Richa Yadav Jun 12 '17 at 10:46