-1

I'm testing on chatbots using jmeter. I need to pass dynamic session id for each request, please let me know the possibility.

Customized request body:

{ "botName": "***********", "sessionId": "*************", "conversationId": "*************", "messageId": "************", "cognitiveService": "luis", "channel": "**********", "message": "***********", "callbackUrl": "****************", "userId":"***************" }

Thanks in adv.

0

You can replace this line:

"sessionId": "*************",

with the reference to a JMeter Variable or Function so JMeter will substitute the placeholder in the runtime.

For example if you use the following construction assuming __UUID() function:

"sessionId": "${__UUID}",

JMeter will use a unique GUID structure for each virtual user/iteration.

More information: JMeter Parameterization - The Complete Guide

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.