jeudi 11 avril 2019

How to make JMeter to accept multiple API request 'ID' to get accept for one thread.?

SO im running JMeter for Performance Testing with say 50 users, and my thread function is to create a 'Proposal' using one user login. In Jmeter i prepare a thread which can create 50 Proposals using 50 different ID's.

Now, the problem is when i make Thread Group = 1 or 50(for users listed in CSV) then it will run except the HTTP Request where i added 5000+ Parameters (Say parameters are part of Proposal where one user can add Multiple parameters in one Proposal). If i add just 3 or 10 parameters then its passing with 200 code and if try to add more say 100+ then its giving me below error:

I Tried changing the API but no use, because i dont think its the problem with API call as its passing for 3+ parameters and only failing if i add multiple.

Example:

For pass: 200 Response Code

{"proposalId":"${proposal_guid}","propertyIds":["5011","5006","5105"],"internalDueDate":1554795237000,"action":"SAVE"}

5011, 5006 are the parameters for my user Proposal.

Failing for :

{"proposalId":"${proposal_guid}","propertyIds":["5039","5073","5055","1987301","1987310","1987400","1988300","1988301","1988302","1988303","1988304","1988305","1988306","1988307","1988308","1988309","1987401","1988310","1988311","1988312","1988313","1988314","1988315","1988316"],"internalDueDate":1554795237000,"action":"SAVE"}

ERROR:

Thread Name: Thread Group 1-1

Sample Start: 2019-04-12 11:45:28 IST

Load time: 1196
Connect Time: 0

Latency: 0
Size in bytes: 2817
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 2817
Sample Count: 1
Error Count: 1

Data type ("text"|"bin"|""): text

Response code: Non HTTP response code: java.net.SocketException

Response message: Non HTTP response message: Connection reset by peer: socket write error

HTTPSampleResult fields: ContentType: DataEncoding: null

It should pass with Response code:200 but not sure why its failing for multiple instances even if its for single User.

Aucun commentaire:

Enregistrer un commentaire