03-04-2010 09:58 PM
How would one limit database results to only record the results from specific tests -
i.e. all those NI steps that have the word 'Test' in them (i.e. Pass / Fail Test; Numeric Limit Test etc.) ?
Thanks,
Ronnie
03-05-2010 05:42 PM
In the reporting options you can filter by an expression. Configure » Report Options. Under the contents tab, enable include step results. Select your report format as HTML report, you can then enter in a custom result filtering expression. If you did not want to get any of your steps that started with NI_Flow then you could put this into the box:
Left(Result.TS.StepType, 7) != "NI_Flow"
Result.TS.StepType will return the name of the step type. (action, pass/fail test, numeric limit test ) so you could filter doing something like Right(Result.TS.StepType, 4) == "Test" though i haven't hand a chance to test this out, this would be one way to only record items that are tests.
03-11-2010 10:32 PM - edited 03-11-2010 10:32 PM
Richard,
Sorry to take so long to acknoweledge your reply.
You mentioned that I should select HTML and use a filter expression from Configure Results.
I really want to filter for an Access database, so I am trying to use a Result Filtering Expression in the Database Options.
Following your example: Right(Result.TS.StepType, 4) == "Test"
gives the error of "Unknown variable or property name 'Result' "
Any ideas?
Thanks,
Ronnie
03-12-2010 01:21 PM
The context in the database options appears to be different. Going under database options and selecting the expression browser for the Result Filtering Expression shows that to ignore the flow control VIs for the database, you would need to use
Left(Logging.StepResult.TS.StepType, 7) != "NI_Flow"
so use Logging.StepResult.TS.StepType instead of Result.TS.StepType
03-15-2010 12:18 PM