In my case i have created one HTTP Request with all the possible parameter as below -
My .csv file is looking as below -
For some test case i need to send details in one or two parameter only, not for all. Now how can i do that in the same HTTP request without creating a new one?
Theoretically you can just send empty parameter values, just make sure that you have a blank value in the CSV file, i.e.:
Alternatively if you want to completely remove the parameters with empty values from the request you can add a JSR223 PreProcessor as a child of the HTTP Request sampler and put the following code into "Script" area:
This way JMeter will remove the parameters which don't have their respective values from the request:
In the above example
sampler
stands for HTTPSamplerProxy, see the JavaDoc for all available functions decriptionsMore information on Groovy scripting in JMeter: Apache Groovy - Why and How You Should Use It