package com.gemalto.mcx.groovy
/**
*
* @author lroberts
*/
class SoapUiXShell {
def log
def testRunner
def SoapUiXShell(){
}
def SoapUiXShell(log, testRunner){
this.log = log
this.testRunner = testRunner
}
def XShell_Open(){
def command
def proc
def path_xshell = "T:\\TestFramework\\XshellPortable\\XshellPortable.exe"
def path_xshell_session = "T:\\TestFramework\\doc\\XShellSession.xsh"
// def command = """${path_xshell} ${path_xshell_session}"""
// def proc = command.execute()
// proc.waitFor()
//command = """${path_xshell} -newwin ${path_xshell_session}"""
//command = "${path_xshell} -newwin ${path_xshell_session}"
command = """${path_xshell}"""
proc = command.execute()
Thread.sleep(15000)
log.info("XShell Closed")
println("XShell Closed")
//proc.waitFor()
}
}