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


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

Reply via email to