alibaba82
18 years agoSuper Contributor
putting dealy in groovy script
hello,
I have a function in my external groovy script which updates my request and puts some timestamp. I put a 1 second delay so that i get unique timestamp. Is this the right way to do a delay ? I have a feeling that this is putting the soapui application in a sleep state.
GlobalFunctions gb = new GlobalFunctions()
gb.CreateRandomUser(context, "CreateUser - Line1 Empty")
Thread.currentThread().sleep(1000)
gb.CreateRandomUser(context, "CreateUser - Line1 Missing")
I have a function in my external groovy script which updates my request and puts some timestamp. I put a 1 second delay so that i get unique timestamp. Is this the right way to do a delay ? I have a feeling that this is putting the soapui application in a sleep state.
GlobalFunctions gb = new GlobalFunctions()
gb.CreateRandomUser(context, "CreateUser - Line1 Empty")
Thread.currentThread().sleep(1000)
gb.CreateRandomUser(context, "CreateUser - Line1 Missing")