Visual Studio 2013 freezes when performing Load Test on Azure

Since the release of Visual Studio 2013 a few weeks ago we have the possibility to use the immense power of the cloud to perform Load Tests on our public websites.

This is a Team Foundation Service feature and can be used when you have a TF Service account. For now, since the load test service is in preview, it is free to use.

Yesterday I was playing with the Load Test Service and noticed that VS 2013 froze when I started to run my Load Test. The infamous “Balloon of Death” popped up and the only remedy was stopping the Visual Studio Process.

clip_image002

So…What happened here? And how can you solve this ? Let me walk you through the steps

Building the scenario

First of all my starting situation. I opened Visual Studio 2013 and created a really simple Web Performance & Load Testing Project.

image

I created a really simple Web Performance Test (one that opens a website and clicks a link), and a simple Load Test that runs this test for 10 minutes with 3 users.

Locally this runs fine. Now I wanted to run on Azure.

I created a new Test Settings File

image

and selected [Run tests using Visual Studio Team Foundation Service]

image

After creation I made this test settings the active ones by right clicking the file and select [Active Load and Web Test Settings]

image

When I ran the test…Visual Studio froze

The solution

After some digging, I found some interesting things.

Visual Studio 2013 must be connected to your account in order to be able to bill you for using the Load Test Service. That makes sense not? So I signed in with my Microsoft account. In Visual Studio 2013 this is possible. Signing in allows you to synchronize settings between computers and much more (see this post).

After signing in, my test still froze.

Then I noticed another thing. My Team Explorer was connected to my on-premise TFS instead of my Service Account. So, within Team Explorer I connected to my TFS Service Account.

After that, my tests worked fine !

So in short:

  • Sign in to Visual Studio with your Microsoft Account
  • Connect Team Explorer to a Team Foundation Service account

Hope this helps !

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: