Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Automation Framework

This is a discussion on Automation Framework within the Testing Frameworks forums, part of the Software Testing category; Hi What is meant by Testing Framework...

Go Back   Geeks Talk > Software Testing > Testing Frameworks
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Testing Frameworks Open Source Software testing tools and scripts.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2007
Junior Member
 
Join Date: Dec 2006
Location: bangalore
Posts: 2
Thanks: 0
Thanked 2 Times in 1 Post
subhashini.lutimath is on a distinguished road
Automation Framework

Hi

What is meant by Testing Framework
Reply With Quote
The Following 2 Users Say Thank You to subhashini.lutimath For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 01-03-2007
Junior Member
 
Join Date: Jul 2006
Location: Chennai
Posts: 4
Thanks: 0
Thanked 4 Times in 1 Post
sathish9274 is on a distinguished road
Re: Automation Framework

Testing framework is a set of assumptions ,concepts and practice that provide support for testing
Reply With Quote
The Following 4 Users Say Thank You to sathish9274 For This Useful Post:
  #3 (permalink)  
Old 01-23-2007
Junior Member
 
Join Date: Aug 2006
Location: Hyderabad, India
Posts: 2
Thanks: 0
Thanked 2 Times in 1 Post
qtptester is on a distinguished road
Arrow Re: Automation Framework

Testing Framework is something like a frame work designed according to our requirement. For example. you want to test one application for UI, FUNCTIONAL and LOCALIZATION. for this requirement you can have your own frame work...

1) for UI testing: identify what to test assume that font, size, color...
2)Functional: whether the button is working properly example login.
3)test for diff languages at a time.

Frame Work:
1)write all your functional library for UI at one place.
2)write down all functional library methods in own file.
3)have complete list of strings what are neccessary for localization at one place assume that a excel sheet.
4)using the resources are XML now you can import them and write your script by record and play back or using descriptive programming.
5)finally test your application.

if any comments on this we ll be grateful to you.

regards,
qtptester.
Reply With Quote
The Following 2 Users Say Thank You to qtptester For This Useful Post:
  #4 (permalink)  
Old 03-27-2007
Junior Member
 
Join Date: Mar 2007
Location: India -Delhi
Posts: 4
Thanks: 1
Thanked 4 Times in 2 Posts
sps1232 is on a distinguished road
Re: Automation Framework

Hi Qtptester,

Thanks for your valuable answer. Can you drill down bit more to ease of understanding. Well I have one more query "What is difference between KeyWord driven and datadriven testing in automation?"
Reply With Quote
The Following 3 Users Say Thank You to sps1232 For This Useful Post:
  #5 (permalink)  
Old 04-18-2007
Expert Member
 
Join Date: Apr 2007
Location: Kolkata
Posts: 151
Thanks: 3
Thanked 11 Times in 10 Posts
debleena23 is on a distinguished road
Re: Automation Framework

Quote:
Originally Posted by subhashini.lutimath View Post
Hi

What is meant by Testing Framework
Hi
Framework is nothing but a standard approach which the entire Team follows in the course of a Project. This includes Folder structures, Naming conventions, File paths, Common Functions, etc
Reply With Quote
The Following User Says Thank You to debleena23 For This Useful Post:
  #6 (permalink)  
Old 12-28-2007
Junior Member
 
Join Date: Oct 2007
Location: India
Posts: 17
Thanks: 8
Thanked 1 Time in 1 Post
ShamimYousuf is on a distinguished road
Smile Re: Automation Framework

Quote:
Originally Posted by sps1232 View Post
Hi Qtptester,

Thanks for your valuable answer. Can you drill down bit more to ease of understanding. Well I have one more query "What is difference between KeyWord driven and datadriven testing in automation?"
Hi sps1232,

I am also new to QTP Tester. This QTP forum and google . com only taught me the answer for your doubt. So I will tell you what I know about this .Hoping you friends will help me if I am wrong.
Keyword Driven Framework
It's an application independent Automation Framework
This Framework will have following components:
1) Data tables /Excel Sheets containing Keywords, Object Names and Object Values. This is the only component which is application dependent. Keywords are the words that we used to represent the test case. For example VerifyEditbox. This can be used to represent the test case: Verify whether the Edit box is accepting the entered text.
2) Test Driver. This contains the scripts to drive the test. Usually it will contain the code for taking keywords one by one from the data table and call respective subroutines for each keyword using the Switch case statement.
3) Common Function Library. This contains all the common functions that are needed to test any application.
Data Driven Framework
It's an application specific Automation Framework. These scripts can be recorded or written manually and modify it by replacing input values with variables. Input values can be written in Data table / Excel sheet. Test Driver in this case contains the scripts to drive the application with external data written in Data tables / Excel Sheet.
Reply With Quote
  #7 (permalink)  
Old 02-26-2008
Junior Member
 
Join Date: May 2007
Location: New Delhi
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
swapnilsahu is on a distinguished road
Thumbs up Re: Automation Framework

Framework provides you a platform on which you can build your test. In terms of testing automation - Framework contains all the necessary functions, reusable functions, object repositary, Data repositary etc. along with path, process containing Folder structures, application path , Basic and advance setting to execute the project, method to log the bugs/Defects etc..
Overall when testing team works to automate the project, they should not worry about how prerequisites will be maintained, they just start to write the test.

This is a brief expalination about framework.

I hope this explaination will give all of us clear picture How framwork is and how it works?

From
Swapnil
swapnil.sahu10@yahoo.co.in
Reply With Quote
  #8 (permalink)  
Old 02-26-2008
Contributing Member
 
Join Date: Nov 2006
Location: India
Posts: 79
Thanks: 3
Thanked 16 Times in 11 Posts
j_madhuri is on a distinguished road
Re: Automation Framework

Frame work actually means the process which we follow to do the Testing like mostly while Automating a Testing process

There are 4 types of frame works in QTP

1.linear frame work
Modular frame work
3.Keyword driven frame work
4.Hybrid frame work
Reply With Quote
  #9 (permalink)  
Old 03-12-2008
Junior Member
 
Join Date: Dec 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
poornajyothi is on a distinguished road
Re: Automation Framework

Thanks for the defination. But i would like to know this with an example. Like, for a web based application what is frame work.
Quote:
Originally Posted by sathish9274 View Post
Testing framework is a set of assumptions ,concepts and practice that provide support for testing
Reply With Quote
  #10 (permalink)  
Old 03-12-2008
Contributing Member
 
Join Date: Nov 2007
Posts: 49
Thanks: 14
Thanked 6 Times in 4 Posts
srinii_vasu is on a distinguished road
Re: Automation Framework

qtp automation framework
1. Linear framework
this is normal process like recording or scripting the program and executing it. This is not reusable, once execuiting these script.
2. Modular framework>>
this is different from liner frame work, here recording or scripting the program and those script split into actions and make those actions as reusable actions. These reusable actions can use any where in the test.
3. Keyword driven automation frameworkqtp supports to keyword driven automation framework. In keyword driven automation framework first we are going to create a folder on that project name, then create six subfolders within that folder like repository, library files, recovery file, test data, main test, test log file.
here repository folder is used for save the objects of the application. First learn all the objects by using object repository and then export all the objects to repository folder by giving .tsr extension (test shared repository). This file associate to repository manager, navigation is object repository ----à associate repository
then click + tab and browse the file from repository folder
library file folder is used for save functions, which is created by the user. Suppose take one login window and create a function, first open notepad and create function as per your required.
public function login( )
dialog (“login”).activate
dialog (“login”).winedit (“agent name”).set”baba”
dialog (“login”).winedit (“password”).set secure”xxxxxxxx”
dialog (“login”).winbutton(“ok”).click
end function ( )
then save with .vbs extension in to the library file folder.
after that associate this function to qtp library files. The navigation is
test setting----->resources then click + tab and browse the function. In this manner create no of functions as per required and associate all the functions to qtp.suppose some example
insert order ( ), logout ( ), update order( ).
recovery file folder is used for save recovery scenarios which is created by the user. Create recovery scenarios and save those recovery scenarios with .qrs extension with recovery file folder. After that associate those recovery scenarios to qtp.navigation is test setting---àrecovery then click +tab and browse the file.
test data folder is used for save input data. Suppose through flat file method, open the notepad and give input data and save with .txt extension in test data folder.
Reply With Quote
The Following User Says Thank You to srinii_vasu For This Useful Post:
  #11 (permalink)  
Old 03-27-2008
Contributing Member
 
Join Date: Mar 2008
Location: Pune
Posts: 30
Thanks: 0
Thanked 13 Times in 8 Posts
chennaprashanth is on a distinguished road
Re: Automation Framework

Hi Subhashini,

Automation Framework is also like a document of Test Plan. In Automation Framework we will discuss that
1. What to be Automate.
2. How to be Automate.
3. What Procedure that Team has to follow.
4. What Tools to be Used.
5. What type of data sheets to be Used.
6. Naming Convenssions for the Scripts.
7. What are the Documents to be Produced. Etc

In generally In QTP, there are 4 types of frameworks those are some models only.
In most of the companies they will use there OWN Framework.

Hai Friends, If there is any mistake Please let me Know.

Cheers...........
Prashanth Chenna.
Reply With Quote
  #12 (permalink)  
Old 05-02-2008
Junior Member
 
Join Date: May 2008
Location: NewYork
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sruthi.k is on a distinguished road
Re: Automation Framework

Could someone please send me format/sample Automation Test framework document for data driven testing , iam new to Automation and i was given task to devlop it .any help will be very much appreciated.

thanks in advance..
Reply With Quote
  #13 (permalink)  
Old 11-24-2008
Junior Member
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
QTP Tester is on a distinguished road
Re: Automation Framework

Hi,

Do create the following folders in the project name folder:
1.Test scripts
2.Library functions
3.Resable actions
4.Recovery scenarios
5.Test data
6.Documentation
7.Object repository
8.Utility (If any)
9.Test Result

Please do follow steps:
1. Identify the test cases to be automated
2.Identify the test data, type OR(object repository), r-scenarios and reusable actions in a excel/word clearly
3.Create OR if shared (addall object manually on OR manager and save as .tsr and associate to test script)
4.Prepare the test data sheet
5.Create functions and associate to any one of the test script as set as default(as required)
6.Create resuable actions (as required)
7.Create test scripts and call the functions and resuable actions in it as required
8.Run the test scripts and save in the assocated folder.

Cheers.
Reply With Quote
  #14 (permalink)  
Old 01-15-2009
Junior Member
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
pk_budaraju is on a distinguished road
Re: Automation Framework

Quote:
Originally Posted by srinii_vasu View Post
qtp automation framework
1. Linear framework
this is normal process like recording or scripting the program and executing it. This is not reusable, once execuiting these script.
2. Modular framework>>
this is different from liner frame work, here recording or scripting the program and those script split into actions and make those actions as reusable actions. These reusable actions can use any where in the test.
3. Keyword driven automation frameworkqtp supports to keyword driven automation framework. In keyword driven automation framework first we are going to create a folder on that project name, then create six subfolders within that folder like repository, library files, recovery file, test data, main test, test log file.
here repository folder is used for save the objects of the application. First learn all the objects by using object repository and then export all the objects to repository folder by giving .tsr extension (test shared repository). This file associate to repository manager, navigation is object repository ----à associate repository
then click + tab and browse the file from repository folder
library file folder is used for save functions, which is created by the user. Suppose take one login window and create a function, first open notepad and create function as per your required.
public function login( )
dialog (“login”).activate
dialog (“login”).winedit (“agent name”).set”baba”
dialog (“login”).winedit (“password”).set secure”xxxxxxxx”
dialog (“login”).winbutton(“ok”).click
end function ( )
then save with .vbs extension in to the library file folder.
after that associate this function to qtp library files. The navigation is
test setting----->resources then click + tab and browse the function. In this manner create no of functions as per required and associate all the functions to qtp.suppose some example
insert order ( ), logout ( ), update order( ).
recovery file folder is used for save recovery scenarios which is created by the user. Create recovery scenarios and save those recovery scenarios with .qrs extension with recovery file folder. After that associate those recovery scenarios to qtp.navigation is test setting---àrecovery then click +tab and browse the file.
test data folder is used for save input data. Suppose through flat file method, open the notepad and give input data and save with .txt extension in test data folder.
what we name for the framework if used keyword view for generating test scripts?
Reply With Quote
  #15 (permalink)  
Old 02-10-2009
Contributing Member
 
Join Date: Nov 2008
Location: chennai
Posts: 62
Thanks: 4
Thanked 1 Time in 1 Post
senthilvenu is on a distinguished road
Re: Automation Framework

Hi,
Frame Work is the model or structure we follow for a
Project. It is the approach that we follow to automate the
Project. There are so many types of framework in QTP.

1. Datadriven frame work
2. Keyword driven frame work
3. Module driven framework
4. Hybrid driven frame work

The framework you choose, depends on the model of your
Project. Usually most of projects fall under hybrid driven
frame work.

Datadriven framework: Here we divide the entire project in
to modules and start automation by writing data driven
scripting for each one of them. We will have test data
either in excel sheet or flat files or from database...we
will pass that test data in to the script and perform data
driven testing.
Keyword driven framework:
Firstly we should add the objects to repository( Shared
repository is preferable)
Then we can generate/write scripts for each functionality
and save them as the library files ( .vbs files)
Then we have to associate all these library files(which are
generated to test different funtionalities) to Quick Test.

Module driven frame work: we will divide entire project in
to modules and write functions or procedures for each and
every module and automate the project.
Hybrid driven framework: it is combination of Datadriven
and module driven framework.

If you want more information about Hybrid driven framework ask me thorugh our forums.
I don't know about other Frame Works.

Thanks and Regards,
Senthil Kumar Venu
Reply With Quote
  #16 (permalink)  
Old 02-25-2009
Junior Member
 
Join Date: Feb 2009
Location: Redmond
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
vk1978 is on a distinguished road
Re: Automation Framework

Test automation framework is a set of assumptions, concepts and practices that provide support for automating your scripts. It gives a clear picture of how your script should look like, how the start up and ending of your scripts, how to create reusable and non reusable functions, how to call a those function, how to parameterize(regular and optional), giving Naming convention for functions and declaring local and global variables, Folder structure, declaring comments, etc.

The advantage of the framework's are they can be
easy to Maintained,
easy to understand,
easy to Develop,
and it consumes less time and effort

Hope this will be help full to you
Reply With Quote
  #17 (permalink)  
Old 02-26-2009
Expert Member
 
Join Date: Oct 2007
Location: hyd-India
Posts: 120
Thanks: 3
Thanked 17 Times in 15 Posts
ch.bhaskar.mca is on a distinguished road
Re: Automation Framework

frame works:
a test automation framework is a set of assumptions, concepts, and practices that provide support for automated software testing benefits for framework: • allow highest possible reusability
• support different application versions
• should support different environments • self configurable
• easy to use and understand
• flexible general types of framework:
• the test script modularity framework
• the test library architecture framework • the keyword driven testing framework
• the data driven testing framework
• the hybrid test automation framework test script modularity frame work: the test script modularity framework requires the creation of small, independent scripts that represent modules of the application-under-test. These small scripts are then used in a hierarchical fashion to construct larger tests, realizing a particular test case. the test library architecture framework
the test library architecture framework is very similar to the test script modularity framework but it divides the application-under-test into procedures and functions instead of scripts. This framework requires the creation of library files that represent modules, sections, and functions of the application-under-test. These library files are then called directly from the test case script. the keyword driven testing framework
keyword-driven testing framework requires the development of data tables and keywords, independent of the test automation tool used to execute them and the test script code that "drives" the application-under-test and the data. Keyword-driven tests look very similar to manual test cases. In a keyword-driven test, the functionality of the application-under-test is documented in a table as well as in step-by-step instructions for each test. It is an application independent automation framework.

the data driven testing framework

data-driven testing is a framework where test input and output values are read from data files (datapools, odbc sources, cvs files, excel files, dao objects, ado objects, and such) are loaded into variables in captured or manually coded scripts. In this framework, variables are used for both input values and output verification values. Navigation through the program, reading of the data files, and logging of test status and information are all coded in the test script. “hybrid” frame work, i.e. Here we are using data driven framework and key word driven frame work. Cheers,
bhaskar kumar
Reply With Quote
  #18 (permalink)  
Old 06-29-2009
Junior Member
 
Join Date: Jun 2009
Location: india
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
nawate.k is on a distinguished road
Smile Re: Automation Framework

Quote:
Originally Posted by senthilvenu View Post
Hi,
Frame Work is the model or structure we follow for a
Project. It is the approach that we follow to automate the
Project. There are so many types of framework in QTP.

1. Datadriven frame work
2. Keyword driven frame work
3. Module driven framework
4. Hybrid driven frame work

The framework you choose, depends on the model of your
Project. Usually most of projects fall under hybrid driven
frame work.

Datadriven framework: Here we divide the entire project in
to modules and start automation by writing data driven
scripting for each one of them. We will have test data
either in excel sheet or flat files or from database...we
will pass that test data in to the script and perform data
driven testing.
Keyword driven framework:
Firstly we should add the objects to repository( Shared
repository is preferable)
Then we can generate/write scripts for each functionality
and save them as the library files ( .vbs files)
Then we have to associate all these library files(which are
generated to test different funtionalities) to Quick Test.

Module driven frame work: we will divide entire project in
to modules and write functions or procedures for each and
every module and automate the project.
Hybrid driven framework: it is combination of Datadriven
and module driven framework.

If you want more information about Hybrid driven framework ask me thorugh our forums.
I don't know about other Frame Works.

Thanks and Regards,
Senthil Kumar Venu
Hi,
Can u send me any Test Script for Hybrid Framework
Reply With Quote
  #19 (permalink)  
Old 06-29-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,438
Thanks: 15
Thanked 147 Times in 138 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Automation Framework

Quote:
Originally Posted by nawate.k View Post
Hi,
Can u send me any Test Script for Hybrid Framework
Hai friend,

It is not so easy for a person to send code for a framework.

Thanks
Deepa
Reply With Quote
  #20 (permalink)  
Old 07-27-2009
Junior Member
 
Join Date: Jul 2009
Location: india
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
shobha sn is on a distinguished road
Re: Automation Framework

[QUOTE=subhashini.lutimath;5000]H

can u send me list of advantage and disadvantage of automation framework
model
Reply With Quote
Reply

  Geeks Talk > Software Testing > Testing Frameworks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
When will testers go for automation praveen98480 Test Cases 20 09-17-2009 12:42 PM
Automation through WinRunner abhaybharti WinRunner 3 04-30-2007 01:22 AM
Explain about .NET Framework Class Library GeekAdmin VB.NET 0 05-17-2006 11:47 PM
What is .NET Framework Architecture GeekAdmin VB.NET 0 05-16-2006 12:30 PM


All times are GMT -4. The time now is 10:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved