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:
- Part I Creating Tests to Load test
- Part II Creating Load tests
- Part III Taking your load test to the Cloud (i.e. creating a Cloud-based Load test)
- Part IV Running Load Tests directly from Visual Studio Online
- Part V Analyzing the load test reports
- 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
Download and install Visual Studio Ultimate 2013 or the latest update, if you haven't already.
Download the sample load test project, and unzip the files.
Open the GettingStartedWithLoadTesting.sln solution.
Open the SampleWebTest.webtest file. Replace the URL with your app's web page.
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.
Download and install Visual Studio Ultimate 2013, if you haven't already.
Open your load test project in Visual Studio Ultimate 2013.
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)
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.
In Team Explorer, connect to your Visual Studio Online account.
View your available team projects.
a. If you haven't connected to your Visual Studio Online account before, add your account to the server list.
b. Enter your Visual Studio Online account name (youraccount.visualstudio.com).
c. If you're prompted to sign in to Visual Studio Online, do that.
Select your Visual Studio Online account from the list, then choose your team project. Now you can connect.
Run and analyze your load test
In Solution Explorer, open the load test that you want to run.
Now run your load test. This will run in the cloud using Visual Studio Online.
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".
A large test run might take up to 10 minutes while Visual Studio Online sets up virtual machines and agents for you.
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.
When the test is done, download the report to view the results.
The results include performance counter data, threshold violations, and error information.
Congrats you have now create a cloud-based load test