Load Test Series Part III: Taking your load test to the Cloud (i.e. Creating a Cloud-based Load test)


We have been getting a lot of requests for “getting started” type content for Load Testing (3 already this week!) and thought I would create a series to help people get started.

This is part III of the series on how to get started with Load Testing specifically: Taking your load test to the Cloud (i.e. creating a Cloud-based Load test)

Be sure and check out the rest of this getting started with Performance Testing Series series:

    1. Part I Creating Tests to Load test
    2. Part II Creating Load tests
    3. Part III Taking your load test to the Cloud (i.e. creating a Cloud-based Load test)
    4. Part IV Running Load Tests directly from Visual Studio Online
    5. Part V Analyzing the load test reports
    6. Part VI Get application performance data with your Cloud Load Test

 

Part III Creating a Cloud-based Load test

Now that you have tests to that need to be load tested and a load Test running locally you will want to scale it using the cloud. 

This walk through uses a pre-created Load Test Project…but you can you also use the project created in Part I and Part II.

To get more insight into how well your web app or site performs, start load testing in the cloud with Visual Studio Ultimate 2013, our sample load test project or your own load test project, and Visual Studio Online.

Or, if you have a Visual Studio Ultimate with MSDN subscription, you can run a basic load test directly in Visual Studio Online. No load test project necessary.

Load test with Visual Studio

To get started:

  • Create your Visual Studio Online account, if you don’t have one already. You can have any license assigned to you in Visual Studio Online when you use Visual Studio Ultimate 2013 to run load tests.

  • If you don’t have a load test project, use our sample load test project with your web site or app. Just provide the address for the web site that you want to test. Or, if you have a load test project, jump ahead to set up your load test project for load testing with Visual Studio Online.

Get the sample load test project
  1. Download and install Visual Studio Ultimate 2013 or the latest update, if you haven’t already.

  2. Download the sample load test project, and unzip the files.

  3. Open the GettingStartedWithLoadTesting.sln solution.

  4. Open the SampleWebTest.webtest file. Replace the URL with your app’s web page.

    Double-click SampleWebTest.webtest. In Properties window, replace URL with your web page address

  5. Save the solution, then jump ahead to Connect to your Visual Studio Online account.

Set up your load test project to run tests in the cloud

Do you have a load test project from Visual Studio 2010 or Visual Studio 2012? No problem, just open your project in Visual Studio Ultimate 2013, then set up that project for load testing with Visual Studio Online.

  1. Download and install Visual Studio Ultimate 2013, if you haven’t already.

  2. Open your load test project in Visual Studio Ultimate 2013.

  3. Edit the test settings file so that your project uses Visual Studio Online for load testing.  (Note: this is the default in Visual Studio 2015)

    Choose Visual Studio Online to run your load tests

    When you’re ready to start load testing, connect Visual Studio Ultimate to Visual Studio Online.

Connect to your Visual Studio Online account

Before you can run load tests in the cloud, connect Visual Studio Ultimate to your Visual Studio Online account.

  1. If you haven’t already, sign up for a Visual Studio Online account. Find out more about signing up for Visual Studio Online.

  2. In Team Explorer, connect to your Visual Studio Online account.

    Connect to your Visual Studio Online account

  3. View your available team projects.

    Click Select Team Projects

    a. If you haven’t connected to your Visual Studio Online account before, add your account to the server list.

    Click Servers to add your Visual Studio Online account

    b. Enter your Visual Studio Online account name (youraccount.visualstudio.com).

    Enter your account name

    c. If you’re prompted to sign in to Visual Studio Online, do that.

  4. Select your Visual Studio Online account from the list, then choose your team project. Now you can connect.

    Choose your team project

Run and analyze your load test
  1. In Solution Explorer, open the load test that you want to run.

    Solution Explorer: double-click your load test

  2. Now run your load test. This will run in the cloud using Visual Studio Online.

    On the load test toolbar, click Run

    Your test appears in the queue and waits for its turn to run. When Visual Studio Online is ready to run your test, the test status changes to "Acquiring resources".

    Your load test appears in the queue

    A large test run might take up to 10 minutes while Visual Studio Online sets up virtual machines and agents for you.

  3. You can watch your app’s performance while the test runs. Look at the details to review errors, warnings, or other information about your test.

    Running your load test show the performance

  4. When the test is done, download the report to view the results.

    Click Download to save the report

    Click View Report to view results

    The results include performance counter data, threshold violations, and error information.

Congrats you have now create a cloud-based load test


Comments (0)

Skip to main content