in Education by
I am new to jmeter. I have been experimenting on creating a jmeter script manually by inspecting the network log from chrome developer tools rather than directly recording the HTTPS script recorder due to certain restrictions. I have encountered a json Post request that has some query string parameters along with a request payload parameter. I have added the appropriate headers including the Content-Type: application/json header. But I am confused on how to pass both the query string parameter and the request payload in a single request. I am not sure if I should mix the request payload parameter along with the query string parameter and send it in jmeter body data tab. Pointers appreciated! JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
There is nothing wrong in having both parameters and body data, just make sure to append the parameters to the "Path" section and provide your JSON payload using "Body Data" tab: As you can see JMeter normally sends the request Also be aware that you don't have to manually populate HTTP Request samplers, using JMeter's HTTP(S) Test Script Recorder will make your life easier as JMeter provides record-and-replay functionality (of course most likely you will need to perform correlation, however the effort will be less). Alternatively you can consider using JMeter Chrome Extension which is even more fast and easy as you won't have to worry about proxies, certificates, etc.

Related questions

0 votes
    I'm trying to run JMeter for performance testing on a Magento 2 website. So, far I've been able ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 30, 2022 in Education by JackTerrance
0 votes
    What is the maximum payload size that can be sent in POST methods?...
asked Jun 23, 2021 in Technology by JackTerrance
0 votes
    Does anyone know of a way in Power BI to set query parameters as described here from an embed request ... for the visualization. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    Using the WCF web programming model one can specify an operation contract like so: [OperationContract] [WebGet ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    What are the resolution steps when Burp does not intercept HTTPS requests? A)Toinstall Burp's CA certificate ... browser configuration. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    first of all,i am fairly new with spring mvc so .. how springmvc find the right class to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    @RequestMapping annotation is used to map a HTTP request method (GET or POST) to a specific class or method in the ... which will handle the respective request. A. True B. False...
asked Nov 8, 2022 in Education by JackTerrance
0 votes
    I want to get the search result using scrapy post request after giving the input to CP Number as 16308 ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 1, 2022 in Education by JackTerrance
0 votes
    Is it possible to make a timeout of 3 seconds in a post request ? How ? My code for the moment ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 22, 2022 in Education by JackTerrance
0 votes
    I am trying to calculate the progress of a file upload, so I was using Superagent. I was able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 19, 2022 in Education by JackTerrance
0 votes
    This is a cURL function that can send or retrieve data. It should work with any PHP app that ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    I am a very novice C# person so please dont be too hard on me Im trying to make a post request ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I am working on my first Android Application. What I am trying to do is a POST request to a REST ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    While developing "widgets" (objects, which - rendered - use some custom javascript files), I faced the need ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    Is it possible to send payload in the GET and DELETE methods?...
asked Jun 23, 2021 in Technology by JackTerrance
...