Selenium Test Life Cycle

Selenium Test Life Cycle

Selenium Test Process / Selenium Test Life Cycle

Phases:

i) Planning

ii) Generate Basic Tests/Test Cases

iii) Enhance Tests

iv) Run & Debug Tests

v) Analyze Test Results and Report Defects
-----------------------------------------------
Software Test Process / Software Test Life Cycle

Phases in STLC:


i) Test Planning

ii) Test Design

iii) Test Execution

iv) Test Closure
-----------------------------------------------
i) Test Planning

a) References / Input

Test Requirements (SRS (srs, frs) /CRS/FRS ....)
Project Plan
Test Strategy
----------------------------
Corporate standards doc/s
Design docs
Prototypes etc...

b) Tasks
i) Understanding and Analyzing Test Requirements
ii) Risk Analysis
iii) Test Strategy Implementation
iv) Test Estimations (Scope of the AUT, Available Resources, Time, Budget etc...)
v) Team Formation
vi) Test Plan Documentation
vii) Configuration Management Planning
viii) Traceability Metrics Documentation
ix) Define Test Environment Setup
Output:
Test Plan Document
-----------------------------------------------
ii) Test Design

a) References / Input

Requirements
Test Plan
-----------------
Test Case Template
Test Data Template 
-------------------------
Corporate standards doc/s
Design docs
Prototypes etc...
---------------------------------
b) Tasks
i) Understanding Test Requirements
ii) Derive / Create Test Scenarios 
iii) Test Case Documentation
iv) Test Data Collection
c) Output 
Test Case docs
Test Data
-----------------------------------------------
iii) Test Execution

a) References / Input
Test Requirements
Test Plan
Test Case Docs
Test Data
-------------------------
Readiness of AUT
Readiness of Test Environment
------------------------
Defect Report
-----------------------
b) Tasks
Verify Test Environment Setup
Create Test Batches
Test Execution
Smoke Testing
Comprehensive Testing
Reporting Defects
Tracking Defects
Select Test Cases for Regression Testing Cycle 1
Sanity Testing
Regression Testing Cycle 1
Reporting Defects
Tracking Defects
Select Test Cases for Regression Testing Cycle 2
Sanity Testing
Regression Testing Cycle 1
Reporting Defects
Tracking Defects
.
.
.
Final Regression
Output:
Opened and Closed Defect Reports
Tested Software
-----------------------------------------------
iv) Test Closure

a) References/Input
Test Requirements
Test Plan
-------------------
Opened and closed Defect Reports
etc...
-----------------------
Test Summary Report Template
--------------------------------------
b) Tasks
Evaluating the Exit Criteria
Collect all documents 
Prepare Test Summary Report
Send Test Deliverables to Customer
Improvement suggestions for future projects.
-------------------------------------------------------
Selenium Test Process / Selenium Test Life Cycle

i) Planning

ii) Generate Basic Tests

iii) Enhance Tests

iv) Run & Debug Tests

v) Analyze Test Results & Report Defects
-----------------------------------------------
i) Planning

> Get Environment (AUT) details form development team

> Analyze the AUT in terms Object Identification / Element Identification
> Page Inspector in Firefox Browser, Developer Tools in Chrome or IE 

> Select Test Cases for Automation

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

> Select Selenium Tools and Configure
If you Select Selenium WebDriver, Java, TestNG etc...

Download Eclipse IDE and Extract
Download Java Software and Install
Download Selenium WebDriver Java language binding and Add WebDriver jar files to Java Project in Eclipse.
Download TestNG from Eclipse and Install
-----------------------------------------------
ii) Generate Basic Tests

Selenium IDE

By Recording user Actions on AUT Or Type Test Steps using Element Locators and Selenese Commands

Selenium RC - * Out Dated

Selenium WebDriver 

Type Test Steps using Element Locators and WebDriver API Commands

Selenium Grid - NA
-----------------------------------------------
iii) Enhance Tests

Selenium IDE:

         Using Verify and Assert Commands, Add Comments, Synchronization etc...

Selenium WebDriver

Using Java Flow Control Statements insert Verification points
Add comments
Synchronization
Using Text files or Excel files with the help of Java conduct Data driven Testing
Uusing Java features handle Errors etc...
Or
Using TestNG Framework Assertion methods insert verification points
-----------------------------------------------
iv) Run & Debug Test Cases

Debugging Tests:

What is Debugging?

Locating and isolating errors thru step by step execution.

When Debugging is Required?

Scenario 1: Test is not showing any errors and providing correct output - Not                       required

Scenario 2: Test is showing errors- Debugging is optional

Scenario 3: Test is not showing any errors and Not providing correct output -                       Debugging is Mandatory

Note: Whenever Test is not showing any error and not providing correct output then Debugging is required.

Run / Execute Tests:

 Run Single Test

Batch Testing
Selenium IDE supports batch testing
Selenium WebDriver supports batch testing
-----------------------------------------------
v) Analyze Test Result and Report Defects

Selenium WebDriver doesn't have built in Result Reporter

Using Java you can define Test Results

Or

Using JUnit or TestNG we can define Test Results.

Report Defects

Functional Test Automation Defect Management
-----------------------------------------------------------------
Selenium Manual
----------------------------------------------------------------------
Selenium Bugzilla / Jira etc...
-------------------------------------------------------------------

0 comments:

Post a Comment