[Webtest] [webtest][JIRA] Closed: (WT-137) StepFailedException : script error

Marc Guillemot (JIRA) webtest@lists.canoo.com
Thu, 18 May 2006 21:58:28 +0200 (CEST)


     [ http://webtest-community.canoo.com/jira/browse/WT-137?page=3Dall ]
    =20
Marc Guillemot closed WT-137:
-----------------------------

    Resolution: Invalid
     Assign To: Marc Guillemot

no information received

> 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
>     Assignee: Marc Guillemot

>
> Hi,
> I?ve got a strange script error executing my canoo tests. I?ve got two al=
most 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 scr=
ipt b is the form field changed during the test. For the rest both are iden=
tical.=20
> Doing the same handlings in my browser (either iexplorer or mozilla) does=
n?t 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=
/29)]: Script error executing at: clickButton, Step: ClickButton at D:\c2p_=
projects\PayPark_41\paypark_tbi\test\web\canoo\scripts\system_parameters\ge=
neral_security_parameters\client\system_parameters_set-00048.xml:13: with (=
label=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"123=
4567890ABCDEF" class=3D"in5">
> <input type=3D"text" name=3D"eurogiroOutKey" maxlength=3D"16" value=3D"12=
34567890ABCDEF" class=3D"in5">
> The form validation.=20
> ?
> if (formRef.eurogiroInKey) {
>             eurogiroInKey.REQUIRED =3D true;
>             eurogiroInKey["REQUIRED-MESSAGE"] =3D "MAC key IN is mandator=
y. [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 po=
sitions hexadecimal. [691FFF]";
>         }
>         if (formRef.eurogiroOutKey) {
>             eurogiroOutKey.REQUIRED =3D true;
>             eurogiroOutKey["REQUIRED-MESSAGE"] =3D "MAC key OUT is mandat=
ory. [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 =
positions 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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira