3. Selenium Test Process

Phase of Selenium Test Process

1) Test Planning
2) Generate Basic Tests/Test Cases
3) Enhance Test Cases
4) Run & Debug Test Cases
5) Analyze Test Result and Report Defects

1) Test Planning in Selenium Test Process

  • Get Environment (UI Design and Database) details from Development team
  • Analyze the AUT (Application Under Test) in terms of Object identification/Element identification

Selenium IDE: Use Record and playback some navigations and analyze
Selenium WebDriver: Using Element inspectors analyze the AUT,

Mozilla Firefox – Built-in feature “Page inspector”
Google Chrome – Built-in Developer tools (F12)
MS Edge – Built-in Developer tools (F12)

  • Select Test Cases for Automation

Test cases that can be executed on Initial build and every modified build (Smoke, Sanity)
Test Cases that can be executed on every modified build (Re & Regression Tests)
Test Cases that can be executed using multiple sets of Test data (Data Driven Tests)

  • Select Selenium Tools and Others for Automated Testing and Configure
    (Eclipse IDE, Java, Selenium WebDriver, TestNG, Maven, Jenkins etc…)
  • Download Eclipse IDE and Extract -Editor, Syntax Guidance, Context Help and Auto Compilation…
  • Download Java (JDK) Software and Install in your computer
  • Set Java Environment Variable path in the OS Environment
  • Download selenium WebDriver java language binding from www.selniumhq.org and add Selenium WebDriver jar files to Java Project in Eclipse IDE
  • Download & Install TestNG Testing framework in Eclipse IDE
  • Download browser driver/s (Firefox, Chrome, MS Edge…) and Instantiate in Selenium Test Cases

2) Generate Basic Test Cases

1) Object Repository based Test Design (Recording, Keyword Driven Methodology)
2) Descriptive Programming (Static Programming and Dynamic Programming)

In Selenium:
a) Selenium IDE: Using Recording feature or Type Test steps using Element Locators and Selenese commands
b) Selenium WebDriver: Using Element Locators and WebDriver API Commands

3) Enhance Test Cases

i) Inserting Verification points


Using Check points (UFT Tool feature)
Using VBScript conditional statements

In Selenium IDE: Using “verify” or “assert” commands

In Selenium WebDriver:

Using WebDriver Verification Commands (limited use)

Using Programming Control Flow Statements

Using TestNG Testing Framework “assert” methods

ii) Parameterization

  • Replacing constant (fixed) values with parameters is called Parameterization
  • Passing single value or multiple values….
  • We use Parameterization feature for Data Driven Testing….


Using Data Table (UFT tool feature)

Using VBScript Automation Object Models (FileSystemObject, Excel Object….)

In Selenium IDE: No Support

In Selenium WebDriver: Using programming (Flat files/excel files)….

iii) Synchronization

In UFT: Using Synchronization Point, or wait command or increase Tool default time

In Selenium IDE: Using Synchronization Timeout feature ( Tool feature)

In Selenium WebDriver: Using programming wait feature or WebDriver command

iv) Error Handling

Handling expected and unexpected Errors

In UFT: Using Recovery Scenarios (tool feature or VBScript features

In Selenium WebDriver: Using programming features (Ex: exception handling in Java)

5) Adding Comments

To make the code readable and to disable the code from execution

In UFT: We can use VBScript Comment syntax

In Selenium IDE: Using Selenium IDE comments syntax

In Selenium WebDriver: Using Programming Syntax (if we use Java then use Java Comment syntax)

selenium video tutorial
Selenium Test Life Cycle

4) Run & Debug Test Cases

Run > Debug > Run…

Run Test Cases is a mandatory task in Testing, but Debugging Test cases is an optional task in Automated testing

Run Test Scripts / Test Cases

  • Run a Single Test case
    Batch Testing

Use “Test Batch Runner” tool or using AOM Script or ALM/QC etc…

In Selenium IDE: using Test Suite feature

In Selenium WebDriver: Using Programming and using Testing Framework

Debug Test Cases

Note: Debugging feature is NA for Manual Testing and It is only for Automated Testing

What is Debugging?

Locating and isolating errors through step by step execution

When debugging is required?

Scenario 1: Test Case is not showing any error and providing desired result – Not required

Scenario 2: Test Case is showing errors – Optional

Scenario 3: Test Case is not showing any error and Not providing desired result – Required

Whenever Test case is not showing any error and not providing desired result there debugging is required.

5) Analyze Test Result and Report Defects

a) Analyze Test Result:

Selenium WebDriver doesn’t have built-in Result Report facility, using Programming control Flow statements or Testing Framework verification methods we can generate Test Results

Status of Test Results in Software Testing

1) Pass (if expected == actual)
2) Fail (if expected != actual)
3) Warning (Whenever Test Case is not executing properly)
4) Done (if there is no verification point in the Test case)

b) Reporting Defects:

After analyzing the test Results, if we find any deviation from expected then report defects….

Functional Test Automation and Defect Management

Selenium with Excel

Selenium with Bugzilla or Jira…



Follow me on social media: