Namespace: OpenEdge.ABLUnit.Model
Class
TestProcedure
Parent classes:
Inherits: OpenEdge.ABLUnit.Model.TestCase

Copyright (c) 2013-2014, 2019-2020 by Progress Software Corporation. All rights reserved.
File:TestProcedure
Author(s):svutla
Created:Fri Sep 20 22:47:19 IST 2013
/* Constructor




Method Summary
Options Name Purpose
addTestEntity (TestEntity)
Inherited from OpenEdge.ABLUnit.Model.TestEntity
AddTestResult (TestTestResult) /* Adds a test result for this entity. NOTE: This method increments the Summary's counts so only call it AFTER the result is updated/complete Entities like a method or a class/procedure may have one or more before- and after- lifecycle methods in addition to the 'main' or test method. @param TestTestResult The current result */
Inherited from OpenEdge.ABLUnit.Model.TestEntity
DestroyEntity () /* Stops/destroys this test entity */
Overrides OpenEdge.ABLUnit.Model.TestCase:DestroyEntity ()
INTEGER getChildrenSize ()
Inherited from OpenEdge.ABLUnit.Model.TestEntity
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 */
Inherited from OpenEdge.ABLUnit.Model.TestCase
Array getTestEntities ()
Inherited from OpenEdge.ABLUnit.Model.TestEntity
TestTestResult GetTestResults () /* Returns an array of test results for this entity @return TestTestResult[] The results for this entity. May be indeterminate */
Inherited from OpenEdge.ABLUnit.Model.TestEntity
InstantiateEntity () /* Runs/new's this test entity */
Overrides OpenEdge.ABLUnit.Model.TestCase:InstantiateEntity ()
InvokeTestMethod (TestInfo) /* Performs the invocation of the test method in this test entity @param TestInfo Data about the method to run */
Overrides OpenEdge.ABLUnit.Model.TestCase:InvokeTestMethod (TestInfo)
RunChild (TestEntity) /* Runs a child test entity in the test entity. @param TestEntity The test method to run */
Inherited from OpenEdge.ABLUnit.Model.TestCase
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 */
Inherited from OpenEdge.ABLUnit.Model.TestCase
StartEntity () /* Runs/starts the test entity This method adds a TestResult iff there's an error or failure. */
Inherited from OpenEdge.ABLUnit.Model.TestCase
StopEntity () /* Stops/destroys the test entity */
Inherited from OpenEdge.ABLUnit.Model.TestCase

Constructor Summary
Options Name Purpose
TestProcedure (integer) /* Constructor @param integer The ID of this test entity */

Property Summary
Options Name Purpose
TestAnnotationInfo AnnotationInfo
Inherited from OpenEdge.ABLUnit.Model.TestCase
Progress.Lang.Object Entity
Inherited from OpenEdge.ABLUnit.Model.TestCase
INTEGER id
Inherited from OpenEdge.ABLUnit.Model.TestEntity
CHARACTER name
Inherited from OpenEdge.ABLUnit.Model.TestEntity
TestTypeResult Summary
Inherited from OpenEdge.ABLUnit.Model.TestEntity
DECIMAL timeTaken
Inherited from OpenEdge.ABLUnit.Model.TestEntity


Method Detail
Top

PUBLIC addTestEntity (TestEntity)

Inherited from OpenEdge.ABLUnit.Model.TestEntity
Parameters:
testEntity TestEntity
Top

PUBLIC AddTestResult (TestTestResult)

Inherited from OpenEdge.ABLUnit.Model.TestEntity
/* Adds a test result for this entity.
NOTE: This method increments the Summary's counts so only call it AFTER the
result is updated/complete
Entities like a method or a class/procedure may have one or more before- and after-
lifecycle methods in addition to the 'main' or test method.
Parameters:
pResult TestTestResult
Top

PROTECTED DestroyEntity ()

Overrides OpenEdge.ABLUnit.Model.TestCase:DestroyEntity ()
/* Stops/destroys this test entity
Top

PUBLIC INTEGER getChildrenSize ()

Inherited from OpenEdge.ABLUnit.Model.TestEntity
Returns INTEGER
Top

PROTECTED CHARACTER GetExpectedErrorType (character)

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

PUBLIC Array getTestEntities ()

Inherited from OpenEdge.ABLUnit.Model.TestEntity
Returns Array
Top

PUBLIC TestTestResult GetTestResults ()

Inherited from OpenEdge.ABLUnit.Model.TestEntity
/* Returns an array of test results for this entity
Returns TestTestResult
TestTestResult[] The results for this entity. May be indeterminate
Top

PROTECTED InstantiateEntity ()

Overrides OpenEdge.ABLUnit.Model.TestCase:InstantiateEntity ()
/* Runs/new's this test entity
Top

PROTECTED InvokeTestMethod (TestInfo)

Overrides OpenEdge.ABLUnit.Model.TestCase:InvokeTestMethod (TestInfo)
/* Performs the invocation of the test method in this test entity
Parameters:
pMethodInfo OpenEdge.ABLUnit.Reflection.TestInfo
Top

PUBLIC RunChild (TestEntity)

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

PROTECTED RunLifecycleMethods (ITestInfoList, TestEntity, logical)

Inherited from OpenEdge.ABLUnit.Model.TestCase
/* 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 ITestInfoList
pEntity TestEntity
pIncrementTestOnFailure LOGICAL
Top

PUBLIC StartEntity ()

Inherited from OpenEdge.ABLUnit.Model.TestCase
/* Runs/starts the test entity
This method adds a TestResult iff there's an error or failure.
Top

PUBLIC StopEntity ()

Inherited from OpenEdge.ABLUnit.Model.TestCase
/* Stops/destroys the test entity


Constructor Detail
Top

PUBLIC TestProcedure (integer)

/* Constructor
Parameters:
id1 INTEGER


Property Detail
Top

PUBLIC TestAnnotationInfo AnnotationInfo

Inherited from OpenEdge.ABLUnit.Model.TestCase
Returns TestAnnotationInfo
Top

PUBLIC Progress.Lang.Object Entity

Inherited from OpenEdge.ABLUnit.Model.TestCase
Returns Progress.Lang.Object
Top

PUBLIC INTEGER id

Inherited from OpenEdge.ABLUnit.Model.TestEntity
Returns INTEGER
Top

PUBLIC CHARACTER name

Inherited from OpenEdge.ABLUnit.Model.TestEntity
Returns CHARACTER
Top

PUBLIC TestTypeResult Summary

Inherited from OpenEdge.ABLUnit.Model.TestEntity
Returns TestTypeResult
Top

PUBLIC DECIMAL timeTaken

Inherited from OpenEdge.ABLUnit.Model.TestEntity
Returns DECIMAL


Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0