Forum Discussion
nmrao
8 years agoCommunity Hero
Can you show the script which does that?
Tush
8 years agoOccasional Contributor
After running "Login" test case, I extract the session ID from the Login response header.
def harResponse = context.expand( '${#[Lib#startSession#login]#HarResponse#$[\'headers\'][7][\'value\']}' )
I then pass this value to cookie parameter in my API requests.