Reg: Launch the window application
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2010
01:20 AM
08-24-2010
01:20 AM
Reg: Launch the window application
Hi..
How to launch the application available in the path, instead of Call TestedApps.notepad.Run(1, False).
E.g: I need to launch the application available in the path like c:\Allprograms\applicaiton1.
How to write script for that.
Regards
Naresh
How to launch the application available in the path, instead of Call TestedApps.notepad.Run(1, False).
E.g: I need to launch the application available in the path like c:\Allprograms\applicaiton1.
How to write script for that.
Regards
Naresh
5 REPLIES 5
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2010
04:12 AM
08-24-2010
04:12 AM
Sys.OleObject("WScript.Shell").Run("c:\\Allprograms\\applicaiton1");
Gennadiy Alpaev
Software Testing Automation Tips - my new book
TestComplete Cookbook is published!
About Community Experts
Gennadiy Alpaev
Software Testing Automation Tips - my new book
TestComplete Cookbook is published!
About Community Experts
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2010
07:00 PM
08-24-2010
07:00 PM
Hi Gennadiy Alpaev
Tx for your reply.
I was not able to run the application still. i am getting the run time error.
E.g To Run the calculator applciation.
Sys.OleObject("WScript.Shell").Run("C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Accessories\\Calculator")
Run time error is coming,"The system can't find the specified file path"
Regards
Naresh
Tx for your reply.
I was not able to run the application still. i am getting the run time error.
E.g To Run the calculator applciation.
Sys.OleObject("WScript.Shell").Run("C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Accessories\\Calculator")
Run time error is coming,"The system can't find the specified file path"
Regards
Naresh
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2010
11:54 PM
08-24-2010
11:54 PM
Hi,
Enclose the path in quotes:
Enclose the path in quotes:
Sys.OleObject("WshScript.Shell").Run("\"C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Accessories\\Calculator\"")
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2010
02:44 AM
08-25-2010
02:44 AM
Hi..
if i copy the same script in vb script its giving code compilation error.
can u please give the snippet in vb script.
if i copy the same script in vb script its giving code compilation error.
can u please give the snippet in vb script.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2010
06:23 AM
08-25-2010
06:23 AM
Sys.OleObject("WScript.Shell").Run("""C:\Program Files\application.exe""")
if you need to run your application with parameters, then
Sys.OleObject("WScript.Shell").Run("""C:\Program Files\application.exe"" param1 param2""")
And I really recommend you to start learning the language you are using in your scripts, because you need to be able not only recording scripts, but also write them manually...
Gennadiy Alpaev
Software Testing Automation Tips - my new book
TestComplete Cookbook is published!
About Community Experts
if you need to run your application with parameters, then
Sys.OleObject("WScript.Shell").Run("""C:\Program Files\application.exe"" param1 param2""")
And I really recommend you to start learning the language you are using in your scripts, because you need to be able not only recording scripts, but also write them manually...
Gennadiy Alpaev
Software Testing Automation Tips - my new book
TestComplete Cookbook is published!
About Community Experts
