MBean

Partial ObjectName:
WebSphere:*,type=


MBean

remotely executes a junit testcase


Operation Summary
startCapture()
           start capture of systemout and systemerr
runTest( className,  testName)
           executes the test
stopCapture()
           stop capture of systemout and systemerr
executeStaticMethod( targetClass,  methodName, java.lang.Class[] argTypes, java.lang.Object[] args)
           executes a static method
getSystemOut()
           retrieves systemout output
getSystemErr()
           retrieves systemerr output
transferFile( fileName,  fileBytes)
           transfers the given file to the remote system
transferFile( fileName,  fileBytes,  append)
           transfers the given file to the remote system
remoteExec(java.lang.String[] cmdArray)
           remote execs the given command array
java.lang.Object[]getRemoteExecResults( pid)
           gets the results of remote execution
getProperty( propertyName)
           retrieves the named system property

Operation Detail

startCapture

public  startCapture()
start capture of systemout and systemerr

runTest

public  runTest( className,  testName)
executes the test
Parameters:
className -
testName -

stopCapture

public  stopCapture()
stop capture of systemout and systemerr

executeStaticMethod

public  executeStaticMethod( targetClass,  methodName, java.lang.Class[] argTypes, java.lang.Object[] args)
executes a static method
Parameters:
targetClass -
methodName -
argTypes -
args -

getSystemOut

public  getSystemOut()
retrieves systemout output

getSystemErr

public  getSystemErr()
retrieves systemerr output

transferFile

public  transferFile( fileName,  fileBytes)
transfers the given file to the remote system
Parameters:
fileName -
fileBytes -

transferFile

public  transferFile( fileName,  fileBytes,  append)
transfers the given file to the remote system
Parameters:
fileName -
fileBytes -
append -

remoteExec

public  remoteExec(java.lang.String[] cmdArray)
remote execs the given command array
Parameters:
cmdArray -

getRemoteExecResults

public java.lang.Object[] getRemoteExecResults( pid)
gets the results of remote execution
Parameters:
pid -

getProperty

public  getProperty( propertyName)
retrieves the named system property
Parameters:
propertyName -

Copyright IBM Corp. 1996 - 2007