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 |
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
How to recognise the webelement and verifying that webelement is enabled?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
What is the difference between QTP 8.2 and QTP 9.2
what is Action conversion tool? what the Action conversion tool will do?
How does quicktest professional identifies the object in the application?
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
How can I replace all the text from the QTP script with some other text.
How to add verification steps to tests?
difference Between LowLevel and Normal Recording Modes?
What is the disadvantage of smart identification?
who is the best faculty in HYD? Nageshwar rao or GC reddy?