Selenium Test Process

Selenium Test Process

Phases of Software (Manual) Test Process/STLC    

    I) Test Planning
    II) Test Design
    III) Test Execution
    IV) Test Closure  
Phases of UFT / QTP Test Process    

    I) Planning
    II) Generating Basic Tests
    III) Enhancing Tests
    IV) Running and Debugging Tests
    V) Analyzing Test Results
    VI) Reporting Defects
Selenium Test Process

Phase I: Test Planning

> Get Application Environment details (UI design, and Database) from development team

> Analyze the AUT in terms of UI elements Identification

        Using Selenium IDE Recording feature
        Using Firebug and Firepath (They can be used to inspect UI elements)

> Select Test cases for Automation

    Tests that we have to execute on every build (Sanity tests)
    Tests that we have to execute on every modified build(Regression Tests)
    Tests that we have execute using multiple sets of Test data (Data Driven Tests)

> Select Framework (TestNg) and configure
Phase II) Generating Basic Tests

a) Object Repository based Test Design (Recording, Keyword driven methodology)

b) Descriptive Programming (Static, Dynamic Programming)
In Selenium:
a) Using Recording feature in Selenium IDE Or Type Test scripts using UI elements locators and Selenium commands

b) Write Test scripts using UI elements locators in Selenium RC(Out dated)

c) Write Test scripts using UI elements locates and WebDriver Methods in WebDriver interface.

Note: In Selenium no object Repository, so no centralized maintenance of Objects/UI Elements

Phase III : Enhancing Test Cases

Insert Verification points

Add comments



Working with files

Error handling

IV) Running and Debugging Test Cases

Single Test Run

Batch Testing
    Using JUnit or TestNg frameworks we can execute Test batches

Debugging Tests

> Locating and Isolating Errors thru step by step execution

> Debugging is not required for all tests.

> Whenever Test is not showing any errors and not providing correct output

V) Analyzing Test Result

 Status of Test Result in Functional Test Automation

Pass (If expected result = Actual Result)

Fail (If expected result <> Actual Result)

Done (Test execution without errors, No verifications)

Warning (Interruption during test execution)

Define Test Result:

WebDriver doesn't have any Built-in Test report generator

Using programmatic statements we can generate test Results

Using TestNg we can generate Test Reports

VI) Reporting Defects

Functional Test Automation        Defect Management
Selenium                                 Manual (No tool support)
Selenium                                 Bugzilla or any Tool


Very useful information for beginners.

What are the steps to debug a defect in selenium script ?

Post a Comment