Reputation: 1237
I have a question regarding Jmeter. I need to send api to the server. The problem is that I am not familiar with this sort of type. I have done it from UI, but If I sent it from Jmeter it not sent all parameters. here is the call from the developer tool, and what I have tried via Jmeter. The problem is that Jmeter not sent the request as the browser sent.provided a PICs from browser (white PIC) and Jmeter (Black), even though I copied the same request. can someone advice?
*** I tried to create the body using parameters and still Jmeter not send all the parameters as in the browser. it added content type and encoding I do not know what to add, that it will be exactly as in browser
Body as code from browser, that I want Jmeter to send to server:
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="selectcheck"
-1
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="target_complete_rate"
100
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="test"
true
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="active"
1
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="site"
22007
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="start_day"
16
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="start_month"
5
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="start_year"
2019
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="end_day"
17
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="end_month"
5
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="end_year"
2019
------WebKitFormBoundaryA3J5COTe7Q4F39
Content-Disposition: form-data; name="name"
Sample request 1
------WebKitFormBoundaryA3J5COTe7Q4F39--
[[1 Call from browser]
[][2 Call from browser]
[][3 Header from browser]
[][4 Jmeter sampler buddy before run]
[][5 Jmeter header before run]
[][6 Jmeter results request not sent full]
[][7 Jmeter results header]
[][8 Jmeter response invalid Since request is wrong]
[][9 try using parameters]
[][10 request using parameters]
[][11 response using parameters]
Upvotes: 0
Views: 150
Reputation: 1999
Please compare both the requests to check any dynamic variable or any difference. This might give some more info about your issue. It might be due to correlation.
One thing which I notice is that sessionID variable is same for both the request. Usually, it should be correlated as it is a dynamic parameter.
Upvotes: 0