Solution:
Subclass the WebTestPlugin class in namespace Microsoft.VisualStudio.TestTools.WebTesting and register to handle the PreRequest and PostRequest events.
In the PostRequest event, if the args.Response contains cookies, get and store it in a variable.
In the PreRequest event, add the cookies from the variable to the args.Request object.
No comments:
Post a Comment