Namespace: OpenEdge.ABLUnit.Model
Class
TestCase
Parent classes:
Inherits: OpenEdge.ABLUnit.Model.TestEntity
Implements: OpenEdge.ABLUnit.Model.IRunnableEntity, OpenEdge.Logging.ISupportLogging

Copyright (c) 2020-2021 by Progress Software Corporation. All rights reserved.
File:TestCase
Purpose:A TestEntity that is capable of running test classes and procedures,
their lifecycle methods and their test methods
Author(s):pjudge
Created:2019-12-09
/* Logger for this test. Typically set by ABLRunner




Method Summary
Options Name Purpose
DestroyEntity () /* Stops/destroys this test entity */
CHARACTER GetExpectedErrorType (character) /* Expands the given expected error type if it is a recognised abbreviation. @param character An abbreviated OOABL (error) type @return character A 'resolved' error type */
InstantiateEntity () /* Runs/new's this test entity */
InvokeTestMethod (TestInfo) /* Performs the invocation of the test method in this test entity @param TestInfo Data about the method to run */
RunChild (TestEntity) /* Runs a child test entity in the test entity. @param TestEntity The test method to run */
RunLifecycleMethods (ITestInfoList, TestEntity, logical) /* Runs the lifecycle methods for a given annotation. All lifecycle methods are run, even if one fails. @param ITestInfoList The list of lifecycle methods @param TestEntity The test for which the lifecycle methods were run (class/procedure/method) @param logical If TRUE then a failure will increment the number of test in the entity's summary; if FALSE or UNKNOWN the number of tests is not changed */
StartEntity () /* Runs/starts the test entity This method adds a TestResult iff there's an error or failure. */
StopEntity () /* Stops/destroys the test entity */

Constructor Summary
Options Name Purpose
TestCase (integer) /* Constructor @param integer The id of the test entity */

Property Summary
Options Name Purpose
OpenEdge.ABLUnit.Reflection.TestAnnotationInfo AnnotationInfo
Progress.Lang.Object Entity
OpenEdge.Logging.ILogWriter Logger


Method Detail
Top

DestroyEntity ()

/* Stops/destroys this test entity
Top

CHARACTER GetExpectedErrorType (character)

/* Expands the given expected error type if it is a recognised abbreviation.
Parameters:
pShortError CHARACTER
Returns CHARACTER
character A 'resolved' error type
Top

InstantiateEntity ()

/* Runs/new's this test entity
Top

InvokeTestMethod (TestInfo)

/* Performs the invocation of the test method in this test entity
Parameters:
pMethodInfo OpenEdge.ABLUnit.Reflection.TestInfo
Top

RunChild (TestEntity)

/* Runs a child test entity in the test entity.
Parameters:
pChild OpenEdge.ABLUnit.Model.TestEntity
Top

RunLifecycleMethods (ITestInfoList, TestEntity, logical)

/* Runs the lifecycle methods for a given annotation.
All lifecycle methods are run, even if one fails.
or UNKNOWN the number of tests is not changed
Parameters:
pMethods OpenEdge.ABLUnit.Reflection.ITestInfoList
pEntity OpenEdge.ABLUnit.Model.TestEntity
pIncrementTestOnFailure LOGICAL
Top

StartEntity ()

/* Runs/starts the test entity
This method adds a TestResult iff there's an error or failure.
Top

StopEntity ()

/* Stops/destroys the test entity


Constructor Detail
Top

TestCase (integer)

/* Constructor
Parameters:
id1 INTEGER


Property Detail
Top

OpenEdge.ABLUnit.Reflection.TestAnnotationInfo AnnotationInfo

Returns OpenEdge.ABLUnit.Reflection.TestAnnotationInfo
Top

Progress.Lang.Object Entity

Returns Progress.Lang.Object
Top

OpenEdge.Logging.ILogWriter Logger

Returns OpenEdge.Logging.ILogWriter


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15