November 19, 2010

Selenium Basics Part - 2

Get started with Selenium!


1.    Watch: see the magic.


This video will tell you how to record tests using Selenium IDE.

2.    Begin: write and run tests in Firefox

Selenium IDE is a Firefox add-on that records clicks, typing, and other actions to make a test, which you can play back in the browser.

3.    Customize: your language, your browser.

Selenium Remote Control (RC) runs your tests in multiple browsersand platforms. Tweak your tests in your preferred language.

4.    Deploy: scale out, speed up.

Selenium Grid extends Selenium RC to distribute your tests across multiple servers, saving you time by running tests in parallel.

Who should use it? 

Developers can use it - for “browser” regression testing ( and replace htmlunit/httpunit in some cases) .
Per the one of the forces behind selenium(Neal ford) - it should really be used by Business Analyst first .
QA should enhance/use it do regression test/cross browsers testing on all platforms .

Platforms Supported by Selenium

Browsers

Browser
Selenium IDE
Selenium Remote Control
Selenium Core
Firefox 3
Record and playback tests
Start browser, run tests
Run tests
Firefox 2
Record and playback tests
Start browser, run tests
Run tests
IE 8
not supported
Start browser, run tests
Run tests
IE 7
not supported
Start browser, run tests
Run tests
Safari 3
not supported
Start browser, run tests
Run tests
Safari 2
not supported
Start browser, run tests
Run tests
Opera 9
not supported
Start browser, run tests
Run tests
Opera 8
not supported
Start browser, run tests
Run tests
Others
not supported
Partial support possible*
Run tests**

Operating Systems

OS
Selenium IDE
Selenium Remote Control
Selenium Core
Windows
Works in Firefox 2+
Start browser, run tests
Run tests
OS X
Works in Firefox 2+
Start browser, run tests
Run tests
Linux
Works in Firefox 2+
Start browser, run tests
Run tests
Solaris
Works in Firefox 2+
Start browser, run tests
Run tests
Others
Should work in Firefox 2+
Start browser, run tests*
Run tests**

Programming Languages

Programming languages are supported through Selenium Remote Control "drivers." These are libraries made for each language that expose commands from the Selenium API natively in the form of methods/functions.
Language
Selenium IDE
Selenium Remote Control
Selenium Core
C#
Generate code
Library ("driver") support
n/a
Java
Generate code
Library ("driver") support
n/a
Perl
Generate code
Library ("driver") support
n/a
PHP
Generate code
Library ("driver") support
n/a
Python
Generate code
Library ("driver") support
n/a
Ruby
Generate code
Library ("driver") support
n/a
Others
Generate custom code*
Commands via HTTP requests**
n/a

Testing Frameworks

Testing frameworks aren't required, but they can be helpful if you want to automate your tests.
Framework
Selenium IDE
Selenium Remote Control
Selenium Core
Bromine
Comes with template to add to IDE
Manipulate browser, check assertions via custom driver
Special support**
JUnit
Out-of-the-box code generation
Manipulate browser, check assertions via Java driver
n/a
NUnit
Out-of-the-box code generation
Manipulate browser, check assertions via .NET driver
n/a
RSpec (Ruby)
Custom code generation template*
Manipulate browser, check assertions via Ruby driver
n/a
Test::Unit (Ruby)
Out-of-the-box code generation
Manipulate browser, check assertions via Ruby driver
n/a
TestNG (Java)
Custom code generation template*
Manipulate browser, check assertions via Java driver
n/a
unittest (Python)
Out-of-the-box code generation
Manipulate browser, check assertions via Python driver
n/a
Others
Custom code generation template*
Manipulate browser, check assertions via HTTP requests***
n/a
n/a
Utilizes the Python driver
n/a

3 comments:

  1. Provided clear basic informations about Selenium....Thanks for sharing

    ReplyDelete
  2. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.
    <a href="http://www.traininginmarathahalli.in/selenium-training-in-bangalore/”> Selenium Training in Marathahalli </a>|

    ReplyDelete
  3. It has been simply incredibly generous with you to provide openly what exactly many individuals would’ve marketed for an eBook to end up making some cash for their end, primarily given that you could have tried it in the event you wanted.

    Devops Training in Bangalore

    ReplyDelete