Customizing Database Logging Expressions

When TestStand starts logging data to a database, it creates a temporary Logging property in the sequence context to evaluate expressions.

The Logging property contains subproperties that provide information about database settings, process model data structures, and the results TestStand processes. As the Logging property processes the result list, TestStand updates the subproperties of the Logging property to refer to the UUT result, step result, and the property result TestStand is processing. You can reference the Logging subproperties in the precondition and value expressions you specify for schema statements and columns.

The Logging property contains the following subproperties:

  • UUTResult—The UUT result TestStand is processing. When TestStand is processing a step or a subproperty, this property contains the UUT result that contains the step result or subproperty.
  • StepResult—The step result TestStand is processing. When TestStand is processing a subproperty, this property holds the step result that contains the subproperty. When TestStand is processing a UUT result, this property contains the result of the sequence call in the process model that calls the Main sequence in the client file.
  • PropertyResult—The subproperty of the step result TestStand is processing. When TestStand is not processing a subproperty, this property does not exist.
  • PropertyResultDetails—Information about the subproperty of the step result TestStand is processing. When TestStand is not processing a subproperty, this container does not exist.
  • ExecutionOrder—A numeric value TestStand increments after it processes each step result.
  • StartDate—The date on which the UUT test began. This property is an instance of the DateDetails custom data type.
  • StartTime—The time at which the UUT test began. This property is an instance of the TimeDetails custom data type.
  • UUT—Specifies the serial number, test socket index, and other information about the UUT. This property is an instance of the UUT custom data type.
  • DatabaseOptions—The process model database settings you configure in the Database Options dialog box. This property is an instance of the DatabaseOptions custom data type.
  • StationInfo—The station ID and the user name. This property is an instance of the StationInfo custom data type.

The TestStand process model files define the structure of the DateDetails, TimeDetails, UUT, DatabaseOptions, and StationInfo custom data types.