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
Hi guys,
Let me post a link to a similar discussion here: