I'm using webTest to test against punBB [1] (I'm currently hacking source code and add webTest to validate each hacks), and I'm under trouble with setInputField.
I explain details about trouble : * I've deployed a french punBB [2] version (1.2.17, latest) on localhost, default language leave on English (default). At this step, all is working fine; * I add first test with webTest to check for registration process. I write this : --- cut --- <invoke url='/register.php' /> <setInputField name='req_username' value='abc' /> --- cut --- regarding HTML produce by punBB : --- cut --- <label><strong>Username</strong><br /><input type="text" name="req_username" size="25" maxlength="25" /><br /></label> --- cut --- I launch webTest, and all is working fine. Ok, no I'll change default language and switch punBB to "French". I request my punbb local install, all is working fine, registration process works well. So, I restart webtest, and this time, error occurs with : --- cut --- Error Message No suitable form found having field named "req_username" Location [...]/test/webtest/tests/register.xml (line: 17) --- cut --- Asking myself why, I check again HTML code to be sure about field name. New intl HTML code is : --- cut --- <label><strong>Nom d'utilisateur</strong><br /><input type="text" name="req_username" size="25" maxlength="25" /><br /></label> --- cut --- So, I checked for some iframes or something like this using lynx and checking source and headers. No redirect, no iframes, no javascript reload : --- cut --- $ lynx -noredir -source -dump http://forums.localhost/register.php | grep req_username element_names["req_username"] = "Nom d\'utilisateur" <body onload="document.getElementById('register').req_username.focus()"> <label><strong>Nom d'utilisateur</strong><br /><input type="text" name="req_username" size="25" maxlength="25" /><br /></label> --- cut --- I'm asking if the "\'" could not generate trouble, so I edited lang file and change to "Nom d utilisateur". I restart webTest and... same ! :-( So, I reset punBB to English and restart webTest. Tests passed with success !!! So, I save webTest HTML result file to disk, set default lang to FR, and restart webStart and save new result file. Now, I run diff on files, and nothing else intl resources was changed :-( So, I try to force Accepting-Encoding (punBB use ISO-8859-1) in config.xml with : --- cut --- <config host="forums.localhost" port="80" protocol="http" basepath="" summary="true" saveresponse="true" resultfile="${wt.resultPath}/${wt.resultFile}" resultpath="${wt.resultPath}" haltonfailure="false" haltonerror="false" > <header name="Accept-Encoding" value="ISO-8859-1" /> </config> --- cut --- Same result, test failed :-( I'm out of idea, if someone could help me, I'll appreciate ! :) About my local install, I'm running Fedora 8 on ia32, running webTest R1689 and using java icedTea : --- cut --- $ java -version java version "1.7.0" IcedTea Runtime Environment (build 1.7.0-b21) IcedTea Server VM (build 1.7.0-b21, mixed mode) --- cut --- Hope this not too long for reading ! :-) dav. -- [1] http://punbb.com/ [2] http://www.punbb.fr/ _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

