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 test object model in quicktest professional (qtp)?
Where we can use the analog mode and where we can use the low – level mode?
How to add verification steps to tests?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
How to check bitmap output value?
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
How to import a test case present in ".xls" file to TD under a Test set?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
how to evalute defects in QTP script?
What test you perform mostly? Regression or retesting in your testing process?
Have you used xml check point in your project? How?
What is the parameterization? Give one example?
How did you use regular expressions in QTP and also in WR?