3.How to record a word doc using qtp i.e open a word
doc,type something and save the doc can someone send me the
code.
Answers were Sorted based on User's Feedback
Answer / ashish wadhwa
'For Excel
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
'Adding the workbook
Set objWorkbook = objExcel.Workbooks.Add
'Adding the text in the workbook in 1st row and 1st Column
objExcel.Cells(1, 1).Value = "Hi This is me Ashish"
'Saving the excel file
objWorkbook.SaveAs("D:\Sample.xls")
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ashish wadhwa
'For TextFile
'Creating a file system object
Dim objFSO
'Creating a text file object
Dim objTextFile
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("D:\SampleFile.txt"
,True)
objTextFile.Write("Sample Automation Example of saving text
file"
objTextFile.Close
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / jagdish
'For Excel
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
'Adding the workbook
Set objWorkbook = objExcel.Workbooks.Add
'Adding the text in the workbook in 1st row and 1st Column
objExcel.Cells(1, 1).Value = "Hi This is me Ashish"
'Saving the excel file
objWorkbook.SaveAs("D:\Sample.xls")
Is This Answer Correct ? | 0 Yes | 0 No |
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
How can you quit from Action.
Explain roles and responsibilites of 2yrs Automation qtp engineer.
if i have 10 actions and out of 10 actions last 3 actions i renamed will my script exicute sucesfuly r not? changed actions where i can see?
how to identify an object which is not in the object repository identification can be done using descriptive programming.
What is debugging? How you debug your script?
To which environments does a QTP support?
Why we are selecting QTP for testing ?
what is command for executing files?
How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?
how to load vbs file to qtp through scripting. plz provide the code.....
what is the diffrence bw qtp architectute and qtp framework?