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 Posted / sri
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 |
Post New Answer View All Answers
Give the syntax to load function at run time.
What is a checkpoint? How many check points are there in qtp?
What are the methods used in UFT to handle exceptions or run-time errors?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
how will load the object during runtime?
explain structured testing? plz guys with exp. do answer
how can we compare descriptive programing with a regular expression
can u please explain what is the exact difference between qtp8.2 and 9.0
How to get the particular property value?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
terminal services client
What is keyword driven framework?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?