20
Performance Testing your applications with VS 2010 Ultimate Abhimanyu Singhal Co-Founder iMentor Knowledge Services

Web and load testing with Visual Studio 2010 Ultimate

Embed Size (px)

DESCRIPTION

Visual Studio 2010 Ultimate also gives you access to advanced web and load testing features that help you ensure that whatever application you are building it is ready for the most demanding uses. The Web and Load testing capabilities of Visual Studio 2010 Ultimate help you ensure that whatever application you are building it is ready for whatever scenarios your organization can envisage taking you one step closer to knowing your application is ready for prime time.

Citation preview

Page 1: Web and load testing with Visual Studio 2010 Ultimate

Performance Testing your applications with VS 2010 Ultimate

Abhimanyu SinghalCo-FounderiMentor Knowledge Services

Page 2: Web and load testing with Visual Studio 2010 Ultimate

Abhimanyu SinghalBackground

First Laid Hands on computers in 1994, been a geek for quite some timeSpent Last 15 Years in working on Different Projects, Technologies and development platforms

CurrentlyHelping companies scale applications developed on different platformsCo-Founder and Lead Consultant for iMentor Knowledge ServicesProvide High-End Technical Training and Consultancy

Page 3: Web and load testing with Visual Studio 2010 Ultimate

Objectives

Plan and Design TestsExecute TestsAnalyze Results and Reports

Page 4: Web and load testing with Visual Studio 2010 Ultimate

Demo Web Application

HomeAbout UsLoginRegister

Page 5: Web and load testing with Visual Studio 2010 Ultimate

Performance TestingChallenges

Writing better scriptsTaking care of Requests and Dependent requestsWriting scripts for key usage scenarios and there variances

DataNavigation Paths

Determining Relative Distribution and Simulating the same

Think TimesTest Run MixLoad Test Time DurationUser abandonment

Target Load LevelsQuantifying volume of application usage

Page 6: Web and load testing with Visual Studio 2010 Ultimate

Performance Testing - Execution

ChallengesSimulating New Production EnvironmentSetting up Test Rigs and Distributing Load among machinesValidating Test RunsUnderstanding the reports and which information to look for?

Math Intensive

Page 7: Web and load testing with Visual Studio 2010 Ultimate

Web Performance Tests

Tests the functionality of Web Application/Web Service for:-

PerformanceAny Other Validation you specify

Not fit for testing user interfacesUse them as scripts in load tests to model user actions

Page 9: Web and load testing with Visual Studio 2010 Ultimate

Demo – Creating and Running Web Performance Test

Page 10: Web and load testing with Visual Studio 2010 Ultimate

Web Performance Test Components

RequestDependent Request

Extraction RuleValidation RuleWeb Test Plug-InWeb Request Plug-inCommentsContext ParametersDate Sources

Page 11: Web and load testing with Visual Studio 2010 Ultimate

Coded Web Performance Test

Page 12: Web and load testing with Visual Studio 2010 Ultimate

Load Test

Load Testing ApplicationsStress Testing ApplicationsSmoke TestsSpike Tests

Can be used for Web ApplicationsCan also be used for Internal Application Components

Page 13: Web and load testing with Visual Studio 2010 Ultimate

Test Rig 2Test Rig 1

Load Simulation Architecture

Client 1VS 2010

Client 2MTM

Controller 1 Controller 2

Agent 1

Agent 2

Agent 3

Agent 4

Agent 5

Agent6

Page 14: Web and load testing with Visual Studio 2010 Ultimate

How machines in test rig communicate

Page 15: Web and load testing with Visual Studio 2010 Ultimate

Demo Creating and Running Load Tests

Page 16: Web and load testing with Visual Studio 2010 Ultimate

Key Measures I watch for

% CPU UsageRequests Per SecondRequest Queue LengthTotal Bytes in Heap

Page 17: Web and load testing with Visual Studio 2010 Ultimate

Considerations for running load Tests

Load patternConnection ModelSample rate and data collectionThink timeResponse time goalsPercentage of new usersEnabling SQL tracingMaintaining an appropriate number of agents

Page 18: Web and load testing with Visual Studio 2010 Ultimate

Common Issues with counter collection

LoadTestCounterCategoryNotFoundExceptionCould not find dependent counter needed to apply threshold rule

Page 19: Web and load testing with Visual Studio 2010 Ultimate

Resources

Performance Testing Guidance for Web Applications @ Microsoft Patterns and Practices

http://msdn.microsoft.com/en-us/library/bb924375.aspx

Visual Studio 2010 Onlinehttp://www.microsoft.com/visualstudio/en-us

Microsoft Developer NetworkResource Links for Performance Testing

http://www.imentor.co.in/blog/?p=35

Page 20: Web and load testing with Visual Studio 2010 Ultimate

Thank you and Q.A.

Please post your questions

You can also send in your questions to [email protected]