API call token authentication which passed to 2 thread groups

12 views
Skip to first unread message

nithya murali

unread,
Jun 28, 2024, 12:41:44 AM (6 days ago) Jun 28
to jmeter-plugins
Hi All
I am also trying do a API call token authentication at first initially and then pass the Bearer token to the next two thread group parallely ....how should i perform..

1.token generation is done by passing the clientid,client secret,granttype(API call with an url)
2.Then pass the above token to the API call 1
3.Pass the same token to the API call 2

Dmitri T

unread,
Jun 28, 2024, 1:11:02 AM (6 days ago) Jun 28
to jmeter-plugins
You can obtain the token in setUp Thread Group

With regards to passing the token to "normal" Thread Groups there are several options:

  1. Write it into a file with __StringToFile() function and then read it using __StringFromFile() function where required
  2. Store it in JMeter Properties using __setProperty() function and read it using __P() function where required
  3. Use Inter-Thread Communication Plugin
Reply all
Reply to author
Forward
0 new messages