please clarify the question .................
i know how to open the notepad file ?
but i don't know how to enter the data into opened notepad ?
Ex: set a=createobject("wscript.shell")
a.run "Notepad.exe"
please give the replay.
my mail id is raju.ippali@gmial.com, 9823257761
Answer Posted / kamal
set fso=createobject("scripting.filesystmeobject")
set fptr=opentextfile("c:\sample.txt",2,true)
fptr.writeline("this is sample program")
set fptr=nothing
in this 2 for write mode and true for if file doesn't
exist, it can create a new file sample.txt, if we give
false, it can open the file sample.txt which is already
exists.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How does qtp identify gui object?
How to open a new test using quicktest professional?
Have you used xml check point in your project?
Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
Is the qtp course will help to create a virtual object?
How is the Bitmap checkpoint different from Image checkpoint?
can anyone tell me from where i can download qtp demo or crack version
How many tabs are available to view your test in a test pane and what are they?
what frame work you are following?
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
Output values? i want a practical example
can u explain relative path architecture framework in qtp?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance