-
1. Re: Samples?
ssilvert Jan 11, 2009 9:00 PM (in response to snuckleton)We moved off of HttpUnit and onto HtmlUnit (yea, the names are too similar!).
The latest snapshot does not have HttpUnit at all.
For more complex examples, you should look at the JSFUnit SVN tree. There is an examples directory that contains lots of sample code that we use to test JSFUnit. So we use JSFUnit to test JSFUnit.
It is helpful to look at the HtmlUnit documentation for your client-side code. For some pages, you will want to use HtmlUnit's DomNode.getByXPath() or DomNode.getFirstByXPath() method.
You can rely on the HtmlUnit API. JSFClientSession automatically stays in sync with HtmlUnit using callbacks. So you can use either/both API's in your tests.
Stan -
2. Re: Samples?
snuckleton Jan 12, 2009 9:06 AM (in response to snuckleton)Thanks Stan.
BTW, the link http://hudson.qa.jboss.com/hudson/job/JSFUnit/ on http://www.jboss.org/jsfunit/demo.html regarding continuous integration appears dead. -
3. Re: Samples?
ssilvert Jan 12, 2009 9:16 AM (in response to snuckleton)Thanks for letting me know. Looks like IT moved that link behind our firewall.
I'm starting a new wiki page about using HtmlUnit with JSFUnit.
https://www.jboss.org/community/docs/DOC-13244
I've listed three topics so far. Please let me know if there is anything else you think needs a better explanation.
Stan -
4. Re: Samples?
snuckleton Jan 12, 2009 12:49 PM (in response to snuckleton)Stan
On your new page, I would add a section for an illustration of following a flow through several pages, and a discussion of when to use the htmlUnit vs sticking with JSFUnit.
I know you have some examples in SVN, but it would be helpful to have these samples out in the open (I don't have SVN installed yet :) ) -
5. Re: Samples?
ssilvert Jan 12, 2009 1:04 PM (in response to snuckleton)You can go here to browse the source without SVN:
http://anonsvn.jboss.org/repos/jsfunit/trunk/
Thanks for the feedback.
Stan -
6. Re: Samples?
wolfgangknauf Jan 12, 2009 1:09 PM (in response to snuckleton)Hi,
BTW, the link http://hudson.qa.jboss.com/hudson/job/JSFUnit/ on http://www.jboss.org/jsfunit/demo.html regarding continuous integration appears dead.
it seems to be http://hudson.jboss.org/hudson/job/JSFUnit/
Best regards
Wolfgang -
7. Re: Samples?
ssilvert Jan 13, 2009 2:11 PM (in response to snuckleton)"Wolfgang Knauf" wrote:
Hi,BTW, the link http://hudson.qa.jboss.com/hudson/job/JSFUnit/ on http://www.jboss.org/jsfunit/demo.html regarding continuous integration appears dead.
it seems to be http://hudson.jboss.org/hudson/job/JSFUnit/
Best regards
Wolfgang
Thanks guys. The link is fixed now.
Stan