Introduction to Selenium
1. What is Selenium?
2. History of the Selenium Project
Selenium 2.0: Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid
1. Selenium IDE : It is a Firefox browser plug in, used to create and execute Test cases.
Selenium IDE Features:
3. Selenium WebDriver: It is a Programming interface to create and execute Test cases.
Quick Note:
- What is Selenium?
- History of the Selenium Project
- Selenium's Tools Suite
- Selenium IDE
- Selenium RC
- Selenium WebDriver
- Selenium Grid
- Selenium is a suite of software tools to automate Web Browsers.
- It is an Open source suite of tools mainly used for Functional and Regression Test Automation.
- Selenium supports various Operating environments.
- MS Windows
- Linux
- Macintosh
- Solaris and etc ..
- Selenium supports various Browsers.
- Mozilla Firefox
- IE
- Google Chrome
- Safari
- Opera
- Android Native browsers
- IPhone Native browsers
- Selenium IDE supports Mozilla Firefox only.
- Selenium supports various programming environments to write Test scripts
- Java
- Perl
- Ruby
- Python
- C#
- PHP
- Selenium first launched to market in 2004.
- In 2006, Selenium WebDriver was launched at Google.
- In 2008, the whole Selenium team decided to merge Selenium WebDriver with Selenium RC in order to form more powerful tool called Selenium 2.0
Selenium 2.0: Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid
3. Selenium's Tools Suite
1. Selenium IDE : It is a Firefox browser plug in, used to create and execute Test cases.
Selenium IDE Features:
- Create Test Cases, Test suites (We can Record test cases or type Test steps using element locators and 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 case default format is .html
- It supports Mozilla Firefox browser only.
- It doesn't support Programming logic/features to enhance Test cases.
- It doesn't support Data Driven Testing.
- It is not suitable for complex test case design.
- No centralized maintenance of Objects/Elements
3. Selenium WebDriver: It is a Programming interface to create and execute Test cases.
- Selenium IDE has IDE but doesn't have Programming interface
- Selenium WebDriver has Programming interface but doesn't have IDE
- UFT/QTP has both IDE as well as Programming interface
- Selenium WebDriver supports various programming environments to write programs.
- Java,
- C#
- Perl
- Python
- Ruby
- PHP
- Using Element/Object locators/properties and Webdriver Methods we can create and execute Test cases.
- Selenium Webdriver supports various browsers to create and execute test scripts
- Note: Browser driver varies from one browser to another.
- Selenium WebDriver supports various operating environments
- MS Windows
- Linux
- Macintosh
- Android Native browsers
- IPhone Native browsers
- It doesn't generate detailed Test Reports.
- No centralized maintenance of Object/elements
- Selenium Grid is used to execute tests across multiple browsers, operating environments and machines in parallel.
- Selenium Grid 2 supports Selenium RC Tests as well as Selenium WebDriver Tests.
Selenium
|
UFT / QTP
|
Open Source
|
Vendor tool, License is required.
|
Supports various OS Environments.
|
MS Windows only.
|
Supports various Programming Environments
|
VBScript only.
|
No Object Repositories
|
Local and Shared object Repositories.
|
No built-in Reporting feature.
|
Built-in reporting feature.
|
Selenium WebDriver has no IDE and Selenium IDE has no Programming Interface.
|
UFT has both IDE and Programming Interface.
|
Uses less Hardware resources.
|
Uses more Hardware resources
|
Difficult to setup environment and use.
|
Easy to setup and use.
|
Limited support for Image Testing
|
Rich support for Image Testing
|
No Reliable support
|
Support from HP
|
No other tool integration for Test management.
|
UFT can be integrated with ALM/QC for Test Management.
|
New features may not work properly.
|
New features will properly.
|
No Add ins for supporting Application Environments.
|
Add ins are required for supporting Application environments.
|
Supports Web Applications only
|
Supports Desktop and Web Applications.
|
Quick Note:
- Selenium WebDriver to create Test cases using element locators and Webdriver methods.
- Java Programming to enhance test cases.
- TestNG Framework to group test cases, execute test batches and generate detailed test reports.