Ask a Question

How to run a batch file using a Groovy script

TommyTester
Occasional Contributor

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
Radford
Super Contributor

Take a look at the following article:

 

http://mrhaki.blogspot.co.uk/2009/10/groovy-goodness-executing-string-or.html

 

Hopefully that should help.

New2API
Frequent Contributor

def BatchFile = Path+'Test.bat'

Runtime.runtime.exec(BatchFile)

 

Hope this helps!

 

cancel
Showing results for 
Search instead for 
Did you mean: