Open2Test Test Automation Framework for SilkTest - Usage Guidelines

Arya MirΑποθήκευση

14 Απρ 2012 (πριν από 5 χρόνια και 6 μήνες)

1.279 εμφανίσεις




Open2Test Test Automation Framework for SilkTest
- Usage Guidelines
Version 1.0
January 2010

D I S C L A I M E R
Verbatim copying and distribution of this entire article is permitted worldwide, without royalty,
in any medium, provided this notice is preserved.

_____________________________________________________________________________

_____________________________________________________________________________

Open2Test.org Page ii

Table of Contents

T
T
A
A
B
B
L
L
E
E


O
O
F
F


C
C
O
O
N
N
T
T
E
E
N
N
T
T
S
S


1 PURPOSE OF THE DOCUMENT ................................................... 3
2 ORGANIZATION OF THE DOCUMENT .............................................. 4
2.1 General Documents ..................................................... 4
2.2 Java Framework Documents .............................................. 4
3 LIST OF DOCUMENTS ......................................................... 5
3.1 General Documents ..................................................... 5
3.2 Java Documents ........................................................ 5
4 USE OF OPEN SOURCE TEST AUTOMATION FRAMEWORK DOCUMENTS .................. 6
4.1 Open2Test Test Automation Framework for SilkTest - Introduction ....... 6
4.2 Open2Test Test Automation Framework for SilkTest - ................... 6
Implementation Guide ........................................................ 6
4.3 Open2Test Test Automation Framework for SilkTest - FAQ ................ 6
4.4 Open2Test Test Automation Framework for SilkTest - Coding ............. 6
Standards for Developers .................................................... 6
4.5 Open2Test Test Automation Framework for SilkTest - Standards for ...... 7
Keyword Scripting ........................................................... 7
4.6 Open2Test Test Automation Framework for SilkTest - Quick Start ........ 7
Guide ....................................................................... 7
4.7 Open2Test Test Automation Framework for SilkTest - Extensibility for
Developers .................................................................. 7
4.8 Open2Test Test Automation Framework for SilkTest - Tips and Tricks .... 7
4.9 List of Keywords ...................................................... 8
4.10 Open2Test Test Automation Framework for SilkTest - Description ...... 8
4.11 Keyword Naming Conventions .......................................... 8
4.12 Support Matrix ...................................................... 8
_________________________________________________________________

_________________________________________________________________

Open2Test.org Page 3

Open2Test Test Automation Framework
for SilkTest - Usage Guidelines
1
1




P
P
U
U
R
R
P
P
O
O
S
S
E
E


O
O
F
F


T
T
H
H
E
E


D
D
O
O
C
C
U
U
M
M
E
E
N
N
T
T


The purpose of this document is to provide a glimpse into the supporting
documents prepared for the Open Source Test Automation Framework that can
be used for understanding, customizing, and maintaining the framework
code. This document is designed to promote reuse and extensibility of the
Open Source Test Automation Framework.


_________________________________________________________________

_________________________________________________________________

Open2Test.org Page 4

Open2Test Test Automation Framework
for SilkTest - Usage Guidelines
2
2




O
O
R
R
G
G
A
A
N
N
I
I
Z
Z
A
A
T
T
I
I
O
O
N
N


O
O
F
F


T
T
H
H
E
E


D
D
O
O
C
C
U
U
M
M
E
E
N
N
T
T


This document is categorized into two parts:
• General Documents
• Java Framework Documents

2
2
.
.
1
1


G
G
e
e
n
n
e
e
r
r
a
a
l
l


D
D
o
o
c
c
u
u
m
m
e
e
n
n
t
t
s
s


The documents presented under this section can be used for all
technologies of the application for SilkTest.

2
2
.
.
2
2


J
J
a
a
v
v
a
a


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


D
D
o
o
c
c
u
u
m
m
e
e
n
n
t
t
s
s


The documents presented under this section can be used for the Java
framework.
_________________________________________________________________

_________________________________________________________________

Open2Test.org Page 5

Open2Test Test Automation Framework
for SilkTest - Usage Guidelines
3
3






L
L
I
I
S
S
T
T


O
O
F
F


D
D
O
O
C
C
U
U
M
M
E
E
N
N
T
T
S
S


3
3
.
.
1
1




G
G
e
e
n
n
e
e
r
r
a
a
l
l


D
D
o
o
c
c
u
u
m
m
e
e
n
n
t
t
s
s


• Open2Test Test Automation Framework for SilkTest - Introduction
• Open2Test Test Automation Framework for SilkTest - Implementation
Guide
• Open2Test Test Automation Framework for SilkTest - FAQ
• Open2Test Test Automation Framework for SilkTest - Coding Standards
for Developers
• Open2Test Test Automation Framework for SilkTest - Quick Start Guide
• Open2Test Test Automation Framework for SilkTest - Extensibility for
Developers
• Open2Test Test Automation Framework for SilkTest - Tips and Tricks

3
3
.
.
2
2




J
J
a
a
v
v
a
a


D
D
o
o
c
c
u
u
m
m
e
e
n
n
t
t
s
s


• Open2Test Test Automation Framework for SilkTest - List of Keywords
• Open2Test Test Automation Framework for SilkTest - Description
• Open2Test Test Automation Framework for SilkTest - Keyword Naming
conventions
• Open2Test Test Automation Framework for SilkTest - Tool Version
Support Matrix for Java
• Open2Test Test Automation Framework for SilkTest - Standards for
Keyword Scripting
• Open2Test Test Automation Framework for SilkTest - Usage Guidelines
_________________________________________________________________

_________________________________________________________________

Open2Test.org Page 6

Open2Test Test Automation Framework
for SilkTest - Usage Guidelines
4
4


U
U
S
S
E
E


O
O
F
F


O
O
P
P
E
E
N
N


S
S
O
O
U
U
R
R
C
C
E
E


T
T
E
E
S
S
T
T


A
A
U
U
T
T
O
O
M
M
A
A
T
T
I
I
O
O
N
N


F
F
R
R
A
A
M
M
E
E
W
W
O
O
R
R
K
K






D
D
O
O
C
C
U
U
M
M
E
E
N
N
T
T
S
S


4
4
.
.
1
1




O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-


I
I
n
n
t
t
r
r
o
o
d
d
u
u
c
c
t
t
i
i
o
o
n
n


• Description: This document provides an introduction of an effective
framework called the Open Source Test Automation Framework, the
framework features, as well as its architecture and benefits.

• Utilization: This document helps in understanding the Open Source Test
Automation Framework in which the discrete functional business events
that make up an application are described using keywords. The major
benefits of this approach include reusability and greater
productivity.

4
4
.
.
2
2




O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k




f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-






I
I
m
m
p
p
l
l
e
e
m
m
e
e
n
n
t
t
a
a
t
t
i
i
o
o
n
n


G
G
u
u
i
i
d
d
e
e


• Description: This document provides an overview of the implementation
of the Open Source Test Automation Framework in SilkTest. The Open
Source Test Automation Framework is an application-independent
framework that deals with all possible actions and verifications that
can be performed on an object.

• Utilization: This document helps in implementing the framework code
for a given technology across different applications.

4
4
.
.
3
3




O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-


F
F
A
A
Q
Q


• Description: This document provides answers to some frequently asked
questions about the Open Source Test Automation Framework.

• Utilization: This document helps in finding answers to frequently
asked questions about the Open Source Test Automation Framework.
4
4
.
.
4
4




O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-


C
C
o
o
d
d
i
i
n
n
g
g








S
S
t
t
a
a
n
n
d
d
a
a
r
r
d
d
s
s


f
f
o
o
r
r


D
D
e
e
v
v
e
e
l
l
o
o
p
p
e
e
r
r
s
s


• Description: This document provides details about the various columns
used during scripting, the keywords and their descriptions, and some
methodologies to be followed while scripting using keywords.
• Utilization: This document provides guidelines for creating keyword
scripts.

_________________________________________________________________

_________________________________________________________________

Open2Test.org Page 7

Open2Test Test Automation Framework
for SilkTest - Usage Guidelines
4
4
.
.
5
5




O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-


S
S
t
t
a
a
n
n
d
d
a
a
r
r
d
d
s
s


f
f
o
o
r
r






K
K
e
e
y
y
w
w
o
o
r
r
d
d


S
S
c
c
r
r
i
i
p
p
t
t
i
i
n
n
g
g


• Description: This document describes the standards to be followed when
designing and developing framework code.

• Utilization: This document provides the naming conventions to be
followed for the variables, constants, function definitions,
declarations, and comment standards across the framework code for all
technologies.

4
4
.
.
6
6




O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-


Q
Q
u
u
i
i
c
c
k
k


S
S
t
t
a
a
r
r
t
t






G
G
u
u
i
i
d
d
e
e


• Description: This document provides a brief overview of the settings
used with keyword-driven scripting in SilkTest.

• Utilization: This document helps in creating new tests, establishing
test settings for keyword-driven scripting, calling the framework
code, using keywords, test execution, and viewing the test results.

4
4
.
.
7
7




O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-


E
E
x
x
t
t
e
e
n
n
s
s
i
i
b
b
i
i
l
l
i
i
t
t
y
y


f
f
o
o
r
r


D
D
e
e
v
v
e
e
l
l
o
o
p
p
e
e
r
r
s
s


• Description: This document describes the guidelines to be followed
when customizing framework code.

• Utilization: This document provides guidelines for adding or modifying
the functions or keywords in the framework code.

4
4
.
.
8
8




O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-


T
T
i
i
p
p
s
s


a
a
n
n
d
d


T
T
r
r
i
i
c
c
k
k
s
s


• Description: This document provides an overview for handling frequently
encountered scripting problems and some valuable do’s and dont’s to
maximize efficiency of the Open Source Test Automation Framework. This
document requires prior knowledge and working experience with the Open
Source Test Automation Framework.

• Utilization: This document serves as a quick reference for solving
issues faced when using the Open Source Test Automation Framework.

_________________________________________________________________

_________________________________________________________________

Open2Test.org Page 8

Open2Test Test Automation Framework
for SilkTest - Usage Guidelines
4
4
.
.
9
9




L
L
i
i
s
s
t
t


o
o
f
f


K
K
e
e
y
y
w
w
o
o
r
r
d
d
s
s


• Description: This document provides the list of available keywords in
the Open Source Test Automation Framework. This document also provides
keywords syntax that needs to be followed while creating keyword test
scripts. This document also provides examples and description for each
keyword, which helps in understanding the functionality of all the
keywords.

• Utilization: This document helps as a quick reference for using all
the available keywords.

4
4
.
.
1
1
0
0


O
O
p
p
e
e
n
n
2
2
T
T
e
e
s
s
t
t


T
T
e
e
s
s
t
t


A
A
u
u
t
t
o
o
m
m
a
a
t
t
i
i
o
o
n
n


F
F
r
r
a
a
m
m
e
e
w
w
o
o
r
r
k
k


f
f
o
o
r
r


S
S
i
i
l
l
k
k
T
T
e
e
s
s
t
t


-
-


D
D
e
e
s
s
c
c
r
r
i
i
p
p
t
t
i
i
o
o
n
n


• Description: This document provides a detailed explanation of
framework code. All the functions available in the framework code are
explained in detail.

• Utilization: This document can be used for understanding the
functionality of framework code. It also helps in maintaining and
enhancing the framework code.

4
4
.
.
1
1
1
1


K
K
e
e
y
y
w
w
o
o
r
r
d
d


N
N
a
a
m
m
i
i
n
n
g
g


C
C
o
o
n
n
v
v
e
e
n
n
t
t
i
i
o
o
n
n
s
s


• Description: This document provides the naming conventions used in
the Open Source Test Automation Framework to generate the keyword
scripts. This includes the naming convention used for keywords,
objects, actions, and variables. Since this document can be customized
based on requirements, it falls under the category ‘Contributors
Document’.

• Utilization: This document helps in providing standards that need to
be followed while designing keywords.
4
4
.
.
1
1
2
2


S
S
u
u
p
p
p
p
o
o
r
r
t
t


M
M
a
a
t
t
r
r
i
i
x
x


• Description: This document provides the Open Source Test Automation
Framework features and Objects supported by different versions of the
SilkTest Tool.

_________________________________________________________________

_________________________________________________________________

Open2Test.org Page 9

Open2Test Test Automation Framework
for SilkTest - Usage Guidelines
• Utilization: This document helps in understanding the Open Source Test
Automation Framework features and objects that are supported by
different versions of SilkTest.


_________________________________________________________________


C O P Y R I G H T
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 FORA PARTICULAR PURPOSE.
See the GNU Library General Public License for more details.