Forum Discussion
AlexeyK
Alumni
14 years agoCorby,
You can use .NET assemblies in your test. See http://smartbear.com/support/viewarticle/11403/ for complete information.
To create and lock a mutex, you can use the following code:
// Create a new mutex
var myMutex = dotNET.System_Threading.Mutex.zctor_3(false, "MyMutex");
// Lock the mutex
myMutex.WaitOne();
If needed, unlock the mutex at the end of the test run:
// Release mutex
myMutex.ReleaseMutex();