Top Method Summary
Options Name Purpose
+ CountTestsAndFailures (dataset) Counts the tests and failures for each eTestsuite
+ DisposeOverloadingFactory () Disposes the overloading Factory
+ DisposeOverloadingServiceContainer () Disposes the overloading service container
+ Consultingwerk.Studio.IClassAnnotationParser GetAnnotationParser (character, logical) Returns the reference to the IClassAnnotationParser instance that should be used bny this TestRunner instance
+ CHARACTER GetTestSuiteParameter (character) Returns the value of a PCTRun parameter
+ Consultingwerk.Framework.IFactory InitializeOverloadingFactory (character[]) Initializes a new factory
+ Consultingwerk.Framework.IServiceContainer InitializeOverloadingServiceContainer (character[]) Initializes a new service container
+ Consultingwerk.Framework.Collections.CharacterList ParseFileset (character) Parses a fileset
+ Consultingwerk.Framework.Collections.CharacterList ParseFileset (character, character) Parses a fileset
+ Consultingwerk.Framework.Collections.CharacterList ParseFilesetWithExtension (character, character) Parses a fileset
+ Consultingwerk.Framework.Collections.CharacterList ParseFilesetWithExtension (character, character, character) Parses a fileset
+ Consultingwerk.SmartUnit.ITestSuite ParseTestParameters (handle) Parses the SmartUnit Parameters
+ RaiseAfterTestClassEvent (ExecuteTestEventArgs) Raises the AfterTestClass event
+ RaiseAfterTestMethodEvent (ExecuteTestEventArgs) Raises the AfterTestMethod event
+ RaiseBeforeTestClassEvent (ExecuteTestEventArgs) Raises the BeforeTestClass event
+ RaiseBeforeTestMethodEvent (ExecuteTestEventArgs) Raises the BeforeTestMethod event
+ WriteTestResult (character, dataset) Writes the test result to a JUnit compatible XML file
- WriteTestResult (ListOutputWriter, character) Iterates the list of output writes and calls their WriteTo method

Top Constructor Summary
Options Name Purpose
- SmartUnit () Private Constructor of the SmartUnit class

Top Event Summary
Options Name Purpose
+ AfterTestClass (ExecuteTestEventArgs) Raised after a test class is executed
+ AfterTestMethod (ExecuteTestEventArgs) Raised after a test method is executed
+ BeforeTestClass (ExecuteTestEventArgs) Raised before a test class is executed
+ BeforeTestMethod (ExecuteTestEventArgs) Raised before a test method is executed

Top Property Summary
Options Name Purpose
+ LOGICAL Active
+ CHARACTER ClassNamePrefix
+ Consultingwerk.ListNameValuePair CurrentTestParameters
+ CHARACTER LogEntryTypes
+ LOGICAL LogFailedTest
+ HANDLE PctLibrary
+ LOGICAL Verbose


Method Detail
Top

PUBLIC CountTestsAndFailures (dataset)

Purpose: Counts the tests and failures for each eTestsuite
Notes: Also sets the corresponding fields

Parameters:
dsTestsuites DATASET dsTestsuites
The datasets with the test results
Top

PUBLIC DisposeOverloadingFactory ()

Purpose: Disposes the overloading Factory
Notes:

Top

PUBLIC DisposeOverloadingServiceContainer ()

Purpose: Disposes the overloading service container
Notes:

Top

PUBLIC Consultingwerk.Studio.IClassAnnotationParser GetAnnotationParser (character, logical)

Purpose: Returns the reference to the IClassAnnotationParser instance that
should be used bny this TestRunner instance
Notes: Factory method for the IClassAnnotationParser implementation

Parameters:
pcClassFileName CHARACTER
The name of the .cls file to parse
plForceXmlXref LOGICAL
Logical value indicating if on Windows the XmlXref based class annotation parser should be used
Returns Consultingwerk.Studio.IClassAnnotationParser
The reference to the IClassAnnotationParser instance that should be used bny this TestRunner instance
Top

PUBLIC CHARACTER GetTestSuiteParameter (character)

Purpose: Returns the value of a PCTRun parameter
Notes:

Parameters:
pcParameterName CHARACTER
The name of the parameter to return
Returns CHARACTER
The parameter value
Top

PUBLIC Consultingwerk.Framework.IFactory InitializeOverloadingFactory (character[])

Purpose: Initializes a new factory
Notes:

Parameters:
pcFileNames CHARACTER
The character extent with the names of the factory.xml files to load
Returns Consultingwerk.Framework.IFactory
The new Factory instance
Top

PUBLIC Consultingwerk.Framework.IServiceContainer InitializeOverloadingServiceContainer (character[])

Purpose: Initializes a new service container
Notes:

Parameters:
pcFileNames CHARACTER
The character extent with the names of the service.xml files to load
Returns Consultingwerk.Framework.IServiceContainer
The new Service Container instance
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList ParseFileset (character)

Purpose: Parses a fileset
Notes:

Parameters:
pcFileset CHARACTER
The fileset such as Consultingwerk.SmartUnitTest.*,Consultingwerk.Test.SingleTest
Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList with the names of the classes available
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList ParseFileset (character, character)

Purpose: Parses a fileset
Notes:

Parameters:
pcFileset CHARACTER
The fileset such as Consultingwerk.SmartUnitTest.*,Consultingwerk.Test.SingleTest
pcBaseFolder CHARACTER
The base folder to search for class names
Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList with the names of the classes available
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList ParseFilesetWithExtension (character, character)

Purpose: Parses a fileset
Notes:

Parameters:
pcFileset CHARACTER
The fileset such as Consultingwerk.SmartUnitTest.*,Consultingwerk.Test.SingleTest
pcExtension CHARACTER
The file extension to return
Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList with the names of the classes available
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList ParseFilesetWithExtension (character, character, character)

Purpose: Parses a fileset
Notes:

Parameters:
pcFileset CHARACTER
The fileset such as Consultingwerk.SmartUnitTest.*,Consultingwerk.Test.SingleTest
pcBaseFolder CHARACTER
The base folder to search for class names
pcExtension CHARACTER
The file extension to return
Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList with the names of the classes available
Top

PUBLIC Consultingwerk.SmartUnit.ITestSuite ParseTestParameters (handle)

Purpose: Parses the SmartUnit Parameters
Notes: Parameters are passed using PCTRun parameters

Parameters:
phPctLibrary HANDLE
The handle of the PCT library that allows access to the PCTRun parameters
Returns Consultingwerk.SmartUnit.ITestSuite
The ITestSuite instance with the parameters for the test suite
Top

PUBLIC RaiseAfterTestClassEvent (ExecuteTestEventArgs)

Purpose: Raises the AfterTestClass event
Notes:

Parameters:
poEventArgs Consultingwerk.SmartUnit.ExecuteTestEventArgs
The ExecuteTestEventArgs with the data for this event
Top

PUBLIC RaiseAfterTestMethodEvent (ExecuteTestEventArgs)

Purpose: Raises the AfterTestMethod event
Notes:

Parameters:
poEventArgs Consultingwerk.SmartUnit.ExecuteTestEventArgs
The ExecuteTestEventArgs with the data for this event
Top

PUBLIC RaiseBeforeTestClassEvent (ExecuteTestEventArgs)

Purpose: Raises the BeforeTestClass event
Notes:

Parameters:
poEventArgs Consultingwerk.SmartUnit.ExecuteTestEventArgs
The ExecuteTestEventArgs with the data for this event
Top

PUBLIC RaiseBeforeTestMethodEvent (ExecuteTestEventArgs)

Purpose: Raises the BeforeTestMethod event
Notes:

Parameters:
poEventArgs Consultingwerk.SmartUnit.ExecuteTestEventArgs
The ExecuteTestEventArgs with the data for this event
Top

PUBLIC WriteTestResult (character, dataset)

Purpose: Writes the test result to a JUnit compatible XML file
Notes:

Parameters:
pcOutputFile CHARACTER
The output file name to write to
dsTestsuites DATASET dsTestsuites
The dataset with the test result
Top

PRIVATE WriteTestResult (ListOutputWriter, character)

Purpose: Iterates the list of output writes and calls their WriteTo
method
Notes:

Parameters:
poWriters Consultingwerk.SmartUnit.Output.ListOutputWriter
The list of OutputWriter instances
pcOutputFile CHARACTER
The output file name to write to


Constructor Detail
Top

PRIVATE SmartUnit ()

Purpose: Private Constructor of the SmartUnit class
Notes: Disallow instance creation



Event Detail
Top

PUBLIC AfterTestClass (ExecuteTestEventArgs)

Purpose: Raised after a test class is executed
Notes:

Parameters:
e Consultingwerk.SmartUnit.ExecuteTestEventArgs
The ExecuteTestEventArgs with the data for the event
Top

PUBLIC AfterTestMethod (ExecuteTestEventArgs)

Purpose: Raised after a test method is executed
Notes:

Parameters:
e Consultingwerk.SmartUnit.ExecuteTestEventArgs
The ExecuteTestEventArgs with the data for the event
Top

PUBLIC BeforeTestClass (ExecuteTestEventArgs)

Purpose: Raised before a test class is executed
Notes:

Parameters:
e Consultingwerk.SmartUnit.ExecuteTestEventArgs
The ExecuteTestEventArgs with the data for the event
Top

PUBLIC BeforeTestMethod (ExecuteTestEventArgs)

Purpose: Raised before a test method is executed
Notes:

Parameters:
e Consultingwerk.SmartUnit.ExecuteTestEventArgs
The ExecuteTestEventArgs with the data for the event


Property Detail
Top

PUBLIC LOGICAL Active


Returns LOGICAL
Top

PUBLIC CHARACTER ClassNamePrefix


Returns CHARACTER
Top

PUBLIC Consultingwerk.ListNameValuePair CurrentTestParameters


Returns Consultingwerk.ListNameValuePair
Top

PUBLIC CHARACTER LogEntryTypes


Returns CHARACTER
Top

PUBLIC LOGICAL LogFailedTest


Returns LOGICAL
Top

PUBLIC HANDLE PctLibrary


Returns HANDLE
Top

PUBLIC LOGICAL Verbose


Returns LOGICAL


ProDataset Detail

ProDataset dsTestsuites

Member tables: eTestsuite, eTestcase


Temp-Table Detail

Temp-Table eTestcase

Defined in:

Temp-Table eTestsuite

Defined in:


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:22:12