Printer FriendlyEmail Article Link

Synchronizing Multi-threaded Test Cases Using Signal Actions in Spirent iTest

Summary

iTest supports multi-threaded execution: Run tests (of the same session type) in parallel without conflict.

The signal group of actions enable a variety of options:

  • Pause a thread until it is signaled to proceed by a specified event. For example, to encapsulate the procedure that opens a session so that no other steps in the session will proceed until the session is open
  • Pause particular threads of execution until other threads notify (signal) them that it is safe to proceed. This capability enables you to encapsulate test cases and to improve the multi-threaded aspects of test cases
  • Pause threads until explicitly signaled. For example, you can begin a test case by initializing several devices and other steps or procedures cannot use the devices until initialization is complete
  • Advanced users can combine synchronization actions to prevent deadlock, starvation, livelock, and other common liveness issues

Course: New in iTest 4.0
Run Time: 2 min
Tags: iTest, multi-threaded, Synchronization

Content


Product : Velocity Portfolio,Velocity iTest