com.eviware.soapui.tools
Class SoapUIToolRunner
java.lang.Object
com.eviware.soapui.tools.AbstractSoapUIRunner
com.eviware.soapui.tools.SoapUIToolRunner
- All Implemented Interfaces:
- RunnerContext, ToolHost
public class SoapUIToolRunner
- extends AbstractSoapUIRunner
- implements ToolHost, RunnerContext
Standalone tool-runner used from maven-plugin, can also be used from command-line (see xdocs) or
directly from other classes.
For standalone usage, set the project file (with setProjectFile) and other desired properties before
calling run
- Author:
- Ole.Matzura
Field Summary |
static java.lang.String |
TITLE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TITLE
public static java.lang.String TITLE
SoapUIToolRunner
public SoapUIToolRunner()
SoapUIToolRunner
public SoapUIToolRunner(java.lang.String title)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Runs the specified tool in the specified soapUI project file, see soapUI xdocs for details.
- Parameters:
args
-
- Throws:
java.lang.Exception
setTool
public void setTool(java.lang.String tool)
- Sets the tool(s) to run, can be a comma-seperated list
- Parameters:
tool
- the tools to run
setInterface
public void setInterface(java.lang.String iface)
runRunner
public boolean runRunner()
throws java.lang.Exception
- Specified by:
runRunner
in class AbstractSoapUIRunner
- Throws:
java.lang.Exception
runTool
public void runTool(Interface iface)
- Runs the configured tool(s) for the specified interface.. needs to be refactored to use
some kind of registry/factory pattern for tools
- Parameters:
iface
-
run
public void run(ToolRunner runner)
throws java.lang.Exception
- Specified by:
run
in interface ToolHost
- Throws:
java.lang.Exception
getStatus
public RunnerContext.RunnerStatus getStatus()
- Specified by:
getStatus
in interface RunnerContext
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle
in interface RunnerContext
log
public void log(java.lang.String msg)
- Specified by:
log
in interface RunnerContext
logError
public void logError(java.lang.String msg)
- Specified by:
logError
in interface RunnerContext
setStatus
public void setStatus(RunnerContext.RunnerStatus status)
- Specified by:
setStatus
in interface RunnerContext
disposeContext
public void disposeContext()
- Specified by:
disposeContext
in interface RunnerContext
initCommandLineOptions
protected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
- Specified by:
initCommandLineOptions
in class AbstractSoapUIRunner
processCommandLine
protected boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
- Specified by:
processCommandLine
in class AbstractSoapUIRunner
Copyright © 2005-2007 eviware.com. All Rights Reserved.