I want to send an automated email once all my test steps are passed in SOAP UI, using a groovy script test step?? Is there a way that we can achieve this ??
Asked
Active
Viewed 933 times
-1
-
Please post your sample code. If there is anything you had tried – Mohinuddin Luhar Oct 08 '19 at 16:46
-
1A couple of options to consider if you don't want o write your own email test step: 1) If you can afford it, soapUI Pro has a built-in email test step. 2) Run your soapUI project from Jenkins and rely on Jenkins notifications. – craigcaulfield Oct 14 '19 at 03:38
-
you can try following link: https://testarenablog.wordpress.com/2016/08/16/send-email-in-soap-ui-using-groovy/ – Saurabh Jan 22 '20 at 11:29
1 Answers
0
You will have to use a Java library such as Simple Java Mail and call it from Groovy in a Groovy Script Test Step. You can add external jars in the bin/ext directory of your SoapUI install, and they will be added to the classpath next time the tool is started. If you use the samples from a library, you can use the Java, in most cases Java is valid Groovy. If the library examples have several classes, you should be able to have it all in one Groovy script.

ou_ryperd
- 2,037
- 2
- 18
- 23