For the purpose of my test, i need to test the same endpoint is capable of using both GET/POST http method. What is the easiest way, how i can do it without creating duplicates of the script?
See Question&Answers more detail:osFor the purpose of my test, i need to test the same endpoint is capable of using both GET/POST http method. What is the easiest way, how i can do it without creating duplicates of the script?
See Question&Answers more detail:osYou can normally parameterize the HTTP request method by creating a simple CSV file with the following contents:
method
GET
POST
once done you can add a CSV Data Set Config element and set it up like:
and in your HTTP Request sampler just use ${method}
JMeter Variable
That's it, you can now run your request and it will hit the endpoint twice using different methods: