How to be sure your Web App works fine for N users

with Jesús Estévez

@Jecaestevez
Just another simple developer

IN

Objetives for this session:

  • Learn reasons why performance testing matter?
  • What is performance testing?
  • Learn types of performance testing
  • See the importance of the performance
  • Best practice to build performance test
  • Learn a new tool to do performance test
    • Record test
    • Run test
    • Add validation or extract rules
    • Use data sources

How to be sure you Web App work fine for N users

http://bit.ly/2syhyqA

http://bit.ly/2sy39dT

Building the perfect software

Why do I need worry about testing Performance if we use the best tecnology?

  • Unaceptable result
  • Server are running extra hot
  • Sign SLA  for number of users concurrent working or

Which word can define software performance ?

  • Speed
  • Scalabitlity
  • Stability
  • Page Loading
  • Availability
  • PageLoading

First step is build a realistic test planning

Define acceptance criteria

Work load model

Define scenarios

Metrics to capture 

But this is not a realistic use case
Enough Talk ! Let's work

Create Web performance test project

Recording

with VS and IE 

Cleanning

not important request

Run the test

Let's Change manually the data

Run again

Recording test  

Tips 

Recording test  

Import from fiddler

Recording test  

Import from fiddler

Creating real test

  • Parameterize web server
  • Validation Rules
  • Data sources
  • Extract data and save in variables
  • Conditionals, loops and much more with PLUGINS

you will need more artefacts! 

Parameterize web server

Data sources

csv

Data sources

Configuration

Data sources

csv

Validation Rules

Do we really need validations? 

Validation Rules

Customs?

Extract Rules

Extract Text

Extract Rules

Custom Generic Extract Rule

Test Results

Show errors demo

Which types of performance test do we have?

  • Load testing
  • Stress testing
  • Performance testing
  • Capacity planning
  • others ?

What do we want test with a Performance testing ?

  • Speed application
  • Scalability
  • Stability
  • Archives expectations

What do we want test with a Load testing

  • Userloads
  • Check performance remain steady
  • Database 

What do we want test with a Stress testing

  • Pushing the application beyond limits 
  • Identify capacity limit
  • max users
  • Hardware problems
  • Network problems 

Other types

  • Capacity planning business volume to scale up
  • Trending over time 
  • Segment of codeefficient

Building a Load test 

Wizard Demo Time

Building a Load test 

Wizard Demo Time

Building a Load test 

Wizard Demo Time

Building a Load test 

Wizard Demo Time

Building software

Thinking in Performance

Other interesting articles in:

  • http://blog.nwcadence.com/web-performance-and-load-testing-with-visual-studio-2012-remote-execution-2/
  • https://blogs.msdn.microsoft.com/edwinh/2016/04/21/guide-to-get-started-with-visual-studio-web-load-testing-and-automation-2/
  • https://www.visualstudio.com/en-us/docs/test/performance-testing/getting-started/getting-started-with-performance-testing
  • https://almvm.azurewebsites.net/labs/tfs/load/
  • https://www.slideshare.net/aroratarun/leveraging-azure-for-performance-testing?next_slideshow=1
  • https://www.slideshare.net/marceldvries/using-the-cloudbased-load-testing-service-and-application-insights-to-find-scale-and-performance-bottlenecks-in-your-applications

Be careful and choose the right tool for testing

Thanks for comming

See you all  in  

Materials in:

Q&A

Made with Slides.com