[Celerity-users] Parallel running test?

Markus Kohler markus.kohler at gmail.com
Tue Dec 15 04:23:13 EST 2009


Hi,

Thanks It seems I found the issue.
Do to my lack of knowledge about how threading works in Ruby I used the
wrong kind of loop.
E.g. I  used a "for i in" loop which didn't work, but n.times does work.

Regards,
Markus

"The best way to predict the future is to invent it" -- Alan Kay


On Tue, Dec 15, 2009 at 1:50 AM, Jari Bakken <jari.bakken at gmail.com> wrote:

> On Tue, Dec 15, 2009 at 1:12 AM, Markus Kohler <markus.kohler at gmail.com>
> wrote:
> > Hi,
> > Thanks!
> > I tried to just spawn threads from jruby but that didn't really work
> > properly.
> > What kind of changes where necessary to htmlunit? Isn't it thread safe?
> > Markus
> >
>
> What didn't work properly? HtmlUnit should be thread-safe as long as
> you have one browser instance per thread.
>
> Here's a simple example:
>
> http://gist.github.com/256610
> _______________________________________________
> Celerity-users mailing list
> Celerity-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/celerity-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/celerity-users/attachments/20091215/c5417a2a/attachment.html>


More information about the Celerity-users mailing list