com.eviware.soapui.tools
Class SoapUIToolRunner

java.lang.Object
  extended by com.eviware.soapui.tools.SoapUIToolRunner
All Implemented Interfaces:
RunnerContext, ToolHost

public class SoapUIToolRunner
extends java.lang.Object
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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wsdl.actions.iface.tools.support.RunnerContext
RunnerContext.RunnerStatus
 
Field Summary
static java.lang.String TITLE
           
 
Constructor Summary
SoapUIToolRunner()
           
 
Method Summary
 void disposeContext()
           
 RunnerContext.RunnerStatus getStatus()
           
 java.lang.String getTitle()
           
 void log(java.lang.String msg)
           
 void logError(java.lang.String msg)
           
static void main(java.lang.String[] args)
          Runs the specified tool in the specified soapUI project file, see soapUI xdocs for details.
 void run()
           
 void run(ToolRunner runner)
           
 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
 void setInterface(java.lang.String iface)
           
 void setProjectFile(java.lang.String projectFile)
           
 void setStatus(RunnerContext.RunnerStatus status)
           
 void setTool(java.lang.String tool)
          Sets the tool(s) to run, can be a comma-seperated list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

public static java.lang.String TITLE
Constructor Detail

SoapUIToolRunner

public SoapUIToolRunner()
Method Detail

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

setProjectFile

public void setProjectFile(java.lang.String projectFile)

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)

run

public void run()
         throws java.lang.Exception
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


Copyright © 2005-2007 eviware.com. All Rights Reserved.