- labels: 348546 --> Scripting Enhancements
Support of parameters of type ObjectIdentifier, Real
and Bitstring in IF expressions
According to the description of feature 618172, the
following datatypes are not supported in IF expressions:
Real, Double, Null, BitString, OctetString, Date, Time,
ObjectIdentifier, DeviceIdentifier, PropertyIdentifier
So far I did not encounter any test steps that make use
of script parameters of type Double, Null, OctetString,
DeviceIdentifier and PropertyIdentifier in IF expressions.
It is also not worth the effort to modify the
implementation for the Date and Time datatypes since
steps 9 to 11 of the Notification Time Tests (Test
7.3.2.23.11) are probably the only ones that require the
support of script parameters of these types in IF
expressions. The tasks to be performed in these steps
will be fulfilled by CHECK statements.
However, the flow of several scripts is controlled by the
use of script parameters of type Bitstring, Real and
ObjectIdentifier in IF expressions. At least these types
should be supported.
Since many tests may be applied to different object
types, the use of the ObjectIdentifier in IF expressions
would increase the reusability of the scripts. Note that
only the object type needs to be evaluated. The
instance number does not matter.
Proposed syntax:
IF (<script parameter of type ObjectIdentifier> =
<object type>, ?)