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

In a WebTable 2nd row,3rd column contains one link and that link name is changing dynamically. How you will click the link?

1 Answers   Bank Of America,


Can we create user defined functions in qtp?

0 Answers  


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

0 Answers  


Tell me the QTP Advantages and Disadvatages ?

1 Answers  


Hi, i am rani ,i am putting 1+years of fake exp ,so pls anyone explain how i get project (in real time) ? how it is tested ex: in banking ,test the number of textboxes in one window

3 Answers  


Hi, I will provide perticular age,it needs to enter date in text box (MM/DD/YYYY) compare to system date. or already exist data in the text box.

2 Answers   Virtusa,


can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function

5 Answers  


How should I check my code( Before going to execute) without executing the script in QTP

1 Answers  


What is the difference between two actions?

1 Answers   Wipro,


What is Virtual Users?

1 Answers   Crea,


Friends please let me know how id following possible in QTP: Can I apply conditional loop on a bitmap/image or any other checkpoint. Like if checkpoint passes then if or Else

2 Answers  


Hi,i have 3 years of experience in manual and Automation qtp.present i am searching for job in automation qtp 2Yrs,How to Explain the interviwer Roles and Responsibilites.please help me.

1 Answers  


Categories