1 Reply Latest reply on Nov 13, 2009 9:29 AM by Stan Silvert

    Passing JSFSession from test to next test in suite

    Petr Vydra Newbie


      I have question: maybe I badly understand matter of Unit tests, but I would like to make some kind of "functional test" with JSFUnit tests. I 'd like to test my Seam webapp. So first test is login test (make session, login), next step is navigate to and run first use-case (jsf page) and test it, then next and so on.... till last UC (implemented as Test suite)

      My problem restraining in such realization is problem how to pass JSFSession from test to next test. Every attempt ends with session.getJSFServerSession() is null...context is empty (FacesContextBridge.getCurrentInstance() is null too).

      So is there any solution?

      Thx in advance.