Issue with the correlation part in VSTS 2010 Web test
-
Wednesday, April 25, 2012 6:11 AM
Hi all,
I recorded a transaction flow using VSTS 2010 web test. I correlated every dynamic values which is working fine. But in particular place im getting a response like:
_link%3d6fiabIoppRQFDqIkYgSFldtQfdNcfQJnjOIwjrQOdNyJN8RZWYqFHvTKmrkMOTGRTqHIGAKaK8d3xMh5d%252bH9hdC08anYtiggSid%252fRDw%252bEFxSR5wR%252ficRKP1mglSsRPUstyAq40PzBI2P%252bdwrMEuL7Q%253d%253d|
where this is a dynamic value which has to be correlated for every users.
Now the same response is sent in the next request like:
_link=6fiabIoppRQFDqIkYgSFldtQfdNcfQJnjOIwjrQOdNyJN8RZWYqFHvTKmrkMOTGRTqHIGAKaK8d3xMh5d%2bH9hdC08anYtiggSid%2fRDw%2bEFxSR5wR%2ficRKP1mglSsRPUstyAq40PzBI2P%2bdwrMEuL7Q%3d%3d|
Now the problem is instead of %2f, %2b it is sending like %252b, %252f in the request. So i got struck with this palce.
Is it possible to convert %252f into %2f while performing correlation..?
Thanks in advance
Vinoth Kumar.S
All Replies
-
Friday, April 27, 2012 7:14 AMModerator
Hi Vinoth,
Could please elaborate the requirement of this issue and then you could get better help.
Tony Xiao [MSFT]
MSDN Community Support | Feedback to us
-
Friday, April 27, 2012 7:45 AM
Hi Tony,
Thanks for your response.
I have correlated the dynamic value called link_id. The link_id contains value like %252b, %252f and %253d. Now the think is I have to convert all those values into %2b, %2f and %3d and send in the upcoming request.
vinoth kumar S.
-
Monday, April 30, 2012 4:40 AMModerator
Hi Vinoth,
It seems like you could achieve this by writing extract rule in your test project.
In your custom extraction rule class you could extract the value which you want from response and hold them in WebTestContext as key-value paired format, when you want to use them in a web request then you could get them from webtest context and generate a new webrequest with these value.
Here is a link about custom extract rule with well explanation and example code snippet:
Hope this could help you.
Tony Xiao [MSFT]
MSDN Community Support | Feedback to us
- Edited by Tony xiaoModerator Wednesday, May 02, 2012 2:13 AM
- Marked As Answer by Tony xiaoModerator Friday, May 04, 2012 3:22 AM

