Namespace: Consultingwerk.SmartUnit.TestRunner
Class 
DebugRunner Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.SmartUnit.TestRunner.TestRunner
Implements: Consultingwerk.SmartUnit.TestRunner.ITestRunner

File:DebugRunner
Purpose:Debug version of the SmartUnit Test runner. Allows
execution of Unit Tests from within PDSOE - allowing
to debug unit tests
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Dec 03 21:29:57 CET 2014
Purpose: Constructor for the DebugRunner class
Notes:



Top Method Summary
Options Name Purpose
+ LOGICAL Execute (ITestSuite) Executes the test suite described by the ITestSuite instance
Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
# ExecuteManagementMethod (character, Object, character) Executes a test management method (setup, teardown, before, after)
Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
# Consultingwerk.SmartUnit.TestRunner.TestResult ExecuteTest (ITestSuite, character, character, Object, character, character, character, character, integer, character, character, integer) Executes a single test
Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
# ExecuteTestMethod (Object, character) Helper method to throw an AppError for raised STOP conditions
Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
# IDataAccessFactory InitializeMockDataAccessFactory (character) Initializes the Mock Data Access Factory
Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
+ LoadServices (character) Loads services from a comma-delimited list of XML files
Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner

Top Constructor Summary
Options Name Purpose
+ DebugRunner () Constructor for the DebugRunner class

Top Property Summary
Options Name Purpose
# LOGICAL DialogOutput
Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
# LOGICAL LogMessages
Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner


Method Detail
Top

PUBLIC LOGICAL Execute (ITestSuite)

Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
Purpose: Executes the test suite described by the ITestSuite instance
Notes:

Parameters:
poTestSuite ITestSuite
The ITestSuite to execute
Returns LOGICAL
Logical value, when set to false halt will be signalled to the caller (ANT script)
Top

PROTECTED ExecuteManagementMethod (character, Object, character)

Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
Purpose: Executes a test management method (setup, teardown, before, after)
Notes:

Parameters:
pcLabel CHARACTER
The label for the setup method
poTestInstance Progress.Lang.Object
The reference to the Test instance
pcMethodName CHARACTER
The name of the method to execute
Top

PROTECTED Consultingwerk.SmartUnit.TestRunner.TestResult ExecuteTest (ITestSuite, character, character, Object, character, character, character, character, integer, character, character, integer)

Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
Purpose: Executes a single test
Notes:

Parameters:
poTestSuite ITestSuite
The reference to the current test suite
pcLogFolder CHARACTER
The name of the folder to use for logfiles etc.
pcClassName CHARACTER
The name of the test class
poTestInstance Progress.Lang.Object
The reference to the Test instance
pcTestName CHARACTER
The name of the test method to execute
pcSetupMethod CHARACTER
The name of the setup method
pcTearDownMethod CHARACTER
The name of the tear down method
pcExpected CHARACTER
The class of error that is expected to be thrown by the test method
piErrNum INTEGER
The expected error number
pcServices CHARACTER
The comma delimited list of service.xml files to load for this test
pcFactories CHARACTER
The comma delimited list of factories.xml files to load for this test
piStopAfter INTEGER
The number of seconds after which the test is supposed to be stopped
Returns Consultingwerk.SmartUnit.TestRunner.TestResult
The TestResult of the executed test
Top

PROTECTED ExecuteTestMethod (Object, character)

Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
Purpose: Helper method to throw an AppError for raised STOP conditions
Notes: Necessary if Startup-Parameter -catchStop 0 to cause an AppError
instead of a STOP condition

Parameters:
poTestInstance Progress.Lang.Object
The reference to the Test instance
pcTestName CHARACTER
The name of the test method to execute
Top

PROTECTED IDataAccessFactory InitializeMockDataAccessFactory (character)

Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
Purpose: Initializes the Mock Data Access Factory
Notes: Based on a comma delimited list of mock data access definitions

Parameters:
pcConfiguration CHARACTER
The configuration data
Returns IDataAccessFactory
The IDataAccessFactory instance
Top

PUBLIC LoadServices (character)

Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner
Purpose: Loads services from a comma-delimited list of XML files
Notes:

Parameters:
pcServices CHARACTER
The comma delimited list of service xml files


Constructor Detail
Top

PUBLIC DebugRunner ()

Purpose: Constructor for the DebugRunner class
Notes:



Property Detail
Top

PROTECTED LOGICAL DialogOutput

Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner

Returns LOGICAL
Top

PROTECTED LOGICAL LogMessages

Inherited from Consultingwerk.SmartUnit.TestRunner.TestRunner

Returns LOGICAL


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:15:10