Selenium Quick Tutorial 1: Selenium Introduction

preview_player
Показать описание
Introduction to Selenium, What is Selenium?, Selenium's Tool suite or Selenium Components, Advantages & Disadvantages of Selenium, and Selenium Environment Setup.
Selenium IDE, Selenium RC, Selenium WebDriver and Selenium Grid features and Drawbacks.
Рекомендации по теме
Комментарии
Автор

Selenium Class Notes:
Selenium Class 1: Introduction to Selenium

i) What is Selenium?

ii) Selenium Components / Selenium's Tool Suite

iii) Advantages and Disadvantages of Selenium

iv) Selenium Environment Setup

i) What is Selenium?

> Selenium is a suite of Software Tools to automate Web Browsers.

> Selenium is an Open source Software released under the Apache 2.0 License, mainly used for
Functional and Regression Testing.

> Selenium supports various Operating Environments

MS Windows

Linux,

Macintosh etc...

> Selenium supports various programming environments to write Programs (Test Scripts)

Java,

C#,

Perl

Python,

Ruby

PHP

Note: Selenium IDE doesn't support Programming.

> Selenium supports various Web Browsers.

Mozilla Firefox,

Google Chrome,

IE,

Opera,

Safari etc...

Note: Selenium IDE supports only Mozilla Firefox.

> Selenium supports various Testing Frameworks that depends on Programming environment.

Ex:

Java - JUnit, TestNG

C#.NET - NUnit

ii) Selenium Components / Selenium's Tool Suite

> Selenium first came to life in 2004

> In 2006, Selenium WebDriver was launched at Google.

> In 2008, the whole Selenium team decide to merge WebDriver with RC (Remote Control) in order to
form more power 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

Selenium IDE (Integrated Development Environment)

It is Firefox browser plug in, works only on Firefox.

Selenium IDE Features

> It is a prototyping tool to create and execute Test Cases.

> Create Test Cases, form Test suites
(Using Recording we can generate Test cases or using Element Locators and Selenese Commands we can
type Test Steps.)

> Execute Test Case, Test Siute

> 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 only Mozilla Firefox browser.

> It doesn't support programming.

> It doesn't support Data driven Testing

> It doesn't generate detailed Test Reports.

Selenium RC (* Out Dated)

Selenium WebDriver

It is a Programming Interface, doesn't have IDE.

Selenium IDE - IDE, no Programming
Selenium WebDriver - Programming Interface, no IDE

UFT - IDE and Programming Interface

Selenium WebDriver Features

> It has Programming Interface only, using Element Locators and WebDriver Commands we can create
Test Cases.

> It supports various Operating Environments (MS Windows, Linux, Mac etc...)

> It supports various Browsers (Mozilla Firefox, Google Chrome, IE, Safari, Opera etc...)

> It supports various Programming environments (Java, C#, Python, Perl, Ruby and PHP)

> It supports Data driven Testing, Cross browser Testing and Batch Testing.

> It supports Parllel test execution with help of Either selenium Grid or TestNG Framework.

Drawbacks of Selenium WebDriver

> It doesn't have IDE, so it takes more time to create Test cases.

> No built-in Result Reporting fecality.

> No built in spread sheet for Data related operations

Selenium Grid

It is used to execute Test cases across multiple browsers, operating environments and computers in parallel.

Selenium Grid 2.0 supports Selenium RC Test Cases and Selenium WebDriver Test Cases.

Focus on:

Selenium WebDriver - to Create and Execute Test Cases

Java Programming - To Enhance Test Cases

TestNG - To Group Test Cases, Prioritize Test Cases, Batch Testing and Generate Test Reports.

iii) Advantages and Disadvantages of Selenium

Advantages:

> It is an Open source Software (Free of Cost)

> It supports various Operating environments, Browsers and Programming environments.

> It supports Parallel Test Execution
etc...

Disadvantages:

> It supports Web Applications only.

> No reliable Technical support

> Limited support for Image Testing

> No other tool integration for Test Management.

> Takes more time to create Test cases in Selenium WebDriver

> Difficult Setup Test Environment
etc...

iv) Selenium Environment Setup

Choose Selenium Tools

Selenium WebDriver,

Java,

TestNG etc...

Test environment setup

> Download and extract Eclipse IDE

> Download and Install Java (jdk) Software.

> Download Selenium WebDriver Java language bindings form seleniumhq.org and Add WebDriver jar
files to Java project in Eclipse IDE

> Download Browser drivers (Chrome, IE etc...) and Extract.

> Download TestNG framework from Elicpse and install.

Test Automation using Selenium

> Using WebDriver (Element Locators and WebDriver Commands / Methods create Test Cases)

> Java Programming (Insert Verification points, Synchronization, Parameterization, Error handling and Add
comments etc...)

> TestNG Framework (Group Test Cases, Prioritize Test Cases, Execute Test Cases/Test Batches, and
Generate Test Reports.)

gcreddy
Автор

Answer these Questions by Reading the Selenium Class 1 Notes and by watching this Video.



1) Is Selenium used for Performance Testing?

2) How to generate Test Reports in Selenium WebDriver?

3)  Is Selenium supports Mobile Testing?

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

5) What is the default Browser in Selenium?

6) Can we execute Tests in Parallel without using Selenium Grid?

7) Can we conduct Batch Testing in Selenium WebDriver without using any Testing Framework support or Selenium Grid support?

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

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

10)  Is Selenium supports SAP Applications for Automation?

gcreddy