Forum Discussion
Alcatel-Lucent__10
14 years agoOccasional Contributor
I managed to solve this issue in the following way :
In the loadtest setup script, I have added :
context.lock = new Object()
In the testcase scripts, I have added following code :
synchronized(context.LoadTestContext.lock) {
TotalnbrFBN = context.LoadTestContext.getProperty("TotalNbrFBN").toInteger()
TotalNbrFBN++
context.LoadTestContext.setProperty("TotalNbrFBN",TotalNbrFBN.toString())
}
In the loadtest setup script, I have added :
context.lock = new Object()
In the testcase scripts, I have added following code :
synchronized(context.LoadTestContext.lock) {
TotalnbrFBN = context.LoadTestContext.getProperty("TotalNbrFBN").toInteger()
TotalNbrFBN++
context.LoadTestContext.setProperty("TotalNbrFBN",TotalNbrFBN.toString())
}