Forum Discussion
JHunt
7 years agoCommunity Hero
How are you determining whether it is running or not? By default, just calling exec or execute only returns a Process so you need to do something with that Process. There is no command prompt window shown.
Below is a way to see the output:
String line def p = "cmd /c C:\\temp\\hw.bat".execute() def bri = new BufferedReader (new InputStreamReader(p.getInputStream())) while ((line = bri.readLine()) != null) {log.info line}
INFO:C:\Program Files\SmartBear\SoapUI-5.4.0\bin>echo Hello World! INFO:Hello World!
Related Content
Recent Discussions
- 4 days agoemoya