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
Answers were Sorted based on User's Feedback
Answer / sri satya
Dim a,b
Set a= CreateObject("Scripting.FileSystemObject")
Set b= a.CreateTextFile("c:\Test.txt")
b.Writeline("Hi Welcome To QTP")
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / vibhav srivastav
I thik This Code will Work
set a=createobject("wscript.shell")
a.run "Notepad.exe"
Set Obj = Window("regexpwndtitle:= Notepad").WinEditor
("nativeclass:= Edit")
Obj.Click
a.Sendkeys "I Love QTP"
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Answer / m.s.patil
Dim fso,filepath
Set fso =CreateObject("Scripting.FileSystemObject")
Set filePath =fso.CreateTextFile("C:\mpatil3.txt")
filePath.WriteLine ("This is sample code")
filepath.Close
Set fso =Nothing
I have tested this and it works fine.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / arun
sline="Hello"
Set fso = CreateObject("Scripting.FileSystemObject")
Set CreateFile = fso.CreateTextFile("c:\x1.txt",True)
CreateFile.close
Set OpenFile = fso.OpenTextFile("c:\x1.txt",8,True)
OpenFile.Writeline sline
OpenFile.Close
Is This Answer Correct ? | 0 Yes | 1 No |
what is the framework followed by ur company in qtp
If you are using descriptive programming and you have two objects with the same name, so you are identiying them by name and index, how can you avoid errors if a third object with the same name is added at the begining of the page?
What is the qtp testing process?
Does quicktest professional (qtp) is unicode compatible?
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
Synchronizing test
What is 'sleep' in sync point?
what are the limitations of automation testing?
What is the entry and exit point of automation testing
what is the framework followed by ur company in qtp
In the QTP the snap shots obtained during the recording time will appear in the active screen, if we have to use the snapshots from where we have to access. in which memory location of QTP they will be stored?
Does QTP run in any environment?