Introduction to Selenium


Introduction to Selenium
 

1) What is Selenium?

2) History of the Selenium Project

3) Selenium's Tools Suite

    Selenium IDE
    Selenium RC
    Selenium WebDriver
    Selenium Grid
------------------
1) What is Selenium?
 

• Selenium is a suite of software tools to automate Web Browsers.

• It is an Open rootage suite of tools mainly used for Functional as well as Regression Test Automation.

• Selenium supports diverse Operating environments.

MS Windows

Linux

Macintosh etc...

• Selenium supports diverse Browsers.

Mozilla Firefox

IE

Google Chrome

Safari

Opera etc...

Note: Selenium IDE supports Mozilla Firefox only.

• Selenium supports diverse programming environments to write programs (Test scripts)

Java

C#

Python

Perl

Ruby

PHP
------------------------------------------------
2) History of the Selenium Project
 

• Selenium get-go came to life inwards 2004.

• In 2006, Selenium WebDriver was launched at Google.

• In 2008, the whole Selenium squad decided to merge Selenium WebDriver alongside Selenium RC inwards lodge to course of didactics to a greater extent than powerful tool called Selenium 2.0

Selenium 1
(Selenium IDE + Selenium RC + Selenium Grid)

Selenium 2
(Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)
------------------------------------------------
3) Selenium's Tools Suite


i) Selenium IDE
 

It is a Firefox browser plug in, used to exercise as well as execute Test cases.

Selenium IDE Features:
 

• Create Test Cases, Test suites (We tin Record examination cases or type Test steps using chemical component locators as well as Selenese commands)

• Edit Test Cases

• Execute Test cases, Test suites

• Debug Test Cases.

• Enhance Test Cases

• Export Test cases to other formats (java, ruby etc...)

Note: selenium IDE Test illustration default format is .html
--------------------------------------
Drawbacks of Selenium IDE
 

• It supports Mozilla Firefox browser only.

• It doesn't back upward Programming logic/features to heighten Test cases.

• It doesn't back upward Data Driven Testing.

• It is non suitable for complex examination illustration design.

• No centralized maintenance of Objects/Elements
---------------------------------
ii) Selenium RC (* Out dated)

iii) Selenium WebDriver
 

• It is a Programming interface to exercise as well as execute Test cases.
----------------------------------------
Selenium IDE has IDE but doesn't bring Programming interface

Selenium WebDriver has Programming interface but doesn't bring IDE

UFT/QTP has both IDE every bit good every bit Programming interface
-----------------------------------
• Selenium WebDriver supports diverse programming environments to write programs.

Java,

C#

Perl

Python

Ruby

PHP

• Using Element/Object locators/properties as well as Webdriver Methods nosotros tin exercise as well as execute Test cases.

• Selenium Webdriver supports diverse browsers to exercise as well as execute examination case/test script/test

Note: Browser driver varies from 1 browser to another.

• Selenium WebDriver supports diverse operating environments

MS Windows

Linux

Macintosh etc...
---------------------------
Drawback of Selenium WebDriver
 

• It doesn't generate detailed Test Reports.

• No centralized maintenance of Object/elements
------------------------------------------------
iv) Selenium Grid
 

• Selenium Grid is used to execute tests across multiple browsers, operating environments as well as machines inwards parallel.

• Selenium Grid two supports Selenium RC Tests every bit good every bit Selenium WebDriver Tests.
-------------------------------------------------
Focus on: 

----------
i) Selenium WebDriver to exercise Test cases using chemical component locators as well as Webdriver methods.

ii) Java Programming to heighten examination cases.

iii) TestNG Framework to grouping examination cases, execute examination batches as well as generate detailed examination reports.
------------------------------------------

Introduction to Selenium Part-2 Link

Sumber http://www.gcreddy.com/
Post a Comment (0)
Previous Post Next Post