<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Generating Extent Reports &#8211; Java &#8211; Version3	</title>
	<atom:link href="https://automationtesting.in/generating-extent-reports-java-version3/feed/" rel="self" type="application/rss+xml" />
	<link>https://automationtesting.in/generating-extent-reports-java-version3/</link>
	<description>Automation Testing</description>
	<lastBuildDate>Tue, 09 May 2017 07:10:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>
		By: Tejas		</title>
		<link>https://automationtesting.in/generating-extent-reports-java-version3/#comment-165</link>

		<dc:creator><![CDATA[Tejas]]></dc:creator>
		<pubDate>Tue, 09 May 2017 07:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1354#comment-165</guid>

					<description><![CDATA[Hi Krishna,

i am regular reader of your posts on selenium. you are doing great job.

If you post an article for Extent Reports 3.0 with selenium web driver on C# platform it will be great help to me.

Thanks in advance.]]></description>
			<content:encoded><![CDATA[<p>Hi Krishna,</p>
<p>i am regular reader of your posts on selenium. you are doing great job.</p>
<p>If you post an article for Extent Reports 3.0 with selenium web driver on C# platform it will be great help to me.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shashi		</title>
		<link>https://automationtesting.in/generating-extent-reports-java-version3/#comment-126</link>

		<dc:creator><![CDATA[Shashi]]></dc:creator>
		<pubDate>Mon, 24 Apr 2017 09:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1354#comment-126</guid>

					<description><![CDATA[Thank you very much, this helped. I am able to get consolidated report. Thank you once again.]]></description>
			<content:encoded><![CDATA[<p>Thank you very much, this helped. I am able to get consolidated report. Thank you once again.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Krishna Sakinala		</title>
		<link>https://automationtesting.in/generating-extent-reports-java-version3/#comment-118</link>

		<dc:creator><![CDATA[Krishna Sakinala]]></dc:creator>
		<pubDate>Fri, 21 Apr 2017 16:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1354#comment-118</guid>

					<description><![CDATA[Please refer below blog

http://automationtesting.in/extent-report-with-multiple-classes/]]></description>
			<content:encoded><![CDATA[<p>Please refer below blog</p>
<p><a href="http://automationtesting.in/extent-report-with-multiple-classes/" rel="ugc">http://automationtesting.in/extent-report-with-multiple-classes/</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shashi Chowrasia		</title>
		<link>https://automationtesting.in/generating-extent-reports-java-version3/#comment-115</link>

		<dc:creator><![CDATA[Shashi Chowrasia]]></dc:creator>
		<pubDate>Fri, 21 Apr 2017 05:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1354#comment-115</guid>

					<description><![CDATA[Hi Sir,

I am not able to get a single consolidated report for all the tests which are in several different testNG classes if i am running from testng.xml.
Can you help me with this?

Below is the code which i am using: 

First File: One_Page.java

public class One_Page {

    public static ExtentHtmlReporter htmlReporter;
	public static ExtentReports extent;
	public static ExtentTest test;

@BeforeSuite
public void startReport() {
		htmlReporter = new ExtentHtmlReporter();
		extent = new ExtentReports();
		extent.attachReporter(htmlReporter);
		extent.setSystemInfo(&quot;OS&quot;, &quot;Windows 10&quot;);
		extent.setSystemInfo(&quot;Host Name&quot;, &quot;HOSTNAME&quot;);
		extent.setSystemInfo(&quot;Environment&quot;, &quot;TEST&quot;);
		extent.setSystemInfo(&quot;Tester&quot;, &quot;Shashi&quot;);
                htmlReporter.config().setChartVisibilityOnOpen(true);
		htmlReporter.config().setDocumentTitle(&quot;Automation Report&quot;);
		htmlReporter.config().setReportName(&quot;Regression Report&quot;);
		htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);
		htmlReporter.config().setTheme(Theme.STANDARD);
		htmlReporter.setAppendExisting(true);
}
@Test
public void login() {
	test = extent.createTest(&quot;1st TEst&quot;, (&quot;Verify that authorized user&#039;s login attempt for : &#039;&quot; + username + &quot;&#039;&quot;));

	//code to test login functionality

}

@AfterMethod
public void getResult ITestResult result) {
                  // code to log pass/fail/skip status
}

@AfterSuite
public void TearDown () {

extent.flush();

}

}


First File: Two_Page.java

public class Two_Page {

    public static ExtentHtmlReporter htmlReporter;
	public static ExtentReports extent;
	public static ExtentTest test;

@BeforeSuite
public void startReport() {
		htmlReporter = new ExtentHtmlReporter();
		extent = new ExtentReports();
		extent.attachReporter(htmlReporter);
		extent.setSystemInfo(&quot;OS&quot;, &quot;Windows 10&quot;);
		extent.setSystemInfo(&quot;Host Name&quot;, &quot;HOSTNAME&quot;);
		extent.setSystemInfo(&quot;Environment&quot;, &quot;TEST&quot;);
		extent.setSystemInfo(&quot;Tester&quot;, &quot;Shashi&quot;);
                htmlReporter.config().setChartVisibilityOnOpen(true);
		htmlReporter.config().setDocumentTitle(&quot;Automation Report&quot;);
		htmlReporter.config().setReportName(&quot;Regression Report&quot;);
		htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);
		htmlReporter.config().setTheme(Theme.STANDARD);
		htmlReporter.setAppendExisting(true);
}
@Test
public void PasswordChange() {
	test = extent.createTest(&quot;2nd Test&quot;, (&quot;Verify that authorized user&#039;s password change attempt&quot;));

	//code to test change password functionality

}

@Test
public void reloginTest () {
          test = extent.createTest(&quot;2nd Test&quot;, (&quot;Verify that authorized user&#039;s password change attempt&quot;));

	//code to test relogin after pwd change
}


@AfterMethod
public void getResult ITestResult result) {
                  // code to log pass/fail/skip status
}

@AfterSuite
public void TearDown () {

extent.flush();

}

}

testng.xml






	
		
			
			
			
		
	

 

***********************

The problem which I am facing is the report for Test Class Two_Page.java is coming but i m not seeing any report for One_Page.java class&#039;s test.

Now since i have three tests my expectation is that if i have multiple tests across multiple class files, then if I run through testng.xml, I should get a single consolidated report having logs captured for all the tests in single report.

I will be grateful to you if you can help me in this regard.

Thanks &#038; Regards...
Shashi Chowrasia]]></description>
			<content:encoded><![CDATA[<p>Hi Sir,</p>
<p>I am not able to get a single consolidated report for all the tests which are in several different testNG classes if i am running from testng.xml.<br />
Can you help me with this?</p>
<p>Below is the code which i am using: </p>
<p>First File: One_Page.java</p>
<p>public class One_Page {</p>
<p>    public static ExtentHtmlReporter htmlReporter;<br />
	public static ExtentReports extent;<br />
	public static ExtentTest test;</p>
<p>@BeforeSuite<br />
public void startReport() {<br />
		htmlReporter = new ExtentHtmlReporter();<br />
		extent = new ExtentReports();<br />
		extent.attachReporter(htmlReporter);<br />
		extent.setSystemInfo(&#8220;OS&#8221;, &#8220;Windows 10&#8221;);<br />
		extent.setSystemInfo(&#8220;Host Name&#8221;, &#8220;HOSTNAME&#8221;);<br />
		extent.setSystemInfo(&#8220;Environment&#8221;, &#8220;TEST&#8221;);<br />
		extent.setSystemInfo(&#8220;Tester&#8221;, &#8220;Shashi&#8221;);<br />
                htmlReporter.config().setChartVisibilityOnOpen(true);<br />
		htmlReporter.config().setDocumentTitle(&#8220;Automation Report&#8221;);<br />
		htmlReporter.config().setReportName(&#8220;Regression Report&#8221;);<br />
		htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);<br />
		htmlReporter.config().setTheme(Theme.STANDARD);<br />
		htmlReporter.setAppendExisting(true);<br />
}<br />
@Test<br />
public void login() {<br />
	test = extent.createTest(&#8220;1st TEst&#8221;, (&#8220;Verify that authorized user&#8217;s login attempt for : &#8216;&#8221; + username + &#8220;&#8216;&#8221;));</p>
<p>	//code to test login functionality</p>
<p>}</p>
<p>@AfterMethod<br />
public void getResult ITestResult result) {<br />
                  // code to log pass/fail/skip status<br />
}</p>
<p>@AfterSuite<br />
public void TearDown () {</p>
<p>extent.flush();</p>
<p>}</p>
<p>}</p>
<p>First File: Two_Page.java</p>
<p>public class Two_Page {</p>
<p>    public static ExtentHtmlReporter htmlReporter;<br />
	public static ExtentReports extent;<br />
	public static ExtentTest test;</p>
<p>@BeforeSuite<br />
public void startReport() {<br />
		htmlReporter = new ExtentHtmlReporter();<br />
		extent = new ExtentReports();<br />
		extent.attachReporter(htmlReporter);<br />
		extent.setSystemInfo(&#8220;OS&#8221;, &#8220;Windows 10&#8221;);<br />
		extent.setSystemInfo(&#8220;Host Name&#8221;, &#8220;HOSTNAME&#8221;);<br />
		extent.setSystemInfo(&#8220;Environment&#8221;, &#8220;TEST&#8221;);<br />
		extent.setSystemInfo(&#8220;Tester&#8221;, &#8220;Shashi&#8221;);<br />
                htmlReporter.config().setChartVisibilityOnOpen(true);<br />
		htmlReporter.config().setDocumentTitle(&#8220;Automation Report&#8221;);<br />
		htmlReporter.config().setReportName(&#8220;Regression Report&#8221;);<br />
		htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);<br />
		htmlReporter.config().setTheme(Theme.STANDARD);<br />
		htmlReporter.setAppendExisting(true);<br />
}<br />
@Test<br />
public void PasswordChange() {<br />
	test = extent.createTest(&#8220;2nd Test&#8221;, (&#8220;Verify that authorized user&#8217;s password change attempt&#8221;));</p>
<p>	//code to test change password functionality</p>
<p>}</p>
<p>@Test<br />
public void reloginTest () {<br />
          test = extent.createTest(&#8220;2nd Test&#8221;, (&#8220;Verify that authorized user&#8217;s password change attempt&#8221;));</p>
<p>	//code to test relogin after pwd change<br />
}</p>
<p>@AfterMethod<br />
public void getResult ITestResult result) {<br />
                  // code to log pass/fail/skip status<br />
}</p>
<p>@AfterSuite<br />
public void TearDown () {</p>
<p>extent.flush();</p>
<p>}</p>
<p>}</p>
<p>testng.xml</p>
<p>***********************</p>
<p>The problem which I am facing is the report for Test Class Two_Page.java is coming but i m not seeing any report for One_Page.java class&#8217;s test.</p>
<p>Now since i have three tests my expectation is that if i have multiple tests across multiple class files, then if I run through testng.xml, I should get a single consolidated report having logs captured for all the tests in single report.</p>
<p>I will be grateful to you if you can help me in this regard.</p>
<p>Thanks &amp; Regards&#8230;<br />
Shashi Chowrasia</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
