Top Method Summary
Options Name Purpose
# Consultingwerk.ISerializable DeserializeParameterObject (longchar) Deserializes the parameter object
+ LOGICAL Execute (ITestSuite) Executes the test suite described by the ITestSuite instance
# ExecuteAssertions (handle, JsonArray, int64, logical, IDataSourceQueryInfo) Executes the provided Assertions
# ExecuteCanFindAssertions (handle, JsonArray, logical) Executes the Can Find Assertions
# ExecuteDataSourceQueryAssertion (IDataSourceQueryInfo, character) Executes the assertion for "DataSourceQuery"
# ExecuteIndexNamesAssertion (IDataSourceQueryInfo, JsonArray) Executes the assertion for "IndexNames"
# ExecuteMaxReadsAssertions (JsonObject) Executes the Can Find Assertions
# ExecuteMaxRuntimeAssertion (int64, int64) Executes the MaxRuntime Assertion
# ExecuteNumResultsAssertions (handle, JsonObject) Executes the NumResults Assertions
+ ExecuteScenario (character, dataset-handle) Executes a scenario
+ ExecuteScenario (IScenario, character, dataset-handle) Executes a scenario
+ ExecuteScenario (IScenario, dataset-handle) Executes a scenario
# Consultingwerk.SmartUnit.TestRunner.TestResult ExecuteTest (ITestSuite, character, character) Executes a scenario as an unit test
# ExecuteWholeIndexAssertion (IDataSourceQueryInfo, JsonArray) Executes the assertion for "WholeIndex"
# Consultingwerk.OERA.IFetchDataRequest FetchDataRequestOfScenario (IScenario) Returns the FetchDataRequest object for the given scenario
# Consultingwerk.OERA.IDataAccessFactory InitializeMockDataAccessFactory (character[]) Initializes the Mock Data Access Factory
# Consultingwerk.Framework.IServiceContainer InitializeTestServices (character[]) Initializes a new Service Container with the test services

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

Top Property Summary
Options Name Purpose
# LOGICAL LogMessages
+ CHARACTER TestClassName
+ CHARACTER TestsuiteName


Method Detail
Top

PROTECTED Consultingwerk.ISerializable DeserializeParameterObject (longchar)

Purpose: Deserializes the parameter object
Notes:

Parameters:
pcParameter LONGCHAR
The LONGCHAR representation of the parameter object
Returns Consultingwerk.ISerializable
The deserialized parameter object
Top

PUBLIC LOGICAL Execute (ITestSuite)

Purpose: Executes the test suite described by the ITestSuite instance
Notes:

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

PROTECTED ExecuteAssertions (handle, JsonArray, int64, logical, IDataSourceQueryInfo)

Purpose: Executes the provided Assertions
Notes:

Parameters:
phDataset HANDLE
The handle of the dataset with the read result
poAssertions Progress.Json.ObjectModel.JsonArray
The JsonArray with the assertions to execute
piRuntime INT64
The runtime of the FetchData request in msecs
plSkipMaxRuntimeTest LOGICAL
Logical value indicating if the MaxRuntime test/assertion should be skipped
poDataSourceQueryInfo Consultingwerk.OERA.IDataSourceQueryInfo
The IDataSourceQueryInfo with the query details from the request
Top

PROTECTED ExecuteCanFindAssertions (handle, JsonArray, logical)

Purpose: Executes the Can Find Assertions
Notes:

Parameters:
phDataset HANDLE
The handle of the dataset to examine
poCanFinds Progress.Json.ObjectModel.JsonArray
The JsonArray with the can-find criteria
plMustExist LOGICAL
Logical value indicating if the test performs CAN-FIND or NOT CAN-FIND
Top

PROTECTED ExecuteDataSourceQueryAssertion (IDataSourceQueryInfo, character)

Purpose: Executes the assertion for "DataSourceQuery"
Notes:

Parameters:
poDataSourceQueryInfo Consultingwerk.OERA.IDataSourceQueryInfo
The IDataSourceQueryInfo describing the DataSource query
pcDataSourceQuery CHARACTER
The expected query string
Top

PROTECTED ExecuteIndexNamesAssertion (IDataSourceQueryInfo, JsonArray)

Purpose: Executes the assertion for "IndexNames"
Notes:

Parameters:
poDataSourceQueryInfo Consultingwerk.OERA.IDataSourceQueryInfo
The IDataSourceQueryInfo describing the DataSource query
poIndexNames Progress.Json.ObjectModel.JsonArray
The JsonArray with the expected index names (one per data-source buffer)
Top

PROTECTED ExecuteMaxReadsAssertions (JsonObject)

Purpose: Executes the Can Find Assertions
Notes:

Parameters:
poMaxReads Progress.Json.ObjectModel.JsonObject
The JsonObject with th eMaxReads criteria
Top

PROTECTED ExecuteMaxRuntimeAssertion (int64, int64)

Purpose: Executes the MaxRuntime Assertion
Notes:

Parameters:
piRuntime INT64
The actual runtime of the FetchData request
piMaxRuntime INT64
The maximum allowed runtime of the FetchData request
Top

PROTECTED ExecuteNumResultsAssertions (handle, JsonObject)

Purpose: Executes the NumResults Assertions
Notes:

Parameters:
phDataset HANDLE
The handle of the dataset to examine
poNumRecords Progress.Json.ObjectModel.JsonObject
The JsonObject with the can find criteria
Top

PUBLIC ExecuteScenario (character, dataset-handle)

Purpose: Executes a scenario
Notes:

Parameters:
pcFileName CHARACTER
The name of the .scenario file
phDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE The handle of the ProDataset to be returned
Top

PUBLIC ExecuteScenario (IScenario, character, dataset-handle)

Purpose: Executes a scenario
Notes:

Parameters:
poScenario Consultingwerk.SmartUnit.OERA.RetrieveDataScenario.IScenario
The Scenario instance to execute
pcTestOptions CHARACTER
The testOptions attribute of the test definition (e.g. SkipMaxRuntimeTest)
phDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE The handle of the ProDataset to be returned
Top

PUBLIC ExecuteScenario (IScenario, dataset-handle)

Purpose: Executes a scenario
Notes:

Parameters:
poScenario Consultingwerk.SmartUnit.OERA.RetrieveDataScenario.IScenario
The Scenario instance to execute
phDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE The handle of the ProDataset to be returned
Top

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

Purpose: Executes a scenario as an unit test
Notes:

Parameters:
poTestSuite Consultingwerk.SmartUnit.ITestSuite
The reference to the current test suite
pcLogFolder CHARACTER
The name of the folder to use for log files etc.
pcScenario CHARACTER
The name of the scenario to execute
Returns Consultingwerk.SmartUnit.TestRunner.TestResult
The TestResult of the executed test
Top

PROTECTED ExecuteWholeIndexAssertion (IDataSourceQueryInfo, JsonArray)

Purpose: Executes the assertion for "WholeIndex"
Notes:

Parameters:
poDataSourceQueryInfo Consultingwerk.OERA.IDataSourceQueryInfo
The IDataSourceQueryInfo describing the DataSource query
poWholeIndex Progress.Json.ObjectModel.JsonArray
The JsonArray with the expected whole-index values (one per data-source buffer)
Top

PROTECTED Consultingwerk.OERA.IFetchDataRequest FetchDataRequestOfScenario (IScenario)

Purpose: Returns the FetchDataRequest object for the given scenario
Notes:

Parameters:
poScenario Consultingwerk.SmartUnit.OERA.RetrieveDataScenario.IScenario
The scenario instance
Returns Consultingwerk.OERA.IFetchDataRequest
The FetchDataRequest instance
Top

PROTECTED Consultingwerk.OERA.IDataAccessFactory InitializeMockDataAccessFactory (character[])

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 Consultingwerk.OERA.IDataAccessFactory
The IDataAccessFactory instance
Top

PROTECTED Consultingwerk.Framework.IServiceContainer InitializeTestServices (character[])

Purpose: Initializes a new Service Container with the test services
Notes: Based on a comma delimited list of service.xml files. The new
service container will be used as the overloading service container
of the default service container

Parameters:
pcConfiguration CHARACTER
The configuration data
Returns Consultingwerk.Framework.IServiceContainer
The IServiceContainer instance


Constructor Detail
Top

PUBLIC ScenarioRunner ()

Purpose: Constructor for the ScenarioRunner class
Notes:



Property Detail
Top

PROTECTED LOGICAL LogMessages


Returns LOGICAL
Top

PUBLIC CHARACTER TestClassName


Returns CHARACTER
Top

PUBLIC CHARACTER TestsuiteName


Returns CHARACTER


Temp-Table Detail


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2024 19:01:43