Hello,
Currently there is no Runner which does this, but we have discussed it and it should be pretty easy to create. We'll probably add something like this later on, but in the meantime you could do it yourself. Ole wrote some blog posts on the topic of creating custom components,
here and
here. Basically you would want to create a new Runner component which runs the command (just put the following code in a .groovy file in the script-components directory of loadUI):
/**
* Runs a custom command
*
* @name Command Runner
* @category runners
*/
//Properties
createProperty( 'command', String, '/usr/bin/ping 127.0.0.1' )
sample = { message, sampleId ->
def process = Runtime.runtime.exec( command.value )
message['Output'] = process.inputStream.text
message['Status'] = process.exitValue()
return message
}
You can of course make it more advanced, adding a text field to specify the command to run, handle errors, etc. if you want.
Regards,
Dain
eviware.com