tho dang
tho dang

Reputation: 9

how to change http method in data driven testing in jmeter using java

Does anyone know how to use java to change the HTTPrequest methods in Jmeter. I see a version of it but they use python. thanks

Upvotes: 0

Views: 581

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

You can define whatever JMeter Variable you want in the "Method" input of the HTTP Request sampler like:

JMeter Use Variable in HTTP Request sampler

Given you properly define this ${METHOD} variable value you should be able to parameterise the HTTP Method by using external data sources, i.e. via CSV Data Set Config

JMeter Parameterise HTTP Method

Upvotes: 1

Related Questions