Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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..

2052


how to do the batch testing in test director using manual testing procedure?

2377


Differences between quicktest professional (qtp) and winrunner?

1166


What is the extension of qtp local repository?

1014


What are the Test design techniques you uses in ur project?

1961


Where we can use the synchronization?

1003


terminal services client

2239


Both static and dynamic arrays are handled by the vb script. Is it true?

1035


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

2351


can the activities of test case design be automated?

1881


What is the qtp testing process?

1037


What is action? How many types of actions are there in qtp?

1090


How can you close the second opened browser?

1404


Hi, how can we check or avoid the memory leakage in QTP9.2?

2089


What is object repository in qtp?

1018