How to run a batch file using a Groovy script
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2017
01:34 AM
01-23-2017
01:34 AM
How to run a batch file using a Groovy script
How do I run a batch file, using a Groovy Script, from within a test case?
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2017
02:53 AM
01-23-2017
02:53 AM
Take a look at the following article:
http://mrhaki.blogspot.co.uk/2009/10/groovy-goodness-executing-string-or.html
Hopefully that should help.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2017
01:17 PM
01-24-2017
01:17 PM
def BatchFile = Path+'Test.bat'
Runtime.runtime.exec(BatchFile)
Hope this helps!
