in reply to Re: Executing selenium scripts automatically on cloud server using Perl
in thread Executing selenium scripts automatically on cloud server using Perl

After a sleepless night I finally got bits of it working.

Apparently, once I transfer the files to the server using CGI, what I have to do is just:
1. Export the selenium test cases as Perl scripts.
2. Install the necessary modules. (Could just bundle it up on server one time.)
3. Execute these scripts in the background on the server (cloud instance) directly using Perl
4. Test::More will tell me if tests have passed or failed
5. I could simply retrieve the status and carry on with life =)

Thanks!!! Any further contributions to this discussion are welcome
  • Comment on Re^2: Executing selenium scripts automatically on cloud server using Perl

Replies are listed 'Best First'.
Re^3: Executing selenium scripts automatically on cloud server using Perl
by believer (Sexton) on Jun 27, 2011 at 14:35 UTC
    I think you do not need the cgi step, you can connect directly to the selenium server.

    So on the server machine you start your selenium server: java -jar selenium-server.jar

    On the client, you run a perl script like this:

    use Test::WWW::Selenium my $sel = Test::WWW::Selenium->new( host => "your server's ip", port => 4444, browser => "*firefox", browser_url => "http://www.google.com", ); # your test script goes here

    Maybe you have to tweak the firewall settings on the server to make this work.

Re^3: Executing selenium scripts automatically on cloud server using Perl
by mkhan (Sexton) on Jun 27, 2011 at 12:39 UTC
    Couple of more things ..

    1. WWW::Selenium offers most of the things I need.

    2. My back is hurting, I'm sleepless and in a terrible state but the awesomeness of Perl solutions bring tears of joy.
Re^3: Executing selenium scripts automatically on cloud server using Perl
by Anonymous Monk on Jun 27, 2011 at 12:37 UTC
    Don't eat the yellow cloud, its not candy :)