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
How to use setroproperty?
How many scripts did you have?
Tell me one scenario, the complex functionality you have automated in your project?
What is the use of text output value in quicktest professional (qtp)?
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
What is Associate Repository in QTP 9.2 ?
How many types of parameters are there?
Explain the new feature of UFT regarding the export of test results?
Hi All, I need code for how to execute qtp scripts from excell sheet
What do you mean by iteration?
How to attach a file to TD?
wt is the use of multiple questions in QTP
I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
your coming from electrical backgroung..but y ur coming to software side?