<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[MaxSoft — GReporter - Medium]]></title>
        <description><![CDATA[A Java plugin for gauge to send the test execution summary to a defined audience. - Medium]]></description>
        <link>https://medium.com/greporter?source=rss----a7682570818---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>MaxSoft — GReporter - Medium</title>
            <link>https://medium.com/greporter?source=rss----a7682570818---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 01 Jun 2026 04:23:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/greporter" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[MaxSoft — GReporter]]></title>
            <link>https://medium.com/greporter/maxsoft-email-client-for-gauge-8ae8af8ad32f?source=rss----a7682570818---4</link>
            <guid isPermaLink="false">https://medium.com/p/8ae8af8ad32f</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[gauge]]></category>
            <category><![CDATA[maxsoft]]></category>
            <category><![CDATA[email]]></category>
            <dc:creator><![CDATA[Osanda Deshan Nimalarathna]]></dc:creator>
            <pubDate>Sun, 20 Jan 2019 11:05:29 GMT</pubDate>
            <atom:updated>2022-02-16T08:39:25.442Z</atom:updated>
            <content:encoded><![CDATA[<h3>MaxSoft — GReporter</h3><h4>A Java plugin for gauge to send the test execution summary to a defined audience</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*TOk5kDIHvW8c9mHVfmuK7g.png" /><figcaption>Sending Emails from Java Applications</figcaption></figure><h3>Why do we need an email client for Gauge?</h3><p>Gauge is a light-weight, cross-platform, behavior driven test automation tool with the ability to author test cases in the business language. It is developed by thoughtworks.</p><p>If you like to learn more regarding Gauge, you can go-through <a href="https://docs.gauge.org/latest/index.html">this documentation</a>.</p><p>In testing perspective, the test execution report is a vital document where the stakeholders can get an idea of the project health.</p><p>Gauge is proving a detailed test execution report with all the error messages and the screenshots incorporated to the failing steps.</p><p>But anyhow we should manually send the test execution report to the stakeholders by mentioning the number of scenarios executed, passed count, failed count and skipped count. Also in a regression cycle, we have to send those counts as module wise figures. Further we are embedding pie charts and bar charts to that report to represents the test execution data in a high readable manner.</p><p>Here I have given an automated solution for this issue.</p><h3>How to use MaxSoft — GReporter?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*YyqpSHegcvybfPjI_e0IjQ.png" /></figure><h4>Pre-requisites:</h4><p><strong>Gmail Configuration</strong></p><ol><li>Go to <a href="https://myaccount.google.com/lesssecureapps?pli=1">this link</a>.</li><li>Turn on Less secure app access.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*71nM-64Sta9Je21BUWeV1Q.png" /><figcaption><strong>Allow less secure app access for gmail account.</strong></figcaption></figure><h4>Step by step guide:</h4><ol><li>Clone <a href="https://github.com/osandadeshan/MaxSoft-GReporter-Demo.git">this demo project</a>.</li><li>Go to “<a href="https://github.com/osandadeshan/MaxSoft-Email-Client-For-Gauge-Demo/tree/master/env"><strong><em>env</em></strong></a><em>” </em>folder of the demo project and copy “<a href="https://github.com/osandadeshan/MaxSoft-Email-Client-For-Gauge-Demo/tree/master/env/chart"><strong><em>chart</em></strong></a>” and “<a href="https://github.com/osandadeshan/MaxSoft-Email-Client-For-Gauge-Demo/tree/master/env/email"><strong><em>email</em></strong></a>” folders into your gauge project’s “<strong><em>env</em></strong><em>” </em>folder.</li><li>Copy “<a href="https://github.com/osandadeshan/MaxSoft-Email-Client-For-Gauge-Demo/blob/master/manifest.json"><strong><em>manifest.json</em></strong></a>” file of the demo project and replace it with your gauge project.</li><li>Add these repositories and dependencies to your “<strong><em>pom.xml</em></strong>”.</li></ol><pre>&lt;repositories&gt;<br>        &lt;repository&gt;<br>            &lt;id&gt;jitpack.io&lt;/id&gt;<br>            &lt;url&gt;<a href="https://jitpack.io">https://jitpack.io</a>&lt;/url&gt;<br>        &lt;/repository&gt;<br>&lt;/repositories&gt;</pre><pre>&lt;dependencies&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;com.github.osandadeshan&lt;/groupId&gt;<br>            &lt;artifactId&gt;maxsoft-greporter&lt;/artifactId&gt;<br>            &lt;version&gt;1.1.0&lt;/version&gt;<br>        &lt;/dependency&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;com.thoughtworks.gauge&lt;/groupId&gt;<br>            &lt;artifactId&gt;gauge-java&lt;/artifactId&gt;<br>            &lt;version&gt;0.7.15&lt;/version&gt;<br>        &lt;/dependency&gt;<br>&lt;/dependencies&gt;</pre><p>5. Add these properties to your “<strong><em>pom.xml</em></strong>” file.</p><pre>    &lt;properties&gt;<br>        &lt;src.dir&gt;src/main/java&lt;/src.dir&gt;<br>        &lt;emailConfigEnv&gt;dev&lt;/emailConfigEnv&gt;<br>    &lt;/properties&gt;</pre><p>6. Add these build configurations to your “<strong><em>pom.xml</em></strong>” file.</p><pre>&lt;build&gt;<br>   &lt;plugins&gt;<br>      &lt;plugin&gt;<br>         &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;<br>         &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;<br>         &lt;version&gt;3.0.0&lt;/version&gt;<br>         &lt;executions&gt;<br>            &lt;execution&gt;<br>               &lt;goals&gt;<br>                  &lt;goal&gt;java&lt;/goal&gt;<br>               &lt;/goals&gt;<br>            &lt;/execution&gt;<br>         &lt;/executions&gt;<br>         &lt;configuration&gt;<br>            &lt;mainClass&gt;com.maxsoft.greporter.email.EmailSender&lt;/mainClass&gt;<br>         &lt;/configuration&gt;<br>      &lt;/plugin&gt;<br>      &lt;plugin&gt;<br>         &lt;groupId&gt;com.thoughtworks.gauge.maven&lt;/groupId&gt;<br>         &lt;artifactId&gt;gauge-maven-plugin&lt;/artifactId&gt;<br>         &lt;version&gt;1.4.3&lt;/version&gt;<br>      &lt;/plugin&gt;<br>      &lt;plugin&gt;<br>         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>         &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;<br>         &lt;version&gt;3.2.0&lt;/version&gt;<br>      &lt;/plugin&gt;<br>      &lt;plugin&gt;<br>         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>         &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;<br>         &lt;version&gt;2.22.2&lt;/version&gt;<br>      &lt;/plugin&gt;<br>      &lt;plugin&gt;<br>         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>         &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;<br>         &lt;version&gt;3.8.1&lt;/version&gt;<br>         &lt;configuration&gt;<br>            &lt;source&gt;8&lt;/source&gt;<br>            &lt;target&gt;8&lt;/target&gt;<br>         &lt;/configuration&gt;<br>      &lt;/plugin&gt;<br>   &lt;/plugins&gt;<br>&lt;/build&gt;</pre><p>A complete pom.xml file can be found <a href="https://github.com/osandadeshan/MaxSoft-GReporter-Demo/blob/master/pom.xml">here</a>.</p><p>7. Now you can change the email configurations and chart configurations as you need by changing the properties in property files of “<a href="https://github.com/osandadeshan/MaxSoft-Email-Client-For-Gauge-Demo/tree/master/env/chart"><strong><em>chart</em></strong></a>” and “<a href="https://github.com/osandadeshan/MaxSoft-Email-Client-For-Gauge-Demo/tree/master/env/email"><strong><em>email</em></strong></a>” folders.</p><p><strong>barchart.properties</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*e3RUsLVaiNpTueDmL2g9gQ.png" /><figcaption><strong>barchart.properties</strong></figcaption></figure><p><strong>piechart.properties</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*7SEwRza0blyMIf6W8sDbow.png" /><figcaption><strong>piechart.properties</strong></figcaption></figure><p><strong>email.properties</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*BwMRqcsLa32spRZMt24zSw.png" /><figcaption><strong>email.properties</strong></figcaption></figure><p>8. Now you have completed all the configurations and ready to execute your tests and send the test execution report.</p><p>9. Run your specs in the “<strong><em>specs</em></strong>” folder by executing the below command on the command prompt.</p><pre><strong>mvn test-compile gauge:execute -DspecsDir=&quot;specs&quot; -Denv=&quot;dev&quot;</strong></pre><p>10. After the execution, execute the below command on the command prompt to send the test execution report to the stakeholders.</p><pre><strong>mvn clean -DemailConfigEnv=dev install exec:java</strong></pre><p>11. If you need to perform these two operations from a single click, you can use a <em>batch </em>file. Here is a <a href="https://github.com/osandadeshan/MaxSoft-GReporter-Demo/blob/master/TestRunner.bat">sample batch file</a>.</p><p>12. Here is a sample test execution report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93E1-UuilB9VXaDXzoOFMQ.png" /><figcaption><strong>Sample test execution report</strong></figcaption></figure><p><strong>YouTube Tutorial:</strong> <a href="https://youtu.be/nZGMtcQPzxY">https://youtu.be/9uqKlFFIyt4</a></p><p><strong>Happy Automation !!!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ae8af8ad32f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/greporter/maxsoft-email-client-for-gauge-8ae8af8ad32f">MaxSoft — GReporter</a> was originally published in <a href="https://medium.com/greporter">MaxSoft — GReporter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>