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

If you are testing a web application then what will you test in that application?

0 Answers   Infosys,


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

0 Answers  


If requirments changed then how we can teach the QTP this is the new requirment

2 Answers   Accenture,


Tell when we call the function? tell with example.

1 Answers  


In Test Director bug rEPORTS, wHAT ARE THE CONTENTS(fIELDS)? iF yoU PREAPARE BUG REPORT IN eXCEL sHEET , hOW U SEND TO dEVELOPMENT TEAM THRW T.D?

1 Answers  






What is the use of virtual objects?

1 Answers  


Which object model ur used in ur project

2 Answers   Cap Gemini,


results.xls file is automatically generated while running the script in QTP.But it is showing error to open the file

1 Answers  


This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Symantic Space,


What are the benefits of quick test pro(qtp)?

0 Answers  


What is the another extention name of library file.If that is exist than what's the differnce between them.

1 Answers   Synechron,


In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.

1 Answers  


Categories