How can i open a file in Textpad and replace a string with
another using QTP
Answer / 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 |
Hi PLZ explain User Defined Functions in QTP with eample?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
What is the limitation to XML Checkpoints?
What is a Web Table?
how to use import and export sheet methods in qtp
Where we use data driver in qtp?
1. How to capture data from images in QTP and produce them in Excel sheet
How do i relate the checkbox properties with webelement when checkbox properties are changing on every login to the application
How to make arguments optional in a function?
What are the data types in qtp?
Hi, i want download attached files in test plan area from QC to local drive in my system using QTP script. Please help me
How we can merge the object repositories?say if we have two or three object repositories then how e can merge them? is there any option in Qtp to merge the object repositories