08-18-2009 06:24 PM
I'm using TestStand's build in logging feature to write results to a database. My problem is that the "name" field of the MEAS_NUMERICLIMIT table is empty for test steps that are of the type "NumericLimitTest". I want this set to the name of the test step in this case but all the variables that should have the name are set to NULL for a NumerLimitTest. These include:
NameOf(Logging.StepResultProperty) (This is the normal value the name field is set to)
Logging.StepResult.TS.StepType
I need two things:
1. The variable containing the name of the step when its a NumericLimitTest type.
2. The variable containing the type of step. Logging.StepResult.TS.StepType can't be used because it's NULL when the test step
is a NumerLimitTest type.
Can someone help?
Thanks
08-18-2009 06:36 PM
I've done more experimenting with TestStand, and tried the following. Both failed. It looks like the database logging code does not fill out the name field when the test is a NumerLimitTest type.
Expression to set the value of the name field: Logging.StepResult.TS.StepType == "NumericLimitTest" ? Logging.StepResult.TS.StepName : NameOf(Logging.StepResultProperty)
Result: NULL
Expression to set the value of the name field: Logging.StepResult.TS.StepType == "NumericLimitTest" ? "A" :"B"
Result: NULL
Expression to set the value of the name field: Logging.StepResult.TS.StepType
Result: NULL
08-25-2009 04:03 PM
Mike,
What version of TestStand are you using? Also are you using a custom step type named NumerLimitTest, or the NumercLimitTest provided with TestStand?
08-25-2009 06:06 PM
Hi Richard:
I am using TestStand Version 3.1 and TestStand's NumericLimitTest type.
Mike
08-26-2009 04:46 PM