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.
Answer Posted / 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 |
Post New Answer View All Answers
How you can find length of array in qtp?
which type of testing process are you following in ur company? how to recognize a qtp page?
Where you are storing your script?
Discuss quicktest professional (qtp) environment?
Explain how Selenium is different from UFT?
How to interact tool & application build in QTP?
Explain the features of quick test pro(qtp)?
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression
How QTP support all types of applications (platforms)?
What is quicktest professional (qtp)?
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?
Can anybody post some real time scenario in qtp? please its very urgent.
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
how to disable the pop ups through QTP using a script
Describe synchronization point.