T4S4  19.1 C8540 A23673
Teamcenter Gateway for SAP S/4HANA API Reference
T4X::TNT::DemoCase Namespace Reference

Commands to retrieve information about the demo case currently being executed. They must only be called from within demo case namespaces. More...

Functions

 bindProperty propertyName ?localName?
 Make a variable added to the demo case with setProperties accessible under a local name. More...
 
 getActualFolder ?suffix?
 Returns the folder into which files created through tests will go. They will be compared against files in the expected folder. See getExpectedFolder. More...
 
 getElapsed
 Returns the amount of time value it took to execute the code in the code attribute. More...
 
 getErrorCode
 Returns the value of the ::errorCode variable produced by code in the bad attribute. More...
 
 getErrorInfo
 Returns the value of the ::errorInfo variable produced by code in the bad attribute. More...
 
 getErrorMessage
 Returns the message produced by code in the bad attribute. More...
 
 getErrorRaised
 Returns whether code in the bad attribute raised an error. More...
 
 getExpectedFolder ?suffix?
 Returns the folder containing files to be compared against files created through tests. More...
 
 getFullName
 Returns the name of the namespace representing the demo case currently being tested. More...
 
 getInputFolder ?suffix?
 Returns the folder containing input test data. More...
 
 getProperty propertyName
 
 getShortName
 Returns the short name of the namespace representing the demo case currently being tested. The short name is the namespace name relative to the namespace name of the demo suite, i.e. the result of removing the demo suite's namespace name from the beginning. More...
 
 getSimpleName
 Returns the simple name of the namespace representing the demo case currently being tested. The simple name is the result of calling namespace tail, i.e. the namespace name without leading names. More...
 
 hasProperty propertyName
 

Detailed Description

Commands to retrieve information about the demo case currently being executed. They must only be called from within demo case namespaces.

Function Documentation

◆ bindProperty()

T4X::TNT::DemoCase::bindProperty   propertyName ?localName?  

Make a variable added to the demo case with setProperties accessible under a local name.

Parameters
propertyNamename of the property
localNamename to be used in the code section

◆ getActualFolder()

T4X::TNT::DemoCase::getActualFolder   ?suffix?  

Returns the folder into which files created through tests will go. They will be compared against files in the expected folder. See getExpectedFolder.

Parameters
suffixstring to append to the folder's name.

◆ getElapsed()

T4X::TNT::DemoCase::getElapsed

Returns the amount of time value it took to execute the code in the code attribute.

◆ getErrorCode()

T4X::TNT::DemoCase::getErrorCode

Returns the value of the ::errorCode variable produced by code in the bad attribute.

◆ getErrorInfo()

T4X::TNT::DemoCase::getErrorInfo

Returns the value of the ::errorInfo variable produced by code in the bad attribute.

◆ getErrorMessage()

T4X::TNT::DemoCase::getErrorMessage

Returns the message produced by code in the bad attribute.

◆ getErrorRaised()

T4X::TNT::DemoCase::getErrorRaised

Returns whether code in the bad attribute raised an error.

◆ getExpectedFolder()

T4X::TNT::DemoCase::getExpectedFolder   ?suffix?  

Returns the folder containing files to be compared against files created through tests.

Parameters
suffixstring to append to the folder's name.

◆ getFullName()

T4X::TNT::DemoCase::getFullName

Returns the name of the namespace representing the demo case currently being tested.

◆ getInputFolder()

T4X::TNT::DemoCase::getInputFolder   ?suffix?  

Returns the folder containing input test data.

Parameters
suffixstring to append to the folder's name.

◆ getProperty()

T4X::TNT::DemoCase::getProperty   propertyName  
Parameters
propertyNamename of the property
Returns
the value of a variable added to the demo case with setProperties.

◆ getShortName()

T4X::TNT::DemoCase::getShortName

Returns the short name of the namespace representing the demo case currently being tested. The short name is the namespace name relative to the namespace name of the demo suite, i.e. the result of removing the demo suite's namespace name from the beginning.

◆ getSimpleName()

T4X::TNT::DemoCase::getSimpleName

Returns the simple name of the namespace representing the demo case currently being tested. The simple name is the result of calling namespace tail, i.e. the namespace name without leading names.

◆ hasProperty()

T4X::TNT::DemoCase::hasProperty   propertyName  
Parameters
propertyNamename of the property
Returns
a true value if the property was added to the demo case with setProperties, a false value otherwise