Hi Michael,
comments below
Michael Habbert wrote:
Hi Listreaders,
recently having trouble with the windows.event.srcElement I finally
changed my JavaScript code to run with webtest.
Yes it works but:
What is it about ajaxstags, I saw them somewhere around the webtest
sources.
I think that Paul added this some monthes ago to have a "target" in Ajax
support but I don't think that we've tried more in this area here
(personally as I don't need it in my "real" work, when I have time to
"play" in this area, I currently try to improve htmlunit)
some month ago I figured out to let webtest sleep some seconds waiting
for the XHTTP-Request.
The Error today:
----------------
[java] [java] [invoke] INFO (com.canoo.webtest.steps.Step)
- Running with: Canoo Webtest: R_1393.
[java] [java] [invoke] INFO (com.canoo.webtest.steps.Step)
- Exception thrown from this class:
com.canoo.webtest.engine.StepFailedException
[java] [java] [invoke] INFO (com.canoo.webtest.steps.Step)
- Message was: Step[invoke "goto create mt" (23/242)]: Script error
loading page executing webtest at: invoke Wrapped
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read
property "source" from null (Window.eval()#1)
(http://bendera:8888/adds/ajaxtags.js#578)
[java] [java] [invoke] Source code:
[java] [java] [invoke] new AjaxJspTag.Select(
[java] [java] [invoke] "/messagetemplate.view", {
[java] [java] [invoke] parameters:
"categoryID={templateCategory},projectID={project},referenceID=0,objectID=0,attributeID=0",
[java] [java] [invoke] postFunction: resetReferenceSelector,
[java] [java] [invoke] parser: new ResponseXmlParser(),
[java] [java] [invoke] target: "referenceSelector",
[java] [java] [invoke] executeOnLoad: "true",
[java] [java] [invoke] source: "templateCategory"
[java] [java] [invoke] });
[java] [java] INFO (com.canoo.webtest.ant.WebtestTask) -
Finished executing webtest "chewi create mailtemplates 1"
(/usr/local/projekte/enbw/chewi/test/webtest/imports/createMailTemplates1.xml:20:
)
[java] [java] INFO (com.canoo.webtest.ant.WebtestTask) - Test
report successfully created.
[java] [java] BUILD FAILED
[java] [java]
/usr/local/projekte/enbw/chewi/test/webtest/imports/createMailTemplates1.xml:20:
Canoo Webtest: R_1393.
[java] [java] Test failed.
[java] [java] Test step invoke
(/usr/local/projekte/enbw/chewi/test/webtest/modules/createmailtemplate.xml:11:
) named "goto create mt" failed with message "Step[invoke "goto create
mt" (23/242)]: Script error loading page executing webtest at: invoke
Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot
read property "source" from null (Window.eval()#1)
(http://bendera:8888/adds/ajaxtags.js#578)
[java] [java] Source code:
[java] [java] new AjaxJspTag.Select(
[java] [java] "/messagetemplate.view", {
[java] [java] parameters:
"categoryID={templateCategory},projectID={project},referenceID=0,objectID=0,attributeID=0",
[java] [java] postFunction: resetReferenceSelector,
[java] [java] parser: new ResponseXmlParser(),
[java] [java] target: "referenceSelector",
[java] [java] executeOnLoad: "true",
[java] [java] source: "templateCategory"
[java] [java] });"
[java] [java] Total time: 12 seconds
--------
This code is working with webtest 2.0 but not with 2.1 and the actual
sources. IE and Firefox do not have a problem with the site.
Is it again a JavaScript problem?
I guess it is but I don't have enough information. I suppose that it
worked with 2.0 because some stuff wasn't evaluated at all. 2.1 and
current sources are able to go further... until some place where they
reach their current limit.
Marc.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest