How to use extent report in Testcomplete
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Nitish ,
I am also facing same issue. can you please share the solution for me please
Regards,
Sathish Kumar K
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
Let me post a link to a similar discussion here:
Tanya Yatskovskaya
SmartBear Community and Education Manager
