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 |
difference Between Call Run action and copy of action?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
do you prepared framework,pls answer this
In where you are keeping or maintaining shared object repository (file)in your appliction?
what are the cases in which we use XML and accessibility check points.
wt is frame work wt r d different types of frame works used in ur company
can we run the scripts of qtp 8.2 in the qtp7.0?
Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please
What is the difference between browser sync and page sync in QTP?
Do we get any issues if we run the test script on differentbrowsers?what are the options we need to set in QTP?
what the diffference between test data and test cases what is meant by object hierarchy in qtp
Hi, one script having 10 Actions,but i want to execute only 3rd action and 7th action? how to execute selected actions? throgh script and through navigation?