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 to interact tool & application build in QTP?

0 Answers  


Hi, I have weblist which contains the data like Design change,admin edit and cost saving etc.. User doesn't know the values existed in weblist. Now the user has to select the right value from the list otherwise the test will fail. Pls help me "To select the correct value from the list"

1 Answers  


What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project

2 Answers   Yahoo,


HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.

5 Answers   CTS,


In a webtable, lets say there are 10 records and 1 column. let say "image" is available for 1st,2nd and 3rd records and 4th onwards image is not available. How to recognise for that cell image is available or not?

2 Answers  






how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer

0 Answers  


when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP?

1 Answers   Symantic Space,


what is the difference between testing and debugging?

2 Answers  


Explain data driven framework?

0 Answers  


Can anybody send me the code to get the RO property of the active screen in QTP while running?

9 Answers  


how to compare two excell sheets by using vbscript??

2 Answers  


Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points

0 Answers   BirlaSoft,


Categories