[ http://webtest-community.canoo.com/jira/browse/WT-212?page=all ]
Marc Guillemot closed WT-212:
-----------------------------
Resolution: Won't Fix
Assign To: Marc Guillemot
This seems to me to be too specific. The solution to have the cleanest tests is
probably to define a custom xpath function or too hide the logic in a macro.
> CLONE -JSF id support
> ---------------------
>
> Key: WT-212
> URL: http://webtest-community.canoo.com/jira/browse/WT-212
> Project: WebTest
> Type: New Feature
> Versions: 2.0
> Reporter: Veit Guna
> Assignee: Marc Guillemot
>
> 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="blah" /> in a page, it ends up in
> the html with a id/name of name="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="_id3:_id9:_id10:blah" .
> Having <verify* name=?x:y:z:blah? /> in tests won?t cut it, because it makes
> the tests extremely fragile, as the x:y:z part 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=":blah" /> , or being
> able to do a reg exp on the name:
> <verify* nameRegexp=".*blah" />
--
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
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest