skip to Main Content

I want to pass the below RefreshTokenCredential in Header part.

After passing this token, I want to get the value of id_token which is showing in textview as shown below.

Please let me know how to pass this token in Jmeter and how to get the id_token?

enter image description here

2

Answers


    1. To pass the token add HTTP Header Manager as a child of the request to which you want to add the token to and configure it like:

      enter image description here

    2. To extract the "id_token" value add CSS Selector Extractor as a child of that request and configure it like:

      enter image description here

      you will be able to use extracted value as ${id_token} where required

    Login or Signup to reply.
  1. You have to add Header Manager to your script. Since you are getting token as part of HTML, you need to use Regex Extractor to get the token

    Regex expression <input type="hidden" name="idToken" value="(.*?)">

    enter image description here

    Setting Headers
    enter image description here

    Setting Regex
    enter image description here

    Regex test
    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search