NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a test prerequisite?

Is there a way to set prerequisite on a particular test in TestStand sequence?  For example, in my sequence I have Test1, Test2, Test3, and Test4.  Test3 is prerequisite of Test4.  These tests are Auto Scheduled. 

 

Thanks

0 Kudos
Message 1 of 4
(3,097 Views)

First of all, you can do this using preconditions.

But as a second point: Why do you autoschedule Test3 and Test4 independantly if they do depend one one another. Simply put both tests in the correct order in the autoscheduler section and you will not have to deal with preconditions....

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(3,089 Views)

I failed to mention that these tests test multiple UUTs and can run at the same time in different socket (thread).  And these tests depend on available resources to run.  Setting precondition or ordering them correctly will work on testing a single UUT.  I might need to set a FileGlobals variable dependency?  Or somehow denote a test depends on another test.

 

Thanks in advance.

 

0 Kudos
Message 3 of 4
(3,075 Views)

Preconditions are for skipping test when they don't apply. It sounds like you might want to wait until you are sure a test has already executed. In that case, you could use a Notification.

 

Note that if you wait for a Notification before Test 4 in its AutoSchedule block, you'll be holding the resource for that block while you wait. Depending on your situation that might or might not matter. I'm assuming you want to wait for at least one socket to execute Test 3 before any socket executes Test 4 or you would just put them in order in the same AutoSchedule block

 

 

 

 

0 Kudos
Message 4 of 4
(3,046 Views)