Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
6.Automation Frame Work

6.Automation Frame Work

Ratings: (0)|Views: 60 |Likes:
Published by Anand
Linear,Module Frameworks, Batch Testing,KeyWord Driven Framework,HyBrid Framework
Linear,Module Frameworks, Batch Testing,KeyWord Driven Framework,HyBrid Framework

More info:

Published by: Anand on Sep 30, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

09/05/2010

pdf

text

original

 
Automation Frame Work 
Frame Work :
Frame work is a Generic work designed by an expert and followed by many people to perfoma particular task in an effective , efficient and optimized way.
Types of Frame work:-
1.Linear / Sequential Frame wor2.Modular frame work 3.Keyword Driven frame work 4.Hybrid frame wor
1.Linear Frame work 
:This is a general and old frame work that can be used by many people.Steps to follow ….a). Generate the Basic Test b). Enhance the testc). Debug the testd). Execute the teste). Analyze the result AUT
 Example :
Tasks : LoginInsert orderOpen existing
 
orderLogout
Note
:
 Here
all the
 
tasks
 
are put together in one test pane
and done the job
Put the tool under recoding mode
Open flight application
Login
with username and password
Click on OK 
Insert
an order by keying all the required info therein
Click on insert order button
That order will be inserted successfully. After inserting the order 
Open existing order
by clicking on open folder icon
A open order window will appear, check the order number check box
Input the existing order number ( say 9)
Click on OK 
The order will open, if necessary you may update / delete the opened order 
Logout
will be done by going to
menu bar
of the application and select
file
, select
exit
.
The application will close
Stop recording
 
Login……………..Insert order ……………..Open order ………………Logout
 
Run the test
Analyze the result
2.Modular Frame work :
This is also a general frame work that can be used by some people.Steps to follow ….a). Prepare the Individual
Components
for different tasks b). Make the require Components as
Re-Usable
c). Prepare the desired
Driver
based on end-to-end scenariod). Execute the Driver e). Analyze the results! A script file can be called as a Driver ! Test : means a script file! A ction : Is a set of instructions to perform a task ! Component can be called as an Action!! Ways of action :-Prepare complete action and Split it to each action
or
-Prepare a single action and Insert each actions into it.* One action can be spited into Two actions a time only and so on.
 Example :
Tasks : LoginInsert orderOpen existing
 
orderLogout
Note 1
:
 
 A
fter preparing complete action, split it
into different individual 
actions
and 
call them in a driver 
.
Note 2
:
 
Other words in this frame work 
 ,
we are calling the action/s
 
( Ex. Call login )
AUTDriver
login insert open logoutComponents
Put the tool under recoding mode
Open flight application
Login
with username and password
Click on OK 
Insert Order
by keying all the required info therein
Click on insert order button
 
Login………………Open order …….……Login……………..Insert order ……………..Open order ………………LogoutInsert order ……..……Logout………………Call loginCall insertCall openCall logout
 
That order will be inserted successfully. After inserting the order 
Open order
by clicking on open folder icon
A open order window will appear, check the order number check box
Input the existing order number ( say 9)
Click on OK 
The order will open, if necessary you may update / delete the opened order 
Logout
will be done by closing the window/application
Stop recording
Save the Script
(sayfl_application, No extention is required)
Split the script into 4 tasks
( login, insert_order, open_order and logout )
Keep the cursor at the beginning of 1
st
line of 2
nd
part ( i.e starting of insert order line)
Go to
menu
bar, click on
Step
, select
Split Action
The split action window will appear 
choose action type as
independent of each other,
give the
1
st
action name
( say
login
) and
leave the 2
nd
action name
as it is ( because, again we are going to split the2
nd
part )
Click OK 
Save the changes. Next,
Keep the cursor at the beginning of 1
st
line of existing 2
nd
part ( i.e starting of insertorder line)
Go to
menu
bar, click on
Step
, select
Split Action
The split action window will appear 
choose action type as
independent of each other,
give the
1
st
action name
( say
insert_order
) and
leave the 2
nd
action name
as it is ( because, again we are going tosplit the 2
nd
part )
Click OK 
Save the changes. Next,
Keep the cursor at the beginning of 1
st
line of existing 2
nd
part ( i.e starting of openorder line)
Go to
menu
bar, click on
Step
, select
Split Action
The split action window will appear 
choose action type as
independent of each other,
give the
1
st
action name
( say
open_order
) and
give the 2
nd
action name
as
logout
( because, its end of splits )
Click OK 
Save the changes.
So, we have splited all 4 tasks/actions successfully. 
Now make them as re-usable components
Open the just created action i.eloginfrom drop-down box on the tool
Go to
menu
bar , click on
Step
, select
Action Properties
Action properties window will appear 
Select General tab
Check the
Reusable action
check box
Click on OK 
Do the same for other actions too i.einsert_order,open_orderandlogout. Next
Open new Test

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->