Ask a Question

How to use extent report in Testcomplete

SOLVED
Nitish
Occasional Contributor

How to use extent report in Testcomplete

I performed below Operation 
1.Load Classes and Jar in Java Bridge.

2. 

function Test() {

var extentReports = JavaClasses.com.relevantcodes.extentreports.ExtentReports
var logStatus = JavaClasses.com.relevantcodes.extentreports.LogStatus

var path = ".\\Generated ExtentReport\\report.html"

var extent = extentReports.newInstance(path);

var test = extent.startTest("Sample Test Report", "Sample description");

test.log(logStatus.INFO, "This step shows usage of log INFO");
test.log(logStatus.PASS, "This step shows usage of log PASS");
test.log(logStatus.FAIL, "This step shows usage of log FAIL");

extent.endTest(test);
extent.flush();
}

 

After running the above code .
"I am getting an error cannot read property of relevant code of undefined"
PFA the Screenhot of Java Bridge configuration and error 

1 ACCEPTED SOLUTION

Accepted Solutions
TanyaYatskovska
Community Manager

Re: How to use extent report in Testcomplete

Hi guys, 

 

Let me post a link to a similar discussion here:

https://community.smartbear.com/t5/TestComplete-Desktop-Testing/Error-Error-while-generating-Extent-...

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!

View solution in original post

3 REPLIES 3
Krishna_Kumar
Contributor

Re: How to use extent report in Testcomplete

Hi @Nitish ,

 

I am also facing same issue. can you please share the solution for me please

 

Regards,

Sathish Kumar K

tristaanogre
Community Hero

Re: How to use extent report in Testcomplete

Your answer is on your own thread.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
TanyaYatskovska
Community Manager

Re: How to use extent report in Testcomplete

Hi guys, 

 

Let me post a link to a similar discussion here:

https://community.smartbear.com/t5/TestComplete-Desktop-Testing/Error-Error-while-generating-Extent-...

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: