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 |
Synchronizing test
How can i open a file in Textpad and replace a string with another using QTP
What is the entry and exit point of automation testing
What is the function of Filter in QC . give with a real time example.
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
how to test one edit box using Java addin for Web Applications? write script?
Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also
Hi, When iam trying to import sheet to the QTP Global data table at the run time using the Importsheet method.It is able to import the sheet but no data is present after the import due to which the test is failing.Could anyone suggest what should be done. When I open the actual excel sheet data is present and is not corrupted.
Difference between test object and run time object?
Can objects recognised without repository?
How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If
What is the concept of firewalls?