com.eviware.soapui.tools
Class SoapUITestCaseRunner

java.lang.Object
  extended by com.eviware.soapui.tools.SoapUITestCaseRunner
All Implemented Interfaces:
TestRunListener

public class SoapUITestCaseRunner
extends java.lang.Object
implements TestRunListener

Standalone test-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

Constructor Summary
SoapUITestCaseRunner()
           
 
Method Summary
 void afterRun(TestRunner testRunner)
           
 boolean afterStep(TestRunner testRunner)
           
 boolean beforeRun(TestRunner testRunner)
           
 boolean beforeStep(TestRunner testRunner)
           
static void main(java.lang.String[] args)
          Runs the tests in the specified soapui project file, see soapui xdocs for details.
 void run()
          Runs the testcases as configured with setXXX methods
 void runSuite(TestSuite suite)
          Run tests in the specified TestSuite
 void setDomain(java.lang.String domain)
          Sets the domain to use for any authentications
 void setEndpoint(java.lang.String endpoint)
          Sets the endpoint to use for all test requests
 void setPassword(java.lang.String password)
          Sets the password to use for any authentications
 void setProjectFile(java.lang.String projectFile)
          Sets the soapui project file containing the tests to run
 void setTestCase(java.lang.String testCase)
          Sets the testcase to run
 void setTestSuite(java.lang.String testSuite)
          Sets the TestSuite to run.
 void setUsername(java.lang.String username)
          Sets the username to use for any authentications
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapUITestCaseRunner

public SoapUITestCaseRunner()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Runs the tests in the specified soapui project file, see soapui xdocs for details.

Parameters:
args -
Throws:
java.lang.Exception

setDomain

public void setDomain(java.lang.String domain)
Sets the domain to use for any authentications

Parameters:
domain - the domain to use for any authentications

setPassword

public void setPassword(java.lang.String password)
Sets the password to use for any authentications

Parameters:
domain - the password to use for any authentications

setUsername

public void setUsername(java.lang.String username)
Sets the username to use for any authentications

Parameters:
domain - the username to use for any authentications

run

public void run()
         throws java.lang.Exception
Runs the testcases as configured with setXXX methods

Throws:
java.lang.Exception - thrown if any tests fail

runSuite

public void runSuite(TestSuite suite)
Run tests in the specified TestSuite

Parameters:
suite - the TestSuite to run

setProjectFile

public void setProjectFile(java.lang.String projectFile)
Sets the soapui project file containing the tests to run

Parameters:
projectFile - the soapui project file containing the tests to run

setTestCase

public void setTestCase(java.lang.String testCase)
Sets the testcase to run

Parameters:
testCase - the testcase to run

setEndpoint

public void setEndpoint(java.lang.String endpoint)
Sets the endpoint to use for all test requests

Parameters:
endpoint - the endpoint to use for all test requests

setTestSuite

public void setTestSuite(java.lang.String testSuite)
Sets the TestSuite to run. If not set all TestSuites in the specified project file are run

Parameters:
testSuite - the testSuite to run.

beforeRun

public boolean beforeRun(TestRunner testRunner)
Specified by:
beforeRun in interface TestRunListener

beforeStep

public boolean beforeStep(TestRunner testRunner)
Specified by:
beforeStep in interface TestRunListener

afterStep

public boolean afterStep(TestRunner testRunner)
Specified by:
afterStep in interface TestRunListener

afterRun

public void afterRun(TestRunner testRunner)
Specified by:
afterRun in interface TestRunListener


Copyright © 2005 eviware.com. All Rights Reserved.