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

tell me about framework types and most used framework in real time. types of output value in details. diff between wr and qtp in detail.

2 Answers  


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

0 Answers  


what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description

2 Answers   PSI Data Systems,


what is the script to select 2 or more than 2 options from a listbox.

2 Answers   Polaris,


Can we test GUI of the application using QTP.? How.?If possible briefly explain process.?

1 Answers   Wipro,






How to merge the two object repositories

3 Answers   Wipro,


how to create the varibles and how these are connect to qtp? plz tell me

3 Answers  


what is selective recording ? and normal recording?

1 Answers   iSoft,


How we can test a Frame in a web page?

1 Answers   eMids,


How to switch between browser tabs? )moving from one tab to another tab)

1 Answers   CTS,


key word driven frame work is like a folder structure Question is that where is the folder like funtion library folder,object repository,data base,application scenerio folder etc are store whether in a remote machine where we have to access or in our machine (it just like VSS)

0 Answers   Kanbay,


How software automation specialist enter steps in the Expert View?

0 Answers  


Categories