I have implemented a mock service which mock a async soap web service and it's call back.When a request arrive with a unique id, mock service store it in a context like this (within Script):
context.put("requestid",mockerequest.requestid)
Then a call back is fired (from AfterScript) after few millisecond to show async behavior, using ThreadSleep .
From context, requestid is extracted like this,which is passed with callback result :
context.get("requestid")
It works fine with a single call. But when repeated requests are performed during load test, requestid in the context is changed.(next request is changing current reuestid ) and a callback is fired with a wrong request id.
Do SoapUI support any kind of session variable, where value will be preserved for each session to avoid this scenario ?
Aucun commentaire:
Enregistrer un commentaire