Hi
What is meant by Testing Framework
Hi
What is meant by Testing Framework
Testing framework is a set of assumptions ,concepts and practice that provide support for testing
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.
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.
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.
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.
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
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
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..
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.
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
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
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
[QUOTE=subhashini.lutimath;5000]H
can u send me list of advantage and disadvantage of automation framework
model