On 12/20/05, Keith Lynch <[EMAIL PROTECTED]> wrote:


Sounds interesting!
It is. I saw it demoed at JP05 and it looked great.
 

How long does it take to setup up such tests?

As long as it takes you to navigate your own interface plus + about 2-5 mins for each test case.

Is it tricky?

Not at all.

Regards,
Andy


While at JP I also saw a part of shale being used to test your managed beans. It looks cool too but it's not the same type of testing. However I haven't got a chance to look at this part yet.

http://struts.apache.org/struts-shale/features-test-framework.html

This part of Shale is an attempt to raise the bar on JSF development a little, by removing the excuse that it's too hard to set up unit tests for your server side beans :-).  The framework provides mock objects for all the necessary structures, plus base classes for your test cases that wire everything together for you like a container will.

That being said, I personally consider such unit tests to be necessary but not sufficient for overall application testing, and like to have system integration tests in addition, which behave like a client browser, and then examine the results.  The Shale "use cases" example app has some integration tests like this (as well as some unit test coverage).

My personal favorite tool for integration tests is HtmlUnit (at SourceForge) but there are lots of others as well.
 

Cheers
Keith

Craig
 

-----Ursprüngliche Nachricht-----
Von: Keith Lynch [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 20. Dezember 2005 13:48
An: MyFaces Discussion
Betreff: Re: JSF web application test

Take a look at Selenium

http://www.openqa.org/selenium/

There's even a firefox plugin to record your tests :)



On 12/20/05, Jesse Alexander (KBSA 21) <[EMAIL PROTECTED]> wrote:
-----Original Message-----
I believe you are looking for httpunit .
-----/Original Message-----

Or its abstraction JWebUnit.

Alexander

---- Original message ----
>   What is the way to write automatic tests for web
>   application using JSF? Right now I have to open web
>   browser to manually test it. I like to write tests
>   that can be executed as a batch to make sure that
>   new changes will not break existing features.
>
>   Thanks for advice.
>   Dave


______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ______________________________________________________________________


Reply via email to