How can i open a file in Textpad and replace a string with
another using QTP
Answer / madhavi
FileLocation="C:\Documents and Settings\\Desktop\file1.txt"
Set fso=CreateObject("Scripting.FileSystemObject")
Set fl=fso.OpenTextFile(FileLocation)
txtToReplace=replace(fl.ReadAll,"QTP","QTP9.5")
fl.Close
Set fl=fso.OpenTextFile(FileLocation,2)
fl.Write(txtToReplace)
fl.Close
| Is This Answer Correct ? | 5 Yes | 4 No |
What is User defined function in QTP
What is the difference between call to existing action and copy of an action?
Explain the concept of Output values in Quick Test Professional?
How u will open the build automatically in QTP except using Systemutil.run command
How would you parameterize the text field "Country" and the same "country" when it appears as combo field on other page with text field city and same with City combo field?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
write the regular expression for date format of mm/dd/yy?
10 Answers CTS, HCL,
What are Add-ins availble in licensed version QTP8.2
I Selected for TCS-Chennai(Contract to hire) position plz suggest me whether i have to join or not
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
what is description object?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?