Selenium Introduction

Automation Testing | The Dream of Selenium Testing is free

We are talking about the dream of building a successful career in Automation Testing, about the dream of being able to understand and master at least one Automation tool in international market. And for those of you who are dreaming on similar lines or are looking forward to it, would be excited to know that the dream of Automation Testing is free!!!

Automation Testing using Selenium WebDriver

Yes, we are talking about the open-source Automation Testing tool namely Selenium.

Selenium for Automation Testing

Selenium is a web browser Automation tool. It provides a number of tools and APIs each with a different approach for supporting Automation Testing on various HTML and JavaScript applications in most of the browsers available in market. Selenium does not support technologies such as Silverlight, Flex/Flash, etc.

Selenium deploys on WindowsLinux, and Macintosh platforms. It is open-source software, released under the Apache 2.0 license, and can be downloaded and used for Automation Testing without charge.

The set of tools for Automation Testing via Selenium are:

  • Selenium IDE
  • Selenium WebDriver
  • Selenium Standalone Server
  • Selenium Client API

Selenium IDE

The simplest Automation Testing tool – Firefox browser has an add-on for recording and playing back Selenium scripts on Firefox.This add-on enables user to record the various actions it performs on the application using Firefox browser.

Selenium IDE

An important thing to note here is that Selenium IDE is only supported on Firefox and no other browsers. However, the recorded script generated on Firefox can be converted into any other programming language and can be run on other browsers for Automation Testing.

Scripts may be automatically recorded and edited manually providing auto-completion support and the ability to move commands around quickly. Scripts are recorded in Selenese, a special test scripting language for Selenium. Selenese provides commands for performing actions in a browser (click a link, select an option), and for retrieving data from the resulting pages.

Selenium WebDriver

Selenium provides a programming interface for developing advanced Selenium scripts for Automation Testing using different programming languages. It also provides the feature of running scripts on multiple Browsers.

Selenium Webdriver

Selenium WebDriver is the successor to Selenium RC. One can write scripts with various programming languages such as Java, C#, VB.NET, Python, Ruby, PHP and JavaScript.

Selenium Standalone Server/Grid

Selenium provides the feature of running scripts remotely and in a distributed manner using the Selenium Standalone Server.

It also has the Grid feature using which we can run automation tests in parallel and on mobile platforms as well. Selenium Grid is a server that allows tests to use web browser instances running on remote machines.

With Selenium Grid, one server acts as the hub. Tests contact the hub to obtain access to browser instances. The hub has a list of servers that provide access to browser instances (WebDriver nodes), and lets tests use these instances. Selenium Grid allows running Test Automation in parallel on multiple machines, and to manage different browser versions and browser configurations centrally (instead of in each individual test).

Selenium Server

Selenium client API

As an alternative to writing tests in Selenese, tests can also be written in various programming languages. These tests then communicate with Selenium by calling methods in the Selenium Client API. Selenium currently provides client APIs for Java, C#, Ruby and Python.

Try and learn one or two Automation Testing tools that mostly meet the needs of your project, however learning all the tools will give you many different options for approaching different Automation Testing problems. The entire suite of tools results in a rich set of testing functions specifically geared to the needs of testing of web applications of all types.

Save

Save

Save

Leave a Reply

Your email address will not be published. Required fields are marked *