Test Suite Collection - Parallel Execution Mode - Random Failure to Send Emails

Test Suite Collection - Parallel Execution Mode

Chrome (Version 66.0.3359.181 (Official Build) (64-bit))

Issue:

The Test Suite Collection has 4 Test Suite records and when it is run, most times it sends four Test Suite Summary Report emails. However, randomly, only three Test Suite Summary Reports emails are sent.

Regardless whether there is an email failure, all four Test Suites complete their run and the …\Reports folder contains a sub-folder for the Test Suite with all of the files that should have been sent via email…

See attached .log file…

Error Message:

Thu May 24 12:17:49 PDT 2018

java.io.FileNotFoundException: File does not exist: C:\Users\DKEDMO~1\AppData\Local\Temp\20180524_121433.zip

at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2275)

at com.kms.katalon.execution.util.MailUtil.sendSummaryMail(MailUtil.java:140)

at com.kms.katalon.execution.launcher.ReportableLauncher.sendReportEmail(ReportableLauncher.java:152)

at com.kms.katalon.execution.launcher.ReportableLauncher.sendReport(ReportableLauncher.java:127)

at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:80)

at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)

at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)

at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)

at java.lang.Thread.run(Thread.java:745)

Thu May 24 12:17:49 PDT 2018

System is unable to email report. Reason: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:25

at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)

at org.apache.commons.mail.Email.send(Email.java:1448)

at com.kms.katalon.execution.util.MailUtil.sendSummaryMail(MailUtil.java:136)

at com.kms.katalon.execution.launcher.ReportableLauncher.sendReportEmail(ReportableLauncher.java:152)

at com.kms.katalon.execution.launcher.ReportableLauncher.sendReport(ReportableLauncher.java:127)

at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:80)

at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)

at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)

at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)

at java.lang.Thread.run(Thread.java:745)

Caused by: javax.mail.MessagingException: IOException while sending message;

nested exception is:

java.io.FileNotFoundException: C:\Users\DKEDMO~1\AppData\Local\Temp\20180524_121433.zip (The system cannot find the file specified)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)

at javax.mail.Transport.send0(Transport.java:169)

at javax.mail.Transport.send(Transport.java:98)

at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)

… 9 more

Caused by: java.io.FileNotFoundException: C:\Users\DKEDMO~1\AppData\Local\Temp\20180524_121433.zip (The system cannot find the file specified)

at java.io.FileInputStream.open0(Native Method)

at java.io.FileInputStream.open(FileInputStream.java:195)

at java.io.FileInputStream.(FileInputStream.java:138)

at javax.activation.FileDataSource.getInputStream(FileDataSource.java:97)

at javax.activation.DataHandler.writeTo(DataHandler.java:305)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:845)

at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:361)

at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:85)

at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:889)

at javax.activation.DataHandler.writeTo(DataHandler.java:317)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)

… 12 more

Thu May 24 12:17:49 PDT 2018

org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:25

at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)

at org.apache.commons.mail.Email.send(Email.java:1448)

at com.kms.katalon.execution.util.MailUtil.sendSummaryMail(MailUtil.java:136)

at com.kms.katalon.execution.launcher.ReportableLauncher.sendReportEmail(ReportableLauncher.java:152)

at com.kms.katalon.execution.launcher.ReportableLauncher.sendReport(ReportableLauncher.java:127)

at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:80)

at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)

at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)

at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)

at java.lang.Thread.run(Thread.java:745)

Caused by: javax.mail.MessagingException: IOException while sending message;

nested exception is:

java.io.FileNotFoundException: C:\Users\DKEDMO~1\AppData\Local\Temp\20180524_121433.zip (The system cannot find the file specified)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)

at javax.mail.Transport.send0(Transport.java:169)

at javax.mail.Transport.send(Transport.java:98)

at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)

… 9 more

Caused by: java.io.FileNotFoundException: C:\Users\DKEDMO~1\AppData\Local\Temp\20180524_121433.zip (The system cannot find the file specified)

at java.io.FileInputStream.open0(Native Method)

at java.io.FileInputStream.open(FileInputStream.java:195)

at java.io.FileInputStream.(FileInputStream.java:138)

at javax.activation.FileDataSource.getInputStream(FileDataSource.java:97)

at javax.activation.DataHandler.writeTo(DataHandler.java:305)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:845)

at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:361)

at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:85)

at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:889)

at javax.activation.DataHandler.writeTo(DataHandler.java:317)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)

… 12 more

.log

Hi David Edmondson,
I tried to reproduce but it’s failed. Are you still having this issue?

Alice,

Which version of Katalon Studio are you running, v5.4.1?

I have reproduced this bug on Katalon Studio v5.4.1 and a newer version, Katalon Studio v5.4.2 B) …

It is failing using both the command line as well as the UI…

Hi David Edmondson,
I’m just reproduced and got the same problem with you. I’ve logged this one into our backlog and will be fixed in the next release.
Thank you so much :wink:

@Alice,

Are you part of the Katalon Studio development team?

If so, here is a link to current issues with Katalon Studio v5.4.2…

Verified as resolved using “Katalon Studio Windows 64 Bit v5.5-beta” on Windows 7 PC…

1 Like