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

Do you know how to connect database? Can you tell me the procedures?

931


How do you synchronization point through DP?

1011


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

1040


what could go wrong with test automation?

1999


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3488


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1982


wht type of User defined functions or Java Releated functions do we write in VB scripting

2182


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.

2976


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

6122


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

1892


How to check feasibility of the appliction?in automation testing?

1918


In qtp is it possible to check broken links of a page?

989


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

2091


How to use conditional loops in qtp ?

984


What are the advantages of Object Repository?

1026