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
Do you know how to connect database? Can you tell me the procedures?
How do you synchronization point through DP?
What is action? How many types of actions are there in qtp?
what could go wrong with test automation?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
wht type of User defined functions or Java Releated functions do we write in VB scripting
I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.
QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
How to check feasibility of the appliction?in automation testing?
In qtp is it possible to check broken links of a page?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
How to use conditional loops in qtp ?
What are the advantages of Object Repository?