A cool Intro about Selenium Testing Tool

Introduction to Selenium Testing tool

Selenium is all about Testing Web Apps

Selenium is  automation testing tool especially for web based applications. It can run in different browsers and platforms. It has many components

  • Selenium Remote Control (RC)rc
  • Selenium Integrated Development Environment (IDE)ide
  • Selenium Web Driverwd
  • Selenium GridgridIt supports many platform and multiple Operating Systems. It supports multiple languages like Java, C#, Python, PHP, Perl.langIt is independent of the language of the web application i.e., if we have written web application in perl, we can write the test script using java.

    Do you know how selenium got this name?

    Jason Huggins invented this selenium; prior name of the selenium was “JavaScript Test Runner”

    jasson

    Jasson Huggins

    The name Selenium comes from a joke made by Huggins in an email, mocking a competitor named Mercury, saying that you can cure mercury poisoning by taking selenium supplements. The others that received the email took the name and ran with it

    Source:http://en.wikipedia.org/wiki/Selenium_(software)

     mercury

    Image courtesy: http://drjockers.com/2011/07/selenium-the-mercury-magnet/

     Mercury Interactive Corp developed QTP, later the company was acquired by Hewlett Packard and Selenium is a very good antinode for mercury poisoning. So Jasson suggested this name.

    How Jasson got this idea?bulb

    Jasson was working in ThoughtWorks, in a project, he came across a situation where he should do repetitive tests and got bored, so he wrote a JavaScript that controls browser’s actions automatically

    Same Origin Policy

    In each and every domain we have many applications (Fig 1.1,1.2), so include a security feature same origin policy states that JavaScript cannot access WebElements of Web application in other domain. Fig 1.3 states clearly that cricket.yahoo.com cannot be accessed from JS written in Google

    google

    Fig 1.1

    yahoo1.2

    Fig 1.2

    sop

    Fig 1.3

    Selenium Remote Control (RC)

    For executing test, scripts web server and web app should be made available in local computer. So to solve this issue, Paul Hammant created a server that will act as HTTP proxy to trick the browser believing that selenium core and the web app tested from same domain.

    paul

    Paul Hammant

    Selenium Grid

                    For Largest test suite (group of test cases) and slower running test suites, Patrick Lightbody introduced a new concept called “Selenium Grid”. In his idea, parallel execution of test cases in different browsers and environment can be done so that it greatly reduces the time to execute the all the test cases.

     patrick

    Patrick Lightbody

    Selenium IDE

    The selenium IDE is developed as a Firefox plugin by Shinya kasatani of japan. He mainly created this for non-programmers; it has record and playback option. Execution speed also increased and he donated this project to selenium project in 2006.

    shinya

    Shinya kasatani

    Selenium WebDriver

    Selenium Web Driver is the only thing that controlled browser actions from OS level and it is developed by Simon Stewart.  Others tools like IDE, RC utilizes the selenium core in the browser as their important thing.

    simon

    Simon Stewart 

    Catch you at upcoming post, until then lets share and learn at http://www.guvi.in

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s