Wednesday, 12 June 2013

How To Install Selenium IDE

How To Install Selenium IDE

There are many software products available online.The software needs to be validated before release and it should be done in time.To validate software especially web applications you can do it either by Manually testing it or by Automating the test cases.Generally we automate test cases for regression testing.

Now the need of automation tool had arose for efficient testing .To automate web based application we have a tool called Selenium IDE . In this tool you can record the scenarios and execute them on the web application  whenever it is required to test the application.

Now let me tell you

"HOW TO INSTALL SELENIUM IDE"

  • BEFORE I TELL YOU HOW TO INSTALL SELENIUM IDE YOU SHOULD HAVE MOZILLA FIREFOX INSTALLED IN YOUR SYSTEM.

         Here is the link to Mozilla Firefox Download Page


  •  After downloading Firefox navigate to the Selenium site in Firefox browser.

         Here is the link to download Selenium IDE


  • In the selenium download page click on the link "1.6.0" present next Download version text present in the download page.You can clearly understand it by looking at the screen shot present below.                   
                



  • Once you click on the download version link in the downloads page you will be  shown a pop up like this in Firefox

              


  •  Once you click on Allow button download of the "Add-on" starts and after that you have to click on Install Now button.You can understand this by looking at this screen shot.
                 
    • After installation you will be asked to restart the browser.Restart it and that's it  the installation is done.   
    • Now let me tell you the most important thing I.E. where is Selenium IDE  present.You might say it is in Firefox but where? You will find it in Web Developer present in  the Firefox browser.
    • How to Navigate to web Developer ?

    1. Click on Firefox button present at the top of the Firefox window.
    2. Place the Cursor on Web Developer in that you will find Selenium IDE click on it.

    • That's it in this Tutorial .As this tutorial is all about How to Install Selenium IDE so I will explain how to use "Selenium IDE" in the next Tutorial. 
    •       

    Please Do write in your comments.I am interested in answering  your queries.

    How To Set Up Selenium IDE


    How To Set Up Selenium IDE



    To start with you should  download the selenium IDE add-on into your Mozilla Firefox browser. Now you go to add-on page where you will find selenium IDE in it.Next to selenium you will find option link present in the same line so click on it , there you can set up the options which you want in selenium.Here is the screen shot where you can find the options link.



    After clicking on the Options link, below is the screen shot of the pagewhich will be opened.



    In options page you will find four tabs
    1)General
    2)Formats
    3)Plugins
    4)Locator Builders

    In General Tab you will find the following fields in it.
    1)Encoding of Test files Text Box which can be seen  in the above screen shot.
    2)Default Timeout
    3)Selenium Core Extensions text box with a browse button to add your extensions to your selenium IDE
    4)Selenium IDE Extensions text box with browse button  to add selenium IDE extensions.
    5)Some Check boxes.

    • The Encoding of test files has a default value set in it which you  need not change because it runs fine with that.
    • The Default Timeout is where you can specify the timeout to execute the command.It means that you can change the default timeout to any value which you think is suitable for that command.Generally the timeout can be defined such that the command gets executed by that time.So make sure to provide the appropriate time in milliseconds which  is the best timeout for that command for that particular website.The timeout varies as per the performance of the your website.
    • In Selenium Core Extensions or in Selenium IDE Extensions text box field you can enter the extensions in it.I have added some extensions which were .js files.Here .js file is nothing but JavaScript file. Some of the .js files are User-extensions.js ,datadriven.js and some other which i will tell you in the next post.
    • The options which are present in General tab are as follows:
                     1)Remember Base URL.
                     2)Record Assert Title automatically.
                     3)Record absolute URL.
                     4)Activate Developer Tools 
                     5)Enable  Experimental features 
                     6)Disable format change warning messages
                     7)Start recording immediately on open.

    • Now let me tell you one thing that by default some of the options will be enabled automatically.By default enabled options are 
                     a)Remember Base URL
                     b)Start Recording immediately on open.
    • Remember Base URL: By selecting this option in the selenium  options page you will be able to see the remembered base URL whenever you open the selenium .This feature is useful to make selenium remember the URL which was present in the Base URL field when you recorded the test scenario in selenium.
    • Record Assert Title automatically:By enabling this in options page the selenium gets the title from the page which it is recording.Without you doing it manually.It returns page title for recorded page.So you can know the title of the page which you are in.
    • Record absolute URL:By enabling "Record absolute URL" the selenium records the exact URL on which you are automating.It will be present in the target section of the table present in the selenium Test case pane.
    • Activate developer tools:Activates the developer tools.
    • Enable experimental features:It enables different format in which you can record and use that code in your scripts by using selenium RC.           
    • Disable format changes warning message:To disable format changes warnings message you need to enable this.There will a pop up message box coming up whenever you change the format of the code which is getting generated while you are recording it.Once you change the format of the code you cannot run that by using Selenium IDE tool.
    • Start recording immediately on open:By enabling this ,selenium tool will be in recording mode when you open selenium.
    Note:Selenium IDE is the tool which allows record and play when compared to all other selenium tools.

    Recommended First steps for learning Selenium

    -->Learn how to create testes in selenium IDE

    -->Learn how to run selenium IDE tests against different browsers/platform using Selenium RC(Remote Control)server

    -->Learn how to write seleinum tests in any one of several supported languages using selenium RC drivers

    selenium intiduction


    Selenium IDE is an integrated development environment for Selenium scripts. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests. Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back tests in the actual environment that they will run.
                          Selenium IDE is not only recording tool:it is a complete IDE. You can choose to use its recording capability, or you may edit your scripts by hand. With autocomplete support and the ability to move commands around quickly, Selenium IDE is the ideal environment for creating Selenium tests no matter what style of tests you prefer.

    Features:
    • Easy record and playback
    • Intelligent field selection will use IDs, names, or XPath as needed
    • Autocomplete for all common Selenium commands
    • Walk through tests
    • Debug and set breakpoints
    • Save tests as HTML, Ruby scripts, or any other format
    • Support for Selenium user-extensions.js file
    • Option to automatically assert the title of every page
    • NEW! Easy customization through plugins