[Webtest] Upgrade to htmlunit 2.2

Soula, William Soula, William" <wsoula@pointserve.com
Mon, 18 Aug 2008 10:30:19 -0500


--_002_93B3B6122B906D44BC7E8B8CEFB0DBBB18450E9288SGPEXCHANGEpo_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have attached an example that I think demonstrates this, the page is kind=
a large, sorry.  I tried to attach the js files but they are too large.  I =
will send the one that is failing in 2.2 in a follow up email.  Using the a=
ttached file if you invoke the page and click the Save button you get the f=
ollowing results:

Htmlunit-2.1 - JavaScript error loading page file:/WebTest Head/tests/compa=
nyTest.html: Wrapped java.io.FileNotFoundException: \administration\applica=
tionConfig.do (The system cannot find the path specified) (script in file:/=
WebTest Head/tests/companyTest.html from (443, 34) to (0, 0)#459)

Htmlunit-2.2 - JavaScript error loading page file:/WebTest Head/tests/compa=
nyTest.html: TypeError: Cannot set property "returnValue" of null to "true"=
 (file:/js/validations.js#1019)

HtmlUnit-2.2 against the server - JavaScript error loading page http://qa-o=
pm-03/administration/applicationConfig.do: TypeError: Cannot set property "=
returnValue" of null to "true" (http://qa-opm-03/js/validations.js#925)

So the errors with htmlunit 2.2 are similar when using the server versus lo=
cally, but are drastically different than 2.1, as 2.1 succeeds on the serve=
r and fails locally because I don't have the redirected to page locally.

Does this help to find the problem in HtmlUnit-2.2?

Thanks,
Will

P.S. FYI here is the code I was using:
<config protocol=3D"file"/>
<invoke url=3D"/WebTest Head/tests/companyTest.html"/> <clickButton label=
=3D"Save"/>

--_002_93B3B6122B906D44BC7E8B8CEFB0DBBB18450E9288SGPEXCHANGEpo_
Content-Type: text/html; name="test.html"
Content-Description: test.html
Content-Disposition: attachment; filename="test.html"; size=507;
	creation-date="Wed, 30 Apr 2008 10:37:48 GMT";
	modification-date="Fri, 15 Aug 2008 12:41:01 GMT"
Content-Transfer-Encoding: base64

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL2h0bWw0L2xvb3NlLmR0ZCI+DQoNCg0KPGh0bWw+
DQo8Ym9keT4NCjx0YWJsZSBpZD0iZGlzcGxheVRhYmxlIiBjbGFzcz0icGFnaW5hdGlvbiI+ICAg
IAkJCQ0KICAgIAkgICAgICAgIAk8dHIgaWQ9IjMyIj4NCiAgICAgICAgICAgICAgICAJCTx0ZD4N
CiAgICAgICAgICAgICAgICAJCQlISQ0KICAgICAgICAgICAgICAgIAkJPC90ZD4NCiAgICAgICAg
ICAgICAgICAJCTx0ZD4NCiAgICAgICAgICAgICAgICAJCTk4NzY1NDMyMTEyPC90ZD4gICAgICAg
ICAgICAgICAgICAgCQkNCiAgICAgICAgICAgICAgICAJCTx0ZD4NCiAgICAgICAgICAgICAgICAJ
CQk3ODcwNTogNzA3IFcgMjFzdCBTdCANCiAgICAgICAgICAgICAgICAJCTwvdGQ+DQogICAgICAg
ICAgICAgIAkJPC90cj4NCgk8L3RhYmxlPg0KPC9ib2R5Pg0KPC9odG1sPg0KDQoNCg0K

--_002_93B3B6122B906D44BC7E8B8CEFB0DBBB18450E9288SGPEXCHANGEpo_--