CAn I extract a token from a web_add_auto_header command
I am writing a multi VUGen script of HTTP & Citrix, in Loadrunner 12.5.
I have hit an issue where the recording has generated the below:
The underlined text is a token that changes per session and is used further down the script to make the below call:
Is there a way to make extract this token prior to the web_add_auto_header to parameterise it in the call further down.
I've had a look around but I can't find a great deal of information on the web_add_auto_header. But i haven't found anything that looks to do this.
If this is not possible, is there a workaround to get around this issue?
I assume you are recording the script against Citrix StoreFront. It is supported out of the box since LR 12.00, so you don't need to parameterize Csrf-Token manually. Please check Recording Options:
Correaltions->Rules: Citrix_Xenapp group should be enabled:
HTTP Properties->Advanced->Record headers in list:
With these settings all the necessary steps will be generated automatically: