Professional Documents
Culture Documents
DISCLAIMER
Verbatim copying and distribution of this entire article
royalty, in any medium, provided this notice is preserved.
are
permitted
worldwide,
without
Table of Contents
TABLE OF CONTENTS
1
PURPOSE..................................................... 3
FRAMEWORK
AT
GLANCE ............................................ 5
3. PROJECT SETUP
4
USAGE
TEST RESULTS
OF
Open2Test.org
IN
ECLIPSE ........................................ 7
KEYWORDS ............................................. 14
FOR A
Page ii
PURPOSE
This document explains the support settings and how to get started with
keyword-driven scripting using Selenium WebDriver.
www.Open2Test.org
Page 3
Environment Setup
The following jar files are required to run the Open2Test Selenium
Webdriver Framework.
jexcelapi_2_6_12 or higher
junit-4.9 or higher
selenium-server-standalone-2.7.0 or higher
www.Open2Test.org
Page 4
Framework at Glance
Input Files:
a. Selenium Utility Excel:
The TestSuite, TestScript, Object Repository and Report
location should be mentioned in Selenium_Utility excel.
File\Folder Name
Location
Test Suite
Test Script
Object Repository
Summary Report
Screen Shot Report
Detailed Report
D:/path/Test_Suite1.xls
D:/path/
D:/path/TestData/ObjectRepository.xls
D:/path/Test Reports/
D:/path/Test Reports/ScreenShot_Report/
D:/path/Test Reports/Detailed_Report/
Folder
Object Name
Welcome to Open2Test.org
logo.jpg
Home
About Us
Tech Docs
News
Roadmap
Comment
Support
Contact Us
banner.jpg
Learn More
Learn More_1
Name
emailID
selectframework
Agreement
www.Open2Test.org
Object
Type
Page
Image
Link
Link
Link
Link
Link
Link
Link
Link
Image
Link
Link
Textbox
Textbox
ComboBox
Textbox
Parent
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
objects
and
define
it
in
ObjectPath
name=
xpath=/html[1]/body[1]/div[1]/div[1]/img[1]
link=Home
link=About Us
link=Tech Docs
link=News
link=Roadmap
link=Comment
link=Support
link=Contact Us
xpath=/html[1]/body[1]/div[1]/div[2]/div[1]/img[1]
link=Learn More
link=Learn More
id=name
id=emailID
xpath=//select
id=Agreement
Page 5
Link
Textbox
Image
Link
Link
Link
1
1
1
1
1
1
Run
r
r
r
r
r
Test Scripts
Mantis_Create Project
Mantis_Report Issue
Mantis_View Issue and Delete Project
Mantis_Fail
Call Tariff Addition and Amendment
Keyword
ObjectDetails
Action
LaunchApp
www.open2test.org
importdata
D:\001_D_Files\path\TestData\TestData.xls
loop
perform
Textbox;name
set:dt_username
perform
Textbox;emailID
set:dt_email
check
Textbox;emailID
enabled:true
Action2
Comments
Sheet1
3
call
r
perform
ComboBox;selectframework
perform
Textbox;Agreement
click
perform
click
perform
Button;input
click
screencapture
Endloop
www.Open2Test.org
Page 6
www.Open2Test.org
Page 7
www.Open2Test.org
Page 8
www.Open2Test.org
Page 9
www.Open2Test.org
Page 10
Remove the contents of the new class and Copy the framework into the new
class file
www.Open2Test.org
Page 11
www.Open2Test.org
Page 12
www.Open2Test.org
Page 13
Usage of Keywords
The keywords for the test scenario should be entered in the Sheet1 of
the Microsoft Excel placed in the Test Scripts folder. The syntax for
the keywords can be referred from Selenium Keywords Reference Dictionary
Document.
www.Open2Test.org
Page 14
www.Open2Test.org
Page 15
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.
You should have received a copy of the GNU Library General Public License along with this
library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
MA 02110-1301, USA.
www.Open2Test.org
Page 16