Forum Discussion
SmartBear_Suppo
Alumni
13 years agoHi!
MockServices are thread-safe. But you need to synchronize on shared objects, e.g.
You could also create atomicvariables (like AtomicBoolean) in the MockService's startUp script:
...and then use it later on like this:
Regards
Henrik
SmartBear Software
synchronized(this){
%MYSCRIPT%
}
MockServices are thread-safe. But you need to synchronize on shared objects, e.g.
synchronized( testRunner.testCase.testSuite.project ){
%MYSCRIPT%
}
You could also create atomicvariables (like AtomicBoolean) in the MockService's startUp script:
context.myVariable = new AtomicBoolean()
...and then use it later on like this:
context.myVariable.get()
Regards
Henrik
SmartBear Software