Report notification plugin for Cucumber framework
Property structure for reporting:
reportData:
notificationType: "HTML"
reportFileType: "changeme"
reportFilePath: "changeme"
slack:
webHook: "changeme"
email:
receivers:
- "[email protected]"
- "[email protected]"
sendFrom: "[email protected]"
subject: "test-report"
smtpMailProperties:
smtpHost: "changeme.com"
smtpPort: "changeme"
login: "[email protected]"
password: "changeme"| Property name | Meaning |
|---|---|
| reportData | Storage for notification notificationType, Cucumber report notificationType, path to report |
| reportData.notificationType | Notification content notificationType |
| reportData.reportFileType | Type of Cucmber report (HTML/JSON) |
| reportData.reportFilePath | Path to Cucmber report |
| slack | [REPORT DESTINATION] Wrapper for Slack intgreation properties storing |
| slack.webHook | Slack web hook transfer data |
| [REPORT DESTINATION] Wrapper for email properties | |
| email.receivers | List of emails for sending test report notification |
| email.sendFrom | SMTP send from parameter to dispaly in email |
| email.subject | Email subject |
| email.smtpMailProperties | Storage of SMTP configuration propertries |
| email.smtpMailProperties.smtpHost | SMTP host |
| email.smtpMailProperties.smtpPort | SMTP port |
| email.smtpMailProperties.login | SMTP login |
| email.smtpMailProperties.password | SMTP password |
- src/test/resources/report-notification.yml
add this line to plugin definition annotation
"json:target/cucumber-reports/Cucumber.json", "io.genevjov.notifier.plugin.ReportNotificationPlugin"