Introduction To Selenium

So before deep dive into automation testing we should know about our tool.
Lets start with What is Selenium ?

  • Selenium is used for functional and regression testing.
  • Selenium is an open source software to automate web browsers.
  • Selenium Supports various operating environments, e.g. Windows, Linux , Mac.
  • Selenium supports various browser to write and execute test scripts, e.g. Chrome, Firefox, MS edge.
  • Selenium supports various programming language to write and execute test scripts, e.g. Java, Python, C#.net, Ruby, Perl, php

What are the Selenium Components ?

  • Selenium IDE
  • Selenium RC
  • Selenium WebDriver
  • Selenium Grid

Selenium IDE
1. It is a browser plugin (Firefox, Chrome).
2. It is used to create and execute test cases using Firefox and Chrome.
3. User can record Test Scripts or type test scripts.
4. Using element locators and selenium commands we can create test scripts.
5. User can edit test scripts (Add/Update).

Drawbacks of Selenium IDE
1. It doesn’t supports programming to enhance test scripts.
2. It doesn’t support data driven testing.
3. No centralized maintenance of elements.
4. It doesn’t generate detailed test reports.

Selenium RC (*Out Dated)

Selenium Webdriver
1. Selenium Webdriver doesn’t have IDE, it only have programming interface.
2. Selenium Webdriver is used to write and execute test scripts/cases.
3. Using element locators and Webdriver API commands we create selenium webdriver test cases.
4. Selenium Webdriver supports various operating Systems, Browsers, and Programming language.
5. It supports batch testing, data driven testing, cross browser testing and database testing.

Drawback of Selenium Webdriver
1. It has no IDE, so it takes more time and efforts to write test scripts.
2. No built-in object repository, but we can reduce it by using POM.
3. No built-in result report facility.
4. No other test tool integration for test management.
5. Difficult to configure test environment when it compares to other tools like UFT.

Selenium Grid
1. It is only for test execution and it doesn’t supports test design.
2. It supports parallel testing

Next

Leave a comment

Design a site like this with WordPress.com
Get started