selenium - java.lang.NoClassDefFoundError: freemarker/template/TemplateModelException -
tried create advanced html
reports using extentreports
jar, throwing below error.
java.lang.noclassdeffounderror: freemarker/template/templatemodelexception
code :-
public class xtentreport { webdriver driver; extentreports report; extenttest logger; @test public void verifyxreport() { report = new extentreports("d:\\selenium_reports\\advancereport.html"); logger=report.starttest("startingtc"); driver= new firefoxdriver(); driver.manage().window().maximize(); logger.log(logstatus.info,"browser , running"); driver.get("google.com"); logger.log(logstatus.pass,"test completed"); report.endtest(logger); report.flush(); } }
you need add freemarker-<version>.jar
yor classpath.
Comments
Post a Comment