Hi Michael, to 1) as long as it concerns the implementation of XMLHttpRequest, the best place for discussion is the htmlunit-user/dev mailing list because other htmlunit user/committer can contribute there. If your ideas/questions concern new features that WebTest could contain to make AJAX testing easier, then the best place is of course this mailing list.
to 2) prototype's unit tests have been integrated with the idea to make htmlunit "prototype compatible" and to run these tests within htmlunit's tests to ensure that this is the case. Currently 4 of the test "suites" are working and 8 are failing. From the 8, 2 fail due to issues in Rhino (in fact one issue has been rejected because the feature is not required by the ECMA spec). Concerning the 6 other, I've an idea of probably the main problem cause but my flight last week wasn't long enough to let me investigate it in details. Roughly: htmlunit doesn't build a prototype hiearchy. Quite bad for... prototype. Once you've found something with a WebTest, it may be useful to strip it down to htmlUnit unit test. This makes debugging and integration in htmlunit easier. Btw. do you have a customized version of htmlUnit? I don't recognize some of the log outputs. Marc. Michael Habbert wrote: > 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 > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

