Vaibhav
Vaibhav

Reputation: 39

How to extract dynamic value from Jmeter request body?

i want to extract some token named, "encryptedstr" from jmeter request body. That token is not available in the response of any other previous requests. The sampler is just after login. How can i extract from request body? or is it related to login encryption?

Upvotes: 0

Views: 517

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

I don't think you need to extract the variable from the request as it makes no any sense.

I believe you need to generate this parameter somehow, looking into its name I would assume that it contains encrypted request data parameters so it might be the case you need to use __digest() function or if the encryption logic is more complex - use JSR223 PreProcessor and Groovy language for calculating the parameter value.

With regards to encryption algorithm - contact your application developers or use browser developer tools to inspect the corresponding JavaScript function.

Upvotes: 0

Related Questions