I do know English really :P
"to" should really be "two"
When writing a JSFUnit test is it possible to have to simultaneous sessions?
When writing a JSFUnit test is it possible to have two simultaneous sessions?
You can have two sessions, but only one can be a JSFUnit session.
So your second session should use the HtmlUnit API directly without creating a second JSFSession object. You should only have one JSFSession object at any given time.
I'd like to address this at some point but it's pretty far down on the priority list unless lots of people have good use cases for it.
I'll have to go work out how that's done.
Could you give me a quick pointer on where to start?
Using plain HtmlUnit without the JSFSession class:
WebClient webClient = new WebClient(); String warUrl = WebConversationFactory.getWARURL(); HtmlPage page = (HtmlPage)webClient.getPage(warUrl + "/mypage.jsf");
Excelent. Thanks Stan, I'll get onto it ASAP and let you know how I go :)