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()
时间: 2024-11-13 11:18:09