Re: [Catalyst] Using Selenium to test Catalyst app

2009-01-27 Thread Scott McWhirter
You need to be running the Selenium-RC server yourself.

You can get that from http://www.openqa.org/


-- 
-Scott McWhirter- | -konobi-

On Tue, Jan 27, 2009 at 19:15, Daniel Austin wrote:

> Hi
>
> Is anyone successfully using Test::WWW::Selenium::Catalyst?
>
> I can't get the module to install on Fedora. Looking at "reports
> JROCKWAY/Test-WWW-Selenium-Catalyst-0.02.tar.gz" in cpan suggests that most
> people can't. Have had a look at the doco and checked firefox-bin is in my
> path and LD_LIBRARY_PATH is set but no joy.
>
> The actual error message I'm getting is
>
> Can't start selenium: Error requesting
> http://localhost:/selenium-server/driver/:
>
> If I go to that URL in a browser Selenium responds but with a 403 error
> "Forbidden for proxy".
>
> Have used Selenium successfully for both Rails and Java projects but I
> confess that I find its internals opaque.
>
> Any ideas? Am running Perl 5.10.0.
>
> Thanks
>
> Dan
>
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Using Selenium to test Catalyst app

2009-01-28 Thread Chris
On Wed, Jan 28, 2009 at 2:15 PM, Daniel Austin  wrote:
> Hi
>
> Is anyone successfully using Test::WWW::Selenium::Catalyst?
>
> I can't get the module to install on Fedora. Looking at "reports
> JROCKWAY/Test-WWW-Selenium-Catalyst-0.02.tar.gz" in cpan suggests that most
> people can't. Have had a look at the doco and checked firefox-bin is in my
> path and LD_LIBRARY_PATH is set but no joy.
>

I edited the module to remove the bits which launched seleniumrc. It
now works very nicely talking to selenium running in a vm.

- Chris

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Using Selenium to test Catalyst app

2009-01-28 Thread michael reddick
>
>
> I edited the module to remove the bits which launched seleniumrc. It
> now works very nicely talking to selenium running in a vm.
>
>
I had luck grabbing the latest version of selenium-server.jar and copying
that over $perl_dir/Alien/SeleniumRC/selenium-server.jar
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Using Selenium to test Catalyst app

2009-01-28 Thread Tomas Doran


On 28 Jan 2009, at 17:47, michael reddick wrote:





I edited the module to remove the bits which launched seleniumrc. It
now works very nicely talking to selenium running in a vm.


I had luck grabbing the latest version of selenium-server.jar and  
copying that over $perl_dir/Alien/SeleniumRC/selenium-server.jar


Given that _multiple_ people are hacking this to work correctly,  
wouldn't it make sense to send patches back to the author(s) so that  
it 'just works' for everyone else?


Cheers
t0m


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Using Selenium to test Catalyst app

2009-01-31 Thread Daniel Austin
>
> Given that _multiple_ people are hacking this to work correctly, wouldn't
> it make sense to send patches back to the author(s) so that it 'just works'
> for everyone else?


Yes.

In my case downloading the latest selenium-server.jar and installing it in
Alien::SeleniumRC's module directory worked. I've e-mailed the author of
Alien::SeleniumRC with the tip (thanks Michael).

Dan
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Using Selenium to test Catalyst app

2009-02-16 Thread Daniel Austin
2009/1/29 Tomas Doran 

> Given that _multiple_ people are hacking this to work correctly, wouldn't
> it make sense to send patches back to the author(s) so that it 'just works'
> for everyone else?
>

So I volunteered to co-maintain Alien::SeleniumRC and the author has kindly
given access. I've updated the selenium-server.jar and uploaded to CPAN.

Should work for everyone now "out of the box."

If you've got other hacks you think people would benefit from send 'em
through.

Dan
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Using Selenium to test Catalyst app

2009-02-17 Thread Tomas Doran


On 17 Feb 2009, at 02:04, Daniel Austin wrote:
So I volunteered to co-maintain Alien::SeleniumRC and the author  
has kindly given access. I've updated the selenium-server.jar and  
uploaded to CPAN.


Should work for everyone now "out of the box."


You sir are a legend.

I look forward to it 'just working' when I get to the point of  
wanting browser based acceptance tests for one of my applications in  
a couple of months.


Cheers
t0m


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/