I want to open a Notepad window without recording a
test and I do not want to use SystemUtil.Run command as
well How do I do this?
Answers were Sorted based on User's Feedback
Answer / sathishkumar
You can open the notepad by using the below code:
Invokeapplication "notepad.exe"
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / ravi
Dim s
Set s= create object("wscript.shell")
s.run"notepad"
set s= nothing
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / mukesh
hi,
u can open a Notepad by using record and run setting for
windows application ( there u can give the path of
notepad.exe) and also by invokeapplication method
there u have to give the physical path of notepad
for ex (c://programfiles/.....)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / chaitu
You can open the Notepad through this method also
Set Notepad = CrateObject("Notepad.Application")
Notepad.visible = Ture
Set Notepad = Nothing
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ravindra
Setfso = CrateObject("scripting.filesystem object")
setf=fso.opentextfile("path of that notepad file",mode of
file,value)
while (f.end of line)<>true
x=f.readline
some statements
f.close
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / tvs ramakrishna chowdary
what ever Ravi said that is obsolutly 100% correct..
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / indra
Set fso = CreateObject("Scripting.FileSystemObject")
fso.OpenTextFile("c:\testfile.txt", ForWriting, True)
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ram.polavarapu
dim ws
set ws=createobject("wscript.shell")
ws.run"notepad.exe"
Is This Answer Correct ? | 0 Yes | 0 No |
Hi, i am mallishwari, i am veryn ew to testing but i have very much interest in testing. plse give me some guidence to get the job in testing. send me required documents and faqs to my personal id: mallishwari_urs@yahoo.co.in thans for advance.
can we install qtp on server machine and do automation of application which is installed on client machine.If yes then how? If no then is there any other automation tool for this (client-server) senario.
What is wrong in my code?
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
Do you support automated testing? Why?
write the vb script for call to new action in qtp?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
VB scrip has a special command named LBound, which returns the starting index of an arry. What are the possible indexes an array can start with? options are given below. and one only the correct answer. pl select it 1. any index 2. only even non-negative 3. only 0 4. any non-negative integer
what is advantage of descripting programming in QTP?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
How to add a runtime parameter to a datasheet?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”