Selenium The Beginning


Selenium The Beginning

i) What is Selenium?

ii) Selenium Components / Selenium's Tool Suite

iii) Advantages too Disadvantages of Selenium

iv) Selenium Environment Setup
------------------------------------------------
i) What is Selenium?

• Selenium is a Suite of Software Tools to automate Web Browsers.

(Selenium is non a unmarried tool similar UFT, RFT, SilkTest etc..., It is a suite of tools, they are Selenium IDE, Selenium RC, Selenium WebDriver too Selenium Grid. Selenium supports Web Applications only, doesn't back upwards Desktop Applications too Other Applications.)
  
• Selenium is an Open rootage Software released nether the Apache 2.0 License, mainly used for Functional too Regression Testing.

(Anybody tin download too operate Selenium tools alongside costless of cost, anybody tin alter the rootage code too distribute the rootage code but selling modified rootage code is non allowed. The primary objective of Apache 2.0 license is Selling source code is non allowed. Selenium is mainly used for Functional Test Automation, other tools inward this category are HP-UFT, IBM-RFT, Micro Focus - SilkTest, Test Complete, Test Partner etc...)
   
• Selenium supports diverse Operating Environments to hit too execute Test cases.

(Suppose our AUT (Application Under Test) deployed on Windows, nosotros tin operate Selenium for Test Automation Or Our AUT on Linux Environment, nosotros tin operate Selenium or Our AUT deployed on Macintosh surroundings too therefore nosotros tin operate Selenium for Test Automation. UFT (formerly QTP) supports MS Windows operating surroundings only.)

Selenium Supports:


MS Windows

Linux,

Macintosh etc...

• Selenium supports diverse programming environments to write Programs (Test Scripts)

Selenium supports:

Java,

C#,

Perl

Python,

Ruby

PHP

(Selenium supports diverse programming languages to write Test Scripts, nosotros tin select whatever i of those languages, present nearly of the Selenium Testers using Java (nearly 77%))

Note: Selenium IDE doesn't back upwards Programming.

• Selenium supports diverse Web Browsers.

Mozilla Firefox,

Google Chrome,

IE,

Opera,

Safari etc...

(Selenium supports cross browser testing, Test Cases are same for all browsers but browser driver diverse from i browser to another, Mozilla Firefox is the default browser inward Selenium. If you lot desire to execute Test Cases using Chrome browser too therefore download Chrome browser driver too laid upwards driver executable file path inward Selenium Test Cases, follow same method for IE, Safari, Opera etc... Browsers.)

Note: Selenium IDE supports exclusively Mozilla Firefox.

• Selenium supports diverse Testing Frameworks that depends on Programming environment.

(Using Testing Framework nosotros tin Group Test Cases, Prioritize Test Cases, Execute Test Batches too Generate Test Reports.)

Example:

Java - JUnit, TestNG

C#.NET - NUnit 
---------------------------------------------------------
ii) Selenium Components / Selenium's Tool Suite

• Selenium showtime came to life inward 2004

• In 2006, Selenium WebDriver was launched at Google.

• In 2008, the whole Selenium squad hit upwards one's require heed to merge WebDriver alongside RC (Remote Control) inward social club to cast to a greater extent than ability tool called Selenium 2.0.

Selenium 1.0

(Selenium IDE + Selenium RC + Selenium Grid)

Selenium 2.0

(Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)

Selenium 1.0 + WebDriver = Selenium 2.0

Selenium Components / Selenium's Tool Suite

1) Selenium IDE

2) Selenium RC

3) Selenium WebDriver

4) Selenium Grid
-----------------------------------
1) Selenium IDE (Integrated Development Environment)

It is Firefox browser plug in, plant exclusively on Firefox.

Selenium IDE Features

• It is a prototyping tool to hit too execute Test Cases.

• Create Test Cases, cast Test suites
(Using Recording nosotros tin generate Test cases or using Element Locators too Selenese Commands nosotros tin type Test Steps.)

• Execute Test Case, Test Suite

• Edit Test Cases

• Debug Test Cases

• Export Test Cases to other formats (supporting formats, ex: Java, Ruby etc...)
(* Selenium IDE Test Case default format is .html)

Selenium IDE Drawbacks

• It supports exclusively Mozilla Firefox browser.

• It doesn't back upwards programming.

• It doesn't back upwards Data driven Testing

• It doesn't generate detailed Test Reports.
-------------------------------------------------------------
2) Selenium RC (* Out Dated)
--------------------------------------------
3) Selenium WebDriver

It is a Programming Interface, doesn't induce got IDE.

Selenium IDE - IDE, no Programming
Selenium WebDriver - Programming Interface, no IDE
---------------------------
UFT - IDE too Programming Interface
-------------------------------------------
Selenium WebDriver Features

• It has Programming Interface only, using Element Locators too WebDriver Commands nosotros tin hit Test Cases.

• It supports diverse Operating Environments (MS Windows, Linux, Mac etc...)

• It supports diverse Browsers (Mozilla Firefox, Google Chrome, IE, Safari, Opera etc...)

• It supports diverse Programming environments (Java, C#, Python, Perl, Ruby too PHP)

• It supports Data driven Testing, Cross browser Testing too Batch Testing.

• It supports Parllel attempt execution alongside aid of Either selenium Grid or TestNG Framework.
-------------------------------------------
Drawbacks of Selenium WebDriver

• It doesn't induce got IDE, therefore it takes to a greater extent than fourth dimension to hit Test cases.

• No built-in Result Reporting facility.

• No built inward spread sail for Data related operations
-----------------------------------------------------
4) Selenium Grid

• It is used to execute Test cases across multiple browsers, operating environments too computers inward parallel.

• Selenium Grid 2.0 supports Selenium RC Test Cases too Selenium WebDriver Test Cases.

Note: Selenium Grid doesn't back upwards Test Case Design, it is exclusively for Test Case Execution. It supports diverse operating environments, browsers to execute Tests inward parallel.
-------------------------------------------------------------------
Focus on:

Selenium WebDriver - to Create too Execute Test Cases

Java Programming - To Enhance Test Cases

TestNG - To Group Test Cases, Prioritize Test Cases, Batch Testing too Generate Test Reports.
------------------------------------------------------------------------
iii) Advantages too Disadvantages of Selenium

Advantages:


• It is an Open rootage Software (Free of Cost)

• It supports diverse Operating environments, Browsers too Programming environments.

• It supports Parallel Test Execution
etc...
---------------------------------------------
Disadvantages:

• It supports Web Applications only.

• No reliable Technical support

• Limited back upwards for Image Testing

• No other tool integration for Test Management.

• Takes to a greater extent than fourth dimension to hit Test cases inward Selenium WebDriver

• Difficult Setup Test Environment
Etc...
---------------------------------------------------------
iv) Selenium Environment Setup

Choose Selenium Tools

Selenium WebDriver,

Java,

TestNG etc...
---------------------------------------------
Test Environment setup

• Download too extract Eclipse IDE

• Download too Install Java (jdk) Software.

• Download Selenium WebDriver Java linguistic communication bindings cast seleniumhq.org too Add WebDriver jar files to Java projection inward Eclipse IDE

• Download Browser drivers (Chrome, IE etc...) too Extract.

• Download TestNG framework from Eclipse too install.
----------------------------
Test Automation using Selenium

• Using WebDriver (Element Locators too WebDriver Commands / Methods to hit Test Cases)

• Java Programming (Insert Verification points, Synchronization, Parameterization, Error treatment too Add comments etc...)

• TestNG Framework (Group Test Cases, Prioritize Test Cases, Execute Test Cases/Test Batches, and Generate Test Reports.)
---------------------------------------------------------
Related Questions:

1) Is Selenium used for Performance Testing also?

2) How to generate Test Reports inward Selenium WebDriver?

3)  Is Selenium supports Mobile Testing?

4) Suppose nosotros created roughly 100 Test Cases on MS Windows, Shall nosotros execute these 100 Test Cases (Same Test Cases) on Linux or Macintosh operating environments?

5) What is the default Browser inward Selenium?

6) Can nosotros execute Tests inward Parallel without using Selenium Grid?

7) Can nosotros conduct Batch Testing inward Selenium WebDriver without using whatever Testing Framework back upwards or Selenium Grid support?

8) Selenium released nether the Apache 2.0  license, what is the primary object of Apache 2.0 License?

9)  Who provides Technical back upwards for Selenium?
(For example HP Company provides Technical back upwards for UFT/QTP.)

10)  Is Selenium supports SAP Applications for Automation? 
----------------------------------------------------------------------- 

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