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
Hi
I am new to QTP. we are planning to implement automation 
for the application.
I am trying to execute the following script:
Set ExcelObj=CreateObject ("Excel.Application")
ExcelObj.WorkBooks.Add
Set NewSheet=ExcelObj.Sheets.Item(1)
NewSheet.Name="Order"
ExcelObj.Cells(1, 1).Value = "Name"
ExcelObj.Cells(1, 2).Value = "Ordernum"
ExcelObj.Cells(2, 1).Value = "nam"
ExcelObj.Cells(2, 2).Value = "21"
ExcelObj.ActiveWorkbook.SaveAs "c:\test1.xls"
ExcelObj.Quit
Set ExcelObj = Nothing

in the above script for the line(ExcelObj.Cells(2, 2).Value 
= "21")
it is inserting the value 21 successfully.this is fine
But if i want to insert a variable instead of the constant 
value then what should be the modification in the script.

For example: If user retrives a value 
throug "GetRoProperty" and wants to insert the value into 
then how the script changes?
 Question Submitted By :: Suneel4150
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi I am new to QTP. we are planning to implement automation for the application. I am trying to execute the following script: Set ExcelObj=CreateObject ("Excel.Application") ExcelObj.WorkBooks.Add Set NewSheet=ExcelObj.Sheets.Item(1) NewSheet.Name="Order" ExcelObj.Cells(1, 1).Value = "Name" ExcelObj.Cells(1, 2).Value = "Ordernum" ExcelObj.Cells(2, 1).Value = "nam" ExcelObj.Cells(2, 2).Value = "21" ExcelObj.ActiveWorkbook.SaveAs "c:\test1.xls" ExcelObj.Quit Set ExcelObj = Nothing in the above script for the line(ExcelObj.Cells(2, 2).Value = "21") it is inserting the value 21 successfully.this is fine But if i want to insert a variable instead of the constant value then what should be the modification in the script. For example: If user retrives a value throug "GetRoProperty" and wants to insert the value into then how the script changes?
Answer
# 1
Hi...don't mind...QTP Questions, u can post in Automation
Tools Section...this Section is only for Manual Testing!!!
 
Is This Answer Correct ?    1 Yes 0 No
Sri
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What is AUT in object reposity in QTP? Why we use it in Object repository???What is full form???????  2
what is L-trim function will do?  1
how to generate numbers in between to numbers suppose numbers in between 500 to 1000 in sequencies using vbscript  1
Hello friends can anybody tell me about the architecture of QTP with diagram of it.this architecture is same for any domain like ERP/Banking/CRM/Healthcare or it's different then please tell me.thanks Fidelity4
Once the Actions are splitted , is there any way to merge them  3
Do we get any issues if we run the testscript on different browsers? what are the options we need to st in QTP? BirlaSoft1
in order to start automation testing what we should require (entry level to automation testing)  2
Hi,EXCEL SHEET AND DATA TABLE . BOTH ARE SAME OR NOT?  3
can anyone please send me qtp framework material please its urgent  1
what do u mean by test harnesses in qtp? Verizon1
regular expression Wipro2
What expansion of "MIC" in MICPASS (TEST ReportPAGE) TCS6
HOW DO U CALL A ACTION IN QTP? BirlaSoft2
Is it possible to return multiple values from a function..? Then how..?  2
What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?  1
How can we encrypt the username using recording mode in login window? There is 2 encrypted types what are it TCS1
How 2check the color of the text in the textfield . say suppose the text entered in the textfield object is appearing in red. so i want to check whether the text is in red color or not. It could be great help for me if any one solve's my issue. plz...help Sinertel5
What exactly is the difference among all the three recording modes. Accenture5
Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?  1
need clear explanation of actions and functions in qtp with examples?can anyone suggest me gud site for that other than qtp manual?  1
 
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