public abstract class AbstractSoapUIRunner extends Object implements CmdLineRunner
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractSoapUIRunner.SoapUIOptions |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
AbstractSoapUIRunner(String title) |
| Modifier and Type | Method and Description |
|---|---|
protected SoapUICore |
createSoapUICore() |
void |
ensureFolder(String path) |
protected void |
ensureOutputFolder(ModelItem modelItem) |
String |
getAbsoluteOutputFolder(ModelItem modelItem) |
protected String |
getCommandLineOptionSubstSpace(org.apache.commons.cli.CommandLine cmd,
String key) |
org.apache.log4j.Logger |
getLog() |
String |
getModelItemOutputFolder(ModelItem modelItem) |
String |
getOutputFolder() |
String |
getProjectFile() |
String |
getProjectPassword() |
String[] |
getProjectProperties() |
String |
getSettingsFile() |
String |
getSoapUISettingsPassword() |
protected abstract AbstractSoapUIRunner.SoapUIOptions |
initCommandLineOptions() |
boolean |
initFromCommandLine(String[] args,
boolean printHelp) |
protected void |
initGroovyLog() |
protected void |
initProjectProperties(WsdlProject project) |
boolean |
isEnableUI() |
protected abstract boolean |
processCommandLine(org.apache.commons.cli.CommandLine cmd) |
boolean |
run()
Main method to use for running the configured tests.
|
int |
runFromCommandLine(String[] args) |
protected abstract boolean |
runRunner() |
void |
setEnableUI(boolean enableUI) |
void |
setGlobalProperties(String[] optionValues) |
void |
setOutputFolder(String outputFolder) |
void |
setProjectFile(String projectFile)
Sets the soapUI project file containing the tests to run
|
void |
setProjectPassword(String projectPassword) |
void |
setProjectProperties(String[] projectProperties) |
void |
setSettingsFile(String settingsFile)
Sets the soapUI settings file containing the tests to run
|
void |
setSoapUISettingsPassword(String soapUISettingsPassword) |
void |
setSystemProperties(String[] optionValues) |
public AbstractSoapUIRunner(String title)
protected void initGroovyLog()
public int runFromCommandLine(String[] args)
public boolean initFromCommandLine(String[] args, boolean printHelp) throws Exception
Exceptionpublic final boolean run()
throws Exception
Exception - if an error or failure occurs during test executionprotected SoapUICore createSoapUICore()
protected abstract boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
protected abstract AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
protected String getCommandLineOptionSubstSpace(org.apache.commons.cli.CommandLine cmd, String key)
public String getProjectFile()
getProjectFile in interface CmdLineRunnerpublic String getSettingsFile()
getSettingsFile in interface CmdLineRunnerpublic void setOutputFolder(String outputFolder)
public String getOutputFolder()
getOutputFolder in interface CmdLineRunnerprotected void ensureOutputFolder(ModelItem modelItem)
public void ensureFolder(String path)
public void setProjectFile(String projectFile)
projectFile - the soapUI project file containing the tests to runpublic void setSettingsFile(String settingsFile)
settingsFile - the soapUI settings file to usepublic void setEnableUI(boolean enableUI)
public String getSoapUISettingsPassword()
public void setSoapUISettingsPassword(String soapUISettingsPassword)
public void setSystemProperties(String[] optionValues)
public void setGlobalProperties(String[] optionValues)
public void setProjectProperties(String[] projectProperties)
public org.apache.log4j.Logger getLog()
getLog in interface CmdLineRunnerpublic String[] getProjectProperties()
getProjectProperties in interface CmdLineRunnerprotected void initProjectProperties(WsdlProject project)
public boolean isEnableUI()
public String getProjectPassword()
public void setProjectPassword(String projectPassword)
Copyright © 2013. All Rights Reserved.