[Webtest] [webtest][JIRA] Created: (WT-137) StepFailedException : script error
Tim (JIRA)
webtest@lists.canoo.com
Tue, 17 Jan 2006 11:59:55 +0100 (CET)
StepFailedException : script error
----------------------------------
Key: WT-137
URL: http://webtest-community.canoo.com/jira/browse/WT-137
Project: WebTest
Type: Bug
Environment: win xp
had it with different versions of canoo, including the last
Reporter: Tim
Hi,
I=E2=80=99ve got a strange script error executing my canoo tests. I=E2=80=
=99ve got two almost similar tests. The first get passed, the second throws=
a script error when committing the form.=20
Below the two canoo scripts. The only difference between script a and scrip=
t b is the form field changed during the test. For the rest both are identi=
cal.=20
Doing the same handlings in my browser (either iexplorer or mozilla) doesn=
=E2=80=99t give me any problems or javascript errors.=20
Script A
21setinputfieldname=09eurogiroInKey
value=09
16 Passed =20
23clickButton
Save=20
label=09Save
126 Passed
Script B
21setinputfield
name=09eurogiroOutKey
value=09
31 Passed =20
23clickButton
Save=20
label=09Save
Failed Not Generated
com.canoo.webtest.engine.StepFailedException: Step[clickButton "Save" (24/2=
9)]: Script error executing at: clickButton, Step: ClickButton at D:\c2p_pr=
ojects\PayPark_41\paypark_tbi\test\web\canoo\scripts\system_parameters\gene=
ral_security_parameters\client\system_parameters_set-00048.xml:13: with (la=
bel=3D"Save", description=3D"Save", stepType=3D"clickButton")
Both input fields in my form :=20
<input type=3D"text" name=3D"eurogiroInKey" maxlength=3D"16" value=3D"12345=
67890ABCDEF" class=3D"in5">
<input type=3D"text" name=3D"eurogiroOutKey" maxlength=3D"16" value=3D"1234=
567890ABCDEF" class=3D"in5">
The form validation.=20
=E2=80=A6
if (formRef.eurogiroInKey) {
eurogiroInKey.REQUIRED =3D true;
eurogiroInKey["REQUIRED-MESSAGE"] =3D "MAC key IN is mandatory.=
[384952]";
eurogiroInKey.FILTER =3D /[a-fA-F0-9]/;
eurogiroInKey.REGEXP =3D /^[a-fA-F0-9]{16}$/;
eurogiroInKey["REGEXP-MESSAGE"] =3D "MAC key IN must be 16 posi=
tions hexadecimal. [691FFF]";
}
if (formRef.eurogiroOutKey) {
eurogiroOutKey.REQUIRED =3D true;
eurogiroOutKey["REQUIRED-MESSAGE"] =3D "MAC key OUT is mandator=
y. [07D9F8]";
eurogiroOutKey.FILTER =3D /[a-fA-F0-9]/;
eurogiroOutKey.REGEXP =3D /^[a-fA-F0-9]{16}$/;
eurogiroOutKey["REGEXP-MESSAGE"] =3D "MAC key OUT must be 16 po=
sitions hexadecimal. [A0E986]";
}
}
Validation.setup();=20
(This function does not change both fields in a different way.)
Anyone got an id=C3=A9e how to solve this?=20
Thx
--=20
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira