How can i open a file in Textpad and replace a string with
another using QTP
Answer Posted / madhavi
FileLocation="C:\Documents and Settings\\Desktop\file1.txt"
Set fso=CreateObject("Scripting.FileSystemObject")
Set fl=fso.OpenTextFile(FileLocation)
txtToReplace=replace(fl.ReadAll,"QTP","QTP9.5")
fl.Close
Set fl=fso.OpenTextFile(FileLocation,2)
fl.Write(txtToReplace)
fl.Close
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
How you debug your script?
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
How to creating an output value using quicktest professional?
how to test load test and block box testing an a web based application pls give ans briefly
What are the types of object repositories? Which one is you are using?
Difference between copy to action and call to action?
please post the interview questions for QA position in FACTSET
When to use descriptive programming?
what is keyword driven testing in qtp?n how is it useful?
What is the difference between the keyword view and expert view?
can any one say that where we can download the QTP trail version ??????????
what is ODC and GDC?
How will you check that your test cases covered all the requirements?
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
What is the difference between qtp and selenium?