How can i open a file in Textpad and replace a string with
another using QTP
Answer Posted / 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 |
Post New Answer View All Answers
Explain how you can find the absolute value of the number in qtp?
When to use descriptive programming?
please post the interview questions for QA position in FACTSET
What is the use of text output value in quicktest professional?
What are the different types of functions available in qtp and explain ?
What are private functions in QTP? How they can be called from the function library?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
what testplan contents and what test strategy contents,what is the diff b/w them
In qtp, how you can use xpath to identify objects?
Describe function procedure in vbscript.
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
What do you mean by checkpoints in qtp?
Explain the types of object repository?
In Remote acess server how u run a test?
How can we conduct U-I Testing by using QTP??????