Forum Discussion
AlexeyK
13 years agoSmartBear Alumni (Retired)
Corby,
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();
Related Content
- 3 years ago
- 4 years ago
- 3 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago