what is keyword driven framework in qtp.

Answers were Sorted based on User's Feedback



what is keyword driven framework in qtp...

Answer / sandipgami84

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 keyword driven framework
ask me thorugh our forums.


Thanks,
Sandip Gami

Is This Answer Correct ?    17 Yes 3 No

what is keyword driven framework in qtp...

Answer / prashanth

Framework: It is a procedure how we execute our scripts and
finally how we view the results, like how we create the
test scripts, functions libraries, repository files and
finally how we send the results to our lead or manager or
to the client.

"Keyword Driven Framework" consists of a folder structure.
Test Scripts are saved in "Test Scripts" folder
vbs files in "Library" folder
"Docs" Floder - Documentation for all the functions like
(Function Library, Function Name, Arguments, Description,
Author, Object Repository used)
Object Repository Files in "Object Repository" folder
"Reports", "Data" etc

Finally, we convert the "Results" in HTML format(Test
Results Window, File-->Export to HTML File

Is This Answer Correct ?    8 Yes 2 No

what is keyword driven framework in qtp...

Answer / sharad garg

A framework is used for maintanance of test cases, recorded
scripts & actions, test data and test results in a central
repository or in form of folder structure. Framework saves
recorded scripts or scripts in expert view (by enhancing the
tests using custom checkpoints, regular expression)etc. and
make them resusable and generic which can be used again and
results can be compared by passing different set of data.

There are following types of framework:

1. Modular Framework
2. Keyword framework
3. Data Driven framework
4. Hybrid Framework

Modular Framework:- it is functional decomposition of
application modules. (business components).

Keyword Framework:-

It is table driven Framework which stores the object
parameters property and their values. It is used when a
Business function script runs and loads the test case,
corresponsing row in table is read and corresponding
function is called using the keyword from the table. The
business function script passes the parameter value (input
parameter) through either test data.xls or data table at run
session and returns the results in form of output parameters
to the test results folder or data table.This is called data
driven approach where scripts are parameterised through a
set of input and output values.


Hybrid Framework:- It is the highest level of framework
which encapsulates all approaches. It has various components:

Input Script for launching the qtp
i)Set reporting framework
ii)Set working area
iii)Set folder structures by reading the value of xml files
and setting them as global variable.
and other activities like giving control to controller script.

Main script for loading the list of test cases by reading
example a database file with ordering of test cases,
executes the test cases in either datatable by accessing
datatable methods.

Output script for sending test results to test results folder.

Is This Answer Correct ?    5 Yes 1 No

what is keyword driven framework in qtp...

Answer / ajay shembekar

As the name suggest, it enables keyword driven testing.
Data and Keyword are independent of tool.
Enables documentation of functionality of AUT in a tabular
format.

Is This Answer Correct ?    4 Yes 2 No

what is keyword driven framework in qtp...

Answer / nageh

hi this is nagesh
framework: It is generic work prepared by group of experts followed test engineers to preform a specific task in an efficient, effective and optimized way.

keyword driven framework:
first we will preparing folder structure(env, lib, test data, repository, recovery, test script file).
and first we will manually prepare
env file: (by default qtp will create env file. env file extension .XML, (QTP>file settings>env>click>user define>EX-name:nages, value:path of the application>save>.xml)and export this env file in env file)
library file: first u will take notpad and u will prepare lib file lib file extension is .VBS
Test data: u will prepare test data
Test script: and u will genarating the basic script and u will split it and u will set reusabul and saved it)
recovery secnario: u will prapare recovery secnario
if possible u will prpare rgular expressions file
and
u will take new page
and u will set in datatable some name like keys in that column u will prepare some variables ex:k1, k2. k3
after u will write in expert view
varibule name=datatabl("keys")
and u will create select case andu will
associate lib file, ev file, recovery file,and
u will create case function and run

Is This Answer Correct ?    4 Yes 2 No

what is keyword driven framework in qtp...

Answer / kiran

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. In this method,
the entire process is data-driven, including functionality.

Is This Answer Correct ?    8 Yes 7 No

what is keyword driven framework in qtp...

Answer / winner

Framework : Framework is a defined process for re usability
of resources like libraries, object repositories, testcases,
e.t.c. And features(test plan,Re-usable test cases,
different format reports, e.t.c) that are associated in a
orderly manner.

Keyword Driven Framework : Each atomic functionality is
identified in the AUT, written as small functions and named
meaningful. The framework is designed in a way that, we can
call the functions in the testcase excel sheets as a keyword.

Ex: ClickOnButton is a keyword for performing any click
operation on any kind of button.

Is This Answer Correct ?    0 Yes 0 No

what is keyword driven framework in qtp...

Answer / bindu

Keyword-driven testing is a Software testing technique that
separates programming work from the actual test steps so
that the test steps can be developed earlier and can often
be maintained with only minor updates, even when the
application or testing needs change significantly.In case of
keyword driven testing, we need to do proper planning and
initial huge effort. Anyway it will give benefit of easy
maintenance and easily adding more test cases/scenarios.

As we see the keyword view in QTP, the keyword driven
testing involves specifying the test steps in below format
Object Action parameter
e.g
Browser(“FireFox”).Page(“QualityPointHome”).webEdit(“username”).Set
“QualityPoint”

Here,

->Browser(“FireFox”).Page(“QualityPointHome”).webEdit(“username”)
is the Object.
->”Set” is the Action.
->”QualityPoint” is the parameter.

Here we can change any of the three things to create test steps.
The Keyword Driven framework consists of the basic
components given below

1. Control File
2. Test Case File
3. Startup Script
4. Driver Script
5. Utility Script

1. Control File

a) Consists details of all the Test scenarios to be automated.
b) User will be able to select a specific scenario to
execute based on
turning on or off a flag in the Control File.
c) Control File is in the form of an excel worksheet and
contains columns
for Scenario ID, Execute (Y/N), Object Repository Path, Test
Case File
Path.

2. Test Case File
a) Contains the detailed steps to be carried out for the
execution of a test
case
b) It is also in the form of an excel sheet and contains
columns for
Keyword, Object Name, Parameter

3. Startup Script
a) The Startup script is utilised for the initialization and
reads the control files.
b) It then calls the driver script to execute all the
scenarios marked for execution in the control file.

4. Driver Script

a) It Reads the Test Case files. Checks the keywords and
calls the appropriate utility script functions based on
specific keyword
b) Error Handling is taken care of in the driver script.

5. Utility Scripts

a) Perform generic tasks that can be used across applications.

Is This Answer Correct ?    0 Yes 0 No

what is keyword driven framework in qtp...

Answer / deven

Keyword Driven Framework is a type of QTP Framework where
for a particular test case, you would first identify a set
of Keywords and then associate an action (or function)
which each of these keywords.


'Option Explicit

'Include library files
executefile "C:\Test\Library5.qfl"

'add sheets
datatable.AddSheet "dtSheet1"
datatable.AddSheet "dtSheet2"
datatable.AddSheet "dtLogin"

'import test case and test steps sheets from excel to data
table
datatable.ImportSheet "C:\Test\testcase.xls","Sheet1","dtShe
et1"
datatable.ImportSheet "C:\Test\testcase.xls","Sheet2","dtShe
et2"
datatable.ImportSheet "C:\Test\testcase.xls","Login","dtLogi
n"

Dim tcrows,tsrows

'get row count from data table sheets
tcrows=datatable.GetSheet("dtSheet1").GetRowCount
tsrows=datatable.GetSheet("dtSheet2").GetRowCount


For i=1 to tcrows
datatable.GetSheet("dtSheet1").SetCurrentRow(i)
If datatable.Value("Execute","dtSheet1")="Yes" Then
For j=1 to tsrows
datatable.GetSheet("dtSheet2").SetCurrentRow(j)

If datatable.Value("TCID","dtSheet1")=datatable.Value
("TCID","dtSheet2") Then

Select Case datatable.Value("Keyword","dtSheet2")
Case "openapp"
tsresult= openapp()
Case "login"
tsresult= login(datatable.Value
("Agentname",dtLogin),datatable.Value("Password",dtLogin))
End Select
If tsresult="Pass" Then
TestCaseResult=tsresult
End If
'Else
Exit for
End If
datatable.Value("Result","dtSheet2")=tsresult

Next
datatable.Value("Result","dtSheet1")=TestCaseResult
datatable.Value("Result","dtSheet2")=tsresult
End if
Next

datatable.Exportsheet "C:\Test\testcase.xls","dtSheet1"
datatable.exportSheet "C:\Test\testcase.xls","dtSheet2"

Is This Answer Correct ?    0 Yes 0 No

what is keyword driven framework in qtp...

Answer / yogesh

Hi Kavita,

I think your ans. is not specific with Keyword Driven Frame
work. Your answer is about common flow of Frame work.


for more Clearity mail me

yogesh_dgn@yahoo.com
or
09959511164

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More QTP Interview Questions

How to work with multiple browsers when opened in the window, write the script for it

2 Answers   Verizon,


What are the differences between table and db checkpoints?

0 Answers  


what is the process to follow between writing the test cases & then atomating it?

1 Answers  


Describe how Smart Identification is used

0 Answers  


How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!

4 Answers  






What are the ordinal identifiers in web page?

0 Answers  


What is QTP’s model for test creation?

0 Answers  


What are the recording modes in qtp?

0 Answers  


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

0 Answers  


Suppose u run ur script today and it is working fine ,nobody has changed the setting and all.u r the owner for the script. But when tomorrow I ran the same script again it got failed and It didn't able to identify one object. Can you tell me what would be the reason for this

4 Answers   L&T,


what is vmodel?advantages and disadvantages of vmodel?

0 Answers   AZTEC,


If enter into interviewer room? how u introduce with him. with shakehand or waht?

2 Answers  


Categories