Hi Alexandre,
I would recommend running the test in a debug environment, and breaking
execution intermittently to try and work out why it is taking so long to
execute. This is fairly straightforward to do in Eclipse, you may need to
install some Java sources as well.
Normally HtmlUnit/JWebUnit is much faster for executing Javascript if there
are many small files, compared to a browser. I don't know about single large
files, though.
Jevon
On Wed, Sep 1, 2010 at 2:21 PM, Julien HENRY <henr...@yahoo.fr> wrote:
> In this case I'm quite sure it doesn't come from JWebUnit. Try to access
> your application in a real browser to see how are performances.
>
>
> *De :* Alexandre Gazola <alexandregaz...@yahoo.com.br>
> *À :* Usage problems for JWebUnit <jwebunit-users@lists.sourceforge.net>
> *Envoyé le :* Mer 1 septembre 2010, 15h 09min 38s
> *Objet :* [JWebUnit-users] Res: Re : jwebunit with JSF: Dynamic page takes
> a long time!
>
> Hi Julien,
>
> Thank you for your answer, but that still didn´t work out for me.
>
> Best,
>
> Alexandre
>
> ------------------------------
> *De:* Julien HENRY <henr...@yahoo.fr>
> *Para:* Usage problems for JWebUnit <jwebunit-users@lists.sourceforge.net>
> *Enviadas:* Quarta-feira, 1 de Setembro de 2010 9:28:50
> *Assunto:* [JWebUnit-users] Re : jwebunit with JSF: Dynamic page takes a
> long time!
>
> Hi Alexandre,
>
> Sometimes this is beacuse of Javascript that takes too much time to execute
> under HtmlUnit. TRy to disable scripting (setScriptingEnabled(false)) to see
> if performances are better.
>
> Regards,
>
> Julien
>
>
> *De :* Alexandre Gazola <alexandregaz...@yahoo.com.br>
> *À :* jwebunit-users@lists.sourceforge.net
> *Envoyé le :* Mer 1 septembre 2010, 2h 12min 52s
> *Objet :* [JWebUnit-users] jwebunit with JSF: Dynamic page takes a long
> time!
>
> Hi guys!
>
> I started experimenting with jwebunit on my JSF project. My test takes a
> really long time to run (it gets stuck for some time at the "beginAt"
> call). The method succeeds, but it is taking a long time to execute. Does
> anybody know what is happening ? (this is a JSF 1.2 application).
>
> **
>
> *public* *class* TesteWebUnit {
>
> * private* WebTester tester;
>
> @Before
>
> * public* *void* setUp() *throws* Exception {
>
> tester = *new* WebTester();
>
> tester.setBaseUrl(http://localhost:8180/Test);
>
> }
>
> @Test
>
> * public* *void* login() {
>
> tester.beginAt("/login/login.html");
>
> tester.assertTitleEquals("Login Page");
>
> }
>
> }
>
>
>
> Thanks!
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> JWebUnit-users mailing list
> JWebUnit-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users