Running Test Cases in Parallel

A concurrent, or multithreaded, script is one in which multiple statements can execute in parallel. Concurrency allows you to more effectively test distributed systems, by permitting multiple client applications to submit requests to a server simultaneously.

The 4Test language fully supports the development of concurrent scripts which enables a script to:

  • Create and coordinate multiple concurrent threads.
  • Protect access to variables, which are global to all threads.
  • Synchronize threads with semaphores.
  • Protect critical sections of code for atomic operations.
  • Recover from errors in the event of script deadlock.