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
Answer Posted / 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 |
Post New Answer View All Answers
What is synchronization? What are the ways you can synchronize?
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
what is the difference between IE & Netscape in web testing on a log in page
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
what is the difference between data driver & data driven and driver script?
Can you list some technologies that support qtp?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))
What is qtpro? What is quick test pro? What is a quick test professional?
Sql questions to find second max salary and how to use joins
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
QTP script is not working on other's machine..
how will you check how many members visited the website www.infosys.com?
How to execute a winrunner script in quicktest professional (qtp)?