cloud based load tests with visual studio online

23
Eng Teong Cheah Cloud-Based Load Tests with Visual Studio Online 27/04/22 Prepared by Eng Teong Cheah 1

Upload: eng-teong-cheah

Post on 06-Apr-2017

253 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Cloud Based Load Tests with Visual Studio Online

Eng Teong Cheah

Cloud-Based Load Tests with Visual Studio Online

Tuesday 2 May 2023 Prepared by Eng Teong Cheah 1

Page 2: Cloud Based Load Tests with Visual Studio Online

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

Page 3: Cloud Based Load Tests with Visual Studio Online

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.

Page 4: Cloud Based Load Tests with Visual Studio Online

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.

Page 5: Cloud Based Load Tests with Visual Studio Online

Tuesday 2 May 2023 Prepared by Eng Teong Cheah 5

Connect to your Visual Studio Online account3. View your available team projects.

Page 6: Cloud Based Load Tests with Visual Studio Online

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.

Page 7: Cloud Based Load Tests with Visual Studio Online

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.

Page 8: Cloud Based Load Tests with Visual Studio Online

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.

Page 9: Cloud Based Load Tests with Visual Studio Online

Let’s Do It!Load Test with Visual Studio OnlineAdvanced & Simple

Tuesday 2 May 2023 Prepared by Eng Teong Cheah 9

Page 10: Cloud Based Load Tests with Visual Studio Online

Load Test with Visual Studio OnlineAdvanced

Tuesday 2 May 2023 Prepared by Eng Teong Cheah 10

Page 11: Cloud Based Load Tests with Visual Studio Online

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.

Page 12: Cloud Based Load Tests with Visual Studio Online

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.

Page 13: Cloud Based Load Tests with Visual Studio Online

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.

Page 14: Cloud Based Load Tests with 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.

Page 15: Cloud Based Load Tests with Visual Studio Online

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.

Page 16: Cloud Based Load Tests with Visual Studio Online

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.

Page 17: Cloud Based Load Tests with Visual Studio Online

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.

Page 18: Cloud Based Load Tests with Visual Studio Online

Load Test with Visual Studio OnlineSimple

Tuesday 2 May 2023 Prepared by Eng Teong Cheah 18

Page 19: Cloud Based Load Tests with Visual Studio Online

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.

Page 20: Cloud Based Load Tests with Visual Studio Online

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.

Page 21: Cloud Based Load Tests with Visual Studio Online

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.

Page 22: Cloud Based Load Tests with Visual Studio Online

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.