Search code examples
visual-studio-2012webrequestweb-testing

Waiting for a dependent request to complete within a Visual Studio Web test


A request within my web test has multiple dependent requests:

REQUEST
 DEP REQUEST A
 DEP REQUEST B

I need for the request to B to wait until A has completed because I need to extract a value from the response of A and put it into the request for B.

Is this something that is possible?


Solution

  • I ended up taking the dependent request out and pasting it back as a separate request. When recording the scenario within Fiddler I could see the order of the requests and which were requests/dependent requests and so the Visual Studio web test recorder got this wrong.