how can i edit an already existing text file using QTP?
thanks in advance.
1. LoadRunner 9.5
2. Web (HTTP/HTML)
2.1 .Net 3.5
2.2 .Net 3.5
7. Global/permanent Ė 250
9. Windows 2003 server
10. didnít request to HP yet
Search QTP help or the forum for FileSystemObject
..Mouth of a Dagger and Heart of Tofu
you can use FSOobject.
open that text file in write or append mode.
then use write,writelines() method to edit it.
L & T infotech,mumbai
In the normal meaning of the word 'edit', the simple answer is that you can't, you can only append to it.
If you want to insert lines then you need to write to a new file and then rename the files when you have finished.
For an easy to use test automation framework, checkout my website: