3 Replies Latest reply on Sep 27, 2007 12:08 PM by Stan Silvert

    Test own jsf component with JSFUnit

    Blondel Michaël Newbie

      I have written my own component which is a link.

      <exa:link id="myLink" value="next"/>


      in the html, I have something like this :
      <a id="myLink" onclick=...../>


      In my jsfUnit test, I would like to click this link a test it :
      client.clickCommandLink("myLink");


      I have try with changing the namingContainer

      client.clickCommandLink("myForm:myLink");


      But the result is always the same : jsfUnit tells me that the component with id "myLink" is not found.

      Can't my test our own component ?
      May be I didn't write my component correctly ?