Adding Email Capabilities to Flows
For Eclipse based test run
The test run report can be sent to users as an email. To add email capabilities in a flow, add the component line mentioned in the following table towards the end in the flow.
Usage Details
Value
Keyword
FUNCTIONCALL
Object
wSCOMMONLIB
Function Name
generateAndSendReport
The email related properties have to be specified in the configuration.properties file located under <UTA-CLIENT>/etc folder, where <UTA-CLIENT> is the location of the folder where the UTA_Client_FolderStructure.zip was extracted.
Update the following values as mentioned to configure the email:
#Email Details
gStrSMTP_HOST_NAME=<mention your SMTP server details here>
gStrSMTP_PORT=<mention SMTP port here>
gStrTO_EMAIL_RECIPIENTS=<mention target user/group email id>
For Browser based test run
The email capability allows the flow run summary report to be e-mailed to the specified email accounts. Specify the email account IDs to which the report needs to be sent in the flow configuration set or the user configuration set. The email capability for a flow or flow set run is auto enabled if the user configuration set or flow configuration set has the email property defined. The SMTP email server details should be entered in the Oracle Utilities Testing Accelerator application for email capability to work.
Note: The generateAndSendReport function in WSCOMMONLIB is redundant and need not be included in the flow as the last step for browser based (work bench) flow run.