extentreports-java
extentreports-java copied to clipboard
FreeMarker template error:
Selenium version =3.8.1 Geco driver version =0.21 Firefox version =61 64bit extentreports version =3.1.5
I have recently upgraded all the above mentioned jars and softwares and tried to execute the script, script is executed but result report was not generated am unable to find the actual root cause
here am adding console data [RemoteTestNG] detected TestNG version 6.13.1 1530774613095 geckodriver INFO geckodriver 0.21.0 1530774613108 geckodriver INFO Listening on 127.0.0.1:33901 1530774613434 mozrunner::runner INFO Running command: "C:\Program Files\Mozilla Firefox\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\Users\nkumar\AppData\Local\Temp\rust_mozprofile.EcMQseYB1bo0" Unable to read VR Path Registry from C:\Users\nkumar\AppData\Local\openvr\openvrpaths.vrpath Unable to read VR Path Registry from C:\Users\nkumar\AppData\Local\openvr\openvrpaths.vrpath Unable to read VR Path Registry from C:\Users\nkumar\AppData\Local\openvr\openvrpaths.vrpath Unable to read VR Path Registry from C:\Users\nkumar\AppData\Local\openvr\openvrpaths.vrpath Unable to read VR Path Registry from C:\Users\nkumar\AppData\Local\openvr\openvrpaths.vrpath 1530774621401 Marionette INFO Listening on port 33925 1530774621734 Marionette WARN TLS certificate errors will be ignored for this session Jul 05, 2018 12:40:22 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C JavaScript error: https://203.109.74.222/jscripts/common/NuesoftCommon.js, line 1145: ReferenceError: $ is not defined JavaScript warning: https://203.109.74.222/jscripts/common/jquery.js, line 2425: unreachable code after return statement URL loaded JavaScript error: https://203.109.74.222/jscripts/common/NuesoftCommon.js, line 1145: ReferenceError: $ is not defined JavaScript warning: https://203.109.74.222/jscripts/common/jquery.js, line 2425: unreachable code after return statement Blank Email and Password validation working on Login Page JavaScript error: https://203.109.74.222/jscripts/common/NuesoftCommon.js, line 1145: ReferenceError: $ is not defined JavaScript warning: https://203.109.74.222/jscripts/common/jquery.js, line 2425: unreachable code after return statement Blank Password validation working on Login Page JavaScript error: https://203.109.74.222/jscripts/common/NuesoftCommon.js, line 1145: ReferenceError: $ is not defined JavaScript warning: https://203.109.74.222/jscripts/common/jquery.js, line 2425: unreachable code after return statement Blank Email validation working on Login Page Help popup displayed on Login Page login success if condition frames2 skip button clicked Welcome and Patient name displayed Message tabfont Home Page tabs =Messages Appointments Immunization Health Info Forms Billing Exit Messages, Appointments, Immunization, Health Info, Forms, Billing, Exit tabs showing in Home Page JavaScript error: https://203.109.74.222/jscripts/common/NuesoftCommon.js, line 1145: ReferenceError: $ is not defined Logout PASSED: LoginValidateBlank PASSED: LoginValidateBlankPassword PASSED: LoginValidateBlankUsername PASSED: HelpCheck PASSED: verifyLogin PASSED: verifyTabs PASSED: Logout
=============================================== Login module Tests run: 7, Failures: 0, Skips: 0
[Parent 14168, Gecko_IOThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346 [Parent 14168, Gecko_IOThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346 [Child 13948, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346 [Child 13948, Chrome_ChildThread] WARNING: pipe er[Child 4700, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346 [Child 4700, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/[Parent 14168, Gecko_IOThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346 *** UTM:SVC TimerManager:registerTimer called after profile-before-change notification. Ignoring timer registration for id: telemetry_modules_ping [GPU 10196, Chrome_ChildThread ###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv
Jul 05, 2018 12:41:03 PM freemarker.log._JULLoggerFactory$JULLogger error SEVERE: Error executing FreeMarker template FreeMarker template error: The following has evaluated to null or missing: ==> report.systemInfoMap[info] [in template "Extent.ftl" at line 193, column 95]
Tip: It's the final [] step that caused this error, not those before it.
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
FTL stack trace ("~" means nesting-related): - Failed at: ${report.systemInfoMap[info]} [in template "Extent.ftl" at line 193, column 93]
Java stack trace (for programmers):
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:131) at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:355) at freemarker.core.Expression.evalAndCoerceToString(Expression.java:82) at freemarker.core.DollarVariable.accept(DollarVariable.java:41) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visitByHiddingParent(Environment.java:345) at freemarker.core.IteratorBlock$IterationContext.executeNestedBlockInner(IteratorBlock.java:240) at freemarker.core.IteratorBlock$IterationContext.executeNestedBlock(IteratorBlock.java:220) at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:194) at freemarker.core.Environment.visitIteratorBlock(Environment.java:572) at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:78) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:64) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.Environment.process(Environment.java:302) at freemarker.template.Template.process(Template.java:325) at com.relevantcodes.extentreports.HTMLReporter.flush(HTMLReporter.java:173) at com.relevantcodes.extentreports.Report.flush(Report.java:468) at com.relevantcodes.extentreports.ExtentReports.flush(ExtentReports.java:898) at com.relevantcodes.extentreports.Report.terminate(Report.java:435) at com.relevantcodes.extentreports.ExtentReports.close(ExtentReports.java:915) at com.patient.login.LoginModule.aftetsuite(LoginModule.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:451) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:425) at org.testng.SuiteRunner.run(SuiteRunner.java:364) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187) at org.testng.TestNG.runSuitesLocally(TestNG.java:1116) at org.testng.TestNG.runSuites(TestNG.java:1028) at org.testng.TestNG.run(TestNG.java:996) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
FreeMarker template error: The following has evaluated to null or missing: ==> report.systemInfoMap[info] [in template "Extent.ftl" at line 193, column 95]
Tip: It's the final [] step that caused this error, not those before it.
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
FTL stack trace ("~" means nesting-related): - Failed at: ${report.systemInfoMap[info]} [in template "Extent.ftl" at line 193, column 93]
Java stack trace (for programmers):
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:131) at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:355) at freemarker.core.Expression.evalAndCoerceToString(Expression.java:82) at freemarker.core.DollarVariable.accept(DollarVariable.java:41) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visitByHiddingParent(Environment.java:345) at freemarker.core.IteratorBlock$IterationContext.executeNestedBlockInner(IteratorBlock.java:240) at freemarker.core.IteratorBlock$IterationContext.executeNestedBlock(IteratorBlock.java:220) at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:194) at freemarker.core.Environment.visitIteratorBlock(Environment.java:572) at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:78) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:64) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.MixedContent.accept(MixedContent.java:54) at freemarker.core.Environment.visit(Environment.java:324) at freemarker.core.Environment.process(Environment.java:302) at freemarker.template.Template.process(Template.java:325) at com.relevantcodes.extentreports.HTMLReporter.flush(HTMLReporter.java:173) at com.relevantcodes.extentreports.Report.flush(Report.java:468) at com.relevantcodes.extentreports.ExtentReports.flush(ExtentReports.java:898) at com.relevantcodes.extentreports.Report.terminate(Report.java:435) at com.relevantcodes.extentreports.ExtentReports.close(ExtentReports.java:915) at com.patient.login.LoginModule.aftetsuite(LoginModule.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:451) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:425) at org.testng.SuiteRunner.run(SuiteRunner.java:364) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187) at org.testng.TestNG.runSuitesLocally(TestNG.java:1116) at org.testng.TestNG.runSuites(TestNG.java:1028) at org.testng.TestNG.run(TestNG.java:996) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) java.lang.NullPointerException at java.io.Writer.write(Unknown Source) at com.relevantcodes.extentreports.utils.Writer.write(Writer.java:21) at com.relevantcodes.extentreports.HTMLReporter.flush(HTMLReporter.java:186) at com.relevantcodes.extentreports.Report.flush(Report.java:468) at com.relevantcodes.extentreports.ExtentReports.flush(ExtentReports.java:898) at com.relevantcodes.extentreports.Report.terminate(Report.java:435) at com.relevantcodes.extentreports.ExtentReports.close(ExtentReports.java:915) at com.patient.login.LoginModule.aftetsuite(LoginModule.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:451) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:425) at org.testng.SuiteRunner.run(SuiteRunner.java:364) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187) at org.testng.TestNG.runSuitesLocally(TestNG.java:1116) at org.testng.TestNG.runSuites(TestNG.java:1028) at org.testng.TestNG.run(TestNG.java:996) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
=============================================== Patient Portal Total tests run: 7, Failures: 0, Skips: 0
Result was not generated