Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

Answer / sathishkumar

You can open the notepad by using the below code:

Invokeapplication "notepad.exe"

Is This Answer Correct ?    6 Yes 1 No

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

Answer / ravi

Dim s
Set s= create object("wscript.shell")
s.run"notepad"
set s= nothing

Is This Answer Correct ?    4 Yes 0 No

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

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

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

Answer / poo

invokeapplication("notepad")

Is This Answer Correct ?    1 Yes 0 No

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

Answer / gopikrishna

hi,

Sreeprasad saying is perfect.

Is This Answer Correct ?    0 Yes 0 No

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

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

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

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

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

Answer / tvs ramakrishna chowdary

what ever Ravi said that is obsolutly 100% correct..

Is This Answer Correct ?    0 Yes 0 No

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

Answer / indra

Set fso = CreateObject("Scripting.FileSystemObject")
fso.OpenTextFile("c:\testfile.txt", ForWriting, True)

Is This Answer Correct ?    0 Yes 0 No

I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run ..

Answer / ram.polavarapu

dim ws
set ws=createobject("wscript.shell")
ws.run"notepad.exe"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Synchronizing test

3 Answers   Wipro,


How can i open a file in Textpad and replace a string with another using QTP

1 Answers   Wipro,


What is the entry and exit point of automation testing

2 Answers   Infosys,


What is the function of Filter in QC . give with a real time example.

1 Answers   TCS,


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

0 Answers  


how to test one edit box using Java addin for Web Applications? write script?

1 Answers   IBM,


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

0 Answers  


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.

2 Answers  


Difference between test object and run time object?

0 Answers  


Can objects recognised without repository?

5 Answers  


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

0 Answers   TCS,


What is the concept of firewalls?

2 Answers   CTS,


Categories