Selenium Open Source Test Automation Framework: September 2009
Selenium Open Source Test Automation Framework: September 2009
Version 1.0
September 2009
DISCLAIMER
Verbatim copying and distribution of this entire article is permitted worldwide, without
royalty, in any medium, provided this notice is preserved.
Table of Content
TABLE OF CONTENTS
1. PURPOSE OF THE DOCUMENT ........................................ 3
1.1. Scope ............................................................ 3
1.2. Overview ......................................................... 3
Open2Test.org Page ii
Selenium Open Source Test Automation
Framework
1.1. Scope
The scope of this document is to provide details about Open Source
Test Automation Framework code and its architecture and functions.
1.2. Overview
This document provides details about:
• Framework Architecture
• Driver Functions
• Action Functions
• Reusable Functions
• Common Functions
Open2Test.org Page 3
Selenium Open Source Test Automation
Framework
Open2Test.org Page 4
Selenium Open Source Test Automation
Framework
3. Driver Functions
Functionality:
• Reads the values in the first column of the Test Case Excel.
• Whenever the value is ‘r,’ it calls the main function (Test_Step),
which in turn will call (Keyword) function.
• When ‘r’ is not present in any of the cells in the first column,
it skips the row and reads the value in the next row.
Functionality:
• Reads the values in the second, third, and fourth columns in the
data sheet and stores the value in the variables. (Please refer to
details in the Variables section.)
nd
• Based on the value in the variable initial (2 column), it calls
different functions.
• If the value is something other than ‘perform,’ ‘storevalue,’ or
‘check,’ Keyword() calls the respective functions. For example, if
the value is ‘report,’ it will call Report ().
Refer to the Framework code structure diagram to learn more about the
function calls.
Open2Test.org Page 5
Selenium Open Source Test Automation
Framework
Open2Test.org Page 6
Selenium Open Source Test Automation
Framework
4. Action Functions
Open2Test.org Page 7
Selenium Open Source Test Automation
Framework
Open2Test.org Page 8
Selenium Open Source Test Automation
Framework
Open2Test.org Page 9
Selenium Open Source Test Automation
Framework
Open2Test.org Page 10
Selenium Open Source Test Automation
Framework
iv) Warning:
Generates a report with status as Warning, expected
message as ‘reporter0,’ and actual message as
‘reporter1’
Open2Test.org Page 11
Selenium Open Source Test Automation
Framework
Open2Test.org Page 12
Selenium Open Source Test Automation
Framework
7. Common Functions
Open2Test.org Page 13
Selenium Open Source Test Automation
Framework
Open2Test.org Page 14
Selenium Open Source Test Automation
Framework
8. Reusable Functions
Open2Test.org Page 15
Selenium Open Source Test Automation
Framework
Open2Test.org Page 16
Selenium Open Source Test Automation
Framework
Open2Test.org Page 17
Selenium Open Source Test Automation
Framework
COPYRIGHT
This library is free software; you can redistribute it and/or modify it under the terms of the
GNU Library General Public License as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
Open2Test.org Page 18