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 |
What is synchronization? What are the ways you can synchronize?
if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
is it possible to change the date format like MM/DD/YY into DD/MM?YY through script in QTP
How will you find the current time of the remote machine using QTP script?
Q- what is the advantage of merging tool in QTP 9.2?
If some requirements r changed during the testing process ,then how can u handle this in frame work?
how will u do database testing in qtp? how will u do the same with descriptive programming?
I have a Webtable object in my shared object repository, say WT1, which has different index value in 2 different versions, one version having WT1's index value as 1 and other version having WT1's index value as 2. how could i use same test script to identify the WT1 object having different index values.
How to export(copy) the entire webtable from the webpage into Excelsheet? using Vb scripting
Why is Client side image is preferred over server side image?
What are the properties you would use for identifying a browser & page when using descriptive programming ?
how to write vbscript on web applications in qtp. explian with one example?