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 Virtual Object? Plz Explain me with an example?
Explain the terms test and business component?
How to use Regular Expressions in QTP
What are the enhancements u did after recording ur script?
Differenece betwen Project and product ? when company need project or product?
In qtp is it possible to check broken links of a page?
Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).
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
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
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"
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?