How to create a custom HTML reports for selenium tests using testng.
this the HTML code
[12/21/2015 9:59:51 AM] ramakrishna ravipati: <html>
<head>
<title align="center"> EP Project </title>
<head>
<body>
<h3 align="center">Test Suite</h3>
<table>
<tr>
<th width="40%">Test Case </th>
<th width="40%">Result</th>
<th width="50%">Status</th>
</tr>
<!-- INSERT_RESULTS -->
</table>
</body> .... how to selenium code in that insert results ?
output for HTML code.
Test case # Pass/fail status
i want all test cases need to be in that format.
.
i am not sure that it can be done.
use extent report if you customize HTML reports.
Ok I used the extent reports ,iam getting below issues
1)iam getting below errors .How to initialize the log 4j file.
log4j:WARN No appenders could be found for logger.
log4j:WARN Please initialize the log4j system properly.
===============================================
Test Cases
Total tests run: 6, Failures: 0, Skips: 0
===============================================
Jan 07, 2016 11:03:37 PM com.relevantcodes.extentreports.Configuration <init>
INFO: Configurating report from file:/C:/Software/poi/extentreports-java-v2.40/extentreports-2.40.0/extentreports-java-2.40.0.jar!/com/relevantcodes/extentreports/resources/extent-config.xml
2) in the report file i want to get the packages , under the each package i want to see the tests. but here in the extend reports , i am seeing only tests.
[quote:17qee6sh]1)iam getting below errors .How to initialize the log 4j file.
log4j:WARN No appenders could be found for logger.
log4j:WARN Please initialize the log4j system properly.
[/quote:17qee6sh]
you can ignore these if you're not using log4j.
[quote:17qee6sh]2) in the report file i want to get the packages , under the each package i want to see the tests. but here in the extend reports , i am seeing only tests.[/quote:17qee6sh]
check out the below link and i attached a project check that too.
http://extentreports.relevantcodes.com/java/version2/docs.html