public class SoapUIToolRunner extends AbstractSoapUIRunner implements ToolHost, RunnerContext
For standalone usage, set the project file (with setProjectFile) and other desired properties before calling run
AbstractSoapUIRunner.SoapUIOptions
RunnerContext.RunnerStatus
Modifier and Type | Field and Description |
---|---|
static String |
TITLE |
ABNORMAL_TERMINATION, log, NORMAL_TERMINATION
Constructor and Description |
---|
SoapUIToolRunner() |
SoapUIToolRunner(String title) |
Modifier and Type | Method and Description |
---|---|
void |
disposeContext() |
String |
getProjectPassword() |
RunnerContext.RunnerStatus |
getStatus() |
String |
getTitle() |
protected AbstractSoapUIRunner.SoapUIOptions |
initCommandLineOptions() |
void |
log(String msg) |
void |
logError(String msg) |
static void |
main(String[] args)
Runs the specified tool in the specified soapUI project file, see SoapUI
xdocs for details.
|
protected boolean |
processCommandLine(org.apache.commons.cli.CommandLine cmd) |
void |
run(ToolRunner runner) |
boolean |
runRunner() |
void |
runTool(Interface iface)
Runs the configured tool(s) for the specified interface.
|
void |
setInterface(String iface) |
void |
setProjectPassword(String projectPassword) |
void |
setStatus(RunnerContext.RunnerStatus status) |
void |
setTool(String tool)
Sets the tool(s) to run, can be a comma-seperated list
|
createSoapUICore, ensureConsoleAppenderIsDefined, ensureFolder, ensureOutputFolder, getAbsoluteOutputFolder, getCommandLineOptionSubstSpace, getLog, getModelItemOutputFolder, getOutputFolder, getProjectFile, getProjectProperties, getSettingsFile, getSoapUISettingsPassword, initFromCommandLine, initGroovyLog, initProjectProperties, isEnableUI, requiresProjectArgument, run, run, runFromCommandLine, setCustomHeaders, setEnableUI, setGlobalProperties, setOutputFolder, setProjectFile, setProjectProperties, setSettingsFile, setSoapUISettingsPassword, setSystemProperties, validateCommandLineArgument
public static String TITLE
public SoapUIToolRunner()
public SoapUIToolRunner(String title)
public static void main(String[] args) throws Exception
args
- Exception
public void setTool(String tool)
tool
- the tools to runpublic void setInterface(String iface)
public boolean runRunner() throws Exception
runRunner
in class AbstractSoapUIRunner
Exception
public void runTool(Interface iface)
iface
- an interface that exposes an invokable operationpublic void run(ToolRunner runner) throws Exception
public RunnerContext.RunnerStatus getStatus()
getStatus
in interface RunnerContext
public String getTitle()
getTitle
in interface RunnerContext
public String getProjectPassword()
getProjectPassword
in class AbstractSoapUIRunner
public void log(String msg)
log
in interface RunnerContext
public void logError(String msg)
logError
in interface RunnerContext
public void setStatus(RunnerContext.RunnerStatus status)
setStatus
in interface RunnerContext
public void disposeContext()
disposeContext
in interface RunnerContext
protected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
initCommandLineOptions
in class AbstractSoapUIRunner
protected boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
processCommandLine
in class AbstractSoapUIRunner
public void setProjectPassword(String projectPassword)
setProjectPassword
in class AbstractSoapUIRunner
Copyright © 2019. All Rights Reserved.