04-04-2019 06:53 AM
Hello All,
Can anyone tell me how to use notification step in test stand with multiple main sequence.
for example, i have Test_1.seq and Test_2.seq and expect to start run these two sequence in parallel. but my requirement is Test_1.seq has to complete the execution first and send notification to Test_2.seq, where as Test_2.seq has to wait until it gets notification from Test_1.seq. If Test_2.seq gets notification from Test_1.seq it can proceed for rest of the testing.
Any idea how this can be achieved in teststand?
thanks,
kalpana
04-04-2019 08:34 AM
In your Test_1 sequence, you create a notification. Then, you call Test_2 in a separate thread. In Test_2, you put a Notification wait using the name you used to create the notification. When ready in Test_1, you send a notification (Set or Pulse) to all threads or to just one thread. You can pass a value. Then you wait in Test_1 that Test_2 finishes its task.
Notice that you do not need to have 2 separate sequence files. You can have more than 1 sequence in the same sequence file.
Attached in an example of what I describe above; using only one sequence file, MainSequence is Test_1.
P.S.: You might want to look into the Batch or Parallel process models. A lot of the heavy lifting has been done when it comes to parallel testing.
04-05-2019 04:42 AM
Hi,
Thanks for your reply. it is working now. also i would like to know is there any option to know which slots or sockets currently running in test stand.
04-05-2019 07:44 AM
If you use the parallel or batch process model, you have access to "RunState.TestSockets.MyIndex" that gives you an index starting at 0 for each of the parallel tests.