摘要 |
A system and method for synchronizing execution of multiple processes or threads executing to perform tests of one or more units under test. A test executive software application may enable a user to create a test sequence to test a unit under test, wherein the test sequence comprises a plurality of steps. In one embodiment, one or more synchronization steps may be included in the test sequence, in response to user input requesting inclusion of the synchronization steps. Each synchronization step may be configured to perform a synchronization operation, in response to user input specifying the synchronization operation. There may be multiple synchronization step types available for inclusion in a test sequence, wherein each synchronization step type corresponds to a particular type of synchronization object, such as a mutex synchronization object, a semaphore synchronization object, a queue synchronization object, etc. Configuring a synchronization step to perform a synchronization operation may comprise associating program instructions with the synchronization step, such that the program instructions are executable to perform the specified synchronization operation. The test sequence may then be executed, wherein executing the test sequence comprises executing the one or more synchronization steps, i.e., executing the program instructions associated with the one or more synchronization steps in order to perform the specified synchronization operations. The test sequence may be executed multiple times concurrently, e.g., by multiple threads or processes, and the one or more synchronization steps in the test sequence may coordinate the execution of the multiple threads or processes to test a unit under test, according to the synchronization operations specified by the user.
|