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

Answers were Sorted based on User's Feedback



How can I replace all the text from the QTP script with some other text. Is there any replace ..

Answer / kr

adding to above answer, we can record the actions like Ctrl+H
which pops up a dialog box where you can enter
'Text to find' and 'Replace with'strings.here you can
parameterise the strings which you want.

Is This Answer Correct ?    2 Yes 0 No

How can I replace all the text from the QTP script with some other text. Is there any replace ..

Answer / 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

How can I replace all the text from the QTP script with some other text. Is there any replace ..

Answer / gs

Ctrl+H , u have a replace all feature

Is This Answer Correct ?    2 Yes 1 No

How can I replace all the text from the QTP script with some other text. Is there any replace ..

Answer / suman

Ctrl+H we can replace all features

Is This Answer Correct ?    1 Yes 0 No

How can I replace all the text from the QTP script with some other text. Is there any replace ..

Answer / leah

Hi,

I have the same problem but with main script which calls
more scripts and I need to change some test in ALL OF THE
SCRIPTS, the main one and the sub ones as well.
Please advise...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is Virtual Object? Plz Explain me with an example?

2 Answers   Ordain Solutions,


Explain the terms test and business component?

0 Answers  


How to use Regular Expressions in QTP

1 Answers  


What are the enhancements u did after recording ur script?

1 Answers  


Differenece betwen Project and product ? when company need project or product?

4 Answers   Accenture,


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

0 Answers  


Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).

1 Answers  


I have one question as HP QTP is concern, Please send your answers..... Can we do testing of any application without using any of the framework which are we used in QTP tool. If yes then how it can be possible in the HP QTP tool. -- Regards

5 Answers   ABC,


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

5 Answers   Livetek, Virtusa,


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

0 Answers  


I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"

4 Answers  


If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


Categories