ISTQB Certified Software Test Engineer

Tuesday, July 6, 2010

Selenium +Perl+Windows

Hi this post is on configuring the Selenium RC to work with perl.

1.Record the Test suite using selenium ide and export it to Perl.

2.Open eclipse IDE and install the perl plugin for eclipse,if there is no plugin for perl in your eclipse previously.

3.Create a perl project in eclipse and copy the exported perl file to the project that was created in eclipse.

4.Install active perl .

5.Perl folder will be created after active perl installation.Add perl\bin in Path environment variable.

6.Now install perl module for selenium in active perl.

7.Download the perl module for selenium from the following link.
http://search.cpan.org/~lukec/Test-WWW-Selenium-1.22/lib/WWW/Selenium.pm

8.Extract the tar.gz file

9.Now go to the selenium pm directory that was created when we extracted the tar.gz
through command line.The Name of the directory created was "Test-WWW-Selenium-1.13"
10.Execute the makeFile in "Test-WWW-Selenium-1.13" using the following command
in command line.
perl Makefile.pl
11.After execution make the make file using command nmake

12.Some dependinces will be installed and once this process completed,install the nmake using command
nmake install

13.After nmake and nmake install copy the "Test-WWW-Selenium-1.13" directory to the lib folder of perl

13.Open another command prompt and open Perl package manager using the command "PPM"

14.Perl Package Manager window will be opened.

15.There we will find "Test-WWW-Selenium-1.13" as a package name.

16.Right click on the package name,there we will find an option for installation.

17.Then the package will be marked for installation

18.Click on the Run button which is at the top of perl package manager.

19.Then Selenium module for perl will be installed.

20.Start testing selenium using perl as a scripting language.

1 comment:

  1. Thanks a lot .Though I am not able to use nmake,but som how I managed with the dmake.I want some extra information from you..can you please tell me how to add the selenium jar file in eclipse for perl project?It will be very helpful for me if you can share any documents from installing eclpise to running a test script in perl.

    ReplyDelete