How can I replace all the text from the QTP script with
some other text.
Is there any replace all function in QTP
Any one can help me
Answer Posted / aiswaryan
I could not find any function for this. We can do by this
script.
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("C:\ais\Totally Data.doc",
ForWriting, True)
f.Write "Hello world!"
f.Close
this will replace everything in the given file and write
the text ta u hav given.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..
how to do the batch testing in test director using manual testing procedure?
Differences between quicktest professional (qtp) and winrunner?
What is the extension of qtp local repository?
What are the Test design techniques you uses in ur project?
Where we can use the synchronization?
terminal services client
Both static and dynamic arrays are handled by the vb script. Is it true?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
can the activities of test case design be automated?
What is the qtp testing process?
What is action? How many types of actions are there in qtp?
How can you close the second opened browser?
Hi, how can we check or avoid the memory leakage in QTP9.2?
What is object repository in qtp?