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 |
Write a script to delete a specific row in a webtable.
Does QTP support flat files? If yes what are those?
What is the concept of hooking in QTP?
Have you done batch testing in qtp? If yes how you are doing?
Explain qtp(quick test professional)?
Is qtp supports uni-code?
How does QTP identifies the object in the application?
i don't have any experience in qtp? Can u please tell me What work i have to do?
What test you perform mostly? Regression or retesting in your testing process?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
Why we have to import data from excel sheet to data table?becoz v can directly use test data directly from xl know. can u all pls explain me clearly