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 |
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.
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
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
what is the script to select 2 or more than 2 options from a listbox.
Can we test GUI of the application using QTP.? How.?If possible briefly explain process.?
How to merge the two object repositories
how to create the varibles and how these are connect to qtp? plz tell me
what is selective recording ? and normal recording?
How we can test a Frame in a web page?
How to switch between browser tabs? )moving from one tab to another tab)
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)
How software automation specialist enter steps in the Expert View?