I'm getting errors after trying to login:
SyntaxError: missing ; before statement (httpunit; line 960)
and
com.meterware.httpunit.ScriptException: Script 'HM_DOM = (document.getElementById) ? true : false;
There was 1 error: 1) testLogin(tests.EpassTest)java.lang.RuntimeException: Script 'top.window.name="EPASS"; at junit.textui.TestRunner.run(TestRunner.java:72) at tests.EpassTest.main(EpassTest.java:13) location = "/en/index.jsp?_eps_=Y"' failed: com.meterware.httpunit.ScriptException: Script 'HM_DOM = (document.getElementById) ? true : false;
Could someone shed some light on this? I'd rather not test javascript, just core functionality...
Hi! In theory, you can call:
HttpUnitOptions.setExceptionsThrownOnScriptError( false );
that should disable any Script Exceptions from interrupting the test run. However, I cannot get this to work properly in 1.5.3!
Log in to post a comment.
I'm getting errors after trying to login:
SyntaxError: missing ; before statement (httpunit; line 960)
and
com.meterware.httpunit.ScriptException: Script 'HM_DOM = (document.getElementById) ? true : false;
There was 1 error:
1) testLogin(tests.EpassTest)java.lang.RuntimeException: Script 'top.window.name="EPASS";
at junit.textui.TestRunner.run(TestRunner.java:72)
at tests.EpassTest.main(EpassTest.java:13)
location = "/en/index.jsp?_eps_=Y"' failed: com.meterware.httpunit.ScriptException: Script 'HM_DOM = (document.getElementById) ? true : false;
Could someone shed some light on this? I'd rather not test javascript, just core functionality...
Hi! In theory, you can call:
HttpUnitOptions.setExceptionsThrownOnScriptError( false );
that should disable any Script Exceptions from interrupting the test run. However, I cannot get this to work properly in 1.5.3!