Create our own HTML report from Selenium tests | Selenium Forum
M
Posted on 06/01/2016
Create our own HTML report from Selenium tests
is there video to make the custom HTML report using testng

http://www.ontestautomation.com/create-your-own-html-report-from-selenium-tests/

can u provide the solution, how to handle this

I used below link for generating the custom HTML file, but class file is having some issue. iam not able to resolve. is there any alterative solution.

http://relevantcodes.com/testng-listener-using-extentreports/

M
Replied on 06/01/2016

can you please repeat the question.


M
Replied on 07/01/2016

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.
.


M
Replied on 07/01/2016

i am not sure that it can be done.

use extent report if you customize HTML reports.


M
Replied on 07/01/2016

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.

Responsive image

M
Replied on 07/01/2016

[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


M
Replied on 09/01/2016

Ty ashish. it's worked for me .