Welcome to Team System Rocks Sign in | Join | Help
in
Home Blogs Forums Photos Tutorials Files Roller
Notion Solutions Main Site

Load test erroring on google analytics

Last post 04-30-2008, 5:09 AM by PMead. 4 replies.
Sort Posts: Previous
  •  04-28-2008, 6:18 PM

    Load test erroring on google analytics

    I'm running a Load Test and it's getting a WebException when it hits google analytics. It runs fine in the webtest and doesn't experience any errors. The details of the error just say this:

    System.Net.WebException: The request was aborted: The request was canceled.
       at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at Microsoft.VisualStudio.TestTools.WebStress.WebTestTransaction.ResponseReceived(IAsyncResult result)

    Does anyone know how to get around this issue? We're not doing anything really special with google analytics, just capturing some basic data about how many people have hit our site and what they were doing.

    Any help will be greatly appreciate.

    jlb

     

  •  04-29-2008, 5:15 AM

    Re: Load test erroring on google analytics

    Try hitting the url that’s causing the problem from your browser after the test fails, it could be that Google have detected a suspected DOS attack from your IP because of the Load Test.

    This would result in connections being refused by the Google servers.

    I had some junior guys practicing against Google web pages with load test tools a couple of months back. We ended up getting error messages from Google whenever we browsed to their site for about 2 days.

    Best thing to do is remove the Google Analytics references from your script as your not really load testing their site anyway, unless I've missed something that is.

    Paul

  •  04-29-2008, 10:57 AM

    Re: Load test erroring on google analytics

    Thanks Paul, that was a good tip. However, when I look at the recorded webtest, I don't see where it's hitting google analytics. I've generated the code for the webtest, but I don't see anywhere where google analytics is called. It's not until I run it that I see it called out. And only when I run it within a load test does it throw an error. What am I doing wrong?
  •  04-29-2008, 4:24 PM

    Re: Load test erroring on google analytics

    I spoke with my developers a little more about this issue today and one of our web guys suggested that there "must" be a way for a tool to ignore things like banner ads and web analytics when running load tests. I'm not a programmer and am fairly new to using VSTS, so it's hard for me to tell whether we could code something into the WebTest to ignore these things like banner ads and web analytics. Are there any other solutions out there aside from modifying your web application code to ignore this stuff?

  •  04-30-2008, 5:09 AM

    Re: Load test erroring on google analytics

    Hi,

    I've done some digging and found these for you.

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=279763&SiteID=1

    http://blogs.msdn.com/edglas/archive/2007/12/02/web-test-authoring-and-debugging-techniques-for-vs-2008.aspx

    Unfortunately they're not perfect answers for what you need but they might help.

    I'm quite surprised that this isn't a feature; it's been present in some of the other load tools for quite some time now.

    I've not had a chance to really use 2008 yet, so it might be a feature in there. But I'm pretty sure you'll either have to disable all dependant requests or manually comment out the requests in the code.

    Regards

    Paul

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems