ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Testing >> Automation Testing >> QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions (496)
 Load Runner interview questions  Load Runner Interview Questions (486)
 QTP interview questions  QTP Interview Questions (3506)
 Test Director interview questions  Test Director Interview Questions (161)
 Rational TestSuite interview questions  Rational TestSuite Interview Questions (106)
 Silk Test interview questions  Silk Test Interview Questions (59)
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions (387)
Question
what is keyword driven framework in qtp.
 Question Submitted By :: QTP
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
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 2 No
Sandipgami84
 
Answer
# 2
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
Prashanth
 
 
 
Answer
# 3
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
Sharad Garg
 
Answer
# 4
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 6 No
Kiran
 
Answer
# 5
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
Ajay Shembekar
 
Answer
# 6
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
Nageh
 
Answer
# 7
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
Winner
 
Answer
# 8
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
Bindu
 
Answer
# 9
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
Deven
 
Answer
# 10
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
Yogesh
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Among the 4 capture levels, Complete, Partial, Minimal, None. which one is mostly used?   1
examples of user definied functions? how to write user defined functions in qtp9.2? IBM 3
Java add-in is need to work on java oriented project ?   3
For Passing Parameters from one Action to another Action we will use Input & Output parameters. Can any one tell how to use this Input & Output parameters with Example ? TCS 2
Tel me what was the automation testing process you followed?   2
Hi, this is venkatesh. Q: I have 10 files in a folder(say D:\). Out of which there are some .txt, .xls, .doc. I want to know how to get the count of each file using qtp? If U have any ans, plz write script for that... EDS 4
Discuss QTP Environment.   1
For ex we are doing automate testing in that can we do some part of application recording, some part descriptive programing and some part general VB scripting like that ............. Satyam 3
What is dynamic arrays Patni 1
If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles? Crea 1
can any body help me out by providing links/material for descriptive programming in QTP otherwise can you post decriptive programing based interview Questetion&ans. plz help me out . i need it. ADP 1
what is use of optionexplicit in variable declaration GE 5
 
For more QTP Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright © 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com