<?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: Generate Excel Report in Selenium using TestNG	</title>
	<atom:link href="https://automationtesting.in/generate-excel-report-in-selenium-using-testng/feed/" rel="self" type="application/rss+xml" />
	<link>https://automationtesting.in/generate-excel-report-in-selenium-using-testng/</link>
	<description>Automation Testing</description>
	<lastBuildDate>Mon, 24 Apr 2017 10:24:29 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>
		By: Manikanta		</title>
		<link>https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-128</link>

		<dc:creator><![CDATA[Manikanta]]></dc:creator>
		<pubDate>Mon, 24 Apr 2017 10:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1432#comment-128</guid>

					<description><![CDATA[Hi

I am using @BeforeTest,@Test,@AfterTest annotations after that I created a separate class named as GenerateReport with the main() method but it won&#039;t generate the .xlsx file. So please help on this]]></description>
			<content:encoded><![CDATA[<p>Hi</p>
<p>I am using @BeforeTest,@Test,@AfterTest annotations after that I created a separate class named as GenerateReport with the main() method but it won&#8217;t generate the .xlsx file. So please help on this</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Manikanta		</title>
		<link>https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-125</link>

		<dc:creator><![CDATA[Manikanta]]></dc:creator>
		<pubDate>Mon, 24 Apr 2017 08:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1432#comment-125</guid>

					<description><![CDATA[Hi

Could you please send your sample project to mani6747@gmail.com]]></description>
			<content:encoded><![CDATA[<p>Hi</p>
<p>Could you please send your sample project to <a href="mailto:mani6747@gmail.com">mani6747@gmail.com</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Krishna Sakinala		</title>
		<link>https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-124</link>

		<dc:creator><![CDATA[Krishna Sakinala]]></dc:creator>
		<pubDate>Mon, 24 Apr 2017 07:13:57 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1432#comment-124</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-122&quot;&gt;Manikanta&lt;/a&gt;.

You should NOT use the report generation code along with your test execution. You have to write a separate class for that and then execute. How I shown in the blog, follow the same procedure. Watch YouTube video for better understanding.

Do not put report generation code in the @AfterTest, @AfterMethod, @AfterClass and @AfterSuite.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-122">Manikanta</a>.</p>
<p>You should NOT use the report generation code along with your test execution. You have to write a separate class for that and then execute. How I shown in the blog, follow the same procedure. Watch YouTube video for better understanding.</p>
<p>Do not put report generation code in the @AfterTest, @AfterMethod, @AfterClass and @AfterSuite.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Manikanta		</title>
		<link>https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-122</link>

		<dc:creator><![CDATA[Manikanta]]></dc:creator>
		<pubDate>Mon, 24 Apr 2017 06:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1432#comment-122</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-119&quot;&gt;Krishna Sakinala&lt;/a&gt;.

Hi,

I am executing tests through TestNG.xml.Below is the process am executing



		
		
			
				
			
		
	



@BeforeTest(alwaysRun = true)
	@Parameters({ &quot;browser&quot; })
	public void setUp(String browser) throws Exception {
		try {
			Reporter.log(&quot;=====Browser Session Started=====&quot;, true);
			driverhome = new DriverHome(browser, &quot;test&quot;);
			
		} catch (WebDriverException e) {
			System.out.println(e);
			
		}
	}

	@AfterTest
	public void close() throws Exception {
		try {
			Thread.sleep(5000);
			Xl.generateReport(&quot;Reports.xlsx&quot;);
		        driverhome.emailreport();
			driverhome.quitDriver();
			Reporter.log(&quot;=====Browser Session End=========&quot;, true);
		} catch (WebDriverException e) {
			System.out.println(e); 

		}
	}


Please let me know the correct process]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-119">Krishna Sakinala</a>.</p>
<p>Hi,</p>
<p>I am executing tests through TestNG.xml.Below is the process am executing</p>
<p>@BeforeTest(alwaysRun = true)<br />
	@Parameters({ &#8220;browser&#8221; })<br />
	public void setUp(String browser) throws Exception {<br />
		try {<br />
			Reporter.log(&#8220;=====Browser Session Started=====&#8221;, true);<br />
			driverhome = new DriverHome(browser, &#8220;test&#8221;);</p>
<p>		} catch (WebDriverException e) {<br />
			System.out.println(e);</p>
<p>		}<br />
	}</p>
<p>	@AfterTest<br />
	public void close() throws Exception {<br />
		try {<br />
			Thread.sleep(5000);<br />
			Xl.generateReport(&#8220;Reports.xlsx&#8221;);<br />
		        driverhome.emailreport();<br />
			driverhome.quitDriver();<br />
			Reporter.log(&#8220;=====Browser Session End=========&#8221;, true);<br />
		} catch (WebDriverException e) {<br />
			System.out.println(e); </p>
<p>		}<br />
	}</p>
<p>Please let me know the correct process</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Krishna Sakinala		</title>
		<link>https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-119</link>

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

					<description><![CDATA[I am not sure how you are running but you need to execute the tests first and then execute the report generation code separately. Then only you will get correct output.]]></description>
			<content:encoded><![CDATA[<p>I am not sure how you are running but you need to execute the tests first and then execute the report generation code separately. Then only you will get correct output.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Manikanta		</title>
		<link>https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-117</link>

		<dc:creator><![CDATA[Manikanta]]></dc:creator>
		<pubDate>Fri, 21 Apr 2017 10:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1432#comment-117</guid>

					<description><![CDATA[HI 

 I have done with all and it is generating .xlsx file then ran with two tests but it is showing previous output with a single test and again ran my test with single test now it is showing two tests.Please help me on this]]></description>
			<content:encoded><![CDATA[<p>HI </p>
<p> I have done with all and it is generating .xlsx file then ran with two tests but it is showing previous output with a single test and again ran my test with single test now it is showing two tests.Please help me on this</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Manikanta		</title>
		<link>https://automationtesting.in/generate-excel-report-in-selenium-using-testng/#comment-116</link>

		<dc:creator><![CDATA[Manikanta]]></dc:creator>
		<pubDate>Fri, 21 Apr 2017 10:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=1432#comment-116</guid>

					<description><![CDATA[HI 

 I have done with all and it is generating .xlsx file then ran with two tests but it is showing previous output with a single test and again ran my test with single test now it is showing two tests.Please help me on this]]></description>
			<content:encoded><![CDATA[<p>HI </p>
<p> I have done with all and it is generating .xlsx file then ran with two tests but it is showing previous output with a single test and again ran my test with single test now it is showing two tests.Please help me on this</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
