| Author |
Message |
Ajay
Joined: 11 May 2006 Posts: 5 Location: Albany
|
Posted: Fri May 12, 2006 2:04 pm Post subject: Correlation with ANTS Load |
|
|
How can I make my scripts dynamic. Are there any methods available to correlate dynamic content on my website.
Specifically: Every time when I create a new user record a unique user id is generated by the system. I want to capture this from the response data. Please give me some direction.
Thanks & Regards
Ajay |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Fri May 12, 2006 4:53 pm Post subject: |
|
|
Hi Ajay,
Every website does this differently, but the key is to parse this information from the server's response to a request (the HttpResponse). If the userid is returned in a querystring as part of a redirect, then you can use the HttpResponse.Location. If it's somewhere in a hidden field, you would want to examine the HttpResponse.Content. For instance:
| Code: |
'Query String after a 302 redirect
If WebClient.HttpResponse.Location.IndexOf("&sid=") > -1 Then Me.LogToFile("Session: "+WebClient.HttpResponse.Location)
'check the content for a hidden field
If WebClient.HttpResponse.Content.IndexOf("<input type=hidden value=x>") Then Me.LogToFile("Found session id!")
|
_________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group