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

How can i select multiple items from a WebList bOX USING QTP

3 Answers   DuPont, Syntel,


How do you test the different ads displayed in the Inbox home page of Yahoo. Once u login Yahoo mail, in inbox page there will a banner, where different ads are scrolling, how do you test that using qtp?

2 Answers  


Write a script to delete a specific row in a webtable.

2 Answers   Tech Mahindra,


How to retrieve alpha bate from the alphanumeric string with special character.

7 Answers   ADP, Cap Gemini,


When to use Descriptive programing?

2 Answers   Wipro,






How to supress warnings from the "Test results page"?

6 Answers   BirlaSoft,


you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani

4 Answers   Oracle,


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

0 Answers  


How do we create and run the scripts with out using O.R. ?

5 Answers  


Hello Friends, I am working with QTP 9.2 descriptive programming. Can you please let me know how to work with below. Browser is IE, for my site, it opens another page with different browser name, For example Parent Page is google.com and child page is inteview questions. How to work with this second page.

3 Answers  


how to use command prompt using qtp?

8 Answers   HCL,


How you automate test scripts

1 Answers   Novartis,


Categories