Hi All,
I am using Sikuli+TestNG+Maven for automation and i am generating testng xslt reports which are stored under /target/testng-xslt-reports/ folder in my project path.
When i run command "mvn test site", my testng suite is run and i get the xslt reports in this folder. Now i want this report to be sent automatically to my company email id as soon as report is generated.
For this, I am trying to configure maven post man plug-in in my pom.xml but its showing errors and not successful. I am trying to use gmail as smtp and my gmail address as from address.
Below is the plugin added in my pom.xml
<plugin>
<groupId>ch.fortysix</groupId>
<artifactId>maven-postman-plugin</artifactId>
<executions>
<execution>
<id>send a mail</id>
<phase>site</phase>
<goals>
<goal>send-mail</goal>
</goals>
<inherited>false</inherited>
<configuration>
<from>
myem...@gmail.com</from>
<subject>Test Execution Report</subject>
<failonerror>true</failonerror>
<mailhost>
smtp.gmail.com</mailhost>
<mailuser>
myem...@gmail.com</mailuser>
<mailpassword>MyPassword</mailpassword>
<mailport>465</mailport>
<mailssl>true</mailssl>
<mailAltConfig>true</mailAltConfig>
<htmlMessageFile>target/testng-xslt-report/index.html</htmlMessageFile>
<receivers>
<receiver>
myus...@company.co.in</receiver>
</receivers>
</configuration>
</execution>
</executions>
</plugin>
Do i need to add any dependencies to use this plug-in ? OR do i need to make some settings in my gmail account ?
OR if there is any other better way to send automation emails , please suggest.
Thanks & Regards
Deepa