09-16-2003 01:56 AM
09-19-2003 02:59 PM
09-21-2003 05:09 AM
09-23-2003 10:08 AM
10-26-2011 05:21 PM
Hello,
I'm using a batch model. Some tests are common to all test sockets, so I only need them to execute once and skipped on the other sockets, but I'd like to get the results of all steps into all the batch reports. My setup creates a test report for each socket, and also a test report for the batch.
For example if I were running 2 sockets the following tests:
- Test 1 is executed only on 1 test socket (whichever comes first) ---> lets say Socket 1 executed this step
- Test 2 is executed on all sockets (once at time)
My test results would look like this at the end of the test:
Socket 1 report:
- Test1 Passed
- Test2 Passed
Socket 2 report:
-Test1 Skipped
-Test2 Passed
I would like to have that value reported also in socket 2, not a skipped. (the test result can be of any type:array, numeric,etc)
I'm using NI TestStand 4.01f1 and NI LabView 8.5
I would appreciate your help.
-- Regards, Kano
10-27-2011 12:30 PM
You could do the following, though it's admittedly a bit complicated (feel free to add something to the idea exchange for handling this better, or maybe someone will have a simpler solution):
(have a pre-created stationglobal, something like StationGlobals.OneThreadOnlyStatus)
Batch Sync Step - One thread only section enter
Test 1 - With results collection disabled
Statement step - StationGlobals.OneThreadOnlyStatus = RunState.PreviousStep.Result.Status
Batch Sync Step - One thread only section exit
Batch Sync Step - Parallel enter - to make sure access to the station global is synchronous with respect to it being set somewhere else
None adapter pass/fail step that fails based on status in StationGlobals.OneThreadOnlyStatus - You can name it something like Test 1 Result
Batch Sync Step - exit
Anyway, hope this helps,
-Doug