Class TestSuiteRunner
Provides functionality to execute Ranorex test suites.
public class TestSuiteRunner
- Inheritance
-
TestSuiteRunner
- Inherited Members
Constructors
TestSuiteRunner()
public TestSuiteRunner()
Properties
RunAborted
Gets or sets a value indicating whether the current run has been aborted.
If true, the test suite is currently in a tear-down phase.
public static bool RunAborted { get; set; }
Property Value
- bool
trueif the current test run has been aborted; otherwise,false.
Methods
Run(Type, string)
Runs the test suite which is contained in the same directory with the same name as the assembly containing the specified container type, or a file explicitly specified in the command line arguments. For example 'MyTestProject1.exe' tries to load 'MyTestProject1.rxtst'.
public static int Run(Type containerType, string cmdLineArgs)
Parameters
containerTypeTypeSpecifies a type which must be located in the main test suite assembly.
cmdLineArgsstringThe command line arguments.
Returns
- int
An error code which can be used as a return value for command line execution (0 = Success, -1 = Failure)
Run(Type, string, string)
Runs the test suite which is passed as an XML string.
public static int Run(Type containerType, string cmdLineArgs, string testSuiteXml)
Parameters
containerTypeTypeSpecifies a type which must be located in the main test suite assembly.
cmdLineArgsstringThe command line arguments.
testSuiteXmlstringA string containing the test suite data in XML format.
Returns
- int
An error code which can be used as a return value for command line execution (0 = Success, -1 = Failure)
Events
TestRunCompleted
Occurs when the test run for a test suite is about to complete.
public static event EventHandler TestRunCompleted