This is done with the latest build on www.fotocasa.es [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (3 /12) [clickLink] INFO (org.apache.commons.httpclient.HttpMethodBase) - Discarding un expected response: HTTP/1.1 100 Continue [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed to about:blank (text/html) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed with javascript, it will NOT become current response [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed to about:blank (text/html) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed with javascript, it will NOT become current response ERROR (com.gargoylesoftware.htmlunit.javascript.host.JavaScriptBackgroundJob) - Caught exception in Window.setTimeout() ======= EXCEPTION START ======== EcmaError: lineNumber=[2624] column=[0] lineSource=[<no source>] name=[TypeError ] sourceName=[ http://www.fotocasa.es/ResourceHandler.ashx?v=1.128&fileSet=detail &type=application/x-javascript] message=[TypeError: Cannot read property "value" from undefined ( http://www.fotocasa.es/ResourceHandler.ashx?v=1.128&fileSet=det ail&type=application/x-javascript#2624)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property " value" from undefined ( http://www.fotocasa.es/ResourceHandler.ashx?v=1.128&fileS et=detail&type=application/x-javascript#2624) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitCon textAction.run(JavaScriptEngine.java:557) at org.mozilla.javascript.Context.call(Context.java:577) at org.mozilla.javascript.Context.call(Context.java:499) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute (Jav aScriptEngine.java:439) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute (Jav aScriptEngine.java:414) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossib le(HtmlPage.java:716) at com.gargoylesoftware.htmlunit.javascript.host.JavaScriptBackgroundJob .run(JavaScriptBackgroundJob.java:114) at java.lang.Thread.run(Unknown Source) at com.gargoylesoftware.htmlunit.ThreadManager$1.run( ThreadManager.java: 120) Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "va lue" from undefined ( http://www.fotocasa.es/ResourceHandler.ashx?v=1.128&fileSet =detail&type=application/x-javascript#2624) at org.mozilla.javascript.ScriptRuntime.constructError( ScriptRuntime.jav a:3350) at org.mozilla.javascript.ScriptRuntime.constructError( ScriptRuntime.jav a:3340) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java :335 6) at org.mozilla.javascript.ScriptRuntime.typeError2( ScriptRuntime.java:33 75) at org.mozilla.javascript.ScriptRuntime.undefReadError( ScriptRuntime.jav a:3388) at org.mozilla.javascript.ScriptRuntime.getObjectProp( ScriptRuntime.java :1362) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java :296 5) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java :2394) at org.mozilla.javascript.InterpretedFunction.call( InterpretedFunction.j ava:162) at org.mozilla.javascript.ContextFactory.doTopCall( ContextFactory.java:3 93) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTop Call(HtmlUnitContextFactory.java:185) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java :283 4) at org.mozilla.javascript.InterpretedFunction.exec( InterpretedFunction.j ava:173) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun (Jav aScriptEngine.java:431) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitCon textAction.run(JavaScriptEngine.java:553) ... 8 more Enclosed exception: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "value" from u ndefined ( http://www.fotocasa.es/ResourceHandler.ashx?v=1.128&fileSet=detail&typ e=application/x-javascript#2624) at org.mozilla.javascript.ScriptRuntime.constructError( ScriptRuntime.jav a:3350) at org.mozilla.javascript.ScriptRuntime.constructError( ScriptRuntime.jav a:3340) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java :335 6) at org.mozilla.javascript.ScriptRuntime.typeError2( ScriptRuntime.java:33 75) at org.mozilla.javascript.ScriptRuntime.undefReadError( ScriptRuntime.jav a:3388) at org.mozilla.javascript.ScriptRuntime.getObjectProp( ScriptRuntime.java :1362) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java :296 5) at script( http://www.fotocasa.es/ResourceHandler.ashx?v=1.128&fileSet=de tail&type=application/x-javascript:2624) at script(JavaScriptBackgroundJob:1) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java :2394) at org.mozilla.javascript.InterpretedFunction.call( InterpretedFunction.j ava:162) at org.mozilla.javascript.ContextFactory.doTopCall( ContextFactory.java:3 93) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTop Call(HtmlUnitContextFactory.java:185) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java :283 4) at org.mozilla.javascript.InterpretedFunction.exec( InterpretedFunction.j ava:173) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun (Jav aScriptEngine.java:431) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitCon textAction.run(JavaScriptEngine.java:553) at org.mozilla.javascript.Context.call(Context.java:577) at org.mozilla.javascript.Context.call(Context.java:499) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute (Jav aScriptEngine.java:439) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute (Jav aScriptEngine.java:414) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossib le(HtmlPage.java:716) at com.gargoylesoftware.htmlunit.javascript.host.JavaScriptBackgroundJob .run(JavaScriptBackgroundJob.java:114) at java.lang.Thread.run(Unknown Source) at com.gargoylesoftware.htmlunit.ThreadManager$1.run( ThreadManager.java: 120) ======= EXCEPTION END ========
On Jan 25, 2008 1:23 PM, Marc Guillemot <[EMAIL PROTECTED]> wrote: > can you provide the java call stack you see on the console too? > > Is your test made on a public site? If yes, can you provide it as well. > Last question: do you use a recent build? > > Marc. > -- > Blog: http://mguillem.wordpress.com > > > Test BCN wrote: > > JavaScript error loading page > > > http://www.fotocasa.es/search/results.aspx?t=118121348&tq=118121348&l=&tti=3&bti=2&opi=36 > > < > http://www.fotocasa.es/search/results.aspx?t=118121348&tq=118121348&l=&tti=3&bti=2&opi=36 > >: > > Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped > > java.lang.RuntimeException: The request body may only be set for POST > > requests! (http://www.fotocasa.es/Scripts/Ajax2.js#72) > > ( > http://www.fotocasa.es/resourceHandler.ashx?v=1.128&fileSet=results&type=application/x-javascript#491 > > < > http://www.fotocasa.es/resourceHandler.ashx?v=1.128&fileSet=results&type=application/x-javascript#491 > >) > > > > Details > > javascript error Wrapped > com.gargoylesoftware.htmlunit.ScriptException: > > Wrapped java.lang.RuntimeException: The request body may only be set for > > POST requests! (http://www.fotocasa.es/Scripts/Ajax2.js#72) > > ( > http://www.fotocasa.es/resourceHandler.ashx?v=1.128&fileSet=results&type=application/x-javascript#491 > > < > http://www.fotocasa.es/resourceHandler.ashx?v=1.128&fileSet=results&type=application/x-javascript#491 > >) > > > > line 491 > > javascript source function () { [native code, arity=0] } > > failing line > > javascript call stack Wrapped > > com.gargoylesoftware.htmlunit.ScriptException: Wrapped > > java.lang.RuntimeException: The request body may only be set for POST > > requests! (http://www.fotocasa.es/Scripts/Ajax2.js#72) > > ( > http://www.fotocasa.es/resourceHandler.ashx?v=1.128&fileSet=results&type=application/x-javascript#491 > > < > http://www.fotocasa.es/resourceHandler.ashx?v=1.128&fileSet=results&type=application/x-javascript#491 > >) > > at > > ViewDetail( > http://www.fotocasa.es/resourceHandler.ashx?v=1.128&fileSet=results&type=application/x-javascript:491 > > < > http://www.fotocasa.es/resourceHandler.ashx?v=1.128&fileSet=results&type=application/x-javascript:491 > >) > > at (onclick event for HtmlUnorderedList[<ul > > onclick="this.className='clicked'; > > > ViewDetail('/anuncio-apartamento-alquiler/pontevedra-c/test-det__118121348- > 1-3-2-724-12-36-38-0-36038-36003.aspx?opi=1&llci=0', > > '118121348', '1'); return false;">]:1) > > > > > > > > > > On Jan 25, 2008 1:01 PM, Marc Guillemot <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > Test BCN wrote: > > > I've just started with webtest. I tried out the demos and worked > fine. > > > On my first webtest I got the following problem, and I don't know > if > > > this has a solution or not. > > > > > > I have the following error on a clickLink action > > > Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped > > > java.lang.RuntimeException: The request body may only be set for > POST > > > requests! > > > > > > > > > > strange. Can you provide the full stack trace? > > > > Cheers, > > Marc. > > -- > > Blog: http://mguillem.wordpress.com > > > > _______________________________________________ > > WebTest mailing list > > [email protected] <mailto:[email protected]> > > http://lists.canoo.com/mailman/listinfo/webtest > > > > > > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest >

