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 quick test pro? What is a quick test professional?
can any body pls mail me latest FAQ's in QTP to my mailid btrintra@gmail.com....Thanks in advance
How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?
How does quicktest professional (qtp) identifies the object in the application?
Can you tell me the differences between writing the VB script manually for a application and recording the same application in QTP , with a example?
hi guys this is Keerthi, I am searching for job,so I want to know which questions are intervier asking on QTP&MANUAL&QUALITY CENTER,can u send Any one questions&Answers to my id:chinna.ammi@yahoo.co.in
When Recovery scenario actually starts while testing the application?
Does QTP record on Objects created on XWindows Environment?
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
In qtp, how you can get the last character from a string?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.
5 Answers Lehman Brothers, rsystems,