Menu

Newbie - help with ScriptExceptions...

Help
2003-05-16
2003-06-04
  • Edward Ciramella

    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...

     
    • Nate Silverman

      Nate Silverman - 2003-06-04

      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.

MongoDB Logo MongoDB