Friday 30 May 2014

Selenium IDE > Dive to the Depths!!

Is there anything much to go detailed about IDE. Though it's record and play back ,when it comes to real automation it's little tricky.Lets start form the scratch.

You can download the latest Selenium IDE form the below link.

http://docs.seleniumhq.org/download/

Open the above link in Firefox (Make sure to use Firefox ,since it's a FF plugin )and download the latest version(currently its 2.5.0) and run it.Once you are done ,you can find the Selenium IDE plugin on the top right corner of your browser.
OK...hold on...why should i write anything more about selenium IDE....Because you can find the best documentation in their official website...here you go ...

http://docs.seleniumhq.org/docs/02_selenium_ide.jsp#introduction

Try it out..it's fun...This is the best documentation i have seen about Selenium IDE.
Once you have gone through the first part of it, try this exercise.

Task: Automate the following scenario using IDE. Open google>Type 'Cheese' >Click on the first website link

Do you think it's too easy...Try it ....Let's see whether your automated script is able to open the first website link from the search list...

Thursday 29 May 2014

Selenium IDE >Explained !!

Selenium IDE >Explained !!

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 in.

Selenium IDE is not only a 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

Wednesday 28 May 2014

Selenium Overview.

Selenium Overview.

Selenium is a web automation tool. It's popular for automating web application for testing purpose, but is certainly not limited to just that.Boring Web based administration task can be automated as well (It makes you feel better in a world, where you are repeating your work like a machine).Hand over the repetitive web based job to Selenium and spend your time for improving the world around you(Of-course, it's your choice!!!).

Do you know which is the best part of Selenium when it comes to Web Automation?It supports most of the browsers.The same code can be run on different browsers without any modification(You just need to instantiate the driver for required browser)....Ok....I know that I am not supposed to use technical terms at such an early state...For now, realize that it's very easy to shift between browsers.

Components of Selenium

Selenium IDE:It's a Firefox add-on that will do simple record-and-playback of interactions with the browser.You can go for it if you want to,
  • Create quick bug reproduction scripts
  • Create scripts to aid in automation-aided exploratory testing

Selenium WebDriver:It's  a collection of language specific bindings to drive a browser, the way it is meant to be driven.You can go for it ,if you want to
  • Create robust, browser-based regression automation
  • Scale and distribute scripts across many environments
Selenium RC:Selenium Remote Control which have been officially deprecated can be considered as the first version of selenium(Selenium 1)