You can set the token in the first service test to a variable.
1. Highlight the token, right click and create a reference.
2. Create a varialbe in the Variables section and make sure it is of scope user.
3. Add a variable assignment to the test for your declared variable and assign the variable to the reference you created.
4. In your second test declare the same variable of type user.
5. Go to the place in your second test where you want to use the token, highlight it, right click and say substitute from->variable name.
This should get you going. If you run into problems please feel free to open a support ticket.
------------------------------
Dawn Peters
------------------------------
Original Message:
Sent: Thu April 06, 2023 02:52 PM
From: Chris
Subject: How to put a Bearer token Authentication in Json request - Rational Performance Tester
Hi
I am using Rational Performance Tester, and I have 2 services in Json: service A and service B.
The service A's response gets a Token, and I want to pass that token as an authentication (Bearer Token) for the service B, how can i do it?
#RationalPerformanceTester #Rational #json
------------------------------
Christian
------------------------------