Thursday 27 November 2014

Creating dynamic post parameters using Jmeter

If post data(Name - Value pair) of  a request changes dynamically, then you need to construct the same from the response of previous requests. To do that in jmeter add "Beanshell PreProcessor /JSR223 PrePocessor" as a child to the corresponding request and use following code.


sampler.addArgument("Name", "Value");


Eg:





No comments:

Post a Comment