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
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 |
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 |
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 |
How can i select multiple items from a WebList bOX USING QTP
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?
Write a script to delete a specific row in a webtable.
How to retrieve alpha bate from the alphanumeric string with special character.
When to use Descriptive programing?
How to supress warnings from the "Test results page"?
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
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
How do we create and run the scripts with out using O.R. ?
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.
how to use command prompt using qtp?
How you automate test scripts