Hi Marc,
at the moment I'm especially interested at the XMLHttpRequest-features.
1. Which mailing-list will be the right one? As I'm using webtest I will post my Questions to the
webtest-list and evtl. additionally to the htmlunit-list, o.k.?
2. I see the prototype.js library used in htmlunit. What do you know about the actual status of the
support?
I for myself will try to create a small XMLHttpRequestTest-method to create a sample-method as it
occure in my webtest?
------------
[clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink "Click link: Neues
Mail-Template" (17/29)
[clickLink] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) - ->
gotoTarget by clickLink
[clickLink] ERROR (com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest) -
XMLHttpRequest.getResponseHeader() was called before the response was available.
[clickLink] WARN (com.gargoylesoftware.htmlunit.ScriptEngine) - warning: message=[Calling eval()
Correctwith anything other than a primitive string value will simply return the value. Is this what
you intended?] sourceName=[http://bendera:8888/adds/prototype-1.4.0.js] line=[700] lineSource=[null]
lineOffset=[0]
[clickLink] ERROR (com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest) -
XMLHttpRequest.getResponseHeader() was called before the response was available.
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed to
http://bendera:8888/messageTemplate/create.do
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of current window changed,
it will become current response
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form
set to none
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response now:
http://bendera:8888/messageTemplate/create.do
[setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInputField "Set text
field shortName" (18/29)
[setInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to
(action=/messageTemplate/save.do)
[setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable fields,
considering only the first one
[setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInputField "Set textarea
field description" (19/29)
[setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable fields,
considering only the first one
[setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSelectField "Select
option Stage Transition für CR" (20/29)
[setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable
fields, considering only the first one
[setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInputField "Set text
field subject" (21/29)
[setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable fields,
considering only the first one
[setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInputField "Set textarea
field content" (22/29)
[setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable fields,
considering only the first one
[setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSelectField "Select
option ChangeRequest" (23/29)
[setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable
fields, considering only the first one
[setSelectField] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo
Webtest: development.
[setSelectField] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
com.canoo.webtest.engine.StepFailedException
[setSelectField] INFO (com.canoo.webtest.steps.Step) - Message was: No option found matching
criteria in select HtmlSelect[<select name="mtReferences" id="referenceSelector" class="orange">]
INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: development.
INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
org.apache.tools.ant.BuildException
INFO (com.canoo.webtest.steps.Step) - Message was: com.canoo.webtest.engine.StepFailedException:
No option found matching criteria in select HtmlSelect[<select name="mtReferences"
id="referenceSelector" class="orange">]
INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "chewi edit mailtemplate"
(/usr/local/projekte/enbw/chewi/test/webtest/imports/editMailTemplate.xml:24: )
WARN (com.gargoylesoftware.htmlunit.ScriptEngine) - warning: message=[Calling eval() with anything
other than a primitive string value will simply return the value. Is this what you intended?]
sourceName=[http://bendera:8888/adds/prototype-1.4.0.js] line=[700] lineSource=[null] lineOffset=[0]
WARN (com.gargoylesoftware.htmlunit.ScriptEngine) - warning: message=[Calling eval() with anything
other than a primitive string value will simply return the value. Is this what you intended?]
sourceName=[http://bendera:8888/adds/prototype-1.4.0.js] line=[700] lineSource=[null] lineOffset=[0]
INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.
BUILD FAILED
/usr/local/projekte/enbw/chewi/test/webtest/imports/editMailTemplate.xml:24:
Canoo Webtest: development.
Test failed.
Test step steps (/usr/local/projekte/enbw/chewi/test/webtest/imports/editMailTemplate.xml:26: ) null
failed with message "No option found matching criteria in select HtmlSelect[<select
name="mtReferences" id="referenceSelector" class="orange">]"
Total time: 11 seconds
--
Mit freundlichen Grüßen
------------------------------------------------------------------------
Michael Habbert
Senior Developer
Netpioneer GmbH, Beiertheimer Allee 18, D-76137 Karlsruhe
Geschäftsführer: Axel Jahn
HRB: 107521 Handelsregister Mannheim
Tel: 0721 / 920 60 21
Fax: 0721 / 920 60 30
E-Mail: [EMAIL PROTECTED]
www: http://www.netpioneer.de
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest