Selenium Movie — using Selenium IDE, Selenium Remote Control and Ant
Selenium provides cross-browser functional, web-based testing using table-driven tests. What’s more is that you can configure Selenium to run these tests with every source code change or on a periodic basis.
This flash demo walks you through the steps of using the Selenium IDE with Selenium Remote Control and Ant so that you can incorporate the execution of functional tests with every build. Because it can run with an automated build, you can easily configure these tests to run in a Continuous Integration environment.
Below, is an example of an Ant script which runs the Selenium tests using the Selenum Server. This script is based on the Selenium-RC and Continuous Integration entry
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="functional-tests" default="all" basedir=".">
<property file="${basedir}/selenium.properties"/>
<import file="${basedir}/common-environment.xml"/>
<target name="all" depends="clean" >
<antcall target="run-selenium-tests"/>
<antcall target="stop-server"/>
</target>
<target name="clean">
</target>
<property name="acceptance.test.lib.dir"
value="${functional.test.dir}" />
<property name="firefox" value="*firefox" />
<property name="base.url"
value="http://${web.host.name}:${web.port}" />
<property name="acceptance.test.list.dir"
value="${functional.test.dir}" />
<property name="acceptance.test.report.dir"
value="${functional.test.dir}" />
<target name="run-selenium-tests">
<mkdir dir="${reports.dir}" />
<java jar="${acceptance.test.lib.dir}/selenium-server.jar"
fork="true">
<arg line="-htmlSuite "${firefox}""/>
<arg line=""${base.url}""/>
<arg line=""${acceptance.test.list.dir}/${test.suite}""/>
<arg line=""${reports.dir}/index.html""/>
<arg line="-timeout ${timeout}"/>
</java>
</target>
<target name="stop-server">
<get taskname="selenium-shutdown" src="http://${web.host.name}:
${selenium.rc.port}/selenium-server/driver/?cmd=shutDown"
dest="result.txt" ignoreerrors="true" />
<echo taskname="selenium-shutdown"
message="Errors during shutdown are expected" />
</target>
</project>

October 9th, 2006 at 11:00 am
It would be interesting to see how Selenium works with Parabuild. Most of our customers do run automated unit tests under Parabuild but automated testing of user interfaces has been a bit off up until now.
October 9th, 2006 at 8:38 pm
I’ve done this with CruiseControl and it works extremely well. However, you may choose to run it on your secondary builds rather than on your commit builds — because, sometimes, they can slow down your build feedback if you are running through many tests. Since Parabuild supports Ant, the script provided should support the execution of these functional tests. Of course, you can customize it if you are using another build scripting tool.
October 11th, 2006 at 12:17 pm
Paul,
Yes, we recommend Parabuild users moving long-running functional and user acceptance tests to a “back line” build configuration that runs on a daily or hourly basis rather than on a per-check in basis.
Hope this helps.
Regards,
Slava Imeshev
November 29th, 2006 at 4:07 am
[…] Selenium Movie — using Selenium IDE, Selenium Remote Control and Ant … the acceptance of this type of engine has been increasing among potential vehicle customers in the US market. As in Europe, the BMW Advanced Diesels will establish themselves as the sporty, clean and efficient choice in the US, …Read more: here […]
December 2nd, 2006 at 2:40 am
[…] Read more: here […]
February 24th, 2007 at 12:17 pm
[…] I ran across an interesting article entitled “Improving Test Coverage of Ajax Applications” in which the author likens the challenges of testing Ajax applications to that of testing traditional GUI apps. While some newer frameworks (like Selenium) are positioned to actually verify Ajax-ian behavior, they can lead to a false sense of security because of the complexity associated with the combination of actions in using a GUI. […]
August 10th, 2007 at 4:39 am
Interesting.. I need to integrate Selenium with my cruise control environment. We are not using Selenium IDE, we are using Selenium RC and doing automation in Perl. Hopefully, it should be easier to integrae with cruise control than Selenium IDE.. We are also using Test::More module and Test::TAP which generates result in the same format as our unit tests. I have found it much better to use Selenium RC as compare to Selenium IDE. Use Selenium IDE as a starting point and than move to Selenium RC, possibly in the same language which dev team is using.
March 10th, 2008 at 6:18 am
hi
I am a new user in selenium.I recorded the application in IDE.When i ran it i got an error.
2)How can i integrate selenium IDE with RC?
January 19th, 2009 at 6:43 am
How can I use Selenium for GUI testing?
January 23rd, 2009 at 6:57 pm
For GUI testing for a client application, you can use a tool such as Abbot. See http://abbot.sourceforge.net/doc/overview.shtml
February 17th, 2009 at 2:28 am
how to record the perl scripting using Selenium RC
February 17th, 2009 at 2:34 am
if i run the perl scipt in Activeperl i.e
use strict;
use warnings;
use Time::HiRes qw(sleep);
use Test::WWW::Selenium;
use Test::More “no_plan”;
use Test::Exception;
my $sel = Test::WWW::Selenium->new( host => “localhost”,
port => 4444,
browser => “*chrome”,
browser_url => “http://www.google.co.in/” );
$sel->open_ok(”/”);
$sel->type_ok(”q”, “how to run the perl script using selenium RC tool”);
$sel->click_ok(”btnG”);
$sel->wait_for_page_to_load_ok(”30000″);
in the output am getting error like
Can’t locate Test/WWW/Selenium.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)
pls can u me whats the problem is it in configuration problem or any other else
May 19th, 2009 at 2:17 pm
This is late but you can get the necessary perl modules from Selenium Remote Control. Include the library using
#!/usr/bin/perl -I
eg.
#!/usr/bin/perl -I /selenium-remote-control-1.0-beta-2/selenium-perl-client-driver-1.0-beta-2/lib/
You will also need Test::Exception module from cpan.
November 21st, 2009 at 1:57 am
I want to know how to write test scripts in selenium RC - C# and generating test results.