Correlation with ANTS Load

AjayAjay Posts: 8
edited May 12, 2006 11:53AM in 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


  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    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:
    '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!")
Sign In or Register to comment.