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


Please Help Members By Posting Answers For Below Questions

What is synchronization? What are the ways you can synchronize?

646


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1227


what is the difference between IE & Netscape in web testing on a log in page

1788


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1444


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1456






what is the difference between data driver & data driven and driver script?

2137


Can you list some technologies that support qtp?

550


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))

1496


What is qtpro? What is quick test pro? What is a quick test professional?

587


Sql questions to find second max salary and how to use joins

959


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3441


Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1638


QTP script is not working on other's machine..

1531


how will you check how many members visited the website www.infosys.com?

1477


How to execute a winrunner script in quicktest professional (qtp)?

515