1 Reply Latest reply on Dec 3, 2007 10:29 AM by Stan Silvert

    Session access ...

    Manfred Maelzer Newbie

      The scenario is having a session already of the normal web application. By user interaction the JSFUnit Tests are started... running in their own session, going through the whole application process automatically.

      Is there a way to write some parameters back to the "real" session that still is run.. and from where jsfunit has bene started from?

      The following code is from the unit file

      ((HttpSession)server.getFacesContext().getExternalContext().getSession(false)).setAttribute("foobar", "test");


      String param = (String)((HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false)).getAttribute("foobar");

      Param however is null ...

      How would it be possible to exchange information between jsfunit testclasses and the outer httpsession?