Executing shell commands?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2010
10:25 PM
01-25-2010
10:25 PM
Executing shell commands?
Hi,
Is there any way to make calls like "excelcompare filea fileb" without putting them in tested apps? Like a simple ShellExecute(AFilename : string) or similar?
I have searched everywhere in the documentation, and probably missed something, but I can't find it!
//Nicklas
Is there any way to make calls like "excelcompare filea fileb" without putting them in tested apps? Like a simple ShellExecute(AFilename : string) or similar?
I have searched everywhere in the documentation, and probably missed something, but I can't find it!
//Nicklas
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2010
12:33 AM
01-26-2010
12:33 AM
Hi Nicklas,
You can use the WScript.Shell object to do this (the Run or Exec method). This object is described here.
You can use the WScript.Shell object to do this (the Run or Exec method). This object is described here.
------
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
03-17-2010
01:33 AM
03-17-2010
01:33 AM
Hi,
I can't find that object being defined anywhere, also TC does not recognize it.
Also, there is no CreateObject function, so I can create it through that either.
I'm a bit stumped.
//Nicklas
PS.
BTW, our TC-version is 6.52.
DS.
I can't find that object being defined anywhere, also TC does not recognize it.
Also, there is no CreateObject function, so I can create it through that either.
I'm a bit stumped.
//Nicklas
PS.
BTW, our TC-version is 6.52.
DS.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2010
01:45 AM
03-17-2010
01:45 AM
You should be able to instantiate the Wscript.Shell object using
You can then use any of the properties or methods of that object within your automation.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Sys.OleObject('Wscript.Shell')
You can then use any of the properties or methods of that object within your automation.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2010
02:11 AM
03-17-2010
02:11 AM
That worked!
Thanks!
//Nicklas
Thanks!
//Nicklas
