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 add a runtime parameter to a data sheet?
supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?
Analyzing the Checkpoint results ?
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
What are the challenges do we face while testing webbased applcations using the automation tool QTP or any?
can anybody give me the links for vb script material
How to load an object to a object repository at RUN TIME ?
What is load testing?
How many types of Recordings are there in QTP and what are they?
7 Answers Dangote, First Indian Corporation,
What is the extension of script and object repositary files?
I want to know how to execute the descriptive programming in qtp for the webedit object which does not contain attached text property. but i have checked it with name and html id property. Even though it is not executing. it is giving error in object's physical description.
what is the exact Diff. Between Test and Component in QTP?