-1

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 ??

4

1 回答 1

0

您将不得不使用 Java 库(例如Simple Java Mail)并在 Groovy 脚本测试步骤中从 Groovy 调用它。您可以在 SoapUI 安装的 bin/ext 目录中添加外部 jar,它们将在下次启动该工具时添加到类路径中。如果您使用库中的示例,则可以使用 Java,在大多数情况下 Java 是有效的 Groovy。如果库示例有多个类,您应该能够在一个 Groovy 脚本中拥有所有这些。

于 2019-10-09T12:49:54.977 回答