Namespace: Consultingwerk.SmartUnit
Class 
SmartUnit Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:SmartUnit
Purpose:SmartUnit core test execution
Description:Invoked by the smartunit.p
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Mar 22 10:46:21 CET 2013



Top Method Summary
Options Name Purpose
+ 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.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

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
+ HANDLE PctLibrary
+ LOGICAL Verbose


Method Detail
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.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


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 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-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:32:16