You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Remo Liechti <re...@swisslog.com> on 2006/07/28 10:17:24 UTC

How do you test JSF pages?

Hi guys
We have a JSF page built up with Spring and webflow. There are also some
java applets in it.

How do you test your jsf pages?  The test should do: login->test some
pages->logout->give us the test results in a human readable format.

It should be possible to test the webflows, to test the interactivity
between applets and webflows(if you click on an object in the applet, a
webflow is started in another frame for example) etc.

Do you know such test applications?

Thanks for your feedback,

Remo
This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.

Re: How do you test JSF pages?

Posted by Alexandre Poitras <al...@gmail.com>.
You can use a mock object framework for unit tests. Different story if
you are speaking of integration tests.

On 7/28/06, Mert Çalışkan <mc...@gmail.com> wrote:
>
> I don't agree with that.
> Without the shale-test framework how a developer can test the
> decode-processValidations-updateModel phases without the
> container?
> Shale-test framework became a vital tool for unit testing jsf stuff.
>
> and for the load testing there is a cool tool called openSTA. It has nice
> features like jMeter..
>
> Mert..
>
> On 7/28/06, Rafael Nami <ra...@gmail.com> wrote:
> >
> >
> > If you're doing load and stress tests, JMeter and Badboy is a good combo.
> > Selenium is a very good tool to automatize functional tests, but this is
> something that Badboy do as well (have DWR/Ajax limitations, so sometimes is
> better go with Selenium).
> > But if you need unit and integration tests, you don't NEED the shale test
> framework - JSF itself is very testable, because of it's POJO nature and IoC
> capabilities.
> >
> > Hope I could help
> > Best Regards
> >
> > Rafael Mauricio Nami
> >
> > 2006/7/28, Dudu <ed...@yahoo.com.br>:
> > >
> > > I'm not a specialist, but I have tested with Shale Test Framework and
> mock objects
> > >
> > >
> > >
> > > On 7/28/06, Remo Liechti < remo.liechti@swisslog.com > wrote:
> > >
> > > > Hi guys
> > > > We have a JSF page built up with Spring and webflow. There are also
> some
> > > > java applets in it.
> > > >
> > > > How do you test your jsf pages?  The test should do: login->test some
> > > > pages->logout->give us the test results in a human readable format.
> > > >
> > > > It should be possible to test the webflows, to test the interactivity
> > > > between applets and webflows(if you click on an object in the applet,
> a
> > > > webflow is started in another frame for example) etc.
> > > >
> > > > Do you know such test applications?
> > > >
> > > > Thanks for your feedback,
> > > >
> > > > Remo
> > > > This message may contain legally privileged or confidential
> information and is therefore addressed to the named persons only. The
> recipient should inform the sender and delete this message, if he/she is not
> named as addressee.
> > > > The sender disclaims any and all liability for the integrity and
> punctuality of this message. The sender has activated an automatic virus
> scanning, but does not guarantee the virus free transmission of this
> message.
> > > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > ----------
> > > Dudu
> > > GoogleTalk: eduardopichler[at]gmail[dot]com
> > > skype:eduardopichler
> >
> >
>
>

Re: How do you test JSF pages?

Posted by Mert Çalışkan <mc...@gmail.com>.
I don't agree with that.
Without the shale-test framework how a developer can test the
decode-processValidations-updateModel phases without the container?
Shale-test framework became a vital tool for unit testing jsf stuff.

and for the load testing there is a cool tool called openSTA. It has nice
features like jMeter..

Mert..

On 7/28/06, Rafael Nami <ra...@gmail.com> wrote:
>
>  If you're doing load and stress tests, JMeter and Badboy is a good combo.
> Selenium is a very good tool to automatize functional tests, but this is
> something that Badboy do as well (have DWR/Ajax limitations, so sometimes is
> better go with Selenium).
> But if you need unit and integration tests, you don't NEED the shale test
> framework - JSF itself is very testable, because of it's POJO nature and IoC
> capabilities.
>
> Hope I could help
> Best Regards
>
> Rafael Mauricio Nami
>
> 2006/7/28, Dudu <ed...@yahoo.com.br>:
> >
> > I'm not a specialist, but I have tested with Shale Test Framework and
> > mock objects
> >
> >  On 7/28/06, Remo Liechti < remo.liechti@swisslog.com> wrote:
> >
> > > Hi guys
> > > We have a JSF page built up with Spring and webflow. There are also
> > > some
> > > java applets in it.
> > >
> > > How do you test your jsf pages?  The test should do: login->test some
> > > pages->logout->give us the test results in a human readable format.
> > >
> > > It should be possible to test the webflows, to test the interactivity
> > > between applets and webflows(if you click on an object in the applet,
> > > a
> > > webflow is started in another frame for example) etc.
> > >
> > > Do you know such test applications?
> > >
> > > Thanks for your feedback,
> > >
> > > Remo
> > > This message may contain legally privileged or confidential
> > > information and is therefore addressed to the named persons only. The
> > > recipient should inform the sender and delete this message, if he/she is not
> > > named as addressee.
> > > The sender disclaims any and all liability for the integrity and
> > > punctuality of this message. The sender has activated an automatic virus
> > > scanning, but does not guarantee the virus free transmission of this
> > > message.
> > >
> >
> >
> >
> > --
> > ----------
> > Dudu
> > GoogleTalk: eduardopichler[at]gmail[dot]com
> > skype:eduardopichler
> >
>
>
>

Re: How do you test JSF pages?

Posted by Rafael Nami <ra...@gmail.com>.
If you're doing load and stress tests, JMeter and Badboy is a good combo.
Selenium is a very good tool to automatize functional tests, but this is
something that Badboy do as well (have DWR/Ajax limitations, so sometimes is
better go with Selenium).
But if you need unit and integration tests, you don't NEED the shale test
framework - JSF itself is very testable, because of it's POJO nature and IoC
capabilities.

Hope I could help
Best Regards

Rafael Mauricio Nami

2006/7/28, Dudu <ed...@yahoo.com.br>:
>
> I'm not a specialist, but I have tested with Shale Test Framework and mock
> objects
>
>  On 7/28/06, Remo Liechti < remo.liechti@swisslog.com> wrote:
>
> > Hi guys
> > We have a JSF page built up with Spring and webflow. There are also some
> >
> > java applets in it.
> >
> > How do you test your jsf pages?  The test should do: login->test some
> > pages->logout->give us the test results in a human readable format.
> >
> > It should be possible to test the webflows, to test the interactivity
> > between applets and webflows(if you click on an object in the applet, a
> > webflow is started in another frame for example) etc.
> >
> > Do you know such test applications?
> >
> > Thanks for your feedback,
> >
> > Remo
> > This message may contain legally privileged or confidential information
> > and is therefore addressed to the named persons only. The recipient should
> > inform the sender and delete this message, if he/she is not named as
> > addressee.
> > The sender disclaims any and all liability for the integrity and
> > punctuality of this message. The sender has activated an automatic virus
> > scanning, but does not guarantee the virus free transmission of this
> > message.
> >
>
>
>
> --
> ----------
> Dudu
> GoogleTalk: eduardopichler[at]gmail[dot]com
> skype:eduardopichler
>

Re: How do you test JSF pages?

Posted by Dudu <ed...@yahoo.com.br>.
I'm not a specialist, but I have tested with Shale Test Framework and mock
objects

On 7/28/06, Remo Liechti <re...@swisslog.com> wrote:
>
> Hi guys
> We have a JSF page built up with Spring and webflow. There are also some
> java applets in it.
>
> How do you test your jsf pages?  The test should do: login->test some
> pages->logout->give us the test results in a human readable format.
>
> It should be possible to test the webflows, to test the interactivity
> between applets and webflows(if you click on an object in the applet, a
> webflow is started in another frame for example) etc.
>
> Do you know such test applications?
>
> Thanks for your feedback,
>
> Remo
> This message may contain legally privileged or confidential information
> and is therefore addressed to the named persons only. The recipient should
> inform the sender and delete this message, if he/she is not named as
> addressee.
> The sender disclaims any and all liability for the integrity and
> punctuality of this message. The sender has activated an automatic virus
> scanning, but does not guarantee the virus free transmission of this
> message.
>



-- 
----------
Dudu
GoogleTalk: eduardopichler[at]gmail[dot]com
skype:eduardopichler

Re: How do you test JSF pages?

Posted by Gerald Müllan <bi...@gmail.com>.
Hi,

in case of load testing, you can also use JMeter [1].

I have tested some load issues in a JSF application and it had fit our
needs very well.

You can also test a flow through the application in a very easy
manner. Just start the web-app and record your "clicking" activity
through JMeter. The POST parameters are stored and posted again after
you start some test-scenarios.

With JMeter you can set up many parameters/settings, for testing and
displaying results with nice statistics, but I haven`t looked that
deep into it. So it may not fit all your needs, but have a look at it,
it`s easy to get started.

[1] http://jakarta.apache.org/jmeter/

cheers,

Gerald

On 7/28/06, Remo Liechti <re...@swisslog.com> wrote:
> Hi guys
> We have a JSF page built up with Spring and webflow. There are also some
> java applets in it.
>
> How do you test your jsf pages?  The test should do: login->test some
> pages->logout->give us the test results in a human readable format.
>
> It should be possible to test the webflows, to test the interactivity
> between applets and webflows(if you click on an object in the applet, a
> webflow is started in another frame for example) etc.
>
> Do you know such test applications?
>
> Thanks for your feedback,
>
> Remo
> This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee.
> The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.
>


-- 
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
gerald.muellan@gmail.com