cloud based load tests with visual studio online
TRANSCRIPT
Eng Teong Cheah
Cloud-Based Load Tests with Visual Studio Online
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 1
Why load test in the cloud?
Quick Free load testing
Real-time charts and
graphs
Get deeper insights about
performance
Test where your
users are
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 2
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 3
Before you startCreate your Visual Studio Online account
Note: If you have Visual Studio Enterprise with MSDN or Visual Studio Ultimate with MSDN, you can run a basic load test on your web app or site directly from your Visual Studio Online account, no other tools necessary.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 4
Connect to your Visual Studio Online account1. If you haven’t already, sign up for a Visual Studio Online account.2. In Team Explorer, connect to your Visual Studio Online account.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 5
Connect to your Visual Studio Online account3. View your available team projects.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 6
Connect to your Visual Studio Online account3. (a) If you haven’t connected to your Visual Studio Online account before, add your account to the server list.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 7
Connect to your Visual Studio Online account3. (b) Enter your Visual Studio Online account ({youraccount}.visualstudio.com).3. (c) If you’re prompted to sign in to Visual Studio Online, do that.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 8
Connect to your Visual Studio Online account4. Select your Visual Studio Online account from the list, then choose your team project. Now you can connect.
Let’s Do It!Load Test with Visual Studio OnlineAdvanced & Simple
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 9
Load Test with Visual Studio OnlineAdvanced
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 10
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 11
Run and analyze your load test1. In Solution explorer, open the load test that you want run.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 12
Run and analyze your load test2. To run your test closer to where your users are, select a location closer to your users.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 13
Run and analyze your load test3. Now run your load test. This will run in the clod using Visual Studio Online.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 14
Run and analyze your load testYour 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.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 15
Run and analyze your load test4. 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.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 16
Run and analyze your load test5. When the test is done, download the report to view the results.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 17
Run and analyze your load test6. Review your test’s details. Find the number of users where your app’s performance fails to meet your requirements by examining the step load pattern for virtual users and fix any performance issues that you find in your app’s code, then rerun the test.
Load Test with Visual Studio OnlineSimple
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 18
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 19
Load test with Visual Studio Online1. Sign in to your Visual Studio Online account
(https://{youraccount}.visualstudio.com)2. Go to the Load Test hub.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 20
Load test with Visual Studio Online3. Enter your load test details. To run your test closer to where your users are located, select a closer location for your load test. Then start your test when you’re ready.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 21
Load test with Visual Studio Online4. Watch your app’s performance on the graph while the test runs, or come back later for the results.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 22
Load test with Visual Studio Online5. When your test is done, look at the result to see how well your app performed.For example, you can see you app’s average response time, failed requests, and any errors that might have happened.
Tuesday 2 May 2023 Prepared by Eng Teong Cheah 23
ReferencesChannel 9
Visual Studio
Cloud-based Load Testing