Menu

#695 [soapUI5.2.1, jdk1.7, centos6.2] mockService has thread safe issue

v1.0 (example)
open
nobody
None
5
2016-01-26
2016-01-26
helloworld
No
  1. use jmeter to send rest requests to mockService
  2. the return script is below(extract one attribute from requestion, then add some prefix, then return by response):

import groovy.json. JsonSlurper

def slurper = new JsonSlurper()

def jsonReq = slurper.parseText(mockRequest.getRequestContent())
mockResponse.setResponseContent("{\"proxyRecordId\":\"pri_"+jsonReq.principal+"\" }")

Result: about 3%~15%result has problem (90000request by 2 minutes)

Analysis:
From the network capture with wireshark, sometimes, one duplicate response is for two requests. But different request must have different response as the script above.

please see the snapshot of with unwanted response.

1 Attachments

Discussion


Log in to post a comment.