<?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	</title>
	<atom:link href="https://automationtesting.in/generating-extent-reports-java/feed/" rel="self" type="application/rss+xml" />
	<link>https://automationtesting.in/generating-extent-reports-java/</link>
	<description>Automation Testing</description>
	<lastBuildDate>Wed, 03 May 2017 17:46:01 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>
		By: richa		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-136</link>

		<dc:creator><![CDATA[richa]]></dc:creator>
		<pubDate>Wed, 03 May 2017 17:46:01 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-136</guid>

					<description><![CDATA[I want to share these reports with my team mate but since it stores the screenshots in my local machine, he will not be able to see screenshots in the reports. Any work around for this?]]></description>
			<content:encoded><![CDATA[<p>I want to share these reports with my team mate but since it stores the screenshots in my local machine, he will not be able to see screenshots in the reports. Any work around for this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: bhaskar		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-71</link>

		<dc:creator><![CDATA[bhaskar]]></dc:creator>
		<pubDate>Mon, 27 Feb 2017 11:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-71</guid>

					<description><![CDATA[Thanks for detail explanation of extent reports]]></description>
			<content:encoded><![CDATA[<p>Thanks for detail explanation of extent reports</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vikas		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-70</link>

		<dc:creator><![CDATA[vikas]]></dc:creator>
		<pubDate>Mon, 27 Feb 2017 01:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-70</guid>

					<description><![CDATA[Hi,

looks liek you missed to add following 2 tags in the extemt-config file and   because of which it was throwing  -[Fatal Error] :6:5: Content is not allowed in prolog.


Tags-
 

    
        

Solution :
xml  should start with 



    
        &lt;!-- title of the document --&gt;]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>looks liek you missed to add following 2 tags in the extemt-config file and   because of which it was throwing  -[Fatal Error] :6:5: Content is not allowed in prolog.</p>
<p>Tags-</p>
<p>Solution :<br />
xml  should start with </p>
<p>        <!-- title of the document --></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: rahul		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-64</link>

		<dc:creator><![CDATA[rahul]]></dc:creator>
		<pubDate>Mon, 20 Feb 2017 11:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-64</guid>

					<description><![CDATA[Hi i&#039;m facing a similar problem as above

I&#039;ve done the exact same steps as above and I get a similar error

first
[Fatal Error] :6:5: Content is not allowed in prolog.
org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 5; Content is not allowed in prolog.
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
	at com.relevantcodes.extentreports.Configuration.getConfigurationMap(Configuration.java:38)
	at com.relevantcodes.extentreports.Report.loadConfig(Report.java:474)
	at com.relevantcodes.extentreports.ExtentReports.loadConfig(ExtentReports.java:479)
	at GenerateExtentReport.startReport(GenerateExtentReport.java:22)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
	at org.testng.TestRunner.beforeRun(TestRunner.java:648)
	at org.testng.TestRunner.run(TestRunner.java:616)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
	at org.testng.SuiteRunner.run(SuiteRunner.java:261)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
	at org.testng.TestNG.run(TestNG.java:1048)
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
FAILED CONFIGURATION: @BeforeTest startReport
java.lang.NullPointerException
	at com.relevantcodes.extentreports.Report.loadConfig(Report.java:480)
	at com.relevantcodes.extentreports.ExtentReports.loadConfig(ExtentReports.java:479)
	at GenerateExtentReport.startReport(GenerateExtentReport.java:22)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
	at org.testng.TestRunner.beforeRun(TestRunner.java:648)
	at org.testng.TestRunner.run(TestRunner.java:616)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
	at org.testng.SuiteRunner.run(SuiteRunner.java:261)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
	at org.testng.TestNG.run(TestNG.java:1048)
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)

and therefore remaining get skipped

this is my startReport() function
 @BeforeTest
    public void startReport()
    {
    	extent = new ExtentReports(System.getProperty(&quot;user.dir&quot;) +&quot;/test-output/MyOwnReport.html&quot;, true);
        extent.addSystemInfo(&quot;Host Name&quot;, &quot;Rahul&quot;);
        extent.loadConfig(new File(System.getProperty(&quot;user.dir&quot;)+&quot;\\extent-config.xml&quot;));
    }]]></description>
			<content:encoded><![CDATA[<p>Hi i&#8217;m facing a similar problem as above</p>
<p>I&#8217;ve done the exact same steps as above and I get a similar error</p>
<p>first<br />
[Fatal Error] :6:5: Content is not allowed in prolog.<br />
org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 5; Content is not allowed in prolog.<br />
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)<br />
	at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)<br />
	at com.relevantcodes.extentreports.Configuration.getConfigurationMap(Configuration.java:38)<br />
	at com.relevantcodes.extentreports.Report.loadConfig(Report.java:474)<br />
	at com.relevantcodes.extentreports.ExtentReports.loadConfig(ExtentReports.java:479)<br />
	at GenerateExtentReport.startReport(GenerateExtentReport.java:22)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
	at java.lang.reflect.Method.invoke(Unknown Source)<br />
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)<br />
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)<br />
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)<br />
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)<br />
	at org.testng.TestRunner.beforeRun(TestRunner.java:648)<br />
	at org.testng.TestRunner.run(TestRunner.java:616)<br />
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)<br />
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)<br />
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)<br />
	at org.testng.SuiteRunner.run(SuiteRunner.java:261)<br />
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)<br />
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)<br />
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)<br />
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)<br />
	at org.testng.TestNG.run(TestNG.java:1048)<br />
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)<br />
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)<br />
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)<br />
FAILED CONFIGURATION: @BeforeTest startReport<br />
java.lang.NullPointerException<br />
	at com.relevantcodes.extentreports.Report.loadConfig(Report.java:480)<br />
	at com.relevantcodes.extentreports.ExtentReports.loadConfig(ExtentReports.java:479)<br />
	at GenerateExtentReport.startReport(GenerateExtentReport.java:22)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
	at java.lang.reflect.Method.invoke(Unknown Source)<br />
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)<br />
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)<br />
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)<br />
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)<br />
	at org.testng.TestRunner.beforeRun(TestRunner.java:648)<br />
	at org.testng.TestRunner.run(TestRunner.java:616)<br />
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)<br />
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)<br />
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)<br />
	at org.testng.SuiteRunner.run(SuiteRunner.java:261)<br />
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)<br />
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)<br />
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)<br />
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)<br />
	at org.testng.TestNG.run(TestNG.java:1048)<br />
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)<br />
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)<br />
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)</p>
<p>and therefore remaining get skipped</p>
<p>this is my startReport() function<br />
 @BeforeTest<br />
    public void startReport()<br />
    {<br />
    	extent = new ExtentReports(System.getProperty(&#8220;user.dir&#8221;) +&#8221;/test-output/MyOwnReport.html&#8221;, true);<br />
        extent.addSystemInfo(&#8220;Host Name&#8221;, &#8220;Rahul&#8221;);<br />
        extent.loadConfig(new File(System.getProperty(&#8220;user.dir&#8221;)+&#8221;\\extent-config.xml&#8221;));<br />
    }</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Krishna Sakinala		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-43</link>

		<dc:creator><![CDATA[Krishna Sakinala]]></dc:creator>
		<pubDate>Tue, 07 Feb 2017 06:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-43</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://automationtesting.in/generating-extent-reports-java/#comment-42&quot;&gt;Dinithi Nadee Shakya&lt;/a&gt;.

extent = new ExtentReports (System.getProperty(“user.dir”)+”/test-output/&lt;strong&gt;ReportExtent00.html&lt;/strong&gt;”,true); 
Why you gave the report name with &#039;00&#039;(any specific reason?)
&lt;strong&gt;extent.loadConfig(new File(System.getProperty(“user.dir”+”/Extent-Config.xml”)));&lt;/strong&gt;
in the above line you did not closed after the &quot;user.dir&quot;. Close that and try again.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://automationtesting.in/generating-extent-reports-java/#comment-42">Dinithi Nadee Shakya</a>.</p>
<p>extent = new ExtentReports (System.getProperty(“user.dir”)+”/test-output/<strong>ReportExtent00.html</strong>”,true);<br />
Why you gave the report name with &#8217;00&#8242;(any specific reason?)<br />
<strong>extent.loadConfig(new File(System.getProperty(“user.dir”+”/Extent-Config.xml”)));</strong><br />
in the above line you did not closed after the &#8220;user.dir&#8221;. Close that and try again.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dinithi Nadee Shakya		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-42</link>

		<dc:creator><![CDATA[Dinithi Nadee Shakya]]></dc:creator>
		<pubDate>Tue, 07 Feb 2017 05:27:39 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-42</guid>

					<description><![CDATA[Hello Krishna...

Help needed :) 
I try your code and it gives this error.
&quot;FAILED CONFIGURATION: @BeforeTest startReport
java.lang.NullPointerException&quot;

and here is the startReport method.

	public void startReport()
	{
		
		extent = new ExtentReports (System.getProperty(&quot;user.dir&quot;)+&quot;/test-output/ReportExtent00.html&quot;,true);
		extent.addSystemInfo(&quot;Host Name&quot;, &quot;Shakya&quot;);
		extent.addSystemInfo(&quot;Environmet&quot;, &quot;QA&quot;);
		extent.addSystemInfo(&quot;User Name&quot;, &quot;Shakya RDN&quot;);
		extent.loadConfig(new File(System.getProperty(&quot;user.dir&quot;+&quot;/Extent-Config.xml&quot;)));
			
	}

What is the mistake I have done...

Thank you very much!]]></description>
			<content:encoded><![CDATA[<p>Hello Krishna&#8230;</p>
<p>Help needed 🙂<br />
I try your code and it gives this error.<br />
&#8220;FAILED CONFIGURATION: @BeforeTest startReport<br />
java.lang.NullPointerException&#8221;</p>
<p>and here is the startReport method.</p>
<p>	public void startReport()<br />
	{</p>
<p>		extent = new ExtentReports (System.getProperty(&#8220;user.dir&#8221;)+&#8221;/test-output/ReportExtent00.html&#8221;,true);<br />
		extent.addSystemInfo(&#8220;Host Name&#8221;, &#8220;Shakya&#8221;);<br />
		extent.addSystemInfo(&#8220;Environmet&#8221;, &#8220;QA&#8221;);<br />
		extent.addSystemInfo(&#8220;User Name&#8221;, &#8220;Shakya RDN&#8221;);<br />
		extent.loadConfig(new File(System.getProperty(&#8220;user.dir&#8221;+&#8221;/Extent-Config.xml&#8221;)));</p>
<p>	}</p>
<p>What is the mistake I have done&#8230;</p>
<p>Thank you very much!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Krishna Sakinala		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-18</link>

		<dc:creator><![CDATA[Krishna Sakinala]]></dc:creator>
		<pubDate>Fri, 13 Jan 2017 02:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-18</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://automationtesting.in/generating-extent-reports-java/#comment-17&quot;&gt;Mohit Sharma&lt;/a&gt;.

Thanks for the feedback Mohit.
Will do definitely once I get the time.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://automationtesting.in/generating-extent-reports-java/#comment-17">Mohit Sharma</a>.</p>
<p>Thanks for the feedback Mohit.<br />
Will do definitely once I get the time.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mohit Sharma		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-17</link>

		<dc:creator><![CDATA[Mohit Sharma]]></dc:creator>
		<pubDate>Wed, 11 Jan 2017 12:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-17</guid>

					<description><![CDATA[Hi Krishna,

Nice Tutorial, could you please create a simple tutorial on Extent Reporting with Parallel Execution with TestNG]]></description>
			<content:encoded><![CDATA[<p>Hi Krishna,</p>
<p>Nice Tutorial, could you please create a simple tutorial on Extent Reporting with Parallel Execution with TestNG</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Krishna Sakinala		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-8</link>

		<dc:creator><![CDATA[Krishna Sakinala]]></dc:creator>
		<pubDate>Thu, 29 Dec 2016 06:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-8</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://automationtesting.in/generating-extent-reports-java/#comment-7&quot;&gt;Raghavendra&lt;/a&gt;.

I am planning to make a framework or some example video to show how we can use in the framework level soon.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://automationtesting.in/generating-extent-reports-java/#comment-7">Raghavendra</a>.</p>
<p>I am planning to make a framework or some example video to show how we can use in the framework level soon.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Raghavendra		</title>
		<link>https://automationtesting.in/generating-extent-reports-java/#comment-7</link>

		<dc:creator><![CDATA[Raghavendra]]></dc:creator>
		<pubDate>Thu, 29 Dec 2016 06:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://automationtesting.in/?p=161#comment-7</guid>

					<description><![CDATA[Hi,

How can we make a generic extent report class and use it in our Page Object Model Framework.

Please guide on same.

Thank you]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>How can we make a generic extent report class and use it in our Page Object Model Framework.</p>
<p>Please guide on same.</p>
<p>Thank you</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
