[Webtest] [webtest][JIRA] Created: (WT-167) JSF id support

Jon Nermut (JIRA) webtest@lists.canoo.com
Mon, 27 Mar 2006 07:23:25 +0200 (CEST)


JSF id support
--------------

         Key: WT-167
         URL: http://webtest-community.canoo.com/jira/browse/WT-167
     Project: WebTest
        Type: New Feature
    Versions: 2.0   =20
    Reporter: Jon Nermut


I am experimenting with using webtest to test JSF applications. Its working=
 well, but the problem I have with actually using it is that in JSF if you =
include something like  <h:inputText id=3D"blah" /> in a page, it ends up i=
n the html with a id/name of name=3D"x:y:z:blah" where x:y:z are the parent=
 components, and the ids may be generated automatically based on position, =
and if so look something like name=3D"_id3:_id9:_id10:blah" .

Having <verify* name=3D=E2=80=9Dx:y:z:blah=E2=80=9D /> in tests won=E2=80=
=99t cut it, because it makes the tests extremely fragile, as the x:y:z par=
t of the id changes as soon as you move something around in the source code=
 of the page.

The ideal would be something like <verify* nameEndsWith=3D":blah" /> , or b=
eing able to do a reg exp on the name:=20
 <verify* nameRegexp=3D".*blah" />


--=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