Hi,

First off, thanks for the validator - saved me countless hours of writing js.

I've started trying to introduce httpunit integration tests to my applications and unfortunately with both js and validator enabled, it barfs in fine style.

httpunit 1.6.2, validator 1.3.0, rhino js-1.6R3.jar

The errors come when trying to execute js created by the validator resulting in either "undefined_required" or "undefined_maxlength"

Is anyone else seeing these types of errors or can suggest a workaround? I can disable js by removing the dependency to the rhino js.jar, however this prevents me from httpunit testing a number of areas of my app.

exception e.g.

Running com.codeczar.security.user.httpunit.SearchUserTest
org.mozilla.javascript.EcmaError: ReferenceError: "undefined_required" is not defined. (httpunit#762 (eval)#1) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3226) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3216) at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3289) at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1633) at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1572) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3159)
        at script(httpunit#762(eval):1)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2248) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158) at org.mozilla.javascript.ScriptRuntime.evalSpecial(ScriptRuntime.java:2213) at org.mozilla.javascript.ScriptRuntime.callSpecial(ScriptRuntime.java:2078) at org.mozilla.javascript.optimizer.OptRuntime.callSpecial(OptRuntime.java:156)
        at org.mozilla.javascript.gen.c7._c17(httpunit:762)
        at org.mozilla.javascript.gen.c7.call(httpunit)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:95)
        at org.mozilla.javascript.gen.c9._c1(httpunit:9)
        at org.mozilla.javascript.gen.c9.call(httpunit)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3082)
        at script.x(httpunit)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2248) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:156) at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent(JavaScript.jav
a:172)
at com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelegate.java:56) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:232)
        at com.meterware.httpunit.WebForm.submitRequest(WebForm.java:96)
        at com.meterware.httpunit.WebForm.doFormSubmit(WebForm.java:107)
        at com.meterware.httpunit.WebForm.submit(WebForm.java:69)
        at com.meterware.httpunit.WebForm.submit(WebForm.java:58)
at com.codeczar.security.user.httpunit.CreateUserTest.getResponse(CreateUserTest.java:77) at com.codeczar.security.user.httpunit.CreateUserTest.doCreate(CreateUserTest.java:50)

cheers
Nathan





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to