Sunday, July 27, 2014

VSTS performance testing :How to extract dynamic values from 302 redirect requests in VSTS

Issue : We are getting dynamic value in 1st request’s (Request 1) response and it is redirected (302) to another request (say request2). The same value (which came as dynamic value in Request 1) used in Request 2. How to extract this dynamic value?

Solution:
1. Select 1st request Properties  Follow redirects = false. 2. Now you will be able to add extraction rule for dynamic value. 3. Copy the 2nd request (200 OK) and add in the web test and replace the dynamic value with extracted value. 4. If there are any extraction rules in the 1st request move to 2nd request.



No comments:

Post a Comment