Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

16
Maharshi Shah TestingDiaries. com Rich Friedman RedLine13.com

Transcript of Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Page 1: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Maharshi ShahTestingDiaries.c

om

Rich FriedmanRedLine13.com

Page 2: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Why Performance Testing?

Source: http://bit.ly/WhyPerfTest

Page 3: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Some Statistics

47% of consumers expect a web page to load in 2 seconds or less.

40% of people abandon a website that takes more than 3 seconds to load.

A 1 second delay in page response can result in a 7% reduction in conversions.

If an e-commerce site is making $100,000 per day, a 1 second page delay could cost $2.5 million in lost sales a year.

Page 4: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Performance Testing is Must When…

High load is expected on application.Application has large volume of data.Application is sluggish.Customer requests it.

Page 5: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

An Example Project

Scope: Home page, login, search, view profile, edit profile, article listing, article details, logout.

Goal: To assess that the system is able to support 4000 users with response time less than or equal to 5 seconds.

Additionally, stress testing is to be done to determine system’s preparedness for high load.

Minimal or no errors during all tests.

Page 6: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

What is Performance Testing?

Non-functional testingPerformance testing: To validate speed,

scalability and stability.Load testing: To check application behavior

under normal and peak load.Stress testing: To evaluate application when

it’s pushed beyond normal conditions.Special mentions: Volume testing, spike

testing, endurance testing.

Page 7: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Usual Performance Testing Architecture

Page 8: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Performance Testing Approach

Gather requirements.Prepare a plan.Select a tool.Prepare and run your performance script.Scale your tests if required.Analyze results and prepare a report.

Page 9: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Requirements Gathering

Number of usersExpected response timeEnvironment and test machines setupBusiness critical scenarios to performance

testTest data

Page 10: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Preparing Test Plan

Prepare a plan which outlines your performance testing approach.

Get it reviewed and approved from client.

Page 11: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Tool Selection

Page 12: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Running and Scaling Tests

Prepare your script and execute it for large number of users.

Monitor server resource consumption while test is running.

Use cloud based services like RedLine13 to scale your performance tests.

Page 13: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Analysis and Reporting

Keep target audience in mind while reporting.

Provide detailed analysis based on your observation.

Try to pinpoint performance bottlenecks and suggest ways to mitigate them.

Provide technical details such as throughput, resource utilization, test parameters etc.

Report errors if found.

Page 14: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Performance Testing Best Practices

Test environment should be identical to production environment.

Application should be functionally stable.Monitor server resources consumption.Try to mimic the real world scenarios.

Page 15: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Thank You

Q&A

Page 16: Getting Started With Performance Testing Webinar (RedLine13 + Testing Diaries)

Contact Info

Testing DiariesEmail: [email protected]: http://www.testingdiaries.comFacebook: https://www.facebook.com/TestingDiariesTwitter: @Testing_Diaries

RedLine13Email: [email protected]: https://www.redline13.comFacebook:

https://www.facebook.com/redlineloadtestTwitter: @redlinethirteen

R