Receive Job Reports and Artifacts via Email
Downloading Job Reports and Artifacts manually from the HyperExecute UI can be a time-consuming and repetitive task. To address this pain point, HyperExecute now provides the convenience of receiving Job Reports and Artifacts directly to your specified email addresses. This eliminates the need for manual downloads, allowing you to access critical job information instantly and effortlessly. Embrace the efficiency of automated delivery and spend less time navigating the UI and more time focusing on your development tasks.
YAML Configuration
To receive the Artifacts and Reports via mail, you will have to add the email flag with a to tag to select the email IDs where the report or artifacts should be sent. The example added below shows you how to add your email IDs:
email:
to:
- <your_email_id@example.com>
- <another_email_id@example.com>
You can also use the currentUser tag to send the reports to the email ID of your choice.
- currentUser: This tag will allow you to send the report to the email ID associated with your TestMu AI account.
email:
to:
- currentUser
How to receive your Artifacts via Email?
Follow the below mentioned steps to receive your Artifacts via email:
Step 1: You need to mention the email flag along with the to tag under the uploadArtifacts flag in the YAML file configuration.
NOTE: You can also add a separate email ID for each report generated, as mentioned below in the YAML code.
uploadArtifacts:
- name: Reports 1
path:
- ProtractorTestReport.html
- xmlresults.xml
email:
to:
- <your_email_id@example.com>
- <another_email_id@example.com>
- name: Reports 2
path:
- ProtractorTestReport.html
- xmlresults.xml
email:
to:
- currentUser
How to receive your Job Report via Email?
Follow the below mentioned steps to receive your Job Reports via email:
Step 1: Set the report flag to true in the HyperExecute YAML.
Step 2: Make sure to check the location, type and frameworkName fields in the partialReports flag are configured correctly.
Step 3: Add the email flag with to tag in the YAML file configuration:
report: true
partialReports:
frameworkName: testng
location: target/surefire-reports/html
type: html
email:
to:
- <your_email_id@example.com>
- <another_email_id@example.com>