Hi
My project uses Facelets and JBOSS Seam using the JSF RI 1.2 . There are
a huge number of foms that need to be tested.
Since there is a lot of templates being used a static parsing of the
files to find the variables being used in a given view is very difficult.
The approach to testing was as follows :
a) Modify the Component.java files to add a custom encodeEnd
method to the input components ( UIInput, UISelect, UISelectItems, link ,
UICommand etc ). . this method will print the following for each component
in the view :
client id of the component (as seen by the browsr ), id of the
facelets, Name of the variable this component is bound to ,type of the
variable, Length accepted (using the @Length annotation ) , whether this
variable is mandatory
The idea is to use a program to walk thru the various links and
generate the above output for all the views
Write one more program that will generate the various permutations and
combinations of the inputs and generate input files for a program like
WebTest / Selenium
Perform the tests using the test client . The input for the test
client will be the files generated above
I am stuck at the followng step :
What is the best way to get the name of the variable that a component
is bound to . I don't want the valueExpression since I get only the value .
I want the name of the bean so that I can obtain the annotations on that
method
Thanks in advance
Regards
Hari