ALLInterview.com :: Home Page KalAajKal.com
 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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
did you perform retesting(DATA DRIVEN test) using functions
with out using datatable methods

how can you perform retesting using functions
 Question Submitted By :: Shavali
I also faced this Question!!     Rank Answer Posted By  
 
  Re: did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions
Answer
# 1
Generally, QTP exports uses Excel file for data 
paramaterization. 
Method 1)Prepare test data in Excel sheet and import into 
QTP data table. Using DataTable methods, user can easily 
parameterize data and access them through out the script.
DaTaTable Methods: Import, ImportSheet, Export, 
ExportSheet, GetSheet, SetCurrentRow, SetNextRow etc...

E.g: 
DataTable.Import "Excel file path"
testData = DataTable(columnName, Sheetname)
(or)
testData = DataTable(columnName, dtGlobalSheet)


Method 2)Prepare test data in Excel sheet. Instead of 
importing Excel file/sheet into Test script, create an 
Excel object in the script using CreateObject method. Using 
Excel object methods user can able access data from excel 
sheet.

E.g:
Set ExcelObj = CreateObject("Excel.Application")
ExcelObj.WorkBooks.Open "Excel file path", false, false 
Set currentWorkSheet = ExcelObj.ActiveWorkBook.WorkSheets
(1) 'first sheet
testData = currentWorkSheet.Cells(rownumber, 
columnnumber).Value 
ExcelObj.Application.Quit
 
Is This Answer Correct ?    0 Yes 0 No
Amarendra Kothuru
 
  Re: did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions
Answer
# 2
May be solution i'm providing is not a DataDriven but it is
useful.

We can access the object property at runtime and then append
something in the property and then again insert into the object.

Like we have a text box amount having value = 10

So we can use

value1 =
Browser(".*").Page(".*").WebEdit("amount").GetroProperty("value")

value1 = value1 + 1

Browser(".*").Page(".*").WebEdit("amount").Set value1
 
Is This Answer Correct ?    0 Yes 0 No
Raj
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
how to merge 2 object repositories in qtp 9.0.what is use of merge and y merge is used?  1
What is the present version of the VB Script we are using  1
i have to pass the testcases into userid anf password of gmail login page using functions you can take your own testcaseslike userdid should take only lowerletters it should not take special charactors and uppercase letters and password should take only numericvalues it should not take alphanumeric and alphabets  2
what is diff b/w function and action? VSoft6
How to find local host name using QTP?  6
how to get font size of a "WebEdit" L&T3
hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c  5
This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording Symantic-Space2
Can anyone explain about Keyword driven framework in detail and how to use it in case of any project  4
Is there anyone can tell me where I can download free or trial QTP? I tried HP website, it was not there anymore. If someone know, pls send me URL. Tks...  1
What are the Mandatory Properties of WebTable Object and Link Object in Web testing using QTP iLink2
what is framework? which frame work u follow for writting script? IBM5
what is difference normal,analog,low level recording in qtp? what is lowlevel recording?  2
What is runtime objects and test objects? What is the difference between them? IBM4
from where we will retrieve data for data driven tests in qtp?  3
WHAT IS PARAMITARIZATION?  8
how qtp handles customised object  1
Do we get any issues if we run the test script on differentbrowsers?what are the options we need to set in QTP? CTS3
can u write Script to do Data Driven Testing throuh Externel & internel XL Sheet Relq1
I want to run my qtp scipt on the system where qtp is not installed .I don't want to install qtp but i want that system should use the qtp from another system in lan just the qtp instance should be launched on that system without having qtp installed on it .I probably know the solution that it will be solved through RMI but how to get this problem solved plz help i anyone know the answer Cimcon3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com