import com.eviware.soapui.support.GroovyUtils def groovyUtils = new GroovyUtils( context ) def projectDir = groovyUtils.projectPath def proc = [ 'cmd', '/c',projectDir+ '\\backupTestResult.bat' ].execute() proc << 'y' StringBuilder output = new StringBuilder() proc.waitForProcessOutput(output, output) log.info output.toString()